
R01UH0336EJ0102 Rev.1.02
Page 1011 of 1538
Jul 17, 2014
V850E2/PG4-L
Section 18 Encoder Timer (ENCA)
(5)
Timing of Basic Encoder Operation 5
(Encoder Capture and Comparison Mode)
<Setting condition>
• ENCAnCTL.ENCAnCRM[1:0] = 10
B
:
Select the comparison function for the ENCAnCCR0 register and the
capture function for the ENCAnCCR1 register.
• ENCAnCTL.ENCAnECM[1:0] = 01
B
:
The counter is cleared when its value matches that of the ENCAnCCR0
register.
• ENCAnCTL.ENCAnLDE = 1:
When the counter underflows, it is loaded with the value from the
ENCAnCCR0 register.
• ENCAnIOC1.ENCAnSCE = 0, ENCAnECS[1:0] = 00
B
• ENCAnIOC0.ENCAnTIS[3:2] = 11
B
Selects detection of both edges of the signal on the ENCAnI1 pin.
Figure 18-21
Timing of Basic Encoder Operation 5
(Encoder Capture and Comparison Mode)
ENCAnCCR0 register
INTENCAnI0 interrupt
ENCAnCSF flag
ENCAnUDF flag
ENCAnCCR1 register
INTENCAnI1 interrupt
D0
D1
0000
H
D0
INTENCAnIUD interrupt
16-bit counter
D1
D2
D2
ENCAnl1 pin
Содержание V850 Series
Страница 1556: ...V850E2 PG4 L R01UH0336EJ0102 Back Cover ...