No.52707 作者:cuiiuc 邮件:cui_zhili@263.net ID:20241 登陆:1次 文章数:1篇 最后登陆IP:202.112.174.125 最后登陆:2004/4/15 17:18:30 注册:2004/4/15 17:11:46 财富:55 发帖时间:2004/4/15 17:18:30 发贴者IP:202.112.174.125 标题:cuiiuc:如何让X9241正常响应。 摘要:No.52707如何让X9241正常响应。 我用I2C总线可以让24c16正常响应,但是不能让x9241正常响应。不知何故。望各位大侠不吝赐教。 我是这样发送字节和等待应答的(附程序): void SendByte(uchar c) { uchar BitCnt; //the length of data to be send is 8 bits for(BitCnt=0;BitCnt <8;BitCnt++) { if(c&0x80) { SDA=1; //judge the sending bit } else { SDA=0; } _Nop(); SCL=1; //Set clock, and notice the device ......
>>返回讨论的主题
|