https://github.com/peterhinch/micropython-fram.git
A simple driver for the Adafruit 32KB FRAM module http://www.adafruit.com/product/1895. FRAM is a nonvolatile RAM having low power consumption and extremely long endurance (10^13 writes compared to 10,000 for the Pyboard's Flash memory). It is inherently byte addressable for read and write; consequently writing can be faster than Flash devices which require slow sector erase operations to enable a sector to be rewritten. FRAM has application in data logging and to preserve state after power down or between calls to pyb.standby().
The driver supports from 1 to 8 devices, configuring them as a single memory block. The block may be addressed as an array of bytes or can be mounted as a disk in the Pyboard filesystem.
Ferroelectric RAM driver
- pythoncoder
- Posts: 5956
- Joined: Fri Jul 18, 2014 8:01 am
- Location: UK
- Contact:
Ferroelectric RAM driver
Peter Hinch
Index to my micropython libraries.
Index to my micropython libraries.
- pythoncoder
- Posts: 5956
- Joined: Fri Jul 18, 2014 8:01 am
- Location: UK
- Contact:
Re: Ferroelectric RAM driver
Updated today with two changes:
- The constructor now takes an initialised I2C object to facilitate bus sharing.
- Adapted to work on Pyboard or ESP8266.
Peter Hinch
Index to my micropython libraries.
Index to my micropython libraries.