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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
06/10/09 09:38
Modified:
  06/10/09 10:52

Read: times


 
#165972 - translate ASCII to binary ? [edited]
Responding to: ???'s previous message
Note: The error pointed out by Per in the original post has been corrected.

---

What, exactly, do you mean by "translate ASCII to binary"?

ASCII is just a code that uses numbers to represent - or encode - characters.

eg, when you want to send the uppercase letter 'A' you send its ASCII code value - which is sixty-five.

The numeric value sixty-five can be represented many ways; eg,
in decimal as 65;
in hexadecimal as 41;
in octal as 101;
in binary as 1000001;
in Roman numerals as LXV;
etc.

It looks like what you're actually trying to do is to transmit a value in hexadecimal notation, eg, 40, by sending the character '4' followed by the character '0' - is that right?

List of 12 messages in thread
TopicAuthorDate
transmit/recieve character by using 8051 and USART            01/01/70 00:00      
   Be sure your 8251 is fast enough            01/01/70 00:00      
      conver ASCII to bin and viceversa and interface            01/01/70 00:00      
         translate ASCII to binary ? [edited]            01/01/70 00:00      
            65 base 10 = 41 base 16            01/01/70 00:00      
               Corrected!            01/01/70 00:00      
         binary to hex            01/01/70 00:00      
            Text representation of numbers            01/01/70 00:00      
               connection with HyperLink            01/01/70 00:00      
                  unplug and plug            01/01/70 00:00      
   Question about Polling method for send recieve data            01/01/70 00:00      
      yes, and no            01/01/70 00:00      

Back to Subject List