
R01UH0336EJ0102 Rev.1.02
Page 846 of 1538
Jul 17, 2014
V850E2/PG4-L
Section 15 TSG2 (TSG20)
Setting A/D
conversion trigger
output
To set A/D conversion trigger 0 (TSnADTRG0 signal), use TSnCTL5.TSnAT09
to TSnAT00.
With TSnAT09 to TSnAT00, A/D conversion trigger output is enabled or
disabled at the match of 16-bit counter (during up count) with TSnDCMP2 to
TSnDCMP0, the match of the 16-bit counter (during down count) with
TSnDCMP2 to TSnDCMP0, the 16-bit counter peak interrupt
(INTTSG2nIPEK), the 16-bit counter valley interrupt (INTTSG2nIVLY), the 16-
bit sub-counter peak timing, and 16-bit sub-counter valley timing.
To set A/D conversion trigger 1 (TSnADTRG1 signal), use TSnCTL6.TSnAT19
to TSnAT10.
To set the match timing of 16-bit counter and TSnDCMP2 to TSnDCMP0, set
the compare value to the pertinent register.
The skipping function can be used for TSnADTRG0 and the TSnADTRG1
signals. Use TSnACC00, TSnACC01 of TSnCTL5, TSnACC10, and
TSnACC11 of TSnCTL6 to select the skipping rate among 1/1, 1/2, 1/4, and 1/
8.
Caution
Set TSnCTL5, TSnCTL6, and TSnDCMP2 to TSnDCMP0 correctly when using
the TSG2nO7 output for the A/D conversion trigger timing pulse.
Setting dead time
The dead time can be set with TSnDTC0 and TSnDTC1.
The dead time is calculated by the following expressions:
PCLK × TSnDTC0
PCLK × TSnDTC1
TSnDTC0 can set the time between a change of TSG2nO2, TSG2nO4, and
TSG2nO6 to the inactive state and a change of TSG2nO1, TSG2nO3, and
TSG2nO5 to the active state, respectively.
TSnDTC1 can set the time between a change of TSG2nO1, TSG2nO3,
TSG2nO5 to the inactive state and a change of TSG2nO2, TSG2nO4, and
TSG2nO6 to the active state, respectively.
TSnDTC0 and TSnDTC1 can only be set to an even value.
Содержание V850 Series
Страница 1556: ...V850E2 PG4 L R01UH0336EJ0102 Back Cover ...