Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

how to transfer data obtained thru SPI to Hyperterminal....

Status
Not open for further replies.

akhileshchidare

Member level 3
Member level 3
Joined
Oct 4, 2005
Messages
59
Helped
1
Reputation
2
Reaction score
0
Trophy points
1,286
Activity points
1,758
hyperterminal spi

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?
 

hex to ascii conversion in hyperterminal

hi akhileshchidare,

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

one such easy serial port terminal is here
https://bray.velenje.cx/avr/terminal/

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 !! :D

regards
Sam
 

spi hyperterminal

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) ..

Regards,
IanP
 

hyperterminal display hex

akhileshchidare said:
BUF but when i put this data on the Serial POrt i am not getting those values i am getting some Junk....

Are you converting the HEX value to ASCII? If you transmit the HEX as is, then you will get junk since hyper terminal cannot handle hex.

Bray Velenje TERMINAL program will handle HEX, BIN and ASCII.

Cheers

Ravi
 

Re: how to transfer data obtained thru SPI to Hyperterminal

Hey,

Are you guys still at edaboard?
If so do reply.

Tell me how to convert hex to Ascii.
Also how to set the hyperterminal to Ascii mode?
 

Re: how to transfer data obtained thru SPI to Hyperterminal

Anuradha1 said:
Hey,

Are you guys still at edaboard?
If so do reply.

Tell me how to convert hex to Ascii.
Also how to set the hyperterminal to Ascii mode?
Forget hyperterminal. Use bray's terminal. This is very good.

Call this routine with HEX value in W

hex2ascii andlw 0Fh
addwf pcl,f
dt "0123456789ABCDEF"

Returns the ASCII value in W.

Cheers

Ravi
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top