
R01UH0336EJ0102 Rev.1.02
Page 1045 of 1538
Jul 17, 2014
V850E2/PG4-L
Section 19 Timer Option Module (TAPA)
(3)
Operating Procedure for Setting a Trigger to Start Conversion by the A/D
Converter
The operating procedure for setting a trigger to start conversion by the A/D
converter is as follows.
Operation
States of TAUB and TAPA
Initia
l se
tting
s
Initialize TAUB.
Determine the timer's operating mode.
TAUB and TAPA are stopped.
Setting in the TAPAnCTL1 register.
Set TAPAnATS[1:0] bits (for TAPAnTADOUT0).
Set TAPAnATS[3:2] (for TAPAnTADOUT1).
St
a
rt
opera
ti
o
n
Start the TAUB module.
TAUB starts counting.
Du
ri
ng op
eration
TAUB runs in accord with the settings for the
various functions.
The A/D converter conversion trigger selector
outputs TAPAnTADOUT0 in accord with the
settings of TAPAnATS[1:0] or TAPAnTADOUT1
in accord with the settings of TAPAnATS[3:2],
based on the slave match detection signal
(TAPAnTCDENS1 or TAPAnTCDENS0) and up/
down input (TAPAnTUDCM0) and the valley
interrupt signal (TAPAnTIVLY0) generated by
TAPA.
S
top
pin
g
opera
tio
n
Stopping the TAUB module.
TAUB stops counting.
Re
st
art o
pera
tio
n