djsfantasi
- Joined Apr 11, 2010
- 8,783
What you are having a hard time understanding is that hex and binary (and decimal) are just different representations of a number and are conceptually the same.An example of brain scramble is, when I'm told that: [ Serout PORTC.5, 9600, 0x24, 0x45, 0x49, 0x47, 0x4e, 0x51, 0x2c, 0x52, 0x4d, 0x43, 0x2a, 0x32, 0x34 ] is sending binary values, when to me they look like HEX and to me binary looks like %10101010, just does not compute.
Just like in language. Red means the same as rouge in French or roja in Spanish. The words look different but they mean the same color.
In numbers, compare decimsl to English, French to hex and Spanish to binary.
Take the number 20… In hex, it is 0x14 and I’m binary, it is 0001 0100. But the all mean he same numerical quantity.
In the case of your two methods, one (SEROUT) was using numbers such as 20 and the method using msg2 was using words such as twenty. You can easily translate between words and numbers… computers not so much.
You need to remember this. It’s important.