
R01UH0336EJ0102 Rev.1.02
Page 1004 of 1538
Jul 17, 2014
V850E2/PG4-L
Section 18 Encoder Timer (ENCA)
18.5 Setting Sequences
18.5.1
Encoder Timer Setting Procedure
The encoder timer setting procedure is described below.
Action
State of Setting
Initial setting
Reset release
Power-on state, encoder-timer operation
stopped state (writing to the individual registers
is possible)
Initial settings
of encoder
timer
Perform the following initial settings.
•
Setting for counter
•
Setting for clearing counter
•
Setting for ENCAnCCR0 register
•
Setting for ENCAnCCR1 register
Counting operations are stopped in this state.
The value of the ENCAnTE bit indicating the
state of operation is 0.
Perform the initial settings for counter.
•
Set any 16-bit value to ENCAnCNT register.
(When, after setting this register, the
ENCAnTS bit is set to "1", the counter
operation starts from the set count value.)
The set value is set as the initial value of the
counter register.
Operation
start
Perform the counter operation start setting.
•
Set the ENCAnTS bit to "1".
Counting is started in this state.
The value of the ENCAnTE bit indicating the
state of operation is 1, and the counter clock is
supplied to the internal circuit.
Operating
Only those registers whose setting can be
changed during operation can be rewritten.
•
ENCAnCCR0 register setting
•
ENCAnCCR1 register setting
•
ENCAnIOC0 register setting
Count proceeds from the initial setting, and is
up or down in accord with the setting of the
ENCAnE0 and ENCAnE1 pins.
Operation
stop
Perform the counter operation stop setting
during operation.
•
Set the ENCAnTT bit to "1".
Counting operations are stopped in this state.
The value of the ENCAnTE bit indicating the
state of operation is 0.
Encoder timer
stop
Reset
The setting registers are initialized.
Содержание V850 Series
Страница 1556: ...V850E2 PG4 L R01UH0336EJ0102 Back Cover ...