eeprom questions teensy 3.6

Status
Not open for further replies.

lokki

Well-known member
hi,

i am porting some code from arduino micro to teensy 3.6 and i use the eeprom library to store/recall some configuration and calibration data.

my understanding is that the teensy 3.6 has an emulated eeprom, and my questions are:

-is there an up/downside to writing and reading bytes instead of ints to the teensy EEPROM, speedwise and memory wise.

-are all bytes stored as ints anyways? i am using EEPROM.read() and EEPROM.write()

on arduino EEPROM.read() and write each read/write a byte, but i don't know about teensy.

thanks for any insights.
 
The Teensy 3.2, 3.5, and 3.6 have a real EEPROM chip. The Teensy LC, 4.0, and 4.1 have emulated the EEPROM in their flash memory.

Note, you can read/write an entire structure with the EEPROM library (it uses a template for the type). If you use a struct, I believe it does one transfer instead of multiple transfers if you do it as bytes.
 
Status
Not open for further replies.
Back
Top