PIC16F18313 capture mode using Timer 0?

Thread Starter

AlbertHall

Joined Jun 4, 2014
12,347
The PIC16F18313 data sheet includes this:
29.1
Capture Mode
Capture mode makes use of either the 16-bit Timer0 or
Timer1 resource. When an event occurs on the capture
source, the 16-bit CCPRxH:CCPRxL register pair
captures and stores the 16-bit value of the
TMR0H:TMR0L or TMR1H:TMR1L register pair,
respectively.

But the rest of capture mode only refers to Timer 1.
Is it possible to capture Timer 0?
 

MaxHeadRoom

Joined Jul 18, 2013
28,700
As you have quoted 29.1
Specifically states T0 & T1 ?

Capture mode makes use of either the 16-bit Timer0 or
Timer1 resource. When an event occurs on the capture
source, the 16-bit CCPRxH:CCPRxL register pair
captures and stores the 16-bit value of the
TMR0H:TMR0L or TMR1H:TMR1L register pair,
respectively. An event is defined as one of the following
and is configured by the CCPxMODE[3:0] bits of the
CCPxCON register:
• Every falling edge
• Every rising edge
• Every 4th rising edge
• Every 16th rising edge
 

Thread Starter

AlbertHall

Joined Jun 4, 2014
12,347
This chip has two CCP modules. I believe the 'x' in CCPRxH:CCPRxL refers to which CCP module not which timer.
From the datasheet register information:
REGISTER 29-3:
CCPRxL REGISTER: CCPx REGISTER LOW BYTE
CCPxMODE = Capture mode
CCPRxL[7:0]: Captured value of TMR1L
 
Top