Can't Toggle PORTC.4 on PIC18F13K22


Closed Thread
Results 1 to 5 of 5

Hybrid View

  1. #1
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default Re: Can't Toggle PORTC.4 on PIC18F13K22

    Try it with ...

    CONFIG XINST = OFF
    CONFIG LVP = OFF
    DT

  2. #2
    Join Date
    Feb 2010
    Location
    USA, New England
    Posts
    164


    Did you find this post helpful? Yes | No

    Default Re: Can't Toggle PORTC.4 on PIC18F13K22

    Wow, thanks Darrel! How come that made it work?
    The way to avoid mistakes is to gain experience. The way to gain experience is to make mistakes.

  3. #3
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default Re: Can't Toggle PORTC.4 on PIC18F13K22

    On that chip, RC3 is also the PGM pin for Low Voltage Programming (LVP).
    When LVP is enabled, you can't use that pin for anything else.

    And you should ALWAYS disable the Extended Instruction Set (XINST).
    PBP will not function properly when XINST is enabled.
    DT

  4. #4
    Join Date
    Feb 2010
    Location
    USA, New England
    Posts
    164


    Did you find this post helpful? Yes | No

    Default Re: Can't Toggle PORTC.4 on PIC18F13K22

    Thank you for taking the time to explain, it is much appreciated.

    Best Regards,
    Paul
    The way to avoid mistakes is to gain experience. The way to gain experience is to make mistakes.

Members who have read this thread : 0

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