English
Language : 

TMP88CS38BNG Datasheet, PDF (133/218 Pages) Toshiba Semiconductor – CMOS 8-Bit Microcontroller
TMP88CS38B/CM38B/CP38B
2.13.3 Control
PWM output is controlled by PWM control register (PWMCR1A, PWMCR1B, PWMCR2A,
PWMCR2B) and PWM data buffer register (PWMDBR1, PWMDBR2).
PWM Control Register 1A
PWMCR1A
(00028H)
7
6
5
4
3
2
− ABORT1 START3 START2 START1 START0
1
0
RESOLUTION
1
0
(Initial value: *000 0000)
ABORT1
START3
Abort PWM operation of
channel 3 to 0
Start channel 3
0: Operation
1: PWM abort (PWM outputs are fixed to a high level.)
0: Stop PWM3
1: Start PWM3
START2 Start channel 2
START1 Start channel 1
START0 Start channel 0
RESOLUTION1 Select channel 1 resolution
RESOLUTION2 Select channel 0 resolution
0: Stop PWM2
1: Start PWM2
0: Stop PWM1
1: Start PWM1
0: Stop PWM0
1: Start PWM0
0: 14-bit resolution
1: 12-bit resolution
0: 14-bit resolution
1: 12-bit resolution
Write
only
Note 1: *: Don’t care
Note 2 After set the ABORT1 to “1”, the ABORT1 is cleared to “0” automatically.
Note 3: PWMCR1A is write-only register and cannot be used with any of the read-modify-write instructions such
as SET, CLR, etc.
PWM Control Register 1B
7
6
5
4
3
2
1
0
PWMCR1B
(00029H)
PWMCHS1 PWMHL
(Initial value: **** *000)
PWMCHS1
PWMHL
Select the PWM data latch of
12-bit PWM channel
Select upper or lower data
transfer buffer (PWMDBR1)
00: Channel 0
01: Channel 1
10: Channel 2
11: Channel 3
0: Lower 8 bits
1: Upper 4 bits or 6 bits
Write
only
Note 1: *: Don’t care
Note 2: PWMCR1B is write-only register and cannot be used with any of the read-modify-write instructions such
as SET, CLR, etc.
PWM Data Buffer Register 1
7
6
5
4
3
2
1
0
PWMDBR1
(0002AH)
Write only
(Initial value: 0000 0000)
Note 1: PWMDBR1 is write-only register and cannot be used with any of the read-modify-write instructions such
as SET, CLR, etc.
Note 2: When operation mode is changed from STOP mode to NORMAL mode, PWMCR1A, PWMCR1B are
initialized.
Figure 2.13.3 PWM Control Register 1A/1B and PWM Data Buffer Register 1
88CS38B-133
2007-09-12