This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
为什么我用硬件IIC驱动AT24C02可以,但是在驱动TMP100的时候,我把从机地址发过去了,但是从机没有发送应答信号过来,是什么原因呀?
UCB0I2CSA =0X48; //设置从机地址寄存器UCB0I2CSA
UCB0CTL1 |= UCTR;
UCB0CTL1 |= UCTXSTT; // 置为UCTR,UCTXSTT,产生启动条件
WriteByte(address); //写入从机的数据存储地址
//等待从机信号,准备些数据操作
//__delay_cycles(10);
while(UCB0CTL1 & UCTXSTT); //判断从机是否产生应答信号,
请教,请教