Hello,
I am trying to send the value of my ADC to the computer with UART0 (PA1).
Can someone tell me the steps for doing that?
Here is what exactly I would like to do:
-acquire ADC value ( this I know how to do)
-send the 4 MSB with the UART
-send the other 8 LSB with the UART
Should I do all this in my AD0SS3_handler?
Do i have to use sprintf()? If yes, would it be like this: sprintf(str,"%d\t%d\n",MSB_value,LSB_value); where msb and lsb are int
if I use sprintf do i have to use UARTCharPut ?? and where should I use it? In my main or in a handler?
Thank you in advance,
Étienne
P.S. I already configured everything right uart, adc,gpios,etc... I just need a little help to continue with the uart!:)