MS51
Dec. 17, 2019 Page 4 of 316 Rev 1.01
MS51 SERIES TECHNICAL REFERENCE MANUAL
6.10.5 I
2
C Interrupt ................................................................................................................... 275
6.10.6 Control Registers .......................................................................................................... 275
6.10.7 Typical Structure of I
2
C Interrupt Service Routine ................................................... 279
6.11 Pulse Width Modulated (PWM) ......................................................................... 283
6.11.1 PWM Generator ............................................................................................................ 283
6.11.2 PWM Types ................................................................................................................... 286
6.11.3 Operation Modes .......................................................................................................... 287
6.11.4 Mask Output Control .................................................................................................... 288
6.11.5 Fault Brake .................................................................................................................... 288
6.11.6 Polarity Control ............................................................................................................. 288
6.11.7 PWM Interrupt ............................................................................................................... 289
6.11.8 Control Regsiter ............................................................................................................ 289
6.12 12-Bit Analog-To -Digital Converter (ADC) ....................................................... 297
6.12.1 ADC Operation .............................................................................................................. 298
6.12.2 ADC Conversion Triggered by External Source ...................................................... 298
6.12.3 ADC Conversion Result Comparator ........................................................................ 299
6.12.4 Internal Band-gap ......................................................................................................... 299
6.12.5 Control Registers .......................................................................................................... 300
6.13 Auxiliary Features ................................................................................................ 305
6.13.1 Dual DPTRs .................................................................................................................. 305
7 PACKAGE DIMENSIONS ............................................................................ 307
7.1 TSSOP 20-pin (4.4 x 6.5 x 0.9 mm) ...................................................................... 307
7.2 QFN 20-pin (3.0 x 3.0 x 0.8 mm) for MS51XB9AE .............................................. 309
7.3 QFN 20-pin (3.0 x 3.0 x 0.6mm) for MS51XB9BE ............................................... 310
8 INSTRUCTION SET ..................................................................................... 311
8.1 Instruction Set and Address Mode .......................................................................... 311
8.2 Instruction Set ............................................................................................................ 312
9 REVISION HISTORY ................................................................................... 315