I have published a TinyCLR driver for the AT24C256 serial EEPROM:
Repository:
Implicate-X/ImplicateX.TinyCLR.Drivers.Memory.At24c256
The driver provides:
- 16-bit memory addressing
- 64-byte page write handling
- Automatic page-boundary splitting
- Read and write operations across the full 32 KiB address range
- Device verification through read/write/read-back testing
- Proper disposal and range validation
Typical usage:
- Application settings
- Configuration storage
- Small persistent data structures
- Embedded devices requiring non-volatile storage
What makes this driver particularly relevant in my current project is the architectural separation of storage responsibilities.
In the Embedded Architecture āBack to the Futureā project THE Radio Receiver, different storage technologies are assigned to different responsibilities:
| Responsibility | Storage |
|---|---|
| Device settings | AT24C256 EEPROM |
| FM station presets | FeRAM |
| Web station presets | FeRAM |
This separation reflects the actual usage characteristics of the data.
Settings are written relatively infrequently and therefore fit well into EEPROM.
Station memories are updated much more often. FeRAM is therefore a better choice because it combines non-volatility with virtually unlimited write endurance and no write-cycle delays.
An interesting consequence of this architecture is that device availability is no longer validated globally at startup.
Earlier versions simply scanned the entire I²C bus and failed if any expected device was missing.
The current direction is different: each functional subsystem becomes responsible for validating the storage or hardware resources it actually needs.
For example, a user can still listen to the radio even if station storage is not available. Only the station memory functionality becomes unavailable.
As a result, hardware validation moves from bus-level responsibility to feature-level responsibility.
For me, this is one more example that Embedded Development and Architecture are not opposites. In larger systems they eventually become the same discussionā¦
