EEPROM 函式库

大多的 Arduino 板子含有 实体的 EEPROM,EEPROM 的作用为板子断电后仍可保留住资料 (类似硬碟),但 86Duino 并没有实体 EEPROM。因此,我们实作了 虚拟 EEPROM 软体。实际做法有两种,一种是利用 SPI flash 配上进阶虚拟 EEPROM 演算法来模拟 16KB 大小的 EEPROM 空间。另一种方法是利用 CMOS 空间来模拟 200B 大小的 EEPROM 空间。

此函式库提供对 EEPROM 的读写函式。

函式

read()
write()
setBank()

注意

当使用 86Duino 的 SysImage 工具来更新存放于 86Duino flash 内的韧体系统时,存放在两种虚拟 EEPROM 空间的资料将被移除。


函式库参考主页面

The text of the 86Duino reference is a modification of the Arduino reference, and is licensed under a Creative Commons Attribution-ShareAlike 3.0 License. Code samples in the reference are released into the public domain.