Question
Send ADC measurement to PC through USART
Posted on October 05, 2015 at 19:42
Hello,
my name is Carlo. I'm a student new to STM32 and MCUs in general.What I'm trying to do is to send a 16-bit ADC value through USART to PC, using stm32f0. I found some troubles doing this since USART takes one byte each time whilst ADC1ConvertedValue is 16-bit. I've tried to split a 16-bit value into two bytes but i don't know how to rejoin them to show the actual 16-bit result in the PC.Does anyone have any suggestions ?Thank you very much in advance.Regards,Carlo. #adc #usart #stm32f0