CCP2CON ( CCP2 Control Register ) 1Dh
This register controls the condition of CCP2 feature.
| The value in the parenthesis is in the condition immediately after the turning on. |
CCPR2L,CCPR2H ( CCP2 register ) 1Bh, 1Ch
This register is used when operating data by the operation of the CCP. The use changes with each mode.
As for the operation of the CCP, refer to CCP feature of PIC16F873.
|
Capture mode
The contents of timer1 are stored at the time of the capture.
It combines and uses both registers as the 16 bits register.
|
|
Compare mode
It sets the data to compare with timer1.
It combines and uses both registers as the 16 bits register.
|
|
PWM mode
It sets data for the duty to CCPR2L.
CCPR2H is used for the processing inside and is a read-only register.
|
|