SM59R16A5/SM59R09A5/SM59R05A5
8-Bit Micro-controller
64KB/36KB/20KB with ISP Flash
& 2KB RAM embedded
13. Pulse Width Modulation (PWM)
SM59R16A5 provides four-channel PWM outputs.
The interrupt vector is 43h.
Mnemonic
Description
Direct
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
RESET
-
P4UR
1
P2PW
M
AUX
Auxiliary register
91h
B5h
BCh
BDh
BEh
BFh
B1h
B2h
B3h
B4h
CEh
CFh
BRGS
-
P4SPI
P4IIC
P0KBI
DPS
00H
00H
00H
00H
00H
00H
00H
00H
00H
00H
00H
FFH
PWM Control
register
PWM 0 Data
register high byte
PWM 0 Data
register low byte
PWM 1 Data
register high byte
PWM 1 Data
register low byte
PWM 2 Data
register high byte
PWM 2 Data
register low byte
PWM 3 Data
register high byte
PWM3E PWM2E PWM1E PWM0E
PWMC
PWMCS[2:0]
-
-
N
N
N
N
PWMD0H
PWMD0L
PWMD1H
PWMD1L
PWMD2H
PWMD2L
PWMD3H
PWMD3L
PWMMDH
PWMMDL
PWMP0
PWMP1
PWMP2
PWMP3
-
-
-
-
-
-
-
-
-
-
-
-
-
PWMD0[9:8]
PWMD1[9:8]
PWMD2[9:8]
PWMD3[9:8]
PWMMD[9:8]
PWMD0[7:0]
-
-
-
-
-
-
PWMD1[7:0]
-
-
PWMD2[7:0]
-
-
PWM 3 Data
PWMD3[7:0]
register low byte
PWM Max Data
register high byte
PWM Max Data
register low byte
-
-
PWMMD[7:0]
Mnemonic: AUX
Address: 91h
7
6
5
4
3
2
1
0
Reset
BRGS
-
P4SPI
P4UR1
P4IIC
P0KBI
P2PWM
DPS
00H
P2PWM : P2PWM = 0 – PWM function on P4.
P2PWM = 1 – PWM function on P2.
Mnemonic: PWMC
Address: B5h
Reset
PWM3EN PWM2EN PWM1EN PWM0EN 00H
7
6
5
4
-
3
2
1
0
PWMCS[2:0]
PWMCS[2:0]: PWM clock select.
PWMCS [2:0]
Mode
000
001
010
011
100
101
110
111
Fosc
Fosc/2
Fosc/4
Fosc/6
Fosc/8
Fosc/12
Timer 0 overflow
Timer 0 external input (P3.4/T0)
PWM3EN: PWM channel 3 enable control bit.
PWM3EN = 1 – PWM channel 3 enable.
Specifications subject to change without notice contact your sales representatives for the most recent information.
ISSFD-M047 57 Ver.G SM59R16A5 01/2014