
MS51
Nov. 28, 2019 Page 3of 491 Rev 1.00
MS51 32K SERIES TECHNICAL REFERENCE MANUAL
6.3.5 CONFIG Bytes..............................................................................................................267
6.4 General Purpose I/O (GPIO) ................................................................................... 272
6.4.1 Gpio Mode.....................................................................................................................272
6.4.2 Read-Modify-Write Instructions..................................................................................274
6.4.3 Pin Interrupt (PIT).........................................................................................................275
6.4.4 Control Registers of GPIO ..........................................................................................276
6.5 Timer............................................................................................................................ 287
6.5.1 Timer/Counter 0 And 1.................................................................................................287
6.5.2 Timer2 And Input Capture ...........................................................................................296
6.5.3 TIMER 3.........................................................................................................................314
6.6 pulse Width Modulated (PWM)................................................................................ 318
6.6.1 Overview........................................................................................................................318
6.6.2 Functional Description .................................................................................................319
6.6.3 PWM Interrupt...............................................................................................................327
6.6.4 Control Register of PWM.............................................................................................330
6.7 Watchdog Timer (WDT)............................................................................................ 352
6.7.1 Overview........................................................................................................................352
6.7.2 Time-Out Reset Timer..................................................................................................354
6.7.3 General Purpose Timer ...............................................................................................355
6.7.4 Control Registers of Watchdog Timer ......................................................................357
6.8 Self Wake-Up Timer (WKT)...................................................................................... 359
6.8.1 Overview........................................................................................................................359
6.8.2 Control register of WKT...............................................................................................360
6.9 Serial Port (UART0 & UART1) ................................................................................ 363
6.9.1 Overview........................................................................................................................363
6.9.2 Operating Modes..........................................................................................................363
6.9.3 Baud Rate......................................................................................................................365
6.9.4 Framing Error Detection ..............................................................................................369
6.9.5 Multiprocessor Communication..................................................................................369
6.9.6 Automatic Address Recognition .................................................................................370
6.9.7 Control Register of Serial Port....................................................................................372
6.10 ISO 7816-3 Interface (SC0~2 & UART2 ~ 4) .................................................. 387
6.10.1Overview........................................................................................................................387
6.10.2Operating Modes ..........................................................................................................388
6.10.3ISO 7816-3 Data Transfer ...........................................................................................391
6.10.4Initial Character TS.......................................................................................................391
6.10.5Error Signal and Character Repetition ......................................................................392
6.10.6Block Guard Time and Extra Guard Time .................................................................392
6.10.7Control Registers of SC Controller ............................................................................394
6.11 Inter-Integrated Circuit (I2C) ............................................................................... 408