
R01UH0336EJ0102 Rev.1.02
Page 991 of 1538
Jul 17, 2014
V850E2/PG4-L
Section 18 Encoder Timer (ENCA)
18.4.3
Control of Timer Counter Clearing
Any of following condition leads to clearing of the timer counter.
Clearing condition
(1):
Detection of a valid edge of the encoder clearing input signal (signal on the
ENCAnEC pin)
Clearing condition
(2):
Level detection of the encoder input and encoder clearing input signals
(signals on the ENCAnE0, ENCAnE1, and ENCAnEC pins)
Select clearing condition by settings of the ENCAnSCE, ENCAnZCL,
ENCAnBCL, ENCAnACL, ENCAnECS1 and ENCAnECS0 bits in the
ENCAnIOC1 register.
(1)-1
Clearing on Detection of a Valid Edge of the Encoder-Clearing Input Signal (when
ENCAnIOC1.ENCAnSCE = 0).
• Upon detection of the valid edge of ENCAnEC, the timer counter is cleared
to 0000
H
in synchronization with the operation clock.
• The valid edge of ENCAnEC is specified by the setting of the ENCAnECS1
and ENCAnECS0 bits in the ENCAnIOC1 register.
• The settings of the ENCAnZCL, ENCAnBCL, and ENCAnACL bits in the
ENCAnIOC1 register are ineffective.
• A clear interrupt signal (INTENCAnIEC) is output simultaneously with timer
counter clearing.
Figure 18-9
Operations to Clear the Counter in Response to Encoder Clearing Input
(ENCAnEC)
Condition for
Clearing
ENCAnSCE
ENCAnZCL
ENCAnBCL
ENCAnACL
ENCAnECS1,
ENCAnECS0
(1)
0
Invalid
Invalid
Invalid
Valid
(2)
1
Valid
Valid
Valid
Invalid
ENCAnCNT register
ENCAnE0 pin
(after edge detection)
INTENCAnIEC interrupt
ENCAnE1 pin
(after edge detection)
ENCAnEC pin
PCLK
Counter clock
Clearing signal
H
L
0000
H
m
H
m + 1
0001
H
Содержание V850 Series
Страница 1556: ...V850E2 PG4 L R01UH0336EJ0102 Back Cover ...