EEPROM_FLOAT PIC16F1939

For general Flowcode discussion that does not belong in the other sections.
chipfryer27
Valued Contributor
Posts: 1147
http://meble-kuchenne.info.pl
Joined: Thu Dec 03, 2020 10:57 am
Has thanked: 284 times
Been thanked: 412 times

Re: EEPROM_FLOAT PIC16F1939

Post by chipfryer27 »

Hi

In simulation (no access to HW to test) Lat is set at a value and then stored in eeprom. Lat can then be set to zero, then read from eeprom returning the correct value. At this point Long had not been set.

When read again in the Decision, Long had been set so perhaps that's the case? I'll test when I get the chance, simulating and in HW.

Thanks for the reminder <s>

Regards

ELECTRONICA67
Posts: 83
Joined: Wed Dec 02, 2020 3:59 pm
Has thanked: 20 times
Been thanked: 6 times

Re: EEPROM_FLOAT PIC16F1939

Post by ELECTRONICA67 »

You are right, I did what you told me (0, 4), and the correct data is read. :D

Enrique
Thanks !!!

medelec35
Matrix Staff
Posts: 1451
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 512 times
Been thanked: 472 times

Re: EEPROM_FLOAT PIC16F1939

Post by medelec35 »

That's great!
At least you know that one float variable takes four EEPROM addresses.
Thank you for updating us.
Martin

Post Reply