
R01UH0336EJ0102 Rev.1.02
Page 990 of 1538
Jul 17, 2014
V850E2/PG4-L
Section 18 Encoder Timer (ENCA)
(4)
When ENCAnCTL.ENCAnUDS[1:0] = 11
B
The valid edge specification for ENCAnE0 and ENCAnE1 (setting of
ENCAnIOC1.ENCAnEIS[1:0] bits) is ineffective.
When the valid edges of the signals on ENCAnE0 and ENCAnE1 coincide, the
count is retained.
The timing chart below shows counting operation when
ENCAnCTL.ENCAnUDS[1:0] = 11
B
.
Figure 18-8
Counting Operation of ENCAnCTL.ENCAnUDS[1:0] = 11
B
ENCAnUDS1
ENCAnUDS0
Description of Operation
Signal on the
ENCAnE0 Pin
Signal on the
ENCAnE1 Pin
Counting
Operation
1
1
Low level
Falling edge
Counting down
Rising edge
Low level
High level
Rising edge
Falling edge
High level
Rising edge
High level
Counting up
High level
Falling edge
Falling edge
Low level
Low level
Rising edge
Simultaneous input
Retaining
ENCAnUDS[1:0] = 11B
ENCAnE0 pin
ENCAnE1 pin
ENCAnCNT register
0004
H
0003
H
0006
H
0005
H
0007
H
0008
H
0009
H
000A
H
0009
H
0008
H
0007
H
0006
H
0002
H
The setting of the ENCAnEIS[1:0] bits is invalid.
If rising edges on ENCAnE0 and ENCAnE1 coincide,
the value in the ENCAnCNT register is retained.
Counting up
Counting down