PDA

View Full Version : ATMEGA 8 + UART



counter_struck
04-21-2008, 03:39 PM
Hi

I have an ultrasonic circuit and want to view the measurements on UART. The measurements are float type. I want to convert it to string and then send out, a character at a time to the UART.

Please help

Battery
04-26-2008, 07:33 PM
Which compiler do you use??
If you use winavr/avrgcc it can be done with ltoa() function. See documentation for more details.

superchiku
04-27-2008, 11:05 PM
digital readings cant be of float type, if you need the code then i can give it to you