文件名称:Code
介绍说明--下载内容均来自于网络,请自行研究使用
SMBus I/O接口是一个双线的双向串行总线。SMBus完全符合系统管理总线规范1.1版,与I2C串行总线兼容。系统控制器对接口的读写操作都是以字节为单位的,由SMBus接口自动控制数据的串行传输。在作为主或从器件时,数据传输的最大速率可达系统时钟频率的十分之一(这可能比SMBus的规定速度要快,取决于所使用的系统时钟)。可以采用延长低电平时间的方法协调同一总线上不同速度的器件。- Example code to interface a single 256-byte EEPROM to a C8051F00x via the SMBus
Code assumes a single EEPROM with slave address 1010000 is connected on
the SDA and SCL lines, and no other masters are on the bus.
The SEND routine performs a 1-byte write to the EEPROM. This consists of (1) START,
(2) slave address+ W, (3) memory location byte write, and (4) a data byte write.
Code assumes a single EEPROM with slave address 1010000 is connected on
the SDA and SCL lines, and no other masters are on the bus.
The SEND routine performs a 1-byte write to the EEPROM. This consists of (1) START,
(2) slave address+ W, (3) memory location byte write, and (4) a data byte write.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
Code\SMB_Ex1.asm
....\SMB_Ex2.c
....\SMB_Ex3.c
....\SMB_Ex3_F02x.c
Code