Maker Pro
Maker Pro

sensitive pins on 18f4431

Deepak Narkhede

Sep 29, 2016
1
Joined
Sep 29, 2016
Messages
1
Hello,
I use PICSIMULATOR IDE since long. now firsst time i am using PIC18 SIMULATOR IDE.
I am writing simple program of led blink as ,


TRISD = 0x00
AllDigital
blink:
PORTD.1 = 1
WaitMs 300
PORTD.1 = 0
WaitMs 300
Goto blink

I set configuration bit with oscillator HS , and other as always.
The program works fine, but the circuit is very sensitive to touch. i mean if i touch any pin or just cover with hand it stops working.
The same program if i compile and load with mplabasm from microchip, it works fine and no sensitivity to any pin.
what i am missing , please point out.
thanks,
Deepak
 

Amar Dhore

Dec 2, 2015
129
Joined
Dec 2, 2015
Messages
129
What pin you are touching? Are those pins open/floating?

Unused I/O pins should be configured as outputs and driven to a logic low state.
 

Amar Dhore

Dec 2, 2015
129
Joined
Dec 2, 2015
Messages
129
One more thing:
Always read the PORT and write the LAT registers.
 
Top