Contents-4
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 XT Oscillation Circuit .......................................................................................... 6-5
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-3
8.4.1 Timer 0 Configuration ................................................................................. 8-3
8.4.2 Description of Timer 0 Registers ................................................................ 8-4
(1) General-purpose 16-bit timer 0 counter (TM0C) ......................................... 8-4
(2) General-purpose 16-bit timer 0 register (TM0R) ......................................... 8-4
(3) General-purpose 16-bit timer 0 control register (TM0CON) ....................... 8-4
8.4.3 Example of Timer 0-related Register Settings ............................................ 8-6
(1) Port 5 mode register (P5IO) ........................................................................ 8-6
(2) Port 5 secondary function control register (P5SF) ...................................... 8-6
(3) General-purpose 16-bit timer 0 counter (TM0C) ......................................... 8-6
(4) General-purpose 16-bit timer 0 register (TM0R) ......................................... 8-6
(5) General-purpose 16-bit timer 0 control register (TM0CON) ....................... 8-6
8.4.4 Timer 0 Operation ....................................................................................... 8-7
8.4.5 Timer 0 Interrupt ......................................................................................... 8-8
8.5 Timers 1 and 2 ................................................................................................... 8-9
8.5.1 Timers 1 and 2 Configurations .................................................................... 8-9