Does anyone know what the state of the PORT pins are on a PIC when flashing the part? I am running a PIC 16F916 with an ICD3 programmer, and the IO pins are performing various functions, and need to understand what state they are in during programming when the PIC is energized.
Electronic – PIC outputs while programming
microchipmicrocontrollerpic
Related Topic
- Electronic – Programming/Debugging with ICD3 and PIC16F819-I/P
- Electronic – ICD3err0045 – PIC16F819 Programming
- Selecting dsPIC33FJ programming pins
- Electronic – have to disconnect and reconnect the Microchip ICD3 after every programming
- Electronic – Why does this PIC18LF1220 program only two times and after that programming fails
- Electronic – Pickit3 programming problem
- Electronic – PIC Programming commands
Best Answer
In the datasheet for your microcontroller there are four tables, table 2-1 to 2-4, which describes all the registers, including
PORTx
andTRISx
.The tables have a column named Value on POR/BOR Reset and Value on all other Resets which describes the register state at startup and after resets.
As you can see for
TRISA
up to and includingTRISD
, the state is1111 1111
, which means that the pins are configured as inputs, or in other words, put the corresponding output driver in a High-impedance mode.Unless I'm completely mistaken, the programming mode should not change this, except for the pins relevant to programming.