PDA

View Full Version : Question regarding CCP



spcw1234
- 7th April 2013, 16:13
So looking over the datasheet for an 18F2620 in the CCP section 15.2.1 under pin configuration I found this note:


Note: If RB3/CCP2 or RC1/CCP2 is configured
as an output, a write to the port can cause
a capture condition.

Can anyone explain this to me? If I understand it correctly I think using CCP1 can get false captures if I write to the CCP2 pin in output mode.

languer
- 8th April 2013, 09:55
That comment is there for every PIC I've used with CCP input. If you are using the CCP input, but configure the pin for an output when you write to the output the CCP module may trigger. It is part of the whole R-M-W state machine. The pin's functions are multiplexed. Having said that, there should be no CCP1-to-CCP2 crosstalk; if that's what you're worried about.