MS51
Dec. 17, 2019 Page 2 of 316 Rev 1.01
MS51 SERIES TECHNICAL REFERENCE MANUAL
TABLE OF CONTENTS
1 GENERAL DESCRIPTION .............................................................................. 8
2 FEATURES ...................................................................................................... 9
3 PARTS INFORMATION ................................................................................. 12
3.1 Package Type .............................................................................................................. 12
3.2 MS51 Series Selection Guide .................................................................................... 12
3.3 MS51 Series Selection Code ..................................................................................... 13
4 PIN CONFIGURATION .................................................................................. 14
4.1 MS51 16KB Series Multi Function Pin Diagram ..................................................... 14
4.1.1 TSSOP 20-pin Package Pin Diagram ........................................................................ 14
4.1.2 QFN 20-pin Package Pin Diagram ............................................................................. 15
4.2 MS51 16KB Series Pin Description .......................................................................... 17
5 BLOCK DIAGRAM ......................................................................................... 19
5.1 MS51 16KB Series Block Diagram ........................................................................... 20
6 FUNCTION DESCRIPTION ........................................................................... 21
6.1 Memory Organization .................................................................................................. 21
6.1.1 Program Memory ............................................................................................................ 21
6.1.2 Data Flash ....................................................................................................................... 23
6.1.3 Security Protection Memory (SPROM) ....................................................................... 23
6.1.4 Config Bytes .................................................................................................................... 23
6.1.5 Data Memory ................................................................................................................... 28
6.1.6 Special Function Register (SFR) .................................................................................. 30
6.2 System Manager........................................................................................................ 153
6.2.1 Clock System ................................................................................................................ 153
6.2.2 Power Management ..................................................................................................... 158
6.2.3 Power Monitoring And Reset ...................................................................................... 160
6.2.4 Power-On Reset and Low Voltage Reset ................................................................. 160
6.2.5 Brown-Out Detect and Reset ...................................................................................... 160
6.2.6 External Reset and Hard Fault Reset ........................................................................ 161
6.2.7 Watchdog Timer Reset ................................................................................................ 162
6.2.8 Software Reset ............................................................................................................. 163
6.2.9 Boot Select .................................................................................................................... 164
6.2.10 Reset State .................................................................................................................... 165
6.2.11 Interrupt System ........................................................................................................... 165
6.2.12 Enabling Interrupts ....................................................................................................... 166
6.2.13 Interrupt Priorities ......................................................................................................... 167
6.2.14 Interrupt Service ........................................................................................................... 168
6.2.15 Interrupt Latency ........................................................................................................... 169