Hitachi H8S/2646 Hardware Manual page 378

Hitachi 16-bit single-chip microcomputer h8s/2646 series
Table of Contents

Advertisement

Example of Synchronous Operation: Figure 10-15 shows an example of synchronous operation.
In this example, synchronous operation and PWM mode 1 have been designated for channels 0 to
2, TGR0B compare match has been set as the channel 0 counter clearing source, and synchronous
clearing has been set for the channel 1 and 2 counter clearing source.
Three-phase PWM waveforms are output from pins TIOC0A, TIOC1A, and TIOC2A. At this
time, synchronous presetting, and synchronous clearing by TGR0B compare match, is performed
for channel 0 to 2 TCNT counters, and the data set in TGR0B is used as the PWM cycle.
For details of PWM modes, see section 10.4.6, PWM Modes.
TCNT0 to TCNT2 values
TGR0B
TGR1B
TGR0A
TGR2B
TGR1A
TGR2A
H'0000
TIOC0A
TIOC1A
TIOC2A
346
Synchronous clearing by TGR0B compare match
Figure 10-15 Example of Synchronous Operation
Time

Advertisement

Table of Contents
loading

Table of Contents