ICSP throwing taking port low

Discussion in 'Embedded Systems and Microcontrollers' started by wannaBinventor, Jun 23, 2010.

  1. wannaBinventor

    Thread Starter Member

    Apr 8, 2010
    179
    4
    Sorry for the botched title. I'm always typing faster than I think.

    I am using ICSP for programming my 16F84 (don't worry, I've already ordered some more modern PICs).

    I have it set up as shown in the ICSP section linked below:

    http://www.best-microcontroller-projects.com/pic16f84.html

    I had a matrix keypad set up, and it was working in very sporadic ways/not at all. I had a code program set up (as in correct password activates some action).

    I noticed that it was not scanning. Column 1 was on RB0, Column 2 on RB1, and Column 3 on RB2. I noticed that RB0 stayed logic 0; in other words, the program wasn't scanning. Further probing indicated that RB6 (connected for row 2 pin on keypad) was around 1 volt.

    Because I am using ICSP, RB6 is connected to PGC (clock) on the PicKit2. If I disconnect the PGC wire from RB6 I get proper function out of my PIC and circuit.

    I've never noticed PGC interfering with logic levels on that pin.

    Is this normal?

    Seems like something is messed up to me. Thoughts?
     
    Last edited: Jun 24, 2010
  2. BMorse

    Senior Member

    Sep 26, 2009
    2,675
    234
    If using ICSP, and using those pins as IO (RB6 and RB7) the circuit connected to these pins need to be isolated from the programmer when connected, or you will have to disconnect whatever is connected to those pins when programming, then disconnect the pickit2 before reconnecting them to the circuit.



     
Loading...