English
Language : 

TMP86P808DMG Datasheet, PDF (105/160 Pages) Toshiba Semiconductor – 8 Bit Microcontroller
TMP86P808DMG
CLR (TC4CR).3: Stops the timer.
CLR (TC4CR).7 : Sets the PWM4 pin to the high level.
Note 3: To enter the STOP mode, stop the timer and then enter the STOP mode. If the STOP mode is entered with-
out stopping of the timer when fc, fc/2 or fs is selected as the source clock, a pulse is output from the PWM4
pin during the warm-up period time after exiting the STOP mode.
Table 9-7 16-Bit PWM Output Mode
Source Clock
NORMAL1/2, IDLE1/2 mode
DV7CK = 0
DV7CK = 1
fc/211
fc/27
fc/25
fc/23
fs
fc/2
fc
fs/23 [Hz]
fc/27
fc/25
fc/23
fs
fc/2
fc
SLOW1/2,
SLEEP1/2
mode
fs/23 [Hz]
–
–
–
fs
–
–
Resolution
fc = 16 MHz
fs = 32.768 kHz
128 µs
8 µs
2 µs
500 ns
30.5 µs
125 ns
62.5 ns
244.14 µs
–
–
–
30.5 µs
–
–
Repeated Cycle
fc = 16 MHz
fs = 32.768 kHz
8.39 s
16 s
524.3 ms
–
131.1 ms
–
32.8 ms
–
2s
2s
8.2 ms
–
4.1 ms
–
Example :Generating a pulse with 1-ms high-level width and a period of 32.768 ms (fc = 16.0 MHz)
Setting ports
LDW
(PWREG3), 07D0H
: Sets the pulse width.
LD
(TC3CR), 33H
: Sets the operating clock to fc/23, and 16-bit PWM output
mode (lower byte).
LD
(TC4CR), 056H
: Sets TFF4 to the initial value 0, and 16-bit PWM signal
generation mode (upper byte).
LD
(TC4CR), 05EH
: Starts the timer.
Page 95