hi
i have data that has come form SPI and i want to display on Hyperterminal.....
i am grtting the data correctly in the serialBUF but when i put this data on the Serial POrt i am not getting those values i am getting some Junk....
i am using PIC 18F4620 and C18 Compiler.. does any one can give any idea what exactly to be done?
What u are getting is absolutely right. U are getting the ascii representation of the data. U better switch the view mode to hexadecimal mode of display
its too good, switch to hex mode of rx and u'll see the ascii representation as well as the hex char u have passed on to the serial port..
Have a nice time !!
Hyperterminal will only display something readable if it comes as an ASCII character, otherwise it will be displayed as junk ..
Before you send out a byte through PIC's TX (UART) try to convert it from HEX to ASCII and you should be OK ..
Also, make sure that Hyperterminal's settings match those of the Pic's UART (baud rate, bits, start, stop and parity) ..