Contents-6
Chapter 9
Capture/Compare Timer
9.1 Overview ............................................................................................................ 9-1
9.2 Capture/Compare Timer Configuration .............................................................. 9-1
9.3 Capture/Compare Timer Registers .................................................................... 9-2
9.4 16-Bit Free Running Counter (FRC) .................................................................. 9-3
9.4.1 16-Bit Free Running Counter Configuration ............................................... 9-3
9.4.2 Description of 16-bit Free Running Counter Register ................................. 9-3
(1) 16-bit free running counter (FRC) ............................................................... 9-3
(2)
Free running counter control register (FRCON) ........................................ 9-4
9.5 Capture/Compare Out Modules ......................................................................... 9-5
9.5.1 Capture/Compare Out Module Configuration ............................................. 9-5
9.5.2 Description of Capture/Compare Out Module Registers ............................ 9-6
(1) Capture/compare registers (CPCMR0, CPCMR1) ..................................... 9-6
(2) Compare control registers (CPCMCON0, CPCMCON1) ............................ 9-6
(3) Capture control register (CAPCON) ........................................................... 9-7
9.6 Example of Capture/Compare Timer-related Register Settings ......................... 9-8
9.6.1 Capture Mode Settings ............................................................................... 9-8
9.6.2 Compare Out Mode Settings ...................................................................... 9-9
9.7 Capture/Compare Timer Operation ................................................................. 9-10
9.7.1 Capture Mode Operation .......................................................................... 9-10
9.7.2 Compare Out Mode Operation ................................................................. 9-11
9.8 Example Timings for Changing the Output Level of Compare Out .................. 9-12
9.9 Capture/Compare Timer Interrupt .................................................................... 9-14
Chapter 10
Real-Time Counter (RTC)
10.1 Overview ........................................................................................................ 10-1
10.2 Real-Time Counter Configuration .................................................................. 10-1
10.3 Real-Time Counter Control Register (RTCCON) ........................................... 10-2
10.4 Example of Real-Time Counter Register Settings ......................................... 10-3
10.5 Real-Time Counter Operation ........................................................................ 10-3
10.6 Real-Time Counter Interrupt .......................................................................... 10-4
Chapter 11
PWM Function
11.1 Overview ........................................................................................................ 11-1
11.2 PWM Configuration ........................................................................................ 11-1
11.3 PWM Register ................................................................................................ 11-2
11.3.1 Description of PWM Registers .................................................................. 11-3
(1) PWM counters (PWC0, PWC1) ................................................................ 11-3
(2) PWM cycle registers (PWCY0, PWCY1) .................................................. 11-3
(3) PWM registers (PWR0 to PWR3) ............................................................. 11-4