- This topic has 4 replies, 3 voices, and was last updated 6 years, 4 months ago by .
Viewing 5 posts - 1 through 5 (of 5 total)
Viewing 5 posts - 1 through 5 (of 5 total)
- You must be logged in to reply to this topic.
|
Microcontroller › PIC › 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 ?
Post your code and circuit connection
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.
Whether the data gets overwritten or problem with accessing the previous location (during powerdown) of data stored.
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.