Contents-5
8.5.2 Description of Timer 1 and 2 Registers .................................................... 8-10
(1) General-purpose 8-bit timer 1 and 2 counters (TM1C, TM2C) ................. 8-10
(2) General-purpose 8-bit timer 1 and 2 registers (TM1R, TM2R) ................. 8-10
(3) General-purpose 8-bit timer 1 control register (TM1CON) ....................... 8-10
(4) General-purpose 8-bit timer 2 control register (TM2CON) ....................... 8-11
8.5.3 Example of Timer 1- and 2-related Register Settings ............................... 8-13
8-bit auto-reload timer mode (Timer 1) ..................................................... 8-13
(1) Port 6 mode register (P6IO) ...................................................................... 8-13
(2) Port 6 secondary function control register (P6SF) .................................... 8-13
(3) General-purpose 8-bit timer 1 counter (TM1C) ......................................... 8-13
(4) General-purpose 8-bit timer 1 register (TM1R) ......................................... 8-13
(5) General-purpose 8-bit timer 1 control register (TM1CON) ....................... 8-13
8-bit auto-reload timer mode (Timer 2) ..................................................... 8-13
(1) Port 6 mode register (P6IO) ...................................................................... 8-13
(2) Port 6 secondary function control register (P6SF) .................................... 8-13
(3) General-purpose 8-bit timer 2 counter (TM2C) ......................................... 8-13
(4) General-purpose 8-bit timer 2 register (TM2R) ......................................... 8-14
(5) General-purpose 8-bit timer 2 control register (TM2CON) ....................... 8-14
16-bit auto-reload timer mode ................................................................... 8-14
(1) Port 6 mode register (P6IO) ...................................................................... 8-14
(2) Port 6 secondary function control register (P6SF) .................................... 8-14
(3) General-purpose 16-bit timer 12 counter (TM12C) ................................... 8-14
(4) General-purpose 16-bit timer 12 register (TM12R) ................................... 8-14
(5) General-purpose 8-bit timer 1 control register (TM1CON) ....................... 8-14
(6) General-purpose 8-bit timer 2 control register (TM2CON) ....................... 8-14
PWM mode ............................................................................................... 8-15
(1) Port 6 mode register (P6IO) ...................................................................... 8-15
(2) Port 6 secondary function control register (P6SF) .................................... 8-15
(3) General-purpose 16-bit timer 12 counter (TM12C) ................................... 8-15
(4) General-purpose 16-bit timer 12 register (TM12R) ................................... 8-15
(5) General-purpose 8-bit timer 1 control register (TM1CON) ....................... 8-15
(6) General-purpose 8-bit timer 2 control register (TM2CON) ....................... 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