
R01UH0336EJ0102 Rev.1.02
Page 1000 of 1538
Jul 17, 2014
V850E2/PG4-L
Section 18 Encoder Timer (ENCA)
(2)
Capture Function
• When ENCAnCTL.ENCAnCRM1 = 1, the ENCAnCCR1 register functions
as a dedicated capture register.
The capture operation to ENCAnCCR1 is shown in the timing chart in Section
18.6, (4) Timing of Basic Encoder Operation 4 (Encoder Capture Mode).
Operations corresponding to the settings of ENCAnCTL.ENCAnCTS are listed
in the table below.
ENCAnCCR1
Function
Compare 1
Match Interrupt
Masking
Interrupt Mask Cancel Trigger
Compare 1 Match Interrupt
Output upon Compare Match
with ENCAnCCR1
ENCAnCRM1
ENCAnCME
ENCAnMCS
Underflow
Occurrence upon
ENCAnLDE = 0
0
(Compare)
0
(Masking
disabled)
—
(Setting invalid)
—
Outputs compare 1 match
interrupt upon each compare
match.
1
(Masking
enabled)
0
(Writing to
ENCAnCCR1)
Occurred
(Loading of
ENCAnCCR0 to
timer counter)
Outputs compare 1 match
interrupt once, upon the first
compare match. (Interrupts are
masked for the second and
subsequent matches until the
cancel trigger occurs.)
1
(Timer counter
clearing)
ENCAnCCR1
Function
Capture Trigger
Selection
Capture Trigger
Signal
Timer Counter
Clearing
Interrupt Occurrence
ENCAnCRM1
ENCAnCTS
1
(Capture)
0
Capture trigger 1
input (ENCAnI1 pin)
Does not clear
timer counter.
(1) Capture 1 interrupt
(INTENCAnI1)
1
Encoder clearing
input (ENCAnEC pin)
Clears timer
counter.
(1) Capture 1 interrupt
(INTENCAnI1)
(2) Encoder clear interrupt
(INTENCAnIEC)