(bottom of p. 239 of datasheet 16F18877)
Took me a while to notice this line.
Type: Posts; User: Demon; Keyword(s):
(bottom of p. 239 of datasheet 16F18877)
Took me a while to notice this line.
What is MCC, and what tool are you talking about?
:confused:
I'm no better; look at the previous post when I was blindly setting inputs when I was using outputs only.
:D
I realize that now. I had just gone through the datasheet and picked up all the registers I thought related with PPS, then tried setting them up in my I thought would swap the CCP function from pins...
Just to confirm, there definitely is something else required than my PPS settings.
I commented out the 4 DEFINES and used only my PPS settings and it didn't work.
I activated the 4 DEFINES and...
Richard, I have no doubt your way is leaner, faster and more efficient. I might even figure out what's going on after staring at it for a few hours with my PBP manual beside me.
But I have to...
I'm a very fast learner, as long as you explain very slowly a bunch of times and let me fumble around for a few hours/days. :D
I commented out all my PPS settings and those Defines were indeed...
FOUND IT!
I had set my CCP defines to CCP4 and CCP5 by mistake, I meant it to be to CCP3 and cCP4.
define CCP3_REG PORTD ' PWM Pulse out to LCD contrast
DEFINE CCP3_BIT ...
Yeah, so am I.
I looked for a way to move "treat this like a GP pin" via PPS settings, but I don't see anything like that.
Unless you just can't recycle CCP pins, unless you move another...
Aren't those DEFINES the exact same thing as:
PinD2 CON %011010 ' Datasheet table 13-2
CCP3PPS = PinD2 ' CCP3 Peripheral input selection
...
Solved in post #8: https://www.picbasic.co.uk/forum/showthread.php/26785-IOC-works-on-B0-but-not-B5?p=156142#post156142
I had set my CCP defines to CCP4 and CCP5 by mistake, I meant it to be to...