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

Back to Subject List

Thread Closed: Issue successfully resolved

???
02/27/04 21:59
Read: times


 
#65655 - RE: Ascii/Decimal?
Responding to: ???'s previous message
said:
So if I press 2 on the keypad this will = 32hex
Then if i press 4 =34hex

That all depends on the keypad!

You have described a keypad that gives an ASCII Code output when you press a button.
There are many types of keyboards that give their outputs in many different ways; eg, they might give you the X-Y coordinates of the key within the key matrix; a PC keyboard gives a "scancode" that identifies each key, etc, etc,...

You will have to consult the Data Sheet for your particular keypad to confirm exactly what output it gives.

I must first convert their ascii values to binary

It might help if you avoid speaking of ASCII "values" - just say "codes".
IF you avoid calling it a "value", you might find less risk of thinking about doing arithmetic with it!?
Just a thought.

List of 14 messages in thread
TopicAuthorDate
Ascii/Decimal?            01/01/70 00:00      
   RE: Ascii/Decimal?            01/01/70 00:00      
   RE: Ascii/Decimal?            01/01/70 00:00      
   RE: Ascii/Decimal?            01/01/70 00:00      
      RE: Ascii/Decimal?            01/01/70 00:00      
   Numbers vs Codes            01/01/70 00:00      
      RE: Numbers vs Codes            01/01/70 00:00      
      RE: Numbers vs Codes            01/01/70 00:00      
   RE: Ascii/Decimal?            01/01/70 00:00      
      RE: Ascii/Decimal?            01/01/70 00:00      
      RE: Ascii/Decimal?            01/01/70 00:00      
         RE: Ascii/Decimal?            01/01/70 00:00      
         RE: Ascii/Decimal?            01/01/70 00:00      
            RE: Ascii/Decimal?            01/01/70 00:00      

Back to Subject List