文件名称:i2c总线程序
介绍说明--下载内容均来自于网络,请自行研究使用
本程序是i2c总线读写一个字节的程序。在写过程序中,不一定非要检测i2c的应答位,可以直接延时过去就行,但是在读过程中必须给应答信号,读完发停止位,一定确认所发的信号都发上了。否则在连续地址读的过程中可能不会出错,但是在随机度过程中就会出错,我的程序就是在给停止信号时没有给上,24cxx一直在输出数据,结果读出错。找着问题后我的程序只加入了一条命令便完全正常。-i2c bus read and write a byte procedures. The written procedure, not necessarily require the detection i2c-response, and can directly past trip delay, but the process must be read to the response signal, stopped at reading, we recognize the signals are on the fat. Otherwise, the address read for the course could not go wrong, but the randomness of the process would be a mistake, I was in the process to stop for no signal, 24cxx in output data, read errors. I discovered the problem after the procedure just joined the order of a completely normal.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
i2c总线程序.txt