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.

MSP430F4152的USCI UART地址位多处理器通讯

Other Parts Discussed in Thread: MSP430F4152

MSP430F4152的USCI UART地址位多处理器通讯怎么做? 我的代码为: void init_uart0(void) { P6SEL |= BIT5+BIT6; // P6.5,6 = USCI_A0 TXD/RXD UCA0CTL0 = 0x04; //0000 0100 UCA0CTL1 |= UCSSEL_2; // SMCLK 2M UCA0BR0 = 0xD0; UCA0BR1 = 0x00; UCA0MCTL = 0x40; // Modulation UCBRSx = 1 UCA0CTL1 &= ~UCSWRST; // **Initialize USCI state machine** IE2 |= UCA0RXIE; // Enable USCI_A0 RX interrupt __enable_interrupt(); //开全部中断 } #pragma vector=USCIAB0RX_VECTOR __interrupt void UART0_isr(void) { unsigned char new, add; if(UCA0STAT & UCADDR) { add = UCA0RXBUF; } else { new = UCA0RXBUF; } } 但是,什么也收不到,是不是用的不对?