BAT32G1x9 user manual | Chapter 8 Timer B
282 / 1149
Rev.1.02
(1) Example of setup steps to compare matching waveform outputs
The setup steps for comparing the matching waveform outputs are shown in Figure 8-19.
Figure 8-19 compares the setup steps for matching waveform outputs
(2)
(1)
(3)
must select compare matching output via TBIOR register
between "L" voltage output, "H" voltage input and
switching output. If configure as waveform output mode,
the port is the output pins (TBIO0, TBIO1) of compare
matching. Before first compare matching, the output
voltage level of compare matching pin is determined by
TBIOA0 and TBIOA1 of TBIOR register, TBIOB must
conigure TBGRA regsiter and TBGRB register compare
matching occuring timing sequence.
must conigure TBGRA regsiter and TBGRB register
compare matching occuring timing sequence.
must set TBSTART bit of TBMR register to 1, and start
counting of TB register.
output selection
select waveform output mode
configure output
timing sequence
start counting
<waveform output>
(1)
(2)
(3)
(2) Output timing for output comparison
A comparison match signal is generated when the contents of the TB registers are the same as the contents of
the TBGRA registers or the TBGRB registers (when the count value after the same TB registers is updated). After
generating a comparison match signal, output the output setting value of the TBIOR register from the output pins of the
output comparison (TBIO0, TBIO1). From the contents of the TB registers that are identical to the contents of the
TBGRA registers or TBGRB registers to the input clock that generates the TB registers, no comparison match signal
is generated.
The output timing for the output comparison is shown in Figure 8-20.
Figure 8-20
Output Compares the Output Timing
TB input clock
TB register
TBGRA register
TBGRB register
TBIO0 output
TBIO1 output
compare
matching A signal
(internal Signal)
compare
matching B signal
(internal Signal)
f
CLK