tmp88cs43fg TOSHIBA Semiconductor CORPORATION, tmp88cs43fg Datasheet - Page 116

no-image

tmp88cs43fg

Manufacturer Part Number
tmp88cs43fg
Description
8 Bit Microcontroller Tlcs-870/x Series
Manufacturer
TOSHIBA Semiconductor CORPORATION
Datasheet
11. 8-Bit TimerCounter 4 (TC4)
11.1 Configuration
Example :Generating 1024 Hz pulse (fc = 20.0 Mhz and CGCR<DV1CK> = 0)
11.3.4 Pulse Width Modulation (PWM) Output Mode
Internal clock
Counter
TC4DR
Timer F/F
PDO4 pin
INTTC4 interrupt
request
olution by an internal clock.
PWM
pin becomes high. The INTTC4 interrupt request is generated at this time.
low, one PMW cycle may be shorter than the programmed value.
to TC4DR is not shifted until one PWM cycle is completed. Therefore, a pulse can be modulated periodically.
For the first time, the data written to TC4DR is shifted when the timer is started by setting TC4CR<TC4S> to
1.
The pulse width modulation (PWM) output mode is used to generate the PWM pulse with up to 8 bits of res-
When a match between the up-counter and the TC4DR value is detected, the logic level output from the
When the timer is stopped, the PWM4 pin is high. Therefore, if the timer is stopped when the PWM4 pin is
TC4DR is serially connected to the shift register. If TC4DR is programmed during PWM output, the data set
Note 1: The PWM output mode can be used only in the NORMAL and IDEL modes.
Note 2: In the PWM output mode, program TC4DR immediately after the INTTC4 interrupt request is generated
4 pin becomes low. The up-counter continues counting. When the up-counter overflow occurs, the
(typically in the INTTC4 interrupt service routine.) When the programming of TC4DR and the INTTC4 inter-
rupt occur at the same time, an unstable value is shifted, that may result in generation of pulse different
from the programmed value until the next INTTC4 interrupt request is issued.
0
LD
SET
LD
LD
n
1
Match detect
Figure 11-2 PDO Mode Timing Chart
2
(TC4CR), 00000110B
(P2DR), 2
(TC4DR), 4CH
(TC4CR), 00100110B
n 0
1
2
Page 106
n 0
: Sets the PDO mode. (TC4M = 10, TC4CK = 001)
: Sets the P22 output latch to 1.
: 1/1024 ÷ 2
: Start TC4
1
7
/fc ÷ 2 (half cycle period) = 4CH
2
n 0
1
2
n 0
TMP88CS43FG
1
PWM
4

Related parts for tmp88cs43fg