Connect with us

sensitive pins on 18f4431

Discussion in 'Microcontrollers, Programming and IoT' started by Deepak Narkhede, Sep 29, 2016.

Scroll to continue with content
  1. Deepak Narkhede

    Deepak Narkhede

    Sep 29, 2016
    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
    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.
  2. Amar Dhore

    Amar Dhore

    Dec 2, 2015
    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.
  3. Amar Dhore

    Amar Dhore

    Dec 2, 2015
    One more thing:
    Always read the PORT and write the LAT registers.
Ask a Question
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.
Electronics Point Logo
Continue to site
Quote of the day