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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
04/28/02 15:54
Read: times


 
#22228 - RE: what is lookup tabels and how they work
Dear friend,
See this 8051 code to convert hex to ascii
....
....
....
....
any code
....
....
....
anl a,#0fh
mov dptr,#asciitable
movc a,@a+dptr
....
....
any code
....
....
asciitable:
db 30h,31h,32h,33h,34h,35h,36h,37h,38h,39h
db 41h,42h,43h,44h,45h,46h

this code is used to convert the hexadecimal number (0 - 9 & A - F) to ascii format which can be used to to display on lcd etc.
if accumulator consites 05h it is converted into 35h if asciitable address is 4000h
then the content of memory location 4000h+05h is copyied into accumulator
if you have any problem, you can contact me.

Yashwanth Y. V.




List of 8 messages in thread
TopicAuthorDate
what is lookup tabels and how they work            01/01/70 00:00      
RE: what is lookup tabels and how they work            01/01/70 00:00      
RE: what is lookup tabels and how they w            01/01/70 00:00      
RE: what is lookup tabels and how they work            01/01/70 00:00      
RE: what is lookup tabels and how they work            01/01/70 00:00      
RE: when not to use a lookup table            01/01/70 00:00      
RE: when not to use a lookup table            01/01/70 00:00      
RE: when not to use a lookup table            01/01/70 00:00      

Back to Subject List