Close or Esc Key

Arduino Projects   |   Raspberry Pi   |   Electronic Circuits   |   AVR   |   PIC   |   8051   |   Electronic Projects

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

5 posts / 0 new
Last post
Patil pramod
Patil pramod's picture
Offline
Last seen: 1 month 2 weeks ago
Joined: 02/07/2016 - 20:33
Pic16f886 pin RA3 used as input of a key connected to ground

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 ?

 

Hari Prasaath K
Hari Prasaath K's picture
Offline
Last seen: 1 month 6 days ago
Joined: 20/01/2015 - 23:56
PIC Programming

Post your code and circuit connection

Patil pramod
Patil pramod's picture
Offline
Last seen: 1 month 2 weeks ago
Joined: 02/07/2016 - 20:33
Thanks sir! For co-operation

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.

 

Hari Prasaath K
Hari Prasaath K's picture
Offline
Last seen: 1 month 6 days ago
Joined: 20/01/2015 - 23:56
EEPROM

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

pramod patil
pramod patil's picture
Offline
Last seen: 3 weeks 6 days ago
Joined: 01/12/2015 - 08:04
Seems to be getting over

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.