Welcome![Sign In][Sign Up]
Location:
Search - c8051f020 24c02 smbus

Search list

[SCM24c02

Description: C8051F系列单片机BTF020多功能板的24C02控制程序,还有其他的一些功能控制的程序也很实用-C8051F MCU 24C02 board BTF020 multi-function control procedures, there are other some of the features of the control procedures is also very practical
Platform: | Size: 8192 | Author: 涂海书 | Hits:

[Program docc8051f020 smbus原代码

Description: C8051的SMBUS程序, void main (void) { system_initial(); delay_nus(100); i=0x10; sla=CHIP_A; for (j=0;j<0x40;j++) // 向24C02的000地址依次写入64个数据, { // 64个数据的数值从10H---4FH smbus_send(sla, j, i,0x01); // 写入AT24C02 i++; } for (j=0;j<0x40;j++) // 从24C02的00地址依次连续读出64个数据, { // 64个数据的数值应该是从10H---3FH(连续存放) check=smbus_read(sla, j,0x01); DATA1[j]=check; // 读出来的数据依次连续存入数组DATA[]中 } delay_nms(1000); while(1); }
Platform: | Size: 2776 | Author: justin_ses@163.com | Hits:

CodeBus www.codebus.net