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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
06/07/05 10:28
Read: times


 
#94429 - Radix Conversion - hints
Responding to: ???'s previous message
This is a radix conversion problem. Here are some hints.

As with all problems, the first thing to do is to state the problem as clearly as possible.

I assume you want to:

Convert an 8-bit binary value to ASCII hexadecimal characters.

A hexadecimal digit represents 4-bits, therefore you need to extract two 4-bit values from the 8-bit word. See instructions ANL and SWAP.

Having obtained a 4-bit value you need to convert it to the equivalent ASCII character. There are a number of ways of doing this, the main ones are explored in the following link:

http://www.programmersheaven.com/zone5/cat.../32816.htm

Enjoy.



List of 4 messages in thread
TopicAuthorDate
bin to hexa function (8051)            01/01/70 00:00      
   Radix Conversion - hints            01/01/70 00:00      
   bin to hexa function (8051)            01/01/70 00:00      
      Easiest!            01/01/70 00:00      

Back to Subject List