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=fSYS/32
110: fINT=fSYS/64
111: fINT=fSYS/128
Defines the TMR0 active edge of the timer/event counter:
In Event Counter Mode (T0M1,T0M0)=(0,1):
1:count on falling edge;
3
T0E
0:count on rising edge
In Pulse Width measurement mode (T0M1,T0M0)=(1,1):
1: start counting on the rising edge, stop on the falling edge;
0: start counting on the falling edge, stop on the rising edge
Enable/disable the timer counting
(0=disable; 1=enable)
4
5
T0ON
¾
Unused bit, read as ²0²
Define the operating mode (T0M1, T0M0)
01=Event count mode (External clock)
10=Timer mode (Internal clock)
6
7
T0M0
T0M1
11=Pulse Width measurement mode (External clock)
00=Unused
TMR0C (0EH) Register
Rev. 1.20
16
February 24, 2006