
R01UH0336EJ0102 Rev.1.02
Page 971 of 1538
Jul 17, 2014
V850E2/PG4-L
Section 18 Encoder Timer (ENCA)
1, 0
ENCAnUDS1,
ENCAnUDS0
Along with the inputs on the ENCAnE0 and ENCAnE1 pins, these bits control
whether counting is up or down.
ENCAn
UDS1
ENCAn
UDS0
Operation
0
0
Upon detection of a valid edge in the
ENCAnE0 input signal from the encoder,
counter operation depends on the state of the
ENCAnE1 input signal from the encoder.
Counting will be
•
down if ENCAnE1 is "high" and
•
up if ENCAnE1 is "low".
0
1
•
Detection of a valid edge in the ENCAnE0
encoder input causes counting up.
•
Detection of a valid edge in the ENCAnE1
encoder input causes counting down.
1
0
•
A rising edge of the ENCAnE0 encoder
input causes counting down.
•
A falling edge of the ENCAnE0 encoder
input causes counting up.
However, counting in either direction only
proceeds when ENCAnE1 is low.
1
1
Both edges are detected in encoder inputs
ENCAnE0 and ENCAnE1.
The combination of detected edge and input
level determines the counting operation.
Table 18-7
ENCAnCTL Register Contents (3/3)
Bit Position
Bit Name
Function
Содержание V850 Series
Страница 1556: ...V850E2 PG4 L R01UH0336EJ0102 Back Cover ...