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.

How to use UART to transfer ADC results?

Hi guys, 

So I want to have my ADC results sent out by UART to Tera Term but I could not get the results to print on Tera Term. 

This is a function which I have created to send ADC results: 

void send_uart (void) // sends converted ADC results out through UART
{
UARTprintf ("%d", ui32ADC0Avg);
}

and in my while loop, I have the function called so that it would print results: 

while (1)
{
if (UARTBufferFlag == 1){ // if UARTBufferFlag true
//GPIOPinWrite(GPIO_PORTF_BASE, GPIO_PIN_1, GPIO_PIN_1); //indicator of UARTBufferFlag
send_uart(); // print converted ADC results through UART
UARTBufferFlag= 0; // clear UARTBufferFlag
}
delay(100);

}

could something be wrong for what I have wrote in the send_uart to print my results?