English
Language : 

SH7055S Datasheet, PDF (406/1002 Pages) Renesas Technology Corp – Renesas 32-Bit RISC Microcomputer SuperH RISC engine Family/SH7000 Series
P
TST6A
TCNT6A
Clock
TCNT6A 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
01 02 03 04 03 02 01 00 01 02 03 04 03 02 01 00 01 02 03 04 03 02 01 00 01 02 03 04 03 02 01 00 01 02 03 04 03 02 01
up
up
up
up
up
TCNT6A
up/down
down
down
down
down
down
CYLR6A
0004
Write to
BFR6A
Data = 0003
Data = 0004
Data = 0000
BFR6A
0002
0003
0004
0000
DTR6A
...
0002
0003
0004
0000
TO6A
PWM output does not change
for one cycle after activation
TSR6
Cycle
Cleared by software
Cleared by software
Cleared by software
Cycle
Cycle
Cycle
Duty = 100%
Cycle
Duty = 0%
Figure 11.22 Complementary PWM Mode Operation
11.3.10 Channel 3 to 5 PWM Function
PWM mode is selected for channels 3 to 5 by setting the corresponding bits to 1 in the timer mode
register (TMDR), enabling the channels to operate as PWM timers with the same cycle.
In PWM mode, general registers D (GR3D, GR4D, GR5D) are used as cycle registers, and general
registers A to C (GR3A to GR3C, GR4A to GR4C, GR5A to GR5C) as duty registers. The
external pins (TIO3A to TIO3C, TIO4A to TIO4C, TIO5A to TIO5C) corresponding to the GRs
used as duty registers are used as PWM outputs. External pins TIO3D, TIO4D, and TIO5D should
not be used as timer outputs.
The free-running counter (TCNT) is started by making a setting in the timer start register (TSTR),
and when TCNT reaches the cycle register (GR3D, GR4D, GR5D) value, a compare-match is
generated and TCNT starts counting up again from H'0000. At the same time, the corresponding
bit is set in the timer status register (TSR) and 1 is output from the corresponding external pin.
When TCNT reaches the duty register (GR3A to GR3C, GR4A to GR4C, GR5A to GR5C) value,
0 is output to the external pin. The corresponding status flag is not set. When PWM operation is
performed by starting the free-running counter from its initial value of H'0000, PWM output is not
performed for one cycle. To perform immediate PWM output, the value in the cycle register must
be set in the free-running counter before the counter is started. If PWM operation is performed
Rev.2.0, 07/03, page 368 of 960