Read/Write Multiple internal EEprom Address

An area to discuss 8-bit PIC specific problems and examples

Moderator: Benj

Post Reply
cubetronix
Posts: 11
Joined: Tue Oct 17, 2017 4:09 pm
Contact:

Read/Write Multiple internal EEprom Address

Post by cubetronix »

Hi,
I am Using PIC16F877a Dev Kit with Flowcode7 to read/write a value for four different addresses but its not working fine, but i tested it for single address it works fine, kindly help with this issue.

User avatar
QMESAR
Valued Contributor
Valued Contributor
Posts: 1287
Joined: Sun Oct 05, 2014 3:20 pm
Location: Russia
Has thanked: 384 times
Been thanked: 614 times
Contact:

Re: Read/Write Multiple internal EEprom Address

Post by QMESAR »

Hi

It is hard to help you with out seeing your Flowchart .
Please upload your flowchart and people will give you some advise or help

cubetronix
Posts: 11
Joined: Tue Oct 17, 2017 4:09 pm
Contact:

Re: Read/Write Multiple internal EEprom Address

Post by cubetronix »

QMESAR wrote:Hi

It is hard to help you with out seeing your Flowchart .
Please upload your flowchart and people will give you some advise or help
Attachments
UART-1.fcfx
(40.56 KiB) Downloaded 179 times

cubetronix
Posts: 11
Joined: Tue Oct 17, 2017 4:09 pm
Contact:

Re: Read/Write Multiple internal EEprom Address

Post by cubetronix »

cubetronix wrote:Hi,
I am Using PIC16F877a Dev Kit with Flowcode7 to read/write a value for four different addresses but its not working fine, but i tested it for single address it works fine, kindly help with this issue.
UART-1.fcfx
(40.56 KiB) Downloaded 208 times

medelec35
Matrix Staff
Posts: 9520
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2585 times
Been thanked: 3815 times
Contact:

Re: Read/Write Multiple internal EEprom Address

Post by medelec35 »

Hi cubetronix,
The issue is you ave not assigned any of the values for addresses.
like for LED2 off for example.
As BTN2_EE as not been assigned, within hardware it will contain a random number.
Therefore a random EEPROM address will be written to.
You need to state an address and value to write to the specified address.
EG for address 2 with value of 6.
just use Address:2
Value:6

Or just use a variable (e.g called EEAddress) assigned with 2.
Then use
Address: EEAddress
Value:6
Martin

cubetronix
Posts: 11
Joined: Tue Oct 17, 2017 4:09 pm
Contact:

Re: Read/Write Multiple internal EEprom Address

Post by cubetronix »

Hi Medelec35,
thanks for your reply, i found the issue and reprogrammed it, it works fine kindly check whether my flow is correct.
UART-1.fcfx
(44.09 KiB) Downloaded 214 times

Post Reply