Search Results - MEL PICBASIC Forum


Search:

Type: Posts; User: Demon; Keyword(s):

Search: Search took 0.02 seconds.

  1. Replies
    19
    Views
    53,556

    Re: IOC works on B0 but not B5

    (bottom of p. 239 of datasheet 16F18877)



    Took me a while to notice this line.
  2. Replies
    19
    Views
    53,556

    Re: IOC works on B0 but not B5

    What is MCC, and what tool are you talking about?
    :confused:
  3. Replies
    19
    Views
    53,556

    Re: IOC works on B0 but not B5

    I'm no better; look at the previous post when I was blindly setting inputs when I was using outputs only.
    :D
  4. Replies
    19
    Views
    53,556

    Re: IOC works on B0 but not B5

    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...
  5. Replies
    19
    Views
    53,556

    Re: IOC works on B0 but not B5

    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...
  6. Replies
    19
    Views
    53,556

    Re: IOC works on B0 but not B5

    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...
  7. Replies
    19
    Views
    53,556

    Re: IOC works on B0 but not B5

    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...
  8. Replies
    19
    Views
    53,556

    Re: IOC works on B0 but not B5

    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 ...
  9. Replies
    19
    Views
    53,556

    Re: IOC works on B0 but not B5

    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...
  10. Replies
    19
    Views
    53,556

    Re: IOC works on B0 but not B5

    Aren't those DEFINES the exact same thing as:


    PinD2 CON %011010 ' Datasheet table 13-2
    CCP3PPS = PinD2 ' CCP3 Peripheral input selection
    ...
  11. Replies
    19
    Views
    53,556

    SOLVED - IOC works on B0 but not B5

    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...
Results 1 to 11 of 11