Good morning.....
I have two MSP430FR2355EVM that are wired together....I have TX of one board wired to RX of the other. I can see the data stream (6 characters) from the TX pin on a logic analyzer at the RX board, however I cannot seem to capture the stream in code. I have the RX board on the debugger and am getting interrupts. On the TX board the 16MHz clock is being produced the whole period that the six characters are on the bus HOWEVER on the RX side the 16MHz is bursting during the attempt at receive (I am trying to use LPM3). If I put the RX side into LPM0 all is fine. Can someone please tell me what I need to do to have the RX side clock run during the whole time the board is receiving and then go into LPM3?
#include <msp430.h> #include "rc.h" char rcv[6] = {0}, *prcv; int main(void) { WDTCTL = WDTPW | WDTHOLD; // stop watchdog timer prcv = rcv; IOconfig; initClockTo16MHz(); initUART(); P6DIR |= BIT6; __bis_SR_register(LPM0_bits + GIE); //go to sleep: LPM3 } #pragma vector=USCI_A1_VECTOR __interrupt void Payload_RF(void) { switch(__even_in_range(UCA1IV, USCI_UART_UCTXCPTIFG)) { case USCI_NONE: break; case USCI_UART_UCRXIFG: UCA0IFG &=~ UCRXIFG; *(prcv) = UCA1RXBUF; prcv++; __bic_SR_register_on_exit(LPM0_bits); break; case USCI_UART_UCTXIFG: break; case USCI_UART_UCSTTIFG: break; case USCI_UART_UCTXCPTIFG: break; } }