Hey Paul thanks for helping me out again. I haven't studied Ascii to HEX conversion(obvoiusly) so I didn't understand the "subrtact 'A' from the values for A thru F.
So I played with differnent values of x in the sketch below and I quickly came to some conclusions of what needs to be done. First if the ascii representation for Hex A is written as a little "a" or as a caps "A", the conversion will be different. Is there a standard to always use lower case or upper case chars? Also I found I need to subtract '7' if I used a upper case ascii "A", not subtracting 'A' as you mentioned.
I'll mess with this a bit more, but I also intend to 'scope out' robtillaart's answer as well.
int x=0;
void setup()
{
Serial.begin (9600);
}
void loop()
{
x= ('B');
Serial.print("value of Char A is ");
Serial.println(x);
Serial.print("value of Char minus 0 a is ");
Serial.println(x -'7');
Serial.println();
}