English
Language : 

TMP86P202PG Datasheet, PDF (77/108 Pages) Toshiba Semiconductor – 8 Bit Microcontroller
TMP86P202PG
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 or fc/2 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 8-6 16-Bit PWM Output Mode
Source Clock
NORMAL1, IDLE1 mode
fc/211
fc/27
fc/25
fc/23
fc/2
fc
Resolution
fc = 8 MHz
256 µs
16 µs
4 µs
1 µs
250 ns
125 ns
Repeated Cycle
fc = 8 MHz
16.78 ms
1.05 ms
262.1 ms
65.5 ms
16.4 ms
8.2 ms
Example :Generating a pulse with 2-ms high-level width and a period of 65.536 ms (fc = 8.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 69