larification on EEPROM.ReadByte() and MSBFirst Parameter in Flowcode 10

Tips, Tricks and methods for programming, learn ways of making your programming life easier, and share your knowledge with others.
Post Reply
CamargoF
Posts: 17
http://meble-kuchenne.info.pl
Joined: Tue Mar 16, 2021 9:47 pm
Has thanked: 6 times

larification on EEPROM.ReadByte() and MSBFirst Parameter in Flowcode 10

Post by CamargoF »

Dear Support Team,

After migrating my project from Flowcode 8 to Flowcode 10, I noticed that EEPROM byte reads now offer two options.

In Flowcode 8, I used EEPROM.Read() to retrieve a single byte of data without issues. In Flowcode 10, however, EEPROM.Read() appears to handle both 8- and 16-bit reads, so I switched to EEPROM.ReadByte() to ensure only a single byte is read.

I noticed that EEPROM.ReadByte() includes an additional parameter: MSBFirst. From my perspective, this parameter doesn't seem relevant when reading a single byte.

Could you please clarify what value I should assign to the MSBFirst parameter for a single-byte read?

I understand that MSBFirst may be intended to control endian-ness when handling multi-byte values, but since single-byte operations are not affected by byte order, its presence here is unclear.

Thank you in advance for your support.

Best regards,

Fernando

Abhijit
Posts: 10
Joined: Thu Dec 03, 2020 6:26 am
Has thanked: 3 times

Re: larification on EEPROM.ReadByte() and MSBFirst Parameter in Flowcode 10

Post by Abhijit »

Hi! Fernando

I am using only READ parameter for reading and WRITE parameter for writing the Byte data and it works for me.

Abhi

CamargoF
Posts: 17
Joined: Tue Mar 16, 2021 9:47 pm
Has thanked: 6 times

Re: larification on EEPROM.ReadByte() and MSBFirst Parameter in Flowcode 10

Post by CamargoF »

I did it, but it is not working for PIC16F18444.

Post Reply