Other Parts Discussed in Thread: MSP430F5659
Hello
I'm working with a msp430f5659 with a UART that is working well - type a series of characters which trigger receiver interrupt which fills up a receiver buffer. Life is good. So I copy the receiver buffer into a xmit buffer and
so I disable xmit interrupts
UCA1IE &= ~UCTXIE;
fill the xmit buffer
then set the xmit flag
UCA1IFG |= UCTXIFG;
re-enable xmit interrupts
UCA1IE |= UCTXIE;
and....nothing. I step through it and sure enough, the enable is 0, then buffer is filled, then I enable the interrupt, I see it go to 1, flag is a 1, and as I step through the program just continues along as though there is no xmit interrupt pending.
what am I missing? with my old 8051 I would just fill my buffer, set TI = 1, and there you go, next instruction execution would jump to the xmit ISR. My ISR will empty the buffer into UCA1TXBUF but the problem i'm having is how do I enable the xmit ISR? I have one routine, it tests
switch(__even_in_range(UCA1IV,4))
and when I write to the receiver buffer, it does jump to the ISR and UCA1V = 2, but never jumps for a xmit flag, never jumps in with UCA1V = 4.
Any ideas what I'm doing wrong?
Thank you in advance for your help
Dubs