
R01UH0336EJ0102 Rev.1.02
Page 1009 of 1538
Jul 17, 2014
V850E2/PG4-L
Section 18 Encoder Timer (ENCA)
(3)
Timing of Basic Encoder Operation 3 (Encoder Comparison Mode 3)
<Setting condition>
• ENCAnCTL.ENCAnCRM[1:0] = 00
B
:
Comparison is selected as the function of the ENCAnCCR0 and
ENCAnCCR1 registers.
• ENCAnCTL.ENCAnECM[1:0] = 11
B
:
If counting after a match between the values in the counter and the
ENCAnCCR0 register is upwards, the counter is cleared.
If further counting after a match between the values in the counter and the
ENCAnCCR1 register is downwards, the counter is cleared.
• ENCAnCTL.ENCAnLDE = 0
The counter is not loaded with the value from the ENCAnCCR0 register.
Figure 18-19
Timing of Basic Encoder Operation 3 (Encoder Comparison Mode 3)
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.
A compare match interrupt (INTENCAnI1) is generated when the values of the
counter and register ENCAnCCR1 (D1) match.
If further counting is downwards, the counter is cleared to 0000
H
because
ENCAnECM1 = 1.
ENCAnCCR0 register
INTENCAnI0 interrupt
ENCAnCSF flag
ENCAnUDF flag
ENCAnCCR1 register
INTENCAnI1 interrupt
FFFF
H
D1
0000
H
D0
D1
INTENCAnIUD interrupt
16-bit counter
D0
Содержание V850 Series
Страница 1556: ...V850E2 PG4 L R01UH0336EJ0102 Back Cover ...