I am Currently using PSoC 5LP. I want to read 8 Byte of HexaDecimal data from 1st row of EEPROM of Psoc 5Lp

420 views Asked by At

I am able to Write 8 Byte of Hexadecimal data in 1st row of EEPROM but I am not able to understand how to read 8 Byte data from EEPROM and convert 8 Byte Hexadecimal into decimal and save that decimal value into any unsigned integer. Is there any easiest way to convert 8 Byte hexadecimal into decimal without using sprintf because sprintf convert value into character type and I want to store decimal value into unsigned integer?

1

There are 1 answers

0
HS2 On

I’m not sure about your use case, but why not write/read the 32 bit unsigned value as it is ? As 4 byte binary without any conversion needed. Endianess can be an issue, but not really when the same MCU write/reads to/from it’s locally connected EEPROM.