请教下使用外部扩展EEPROM-AT24C04当程序存储如何写E2程序(不使用单片机)
用一个可以读取EEPROM的芯片PHY107X和使用一个I2C接口的AT24C04相连,外部通过I2C连接PHY107X可以读取出厂信息。EEPROM里A2h存储PHY107X的各寄存器值,A0h写入一些出厂信息,信息定位每个数据存储的地址比如:
A0 Loading.
0000: 03040700 00000120 400c0501 15000000 ....... @.......
0010: 00000000 00000000 00000000 00000000 ................
0020: 00000000 00000000 00000000 00000000 ................
0030: 00000000 00000000 00000000 00000000 ................
0040: 00000000 00000000 00000000 00000000 ................
0050: 00000000 00000000 00000000 00000000 ................
0060: 00000000 00000000 00000000 00000000 ................
0070: 00000000 00000000 00000000 00000000 ................
A2 Loading.
0000: 6d00e300 6700f300 98586978 90887148 m...g....Xix..qH
0010: 00000000 00000000 00000000 00000000 ................
0020: 00000000 00000000 00000000 00000000 ................
0030: 00000000 00000000 00000000 00000000 ................
0040: 00000000 00000000 00000000 00000000 ................
0050: 00000000 00000000 00000000 00000000 ................
0060: 00000000 00000000 00000000 00000000 ................
0070: 00000000 00000000 00000000 00000000 ................
这个@放置在这个固定的地址,PHY107X是直接读取EEPROM里面的数据,那我用什么单片机语言写程序那?各种TWI的初始化怎么写那?
以下是PHY107x的介绍:
The PHY107X is intended to be connected to an external 4k EEPROM to provide
memory space A0 product data and to hold PHY107X parameter setup data
in the A2 memory area which should not be accessed by the host once the PHY107X
has been setup and programmed.
A0h和A2h是2个不同的存储块:
Both specifications define a 256 byte memory map in EEPROM which is
accessible over a 2 wire serial interface at the 8 bit address 1010000X (A0h). The digital
diagnostic monitoring interface makes use of the 8 bit address 1010001X (A2h),
不是很清楚这个程序的思路,麻烦大家有空帮忙看下好吗?万分感谢!
下面链接有图片:
发表时间:2006年9月7日17:04:36