|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||||
|
|||||
|
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. |
|
#2
|
|||||
|
|||||
|
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.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| VEX inputs | Andrew Blair | FIRST Tech Challenge | 22 | 31-05-2006 18:17 |
| Encoders and putdata | theycallhimtom | Programming | 3 | 09-02-2006 19:24 |
| Attatching an axel to a wheel | Zoheb N | Technical Discussion | 36 | 12-12-2005 13:43 |
| Accelerometer code | ImmortalAres | Programming | 28 | 04-06-2005 01:02 |
| Dynamic Input/Output Changing | Paolo | Control System | 6 | 23-09-2004 19:09 |