MS51
Nov. 28, 2019
Page
44
of 491
Rev 1.00
MS51
32K
SE
RIES
TE
CHNICAL RE
F
EREN
CE MA
N
UAL
Register
Definition
Add
re
s
s
P
a
ge
MSB
7
6
5
4
3
2
1
LSB
[1]
0
Reset
Value
[2]
TA
SADDR_1 Slave 1 address
BBH 0
SADDR_1[7:0]
0000 0000b
-
-
BBH 1
-
-
-
-
-
-
-
-
-
PWM2PH
PWM2 period high
byte
BBH
2
PWM2P[15:8]
0000 0000b
SADEN_1
Slave 1 address
mask
BAH
0
SADEN_1[7:0]
0000 0000b
-
-
BAH 1
-
-
-
-
-
-
-
-
-
-
-
BAH 2
-
-
-
-
-
-
-
-
-
SADEN
Slave 0 address
mask
B9H
0
SADEN[7:0]
0000 0000b
-
-
B9H 1
-
-
-
-
-
-
-
-
-
-
-
B9H 2
-
-
-
-
-
-
-
-
-
IP
Interrupt priority
B8H A
-
PADC
PBOD
PS
PT1
PX1
PT0
PX0
0000 0000b
IPH
Interrupt priority high B7H 0
-
PADCH
PBODH
PSH
PT1H
PX1H
PT0H
PX0H
0000 0000b
-
-
B7H 1
-
-
-
-
-
-
-
-
-
PIOCON2 PWM or I/O Select 2 B7H 2
PIO34
PIO33
PIO32
PIO31
-
PIO23
PIO22
PIO21
0000 0000b
-
-
B6H 0
-
-
-
-
-
-
-
-
-
-
-
B6H 1
-
-
-
-
-
-
-
-
-
PWM1INT
C
PWM1 Interrupt
Control
B6H
2
-
-
INTTYP1
INTTYP0
-
INTSEL2
INTSEL1
INTSEL0 0000 0000b
TOE
Timer01 output
enable
B5H
0
-
-
-
-
T1OE
T0OE
-
-
0000 0000b
-
-
B5H 1
-
-
-
-
-
-
-
-
-
PWM1CO
N1
PWM1 control 1
B5H
2 PWMMOD1 PWMMOD0
-
PWMTYP
-
PWMDIV2
PWMDIV1
PWMDIV0 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
P1SR
P1 slew rate
B4H 1
P1SR.7
P1SR.6
P1SR.5
P1SR.4
P1SR.3
P1SR.2
P1SR.1
P1SR.0
0000 0000b
PWM1CO
N0
PWM1 control 0
B4H
2
PWMRUN
LOAD
PWMF
CLRPWM
-
-
-
-
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
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
PWM1_C
H1L
PWM1 channel 1
duty low byte
B3H
2
PWM1_CH1[7:0]
0000 0000b
P0M2
P0 mode select 2
B2H 0
P0M2.7
P0M2.6
P0M2.5
P0M2.4
P0M2.3
P0M2.2
P0M2.1
P0M2.0
0000 0000b
P0SR
P0 slew rate
B2H 1
P0SR.7
P0SR.6
P0SR.5
P0SR.4
P0SR.3
P0SR.2
P0SR.1
P0SR.0
0000 0000b
PWM1_C
H0L
PWM1 channel 0
duty low byte
B2H
2
PWM1_CH07:0]
0000 0000b
P0M1
P0 mode select 1
B1H 0
P0M1.7
P0M1.6
P0M1.5
P0M1.4
P0M1.3
P0M1.2
P0M1.1
P0M1.0
1111 1111b
P0S
P0 Schmitt trigger
input
B1H
1
P0S.7
P0S.6
P0S.5
P0S.4
P0S.3
P0S.2
P0S.1
P0S.0
0000 0000b
PWM1PL
PWM1 period low
byte
B1H
2
PWM1P[7:0]
0000 0000b
P3
Port 3
B0H A
P3.7
P3.6
P3.5
P3.4
P3.3
P3.2
P3.1
P3.0
Output latch,
1111 1111b
Input
xxxx xxxxb
[3]
IAPCN
IAP control
AFH 0
IAPA17
IAPA16
FOEN
FCEN
FCTRL3
FCTRL2
FCTRL1
FCTRL0
0011 0000b
PWM0INT
C
PWM0 Interrupt
Control
AFH
1
-
-
INTTYP1
INTTYP0
-
INTSEL2
INTSEL1
INTSEL0 0000 0000b
-
-
AFH 2
-
-
-
-
-
-
-
-
-
IAPFD
IAP flash data
AEH 0
IAPFD[7:0]
0000 0000b
-
-
AEH 1
-
-
-
-
-
-
-
-
-
PWM1ME
N
PWM1 mask enable
AEH
2
-
-
-
-
-
-
PMEN1
PMEN0
0000 0000b
P3M2
P3 mode select 2
ADH 0
P3M2.7
P3M2.6
P3M2.5
P3M2.4
P3M2.3
P3M2.2
P3M2.1
P3M2.0
0000 0000b
P3SR
P3 slew rate
ADH 1
P3SR.7
P3SR.6
P3SR.5
P3SR.4
P3SR.3
P3SR.2
P3SR.1
P3SR.0
0000 0000b
PWM1MD PWM1 mask data
ADH 2
-
-
-
-
-
-
PMD1
PMD0
0000 0000b
P3M1
P3 mode select 1
ACH 0
P3M1.7
P3M1.6
P3M1.5
P3M1.4
P3M1.3
P3M1.2
P3M1.1
P3M1.0
1111 1111b
P3S
P3 Schmitt trigger
input
ACH
1
P3S.7
P3S.6
P3S.5
P3S.4
P3S.3
P3S.2
P3S.1
P3S.0
0000 0000b
PWM1_C
H1H
PWM1 channel 1
duty high byte
ACH
2
PWM1_CH1[15:8]
0000 0000b
BODCON
1
Brown-out detection
control 1
ABH
0
-
-
-
-
-
LPBOD1
LPBOD0
BODFLT
POR,
0000 0001b
Others,
0000 0UUUb
Y
-
-
ABH 1
-
-
-
-
-
-
-
-
-