157
Chapter 7 Timer/Counter Units
7
Fig. 7-63 Setting of Control Registers for Pulse Width Measurement
(a) Timer control register 1 (TMC1)
(b) Prescaler mode register 1 (PRM1)
(c) Capture/compare control register 1 (CRC1)
(d) External interrupt mode register 0 (INTM0)
7654321
0
0
010
0
CRC1
Disables clearing TM1, when TM1
coincides with CR10
Specifies the CR11 register as a capture
register
Clearing TM1, when TM1 is captured to
CR11, is disabled
000
76543210
0
000
1
TMC1
Overflow flag
Enables counting TM1
×××
76543210
PRS10
0
PRM1 ××× PRS12 PRS11
×
Specifies count clock
(x/fCLK; where x = 16, 32, 64,
128, 256, or 512)
7
INTM0 01
6543210
×
×
×
Specifies valid edge of INTP0 input
to be rising and falling edges
×: Don't care
××
1