PIC18 CCP4 Question

Thread Starter

Sherri

Joined Mar 31, 2018
29
Hello all forum users,
Please be kind as this is my first post. I am working with a PIC18F24K22 microcontroller and can not seem to get the CCP4 capture to work. I have worked with the ccp capture with a PIC16 in the past and have not had any problems, and have gotten the ccp1 to work with this PIC18. I cannot though get the ccp4 capture to work as I need this to work on pin RB0 with my program. I have read the datasheet section for the ccp and written my code which works with the ccp1 but in converting over to the ccp4 will not work.
Can someone tell me by looking at my code included here as ccp4_code.txt, if I have done, or forgotten, something wrong.

Thanks in advance,
Sherri
 

Attachments

MMcLaren

Joined Feb 14, 2010
861
Hi, Sherri.

I think you might need to select bank 15 to access some of those SFRs that aren't mirrored in the Access Bank (0xF38..0xF5F)...

Cheerful regards, Mike
 
Last edited:
Top