文件名称:STC12C5A60S2_24C02_Test
- 所属分类:
- 单片机(51,AVR,MSP430等)
- 资源属性:
- [C/C++] [源码]
- 上传时间:
- 2016-05-04
- 文件大小:
- 44kb
- 下载次数:
- 0次
- 提 供 者:
- yush*****
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
下载
别用迅雷、360浏览器下载。
如迅雷强制弹出,可右键点击选“另存为”。
失败请重下,重下不扣分。
如迅雷强制弹出,可右键点击选“另存为”。
失败请重下,重下不扣分。
介绍说明--下载内容均来自于网络,请自行研究使用
AT24C02外部EEPROM测试程序
1、程序说明:
该例程演示了单片机端口上的外部EEPROM测试实验,该EEPROM为I2C接口,
使用单片机端口模拟I2C协议实现通信,程序中对EEPROM写入一个页的数据,
再将该页的数据读出,如果读写EEPROM失败,则数码管显示“Error”,
如果测试成功, 则在数码管显示“CorrECt”。
2、实验操作
将拨码开关S10的SMG端拨到ON端,表示该端接通。
同时把该拨码开关的其他端置为断开状态,即不拨到ON端。
否则将影响到实验效果。-AT24C02 external EEPROM test program
1, descr iption of the procedures:
This routine demonstrates the external EEPROM test chip on the port, the EEPROM for the I2C interface,
The use of single-chip communication port to realize I2C protocol simulation, write a page of data in a EEPROM program,
Then the page data read, read and write if EEPROM fails, then the digital tube display Error ,
If the test is successful, then the CorrECt in the digital tube display .
2, experimental operation
The dial switch SMG S10 end of the ON to the side, indicating that the end is connected.
At the same time, the other end of the dial switch is in a disconnected state, that is, the switch is not transferred to the ON terminal.
Otherwise, it will affect the experimental results.
1、程序说明:
该例程演示了单片机端口上的外部EEPROM测试实验,该EEPROM为I2C接口,
使用单片机端口模拟I2C协议实现通信,程序中对EEPROM写入一个页的数据,
再将该页的数据读出,如果读写EEPROM失败,则数码管显示“Error”,
如果测试成功, 则在数码管显示“CorrECt”。
2、实验操作
将拨码开关S10的SMG端拨到ON端,表示该端接通。
同时把该拨码开关的其他端置为断开状态,即不拨到ON端。
否则将影响到实验效果。-AT24C02 external EEPROM test program
1, descr iption of the procedures:
This routine demonstrates the external EEPROM test chip on the port, the EEPROM for the I2C interface,
The use of single-chip communication port to realize I2C protocol simulation, write a page of data in a EEPROM program,
Then the page data read, read and write if EEPROM fails, then the digital tube display Error ,
If the test is successful, then the CorrECt in the digital tube display .
2, experimental operation
The dial switch SMG S10 end of the ON to the side, indicating that the end is connected.
At the same time, the other end of the dial switch is in a disconnected state, that is, the switch is not transferred to the ON terminal.
Otherwise, it will affect the experimental results.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
9、AT24C02外部I2C总线EEPROM实验\24C02_Test.plg
...............................\24C02_Test.uvopt
...............................\24C02_Test.uvproj
...............................\24C02_Test_uvopt.bak
...............................\24C02_Test_uvproj.bak
...............................\Application\Doc\readme.txt
...............................\...........\Header\24c02.h
...............................\...........\......\STC12C5A60S2.H
...............................\...........\Source\24c02.c
...............................\...........\......\main.c
...............................\...........\.tartup\STARTUP.A51
...............................\Lis\24c02.lst
...............................\...\24C02_Test.m51
...............................\...\main.lst
...............................\...\STARTUP.lst
...............................\Obj\24c02.obj
...............................\...\24C02_Test
...............................\...\24C02_Test.hex
...............................\...\24C02_Test.lnp
...............................\...\24C02_Test.plg
...............................\...\main.obj
...............................\...\STARTUP.obj
...............................\Application\Doc
...............................\...........\Header
...............................\...........\Source
...............................\...........\Startup
...............................\Application
...............................\Lis
...............................\Obj
9、AT24C02外部I2C总线EEPROM实验