UCB0I2CSA=WRITEADDR; // Slave Address is 38h
//while(UCB0CTL1&UCTXSTT); // Ensure stop condition got sent
UCB0CTL1 |=UCTXSTT; // I2C TX, start condition
UCB0CTL1 |=UCTR;
为什么执行完这些语句后,UCB0TXIFG没有置为是什么原因呀?
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.
UCB0I2CSA=WRITEADDR; // Slave Address is 38h
//while(UCB0CTL1&UCTXSTT); // Ensure stop condition got sent
UCB0CTL1 |=UCTXSTT; // I2C TX, start condition
UCB0CTL1 |=UCTR;
为什么执行完这些语句后,UCB0TXIFG没有置为是什么原因呀?