ML610Q421/ML610Q422 User’s Manual
Contents
Contents – 4
10.2 Description of Registers............................................................................................................................... 10-3
10.2.1
List of Registers ................................................................................................................................... 10-3
10.2.2
Timer 0 Data Register (TM0D) ........................................................................................................... 10-4
10.2.3
Timer 1 Data Register (TM1D) ........................................................................................................... 10-5
10.2.4
Timer 2 Data Register (TM2D) ........................................................................................................... 10-6
10.2.5
Timer 3 Data Register (TM3D) ........................................................................................................... 10-7
10.2.6
Timer 0 Counter Register (TM0C)...................................................................................................... 10-8
10.2.7
Timer 1 Counter Register (TM1C)...................................................................................................... 10-9
10.2.8
Timer 2 Counter Register (TM2C).................................................................................................... 10-10
10.2.9
Timer 3 Counter Register (TM3C).................................................................................................... 10-11
10.2.10 Timer 0 Control Register 0 (TM0CON0) ......................................................................................... 10-12
10.2.11 Timer 1 Control Register 0 (TM1CON0) ......................................................................................... 10-13
10.2.12 Timer 2 Control Register 0 (TM2CON0) ......................................................................................... 10-14
10.2.13 Timer 3 Control Register 0 (TM3CON0) ......................................................................................... 10-15
10.2.14 Timer 0 Control Register 1 (TM0CON1) ......................................................................................... 10-16
10.2.15 Timer 1 Control Register 1 (TM1CON1) ......................................................................................... 10-17
10.2.16 Timer 2 Control Register 1 (TM2CON1) ......................................................................................... 10-18
10.2.17 Timer 3 Control Register 1 (TM3CON1) ......................................................................................... 10-19
10.3 Description of Operation............................................................................................................................ 10-20
10.3.1
Timer mode operation........................................................................................................................ 10-20
10.3.2
16-bit timer frequency measurement mode operation .................................................................... 10-21
10.3.3
16-bit timer frequency measurement mode application for setting uart baud-rate .......................... 10-23
Chapter 11
11. PWM ................................................................................................................................................................ 11-1
11.1 Overview ...................................................................................................................................................... 11-1
11.1.1
Features ................................................................................................................................................ 11-1
11.1.2
Configuration ....................................................................................................................................... 11-1
11.1.3
List of Pins ........................................................................................................................................... 11-2
11.2 Description of Registers............................................................................................................................... 11-2
11.2.1
List of Registers ................................................................................................................................... 11-2
11.2.2
PWM0 Period Registers (PW0PL, PW0PH)....................................................................................... 11-3
11.2.3
PWM0 Duty Registers (PW0DL, PW0DH)........................................................................................ 11-4
11.2.4
PWM0 Counter Registers (PW0CH, PW0CL) ................................................................................... 11-5
11.2.5
PWM0 Control Register 0 (PW0CON0)............................................................................................. 11-6
11.2.6
PWM0 Control Register 1 (PW0CON1)............................................................................................. 11-7
11.3 Description of Operation.............................................................................................................................. 11-8
11.4 Specifying port registers ............................................................................................................................ 11-10
11.4.1
Functioning P43 (PWM0) as the PWM output ................................................................................. 11-10
11.4.2
Functioning P34 (PWM0) as the PWM output ................................................................................. 11-11
Chapter 12
12. Watchdog Timer............................................................................................................................................... 12-1
12.1 Overview ...................................................................................................................................................... 12-1
12.1.1
Features ................................................................................................................................................ 12-1
12.1.2
Configuration ....................................................................................................................................... 12-1
12.2 Description of Registers............................................................................................................................... 12-2
12.2.1
List of Registers ................................................................................................................................... 12-2
12.2.2
Watchdog Timer Control Register (WDTCON)................................................................................. 12-3
12.2.3
Watchdog Timer Mode Register (WDTMOD)................................................................................... 12-4
12.3 Description of Operation.............................................................................................................................. 12-5
12.3.1
Handling example when you do not want to use the watch dog timer ............................................... 12-7
Chapter 13
13. Synchronous Serial Port................................................................................................................................... 13-1
13.1 Overview ...................................................................................................................................................... 13-1