
ML66517 Family User’s Manual
Contents
Contents – 3
Chapter 6 Clock Oscillation Circuit
6.1
Overview .....................................................................................................................................................6-1
6.2
Clock Oscillation Circuit Configuration .....................................................................................................6-1
6.3
Clock Oscillation Circuit Registers .............................................................................................................6-2
6.4
OSC Oscillation Circuit ..............................................................................................................................6-2
6.5
Clock Multiplier ..........................................................................................................................................6-4
Chapter 7 Time Base Counter (TBC)
7.1
Overview .....................................................................................................................................................7-1
7.2
Time Base Counter (TBC) Configuration ...................................................................................................7-1
7.3
Time Base Counter Registers ......................................................................................................................7-2
7.4
1/n Counter..................................................................................................................................................7-2
7.4.1
Description of 1/n Counter Registers ....................................................................................................7-2
(1)
TBC clock dividing counter (TBCKDV upper 8 bits) .....................................................................7-2
(2)
TBC clock divider register (TBCKDVR) ........................................................................................7-3
7.4.2
Example of 1/n Counter-related Register Settings.................................................................................7-4
7.5
Time Base Counter (TBC) Operation..........................................................................................................7-4
Chapter 8 General-Purpose 8/16 Bit Timers
8.1
Overview .....................................................................................................................................................8-1
8.2
General-Purpose 8-Bit/16-Bit Timer Configurations ..................................................................................8-1
8.3
General-Purpose 8-Bit/16-Bit Timer Registers ...........................................................................................8-2
8.4
Timer 0 ........................................................................................................................................................8-4
8.4.1
Timer 0 Configuration ...........................................................................................................................8-4
8.4.2
Description of Timer 0 Registers...........................................................................................................8-5
(1)
General-purpose 16-bit timer 0 counter (TM0C) .............................................................................8-5
(2)
General-purpose 16-bit timer 0 register (TM0R) .............................................................................8-5
(3)
General-purpose 16-bit timer 0 control register (TM0CON) ...........................................................8-5
8.4.3
Example of Timer 0-related Register Settings.......................................................................................8-7
8.4.4
Timer 0 Operation .................................................................................................................................8-8
8.4.5
Timer 0 Interrupt ...................................................................................................................................8-9
8.5
Timers 1 and 2...........................................................................................................................................8-10
8.5.1
Timers 1 and 2 Configurations ............................................................................................................8-10
8.5.2
Description of Timer 1 and 2 Registers ...............................................................................................8-11
(1)
General-purpose 8-bit timer 1 and 2 counters (TM1C, TM2C) .....................................................8-11
(2)
General-purpose 8-bit timer 1 and 2 registers (TM1R, TM2R) .....................................................8-11
(3)
General-purpose 8-bit timer 1 control register (TM1CON) ...........................................................8-11
(4)
General-purpose 8-bit timer 2 control register (TM2CON) ...........................................................8-12
8.5.3
Example of Timer 1- and 2-related Register Settings..........................................................................8-14
8-bit auto-reload timer mode (Timer 1) .........................................................................................8-14
8-bit auto-reload timer mode (Timer 2) .........................................................................................8-14
16-bit auto-reload timer mode........................................................................................................8-14
PWM mode ....................................................................................................................................8-15
8.5.4
Timer 1 and 2 Operation......................................................................................................................8-16
8-bit auto-reload timer mode..........................................................................................................8-16
16-bit auto-reload timer mode........................................................................................................8-17
PWM mode ....................................................................................................................................8-18
8.5.5
Timer 1 and 2 Interrupts ......................................................................................................................8-19
Timer 1 interrupt ............................................................................................................................8-19
Timer 2 interrupt ............................................................................................................................8-20
8.6
Timer 3 ......................................................................................................................................................8-21
8.6.1
Timer 3 Configuration .........................................................................................................................8-21
8.6.2
Description of Timer 3 Registers.........................................................................................................8-22
(1)
General-purpose 8-bit timer 3 counter (TM3C) .............................................................................8-22