i am currently using atmega48 and a rs232 interface is hooked up to the hyperterminal.
i want to return some integer stored in the microcontroller to be displayed on the hyperterminal.
i've already set up the streams correctly through fdevopen so that i could use putchar, puts etc etc.
but i am not sure how to convert this integer to a string so that i could use puts.
i tried the function toascii() in ctype.h and also itoa() but it doesn't seem to work as the characters displayed on the hyperterminal were weird one.
can you guy show me an example please?
thank you. cheers !