English
Language : 

SM59R16A2 Datasheet, PDF (46/67 Pages) SyncMOS Technologies,Inc – 8-Bit Micro-controller
SM59R16A2/SM59R08A2
8-Bit Micro-controller
64KB/32KB ISP Flash & 2KB RAM embedded
13 Pulse Width Modulation (PWM)
SM59R16A2/SM59R08A2 provides four-channel PWM outputs. The 4 channels can be used
simultaneously. But their configuration (the counting bit number and counting frequency) will be the
same defined in one SFR.
Mnemonic Description Direct Bit 7
PWMC
PWM Control
register
B5h
-
PWMD0H
PWM 0 Data
register high byte
BCh
-
PWMD0L
PWM 0 Data
register low byte
BDh
PWMD1H
PWM 1 Data
register high byte
BEh
-
PWMD1L
PWM 1 Data
register low byte
BFh
PWMD2H
PWM 2 Data
register high byte
B1h
-
PWMD2L
PWM 2 Data
register low byte
B2h
PWMD3H
PWM 3 Data
register high byte
B3h
-
PWMD3L
PWM 3 Data
register low byte
B4h
Bit 6 Bit 5
PWM
Bit 4
-
PWMM[1:0]
-
-
-
Bit 3 Bit 2 Bit 1 Bit 0 RESET
PWM3 PWM2 PWM1 PWM0
EN
EN
EN
EN
00h
PWMD0[11:8]
00h
PWMD0[7:0]
00h
-
-
-
PWMD1[11:8]
00h
PWMD1[7:0]
00h
-
-
-
PWMD2[11:8]
00h
PWMD2[7:0]
00h
-
-
-
PWMD3[11:8]
00h
PWMD3[7:0]
00h
Mnemonic: PWMC
76
5
4
--
PWMM[1:0]
3
PWM3EN
2
PWM2EN
1
PWM1EN
Address: B5h
0
Reset
PWM0EN 00h
PWMM[1:0 PWM mode select.
]: When PWMM[1:0] = 00 or 11 , the PWM output frequency = Fosc/256.
When PWMM[1:0] = 01 , the PWM output frequency = Fosc/1024.
When PWMM[1:0] = 10 , the PWM output frequency = Fosc/4096.
Also
PWMM[1:0]
Mode
00
8-bit mode
01
10-bit mode
10
12-bit mode
11
8-bit mode
here Fosc is the external crystal or oscillator frequency
PWM3EN: PWM Channel 3 enable control bit.
PWM3EN = 1 – PWM Channel 3 enable.
PWM3EN = 0 – PWM Channel 3 disable.
PWM2EN: PWM Channel 2 enable control bit.
PWM2EN = 1 – PWM Channel 2 enable.
PWM2EN = 0 – PWM Channel 2 disable.
PWM1EN: PWM Channel 1 enable control bit.
PWM1EN = 1 – PWM Channel 1 enable.
PWM1EN = 0 – PWM Channel 1 disable.
PWM0EN: PWM 0 Channel 0 enable control bit.
PWM0EN = 1 – PWM Channel 0 enable.
PWM0EN = 0 – PWM Channel 0 disable.
Specifications subject to change without notice contact your sales representatives for the most recent information.
ISSFD-M034
46
Ver.B SM59R16A2/SM59R08A2 06/2009