Hi,
Im trying to use my 3.3v FTDI cable to display ADC values from my MSP430 G2553 in hyperterminal.
Im only using the RX of the UART P1.2
Ive been stepping through the program and all three ADC readings are taken stroed in three different variables but when it comes to transmitting the program seems to be getting stuck in a loop here: while (!(IFG2&UCA0TXIFG));
I get nothing out to hyperterminal because of this
Its part of the recursive function to get around the 10 bit ADC to 8 bit UART problem.
this is the recursive function for reference.
void UART_OutUDec(unsigned long n)
{
// This function uses recursion to convert decimal number
// of unspecified length as an ASCII string
if(n >= 10)
{
UART_OutUDec(n/10);
n = n%10;
}
while (!(IFG2&UCA0TXIFG));
UCA0TXBUF=(n+'0'); /* n is between 0 and 9 */
thanks guys