
R01UH0336EJ0102 Rev.1.02
Page 1461 of 1538
Jul 17, 2014
V850E2/PG4-L
Section 24 Peripheral Interconnection (PIC)
24.4.8.6
Function Setting
The following tables show the register settings.
Register bits not listed in the tables are used with the initial values.
Table 24-46
ENCA0 Setting
Function
Register
Bit Position
Bit Name
Set Value
Note
ENCA0
ENCA0CTL
15
ENCA0CME
Don’t Care
Enables or disables compare match interrupt
detection mask.
14
ENCA0MCS
Don’t Care
Selects a cancelation trigger of compare match
interrupt detection mask.
9
ENCA0CRM1
Don’t Care
Selects the ENCA0CCR1 function
(capture/compare)
8
ENCA0CRM0
Don’t Care
Selects the ENCA0CCR0 function
(capture/compare)
7
ENCA0CTS
0
Selects trigger of capture operation of
ENCA0CCR1
4
ENCA0LDE
0
Enables or disables reload operation when
underflow is generated.
3
ENCA0ECM1
0
Enables or disables clearing of the counter on
compare match of ENCA0CCR1.
2
ENCA0ECM0
0
Enables or disables clearing of the counter on
compare match of ENCA0CCR0.
1, 0
ENCA0UDS1,
ENCA0UDS0
0,
0
Selects the counter up/down control by ENCA0E0/
ENCA0E1.
ENCA0IOC1
7
ENCA0SCE
0
Enables the special encoder clear.
6
ENCA0ZCL
0
Selects the clear level of Z phase for a special
encoder clear.
5
ENCA0BCL
0
Selects the clear level of B phase for a special
encoder clear.
4
ENCA0ACL
0
Selects the clear level of A phase for a special
encoder clear.
3, 2
ENCA0ECS1
ENCA0ECS0
0, 0
Selects encoder clear input (Z phase) edge.
1, 0
ENCA0EIS1
ENCA0EIS0
1,
1
Selects encoder input (A and B phase) edge.
ENCA0CCR0
-
-
Don’t Care
Compare register
Sets a compare value.
ENCA0CCR1
-
-
Don’t Care
Compare register
Sets a compare value.
ENCA0CNT
-
-
Don’t Care
Timer counter register