Hi all, good morning (in my country).
I'm using MSP430F5151 for send/receive data from/to PC via RS232 connection.
I already got a hardware connection. But I can' run any UART examples code from Ti.
In source codes:
main.c:
main(){
...
GPIO_setAsOutputPin(GPIO_PORT_P1,GPIO_PIN0);
GPIO_setOutputLowOnPin(GPIO_PORT_P1,GPIO_PIN0);
USCI_UART_enableInterrupt(USCI_A0_BASE, USCI_UART_RECEIVE_INTERRUP); // For enable Receive Interrupt.
..
}
#pragma vector=USCI_A0_VECTOR
__interrupt void USCI_A0_ISR (void)
{
GPIO_toggleOutputOnPin(GPIO_PORT_P1,GPIO_PIN0);
}
It seem UART Interrupt is not be run. I marked in interrupt with toggle LED operation. But nothing is runned.
I try with polling win while(1) loop for send/receive operation, It works well.
I really don't want to polling in this case, Pls show me how to make interrupt running.