
R01UH0336EJ0102 Rev.1.02
Page 1012 of 1538
Jul 17, 2014
V850E2/PG4-L
Section 18 Encoder Timer (ENCA)
A compare match interrupt (INTENCAnI0) is generated when the values of the
counter and register ENCAnCCR0 (D0) match.
If further counting is upwards, the counter is cleared to 0000
H
because
ENCAnECM0 = 1.
The detection of both edges on the ENCAnI1 pin leads to storage of the
counter value in the capture register (ENCAnCCR1) and the generation of a
capture interrupt (INTENCAnI1).
An underflow interrupt (INTENCAnIUD) is generated when the counter
underflows.
ENCAnLDE = 1, so the counter is loaded with the value from the ENCAnCCR0
register (D0) when the counter underflows
ENCAnLDE = 1 and ENCAnECM[1:0] = 01
B
, so counting is from 0000
H
to the
setting of the ENCAnCCR0 register.