[<<][staapl][>>][..]
Fri Jul 4 17:39:06 EDT 2014

Timer prescalers

All 4 timers need to be prescaled.
The 2MHz cycle (8MHz clock) should be divided by 4 or 8.

(/ 12.0 4) 3 MHz
(/ 12.0 8) 1.5MHz

Control registers prescalers:

T0CON T0PS2:T0PS0      2 = 1:8, 1 = 1:4
T1CON T1CKPS1:T1CKPS0  3 = 1:8, 2 = 1:4
T2CON T2CKPS1:T2CKPS0           1 = 1:4
T3CON T3CKPS1:T3CKPS0  3 = 1:8, 2 = 1:4

EDIT: check again!

TMR2 is the one that's used for establishing real time.  It's also the
one that has a linear postscaler.  It seems originally it's set to
31.25kHz for midi.






[Reply][About]
[<<][staapl][>>][..]