用msp430g2553写程序是在代码中明明写的是0XA2但是在I2C从属器件接收到的确是0X22,烦请高手解答。谢谢!!
UCB0CTL1 |= UCSWRST;
UCB0CTL0 |= UCMST + UCMODE_3 + UCSYNC;
UCB0CTL1 |= UCSSEL_2 + UCSWRST;
UCB0BR0 = 12;
UCB0BR1 = 0;
UCB0I2CSA = 0XA2;
UCB0CTL1 &= ~UCSWRST;
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.
用msp430g2553写程序是在代码中明明写的是0XA2但是在I2C从属器件接收到的确是0X22,烦请高手解答。谢谢!!
UCB0CTL1 |= UCSWRST;
UCB0CTL0 |= UCMST + UCMODE_3 + UCSYNC;
UCB0CTL1 |= UCSSEL_2 + UCSWRST;
UCB0BR0 = 12;
UCB0BR1 = 0;
UCB0I2CSA = 0XA2;
UCB0CTL1 &= ~UCSWRST;