tmp88cs38ng TOSHIBA Semiconductor CORPORATION, tmp88cs38ng Datasheet - Page 136

no-image

tmp88cs38ng

Manufacturer Part Number
tmp88cs38ng
Description
Cmos 8-bit Microcontroller
Manufacturer
TOSHIBA Semiconductor CORPORATION
Datasheet
Binary Counter Control Register
(00030H)
CGCR
Note 1: *: Don’t care
Note 2: The all bits except DV1CK are cleared to “0”.
(1) Internal counter
(2) Outputs control and programming of PWM data
“0”
7
DV1CK
counter are set to “1” and are not counted up at one of the following conditions.
set to “1”. The PWM outputs starts the operation when the STARTx (x: 0 to 9) is set to
“1”.
internal counter are set to “1”. Therefore, the data is transferred to a PWM data latch
immediately when the internal counter is initialized. And the data is transferred to a PWM
data latch at the beginning of the next cycle when all bits of the internal counter are not set
to “1”.
1.
2.
3.
4.
5.
1.
The internal counter of PWM outputs is a free running counter. The all bits of
The PWM outputs are fixed to a high-level immediately when the ABORTx (x: 1, 2) is
The data from the transfer buffer to a PWM data latch is transferred when the all bits of
The sequence of writing the output data to PWM data latches is shown as follows;
“0”
6
During reset
The operation mode is changed to STOP mode.
Setting ABORTx (x: 1, 2) to “1”.
The START3 to 0 are “0” in 12-bit PWM outputs. The START9 to 4 are “0” in 7-bit
PWM outputs.
The lower 8-bit of PWM data latch in 12-bit PWM outputs is “00H”. The PWM
data latch in 7-bit PWM outputs is “00H”.
Note: PWM output data must be write to PWMDBR1 in the order of the lower 8-bit
a)
b)
c)
d) Write the upper 4-bit or 6-bit PWM output data to PWMDBR1.
e)
PWM0
Select of input clock to
1st divider
PWMCR1B) and clear PWMHL (Bit0 in PWMCR1B) to “0”.
Write the lower 8-bit PWM output data to PWMDBR1.
to “1”.
Select the resolution of PWM output to RESOLUTIONx (x: 0, 1) (Bit0 and 1 in
PWMCR1A) and set STARTx (x: 0, 1) (Bit2 and 3 in PWMCR1B) to “1”.
Write the channel number of PWM data latch to PWMCHS1 (Bit2 and 1 in
Write the channel number of PWM data latch to PWMCHS1 and set PWMHL
DV1CK
5
PWM output data, the upper 4-bit (or 6-bit) PWM output data. If the upper 4-bit
(or 6-bit) PWM output data is write to PWMDBR1, the lower 8-bit PWM output
data is not changed (except when lower 8-bit PWM output data is “00H”).
to
Figure 2.13.5 DIVIDER Control Register
PWM1
“0”
4
“0”
3
88CS38-136
“0”
0: fc/4
1: fc/8
2
“0”
1
“0”
0
TMP88CS38/CM38A/CP38A
(Initial value: 0000 0000)
2007-09-12
R/W

Related parts for tmp88cs38ng