
R01UH0336EJ0102 Rev.1.02
Page 816 of 1538
Jul 17, 2014
V850E2/PG4-L
Section 15 TSG2 (TSG20)
15.9 A/D Conversion Trigger Function
A/D conversion trigger operation is described below.
TSnDCMP0W and TSnDCMP2 are used as compare registers of the A/D
conversion trigger function.
Figure 15-29
A/D Conversion Trigger and Diagnostic Output Control Circuit
As shown in Figure 15-29, a logical ORed signal can be generated by selecting
the compare match of TSnDCMP0 to TSnDCMP2 with the 16-bit counter, a
peak interrupt (INTTSG2nIPEK) and a valley interrupt (INTTSG2nIVLY) of the
16-bit counter, the peak timing of 16-bit sub-counter, and the valley timing of
16-bit sub-counter.
TSG2n has two channels of the identical A/D conversion trigger control
circuits, which can be controlled independently. TSG2n also provides the A/D
conversion trigger skipping function with the skipping rate of 1/1, 1/2, 1/4, or
1/8.
TSnADTRG0 signal
TSnCTL5.TSnAT09 to TSnAT00
[ 0 7 0 6 0 5 0 4 0 3 0 2 0 1 0 0 0 9 0 8 ]
TSnADTRG0
skipping circuit
TSnACC01 and
TSnACC00 bits
TSnCTL6.TSnAT09 to TSnAT00
TSnACC11 and
TSnACC 10 bits
0
1
TSG2nO7 pin
[ 0 7 0 6 0 5 0 4 0 3 0 2 0 1 0 0 0 9 0 8 ]
TSnA DTRG1
skipping
circuit
TSnADTRG1
signal
S
R
TSnDWD
TSnTGS
Valley of 16-bit sub-counter
Peak of 16-bit sub-counter
Valley of 16-bit counter
TSnVIE bit
TSnPIE bit
Peak of 16-bit counter
Skipping
circuit
Skipping
circuit
INTTSG2nIVLY interrupt
INTTSG2nIPEK interrupt
Match signal of TSnDCMP0
and 16-bit counter
TSnCUF flag
Match signal of TSnDCMP1
and 16-bit counter
TSnCUF flag
Match signal of TSnDCMP2
and 16-bit counter
TSnCUF flag
Pulse
generation
circuit