首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > 其他 > 本程序是i2c总线读写一个字节的程序。在写过程序中,不一定非要检测i2c的应答位,可以直接延时过去就行,但是在读过程中必须给应答信号,读完发停止位,一定确认所发...

本程序是i2c总线读写一个字节的程序。在写过程序中,不一定非要检测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
VIP VIP
0.199632s