Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   Using DIO pin 14 as timer source? (http://www.chiefdelphi.com/forums/showthread.php?t=43805)

Jared Russell 11-02-2006 23:01

Using DIO pin 14 as timer source?
 
In this thread I saw an interesting post:

"Use digital in 14. It corresponds to pin RC0 on the PIC, which coincidentally is the clock for Timer 1/3 when they are used as (a)synchonous counters. Look at the PIC reference on www.kevin.org/frc Specifically, look at the TIMER section and the PORTC section. Note that I haven't tried this yet, but this is how I'm planning on doing things. You can get pretty good resolution and update rates since the max frequency is 50kHz, and you just sample it and clear it every PID loop, so you don't have to deal with the variable update rates of some other methods. Best of all, no interrupts needed."

Has anyone tried this? Seems like a pretty easy way to handle very high frequency encoder interrupts, if it works as advertised.

Kevin Sevcik 12-02-2006 00:02

Re: Using DIO pin 14 as timer source?
 
I'm in the process of trying to make good on my suggestion. Sadly, the build is rather behind, so programming is also somewhat behind. I've got the programming team all day tomorrow, so we'll see if everything compiles happily and will hopefully be testing things Monday.


All times are GMT -5. The time now is 09:07.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi