tmp88ps42ng TOSHIBA Semiconductor CORPORATION, tmp88ps42ng Datasheet - Page 125

no-image

tmp88ps42ng

Manufacturer Part Number
tmp88ps42ng
Description
8 Bit Microcontroller Tlcs-870/x Series
Manufacturer
TOSHIBA Semiconductor CORPORATION
Datasheet
12.3.4 8-Bit Pulse Width Modulation (PWM) Output Mode (TC5, 6)
up-counter counts up using the internal clock.
timer F/Fj is switched to the opposite state. The counter continues counting. The logic level output from the
timer F/Fj is switched to the opposite state again by the up-counter overflow, and the counter is cleared. The
INTTCj interrupt request is generated at this time.
erated. Upon reset, the timer F/Fj is cleared to 0.
changed while the timer is running. The value set to PWREGj during a run of the timer is shifted by the
INTTCj interrupt request and loaded into PWREGj. While the timer is stopped, the value is shifted immedi-
ately after the programming of PWREGj. If executing the read instruction to PWREGj during PWM output,
the value in the shift register is read, but not the value set in PWREGj. Therefore, after writing to PWREGj, the
reading data of PWREGj is previous value until INTTCj is generated.
Table 12-4 PWM Output Mode
This mode is used to generate a pulse-width modulated (PWM) signals with up to 8 bits of resolution. The
When a match between the up-counter and the PWREGj value is detected, the logic level output from the
Since the initial value can be set to the timer F/Fj by TCjCR<TFFj>, positive and negative pulses can be gen-
(The logic level output from the
Since PWREGj in the PWM mode is serially connected to the shift register, the value set to PWREGj can be
For the pin used for PWM output, the output latch of the I/O port must be set to 1.
Note 1: In the PWM mode, program the timer register PWREGj immediately after the INTTCj interrupt request is
Note 2: When the timer is stopped during PWM output, the
Note 3: To enter the STOP mode during PWM output, stop the timer and then enter the STOP mode. If the STOP
Note 4: j = 5, 6
DV1CK = 0
fc/2
fc/2
fc/2
fc/2
11
NORMAL, IDLE mode
generated (normally in the INTTCj interrupt service routine.) If the programming of PWREGj and the inter-
rupt request occur at the same time, an unstable value is shifted, that may result in generation of the pulse
different from the programmed value until the next INTTCj interrupt request is generated.
stopped. To change the output status, program TCjCR<TFFj> after the timer is stopped. Do not change the
TCjCR<TFFj> upon stopping of the timer.
Example: Fixing the
CLR (TCjCR).3: Stops the timer.
CLR (TCjCR).7: Sets the
mode is entered without stopping the timer when fc or fc/2 is selected as the source clock, a pulse is output
from the
[Hz]
7
5
3
Source Clock
PWMj
DV1CK = 1
fc/2
pin during the warm-up period time after exiting the STOP mode.
fc/2
fc/2
fc/2
12
[Hz]
8
6
4
PWMj
PWMj
pin to the high level when the TimerCounter is stopped
PWMj
fc = 20 MHz
DV1CK = 0
102.4 μs
pin to the high level.
6.4 μs
1.6 μs
0.4 μs
pin is the opposite to the timer F/Fj logic level.)
Page 115
Resolution
fc = 20 MHz
DV1CK = 1
204.8 μs
12.8 μs
PWMj
3.2 μs
0.8 μs
pin holds the output status when the timer is
fc = 20 MHz
DV1CK = 0
26.21 ms
1.64 ms
410 μs
102 μs
Repeated Cycle
fc = 20 MHz
DV1CK = 1
52.43 ms
3.28 ms
819 μs
205 μs
TMP88PS42NG

Related parts for tmp88ps42ng