chipKIT32 / chipKIT-core

Downloadable chipKIT core for use with Arduino 1.6 - 1.8+ IDE, PlatformIO, and UECIDE
http://chipkit.net/
Apache License 2.0
59 stars 53 forks source link

DTWI Library I2CSlaveSimEEPROM Example #270

Open JacobChrist opened 8 years ago

JacobChrist commented 8 years ago

Just found this comment in the example:

// depending on the eeprom, the size of the eeprom // is a mult of the page write buffer. The eeprom Digilent use // on the MX4ck or Network Shield is a 24LC256, a 256K eeprom or // 4000x the page write buffer. We don't have that much RAM to // simulate the full 256K, so we are only going to have 1K // or 16x; so this would be a 24LC1.... if it existed.

The 24LC256 is a 256Kb (bit) or (32K x 8) eeprom. This would me that the instead of 4000x the page write buffer you would only be 512x the page write buffer. Also the instead of a 24LC1 it should be a 24LC8

// depending on the eeprom, the size of the eeprom // is a multiple of the page write buffer. The eeprom Digilent use // on the MX4ck or Network Shield is a 24LC256, a 256K eeprom or // 512x the page write buffer. We don't have that much RAM to // simulate the full 256K, so we are only going to have 1K // or 16x; so this would be a 24LC8 (imaginary 64 byte page part).... if it existed.