Contents-8
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) Capture/compare control registers (CPCMCON0, CPCMCON1) ............... 9-6
(3) Capture control register (CAPCON) ........................................................... 9-7
(4) Capture/compare buffer registers (CPCMBFR0, CPCMBFR1) .................. 9-8
9.6 Example of Capture/Compare Timer-related Register Settings ......................... 9-8
9.6.1 Capture Mode Settings ............................................................................... 9-8
(1) Port 5 mode register (P5IO) ........................................................................ 9-8
(2) Port 5 secondary function control register (P5SF) ...................................... 9-8
(3) Capture control register (CAPCON) ........................................................... 9-8
(4) Free running counter (FRC) ........................................................................ 9-8
(5) Free running counter control register (FRCON) ......................................... 9-8
9.6.2 Compare Out Mode Settings ...................................................................... 9-9
(1) Port 5 mode register (P5IO) ........................................................................ 9-9
(2) Port 5 secondary function control register (P5SF) ...................................... 9-9
(3) Capture/compare control registers (CPCMCON0, CPCMCON1) ............... 9-9
(4) Free running counter (FRC) ........................................................................ 9-9
(5) Capture/compare registers (CPCMR0, CPCMR1) ..................................... 9-9
(6) Capture/compare buffer registers (CPCMBFR0, CPCMBFR1) .................. 9-9
(7) Free running counter control register (FRCON) ......................................... 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