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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
Andy Neil
06/10/09 05:48
Read: 160 times
Basingstoke
Uk


 
#165977 - Text representation of numbers
Responding to: Per Westermark's previous message
Per Westermark said:
the binary value 0x1f gets converted to the characters '1' and 'F', that is something completely different.


What you are actually doing there is converting from a number to a text string that represents that number.

This is what something like printf( "%02X", number ) does...

List of 12 messages in thread
TopicAuthorDate
transmit/recieve character by using 8051 and USART      Sergey Meerovich      06/09/09 15:27      
   Be sure your 8251 is fast enough      Richard Erlacher      06/09/09 18:42      
      conver ASCII to bin and viceversa and interface      Sergey Meerovich      06/10/09 03:53      
         translate ASCII to binary ? [edited]      Andy Neil      06/10/09 04:38      
            65 base 10 = 41 base 16      Per Westermark      06/10/09 04:43      
               Corrected!      Andy Neil      06/10/09 05:55      
         binary to hex      Per Westermark      06/10/09 04:40      
            Text representation of numbers      Andy Neil      06/10/09 05:48      
               connection with HyperLink      Sergey Meerovich      06/15/09 09:02      
                  unplug and plug      Erik Malund      06/15/09 09:05      
   Question about Polling method for send recieve data      Sergey Meerovich      06/16/09 01:02      
      yes, and no      Erik Malund      06/16/09 08:31      

Back to Subject List