EngineersGarage

  • Engineers Garage Main Site
  • Visit our active EE Forums
    • EDABoard.com
    • Electro-Tech-Online
  • Projects & Tutorials
    • Circuits
    • Electronic Projects
    • Tutorials
    • Components
  • Digi-Key Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • Advertise
You are here: Home / Topics / Pic16f886 pin RA3 used as input of a key connected to ground

Pic16f886 pin RA3 used as input of a key connected to ground

|

Microcontroller › PIC › Pic16f886 pin RA3 used as input of a key connected to ground

  • This topic has 4 replies, 3 voices, and was last updated 7 years, 5 months ago by pramod patil.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • August 22, 2018 at 10:11 am #4961
    Patil pramod
    Participant

    I am new in pic trying to make led on pin no. Ra6 on/of depending on in put key/Tactile switch on pin no. Ra3 of PIC16F886 and expect that when the switch is pressed making Ra3 =0,The led on Ra6 should be on; but without the use of switch the led blinks continuously. Is there any additional feature of ra3 that makes ra3 =0 automatically ?

     

    August 23, 2018 at 4:49 pm #14894
    Hari Prasaath K
    Participant

    Post your code and circuit connection

    August 24, 2018 at 11:51 am #14895
    Patil pramod
    Participant

    Thanks sir! For co-operation.

    The problem is sorted out with an external pull-up to pin Ra3.

    I am trying to write internal EEPROM when switch is pressed, the data gets written and can be accessed also, successfully without any trouble. But after restarting the power the data becomes 0x00, what precautions should be taken to preserve the data.Please guide. Thanking you in anticipation.

     

    August 25, 2018 at 11:06 am #14896
    Hari Prasaath K
    Participant

    Whether the data gets overwritten or problem with accessing the previous location (during powerdown) of data stored. 

    August 29, 2018 at 5:26 pm #14897
    pramod patil
    Participant

    Seems to be getting over written when repowered as the Ra3 may be instantly becoming 0; the write operation takes place at the time when adc is 0  as it is not read so the value becomes zero. I tried delay for first write function but of no use.

  • Author
    Posts
Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.
Log In

RSS Recent Posts

  • Arduino standalone minimal February 15, 2026
  • analog logic of shmidt trigger bjt circuit February 15, 2026
  • Convenient audio FFT module? February 15, 2026
  • CR2/CR123A Batteries In Projects February 15, 2026
  • Harman Kardon radio module BMW noise February 15, 2026

Stay Up To Date

Newsletter Signup
EngineersGarage

Copyright © 2026 WTWH Media LLC. All Rights Reserved. The material on this site may not be reproduced, distributed, transmitted, cached or otherwise used, except with the prior written permission of WTWH Media
Privacy Policy | Advertising | About Us

Search Engineers Garage

  • Engineers Garage Main Site
  • Visit our active EE Forums
    • EDABoard.com
    • Electro-Tech-Online
  • Projects & Tutorials
    • Circuits
    • Electronic Projects
    • Tutorials
    • Components
  • Digi-Key Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • Advertise