
ML51/ML54/ML56
Sep. 01, 2020 Page 3of 719 Rev 2.00
ML51/ML54/ML56 SERIES TECHNICAL REFERENCE MANUAL
ML51/ML54/ML56 Series
Technical Reference
Manual
6.4.1 GPIO Mode ...................................................................................................................361
6.4.2 External Interrupt Pins .................................................................................................380
6.4.3 Pin Interrupt (PIT).........................................................................................................382
6.5 Timer............................................................................................................................ 389
6.5.1 Overview........................................................................................................................389
6.5.2 Timer/Counter 0 and 1.................................................................................................389
6.5.3 Timer 2 and Input Capture ..........................................................................................401
6.5.4 Timer 3 ...........................................................................................................................410
6.6 Watchdog Timer (WDT)............................................................................................ 414
6.6.1 Time-Out Reset Timer..................................................................................................414
6.6.2 General Purpose Timer ...............................................................................................415
6.6.3 Register Description.....................................................................................................416
6.6.4 Typical Structure of WDT Service Routine ...............................................................419
6.7 Self Wake-up Timer (WKT) ...................................................................................... 421
6.7.1 Overview........................................................................................................................421
6.7.2 Block Diagram...............................................................................................................421
6.7.3 Control Register............................................................................................................422
6.8 Pulse Width Modulated (PWM)............................................................................... 428
6.8.1 Overview........................................................................................................................428
6.8.2 Features.........................................................................................................................428
6.8.3 Block Diagram...............................................................................................................429
6.8.4 Functional Description .................................................................................................431
6.8.5 PWM Interrupt...............................................................................................................456
6.8.6 Register Description.....................................................................................................459
6.9 Serial Port (UART0 & UART1) ................................................................................ 475
6.9.1 Overview........................................................................................................................475
6.9.2 Features.........................................................................................................................475
6.9.3 Functional Description .................................................................................................476
6.9.4 Register Description.....................................................................................................486
6.10 Smart Card Interface (SC) ................................................................................. 503
6.10.1Overview........................................................................................................................503
6.10.2Features.........................................................................................................................503
6.10.3Block Diagram...............................................................................................................503
6.10.4Operating Modes ..........................................................................................................504
6.10.5Smart Card Data Transfer...........................................................................................506
6.10.6Register Description.....................................................................................................509
6.11 Serial Peripheral Interface (SPI) ....................................................................... 522
6.11.1 Overview........................................................................................................................522
6.11.2 Features.........................................................................................................................522
6.11.3 Block Diagram...............................................................................................................523
6.11.4 Functional Description .................................................................................................524