SOLVED - IOC works on B0 but not B5


+ Reply to Thread
Results 1 to 20 of 20

Hybrid View

  1. #1
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    3,172


    Did you find this post helpful? Yes | No

    Default Re: IOC works on B0 but not B5

    Quote Originally Posted by richard View Post
    did i say ioc pin change is a bad way to do keys

    try this and compare results...


    pps , my way works fine even with no capacitor on the switches

    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 adapt whatever code I come up with for 88 switches and 24 rotary encoders. So far, this way has worked reasonably well, and I understand what's going on.

    I do appreciate the help and suggestions; I might even try it later, or someone else will.
    My Creality Ender 3 S1 Plus is a giant paperweight that can't even be used as a boat anchor, cause I'd be fined for polluting our waterways with electronic devices.

    Not as dumb as yesterday, but stupider than tomorrow!

  2. #2
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    3,172


    Did you find this post helpful? Yes | No

    Default 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 commented out all my PPS settings and it worked.
    My Creality Ender 3 S1 Plus is a giant paperweight that can't even be used as a boat anchor, cause I'd be fined for polluting our waterways with electronic devices.

    Not as dumb as yesterday, but stupider than tomorrow!

  3. #3
    Join Date
    May 2013
    Location
    australia
    Posts
    2,656


    Did you find this post helpful? Yes | No

    Default Re: IOC works on B0 but not B5

    for what its worth
    porta.4 also fails to operate as a normal gpio i/p when hpm is used
    DEFINE CCP5_REG 0
    DEFINE CCP5_BIT 0

    is needed to restore operation


    edit, i had mixed up cause and effect i had sw on c5 and led on a4 i assumed led failure to operate as intended was due to sw not working
    but sw was fine led pin not so


    moral to story
    if you use hpm it will mangle all the default pins for normal use unless you take action
    Last edited by richard; - 13th September 2024 at 05:22.
    Warning I'm not a teacher

Similar Threads

  1. Replies: 12
    Last Post: - 7th September 2024, 15:10
  2. Replies: 8
    Last Post: - 30th August 2024, 19:45
  3. Replies: 4
    Last Post: - 22nd March 2023, 11:32
  4. DS3231 works in one config, but does not works with other IC.
    By CuriousOne in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 3rd December 2019, 19:52

Members who have read this thread : 5

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts