MS51
Dec. 17, 2019
Page
36
of 316
Rev 1.01
M
S51
SE
RIES
TE
CHNICA
L REF
ERE
N
CE MA
NU
A
L
PNP
PWM negative
polarity
D6H
-
-
PNP5
PNP4
PNP3
PNP2
PNP1
PNP0
0000 0000b
PWM3H
PWM0 channel 3
duty high byte
D5H
PWM3[15:8]
0000 0000b
PWM2H
PWM0 channel 2
duty high byte
D4H
PWM2[15:8]
0000 0000b
PWM1H
PWM0 channel 1
duty high byte
D3H
PWM1[15:8]
0000 0000b
PWM0H
PWM0 channel 0
duty high byte
D2H
PWM0[15:8]
0000 0000b
PWMPH
PWM period high
byte
D1H
PWMP[15:8]
0000 0000b
PSW
Program status word
D0H
CY
AC
F0
RS1
RS0
OV
-
P
0000 0000b
ADCMPH
ADC compare high
byte
CFH
(0)
ADCMP[11:4]
0000 0000b
ADCMPL
ADC compare low
byte
CEH
-
-
-
-
ADCMP[3:0]
0000 0000b
PWM5L
PWM0 channel 5
duty low byte
CDH
(1)
PWM5 [7:0]
0000 0000b
TH2
Timer 2 high byte
CDH
(0)
TH2[7:0]
0000 0000b
PWM4L
PWM0 channel 4
duty low byte
CCH
(1)
PWM4[7:0]
0000 0000b
TL2
Timer 2 low byte
CCH
(0)
TL2[7:0]
0000 0000b
RCMP2H
Timer 2 compare
high byte
CBH
RCMP2H[7:0]
0000 0000b
RCMP2L
Timer 2 compare low
byte
CAH
(0)
RCMP2L[7:0]
0000 0000b
T2MOD
Timer 2 mode
C9H
LDEN
T2DIV[2:0]
CAPCR
CMPCR
LDTS[1:0]
0000 0000b
T2CON
Timer 2 control
C8H
TF2
-
-
-
-
TR2
-
CM/RL2
̅̅̅̅̅̅
0000 0000b
TA
Timed access
protection
C7H
TA[7:0]
0000 0000b
PIOCON1
PWM I/O switch 1
C6H
(1)
-
-
PIO15
-
PIO13
PIO12
PIO11
-
0000 0000b
RH3
Timer 3 reload high
byte
C6H
(0)
RH3[7:0]
0000 0000b
PWM5H
PWM0 channel 5
duty high byte
C5H
(1)
PWM5 [15:8]
0000 0000b
RL3
Timer 3 reload low
byte
C5H
(0)
RL3[7:0]
0000 0000b
PWM4H
PWM4 duty high byte
C4H
(1)
PWM4[15:8]
0000 0000b
T3CON
Timer 3 control
C4H
(0)
SMOD_1 SMOD0_1
BRCK
TF3
TR3
T3PS[2:0]
0000 0000b
ADCRH
ADC result high byte
C3H
(0)
ADCR[11:4]
0000 0000b
ADCRL
ADC result low byte
C2H
(0)
-
-
-
-
ADCR[3:0]
0000 0000b
I2ADDR
I2C own slave
address
C1H
I2ADDR[7:1]
GC
0000 0000b
I2CON
I2C control
C0H
-
I2CEN
STA
STO
SI
AA
-
I2CPX 0000 0000b
I2TOC
I2C time-out counter
BFH
-
-
-
-
-
I2TOCEN
DIV
I2TOF 0000 0000b
I2CLK
I2C clock
BEH
I2CLK[7:0]
0000 1001b
I2STAT
I2C status
BDH
I2STAT[7:3]
0
0
0
1111 1000b
I2DAT
I2C data
BCH
I2DAT[7:0]
0000 0000b
SADDR_1
Slave 1 address
BBH
SADDR_1[7:0]
0000 0000b
SADEN_1
Slave 1 address
mask
BAH
SADEN_1[7:0]
0000 0000b
SADEN
Slave 0 address
mask
B9H
SADEN[7:0]
0000 0000b
IP
Interrupt priority
B8H
-
PADC
PBOD
PS
PT1
PX1
PT0
PX0
0000 0000b
PWMINTC
PWM Interrupt
Control
B7H
(1)
-
-
INTTYP1
INTTYP0
-
INTSEL2
INTSEL1
INTSEL0 0000 0000b
IPH
Interrupt priority high
B7H
(0)
-
PADCH
PBODH
PSH
PT1H
PX1H
PT0H
PX0H
0000 0000b
P2S
P20 Setting
B5H
P20UP
-
-
-
T1OE
T0OE
-
P2S.0
0000 0000b
P1SR
P1 slew rate
B4H
(1)
P1SR.7
P1SR.6
P1SR.5
P1SR.4
P1SR.3
P1SR.2
P1SR.1
P1SR.0
0000 0000b
P1M2
P1 mode select 2
B4H
(0)
P1M2.7
P1M2.6
P1M2.5
P1M2.4
P1M2.3
P1M2.2
P1M2.1
P1M2.0
0000 0000b
P1S
P1 Schmitt trigger
input
B3H
(1)
P1S.7
P1S.6
P1S.5
P1S.4
P1S.3
P1S.2
P1S.1
P1S.0
0000 0000b
P1M1
P1 mode select 1
B3H
(0)
P1M1.7
P1M1.6
P1M1.5
P1M1.4
P1M1.3
P1M1.2
P1M1.1
P1M1.0
1111 1111b