Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
10/31/00 12:02
Read: times


 
#6088 - RE: HEX to ASCII (decimal) conversion
Hi Ilker,

I use this code to convert from HEX to ASCII bytes to send out the serial port. You should be able to reverse the process for your needs.SendASCII:

; This section converts the values to ASCII and sends it.

anl a,#0fh
mov r1,a
clr c
subb a,#0ah
mov a,r1
jc AsciiSend
add a,#7

AsciiSend:
add a,#030h
mov sbuf,a
jnb ti,$
clr ti
ret

TTYL,

Dave Kaleta

List of 8 messages in thread
TopicAuthorDate
HEX to ASCII (decimal) conversion            01/01/70 00:00      
RE: HEX to ASCII (decimal) conversion            01/01/70 00:00      
RE: HEX to ASCII (decimal) conversion            01/01/70 00:00      
RE: HEX to ASCII (decimal) conversion            01/01/70 00:00      
RE: HEX to ASCII (decimal) conversion            01/01/70 00:00      
RE: HEX to ASCII (decimal) conversion            01/01/70 00:00      
RE: HEX to ASCII (decimal) conversion            01/01/70 00:00      
RE: HEX to ASCII (decimal) conversion            01/01/70 00:00      

Back to Subject List