News:

Let's find out together what makes a PIC Tick!

Main Menu

Using the ICSP pins as GPIO

Started by JohnB, Today at 11:39 AM

Previous topic - Next topic

JohnB

I have not been able to taggle either of the ISCP Clock or Data lines on the 16F15245.  I have added this in my Init code:

    pinmode(LATA.0, Output)
    pinHigh LATA.0
and set LVP=OFF

Is there anything else I need to do?
JohnB

trastikata

I did not check the PIC in question, but some pins have their analog function on by default at POR.

JohnB

At the start of Init I have

    ' Disable analog
    ANSELA = 0
    ANSELB = 0
    ANSELC = 0

I don't know if there is anything else I need to do to set it to digital.
JohnB