
R01UH0336EJ0102 Rev.1.02
Page 1001 of 1538
Jul 17, 2014
V850E2/PG4-L
Section 18 Encoder Timer (ENCA)
The basic operations of the capture function are described below.
Figure 18-16
Capture between Pulses of the Counter Clock (ENCAnCCR1)
1. The following values are set at label 1: ENCAnCRM1 = 1, ENCAnTIS3 and
ENCAnTIS2 = 01
B
.
2. Counting up proceeds at label 2.
3. At label 3, a rising edge of the input signal on the ENCAnI1 pin is detected,
and the value reached by the counter is captured in the ENCAnCCR1
register.
4. At label 4, the interrupt signal (INTENCAnI1) that corresponds to capture
to the ENCAnCCR1 register is output.
PCLK
ENCAnCNT register
INTENCAnI0 interrupt
INTENCAnI1 interrupt
ENCAnCCR1 register
ENCAnTIS[3:2]
ENCAnCRM1 bit
ENCAnI1 pin
Input on the ENCAnI1 pin:
rising
ENCAnCSF flag
Counter clock
= H (counting up)
= H (capture)
INTENCAnI1 is output
0002
H
0003
H
0004
H
1H
0005
H
0003
H
Value of ENCAnCNT is captured by ENCAnCCR1
Counting up in the normal way
Counting up in the normal way
Detection of a rising edge on ENCAnI1
1
2
3
4
Содержание V850 Series
Страница 1556: ...V850E2 PG4 L R01UH0336EJ0102 Back Cover ...