??? 10/20/05 09:03 Read: times |
#102667 - No, that's wrong. Responding to: ???'s previous message |
Sarang Patki said:
But the only thing is you need to subtract 0X40 from your HEX character. This is more efficient method for your application(Than lookup table). True - but still unnecessary: Also the code is not at all "6 bit ASCII" but it is an easily extracted code from HEX number. Wrong. It is, as I said in my updated post, just the bottom 6 bits of the ASCII code 'A' means 0X41 means 0X65 in ASCII. Wrong. The ASCII code for 'A' is 0x41; that's 65 in decimal Now as per the IC 7243A 'A' is 0X01
means difference is of 0X40 and that is a constant. Indeed; but there is no need to subtract - just ignore the high-order bits of the ASCII code! I presume this chip has only 6 data bits connected? (need that datasheet again...) You need not go into the details of ASCII. It is something which is really not required. Maybe, but you will need to understand it someday - might as well start now...! ;-) to convert HEX to ASCII and then you have to subtract 0X64 as a constant. Wrong. If you do it by subtraction, you need to subtract 0x40; that's 64 in decimal. The following 3 lines are all equivalent: six_bit = seven_bit - 0x40; six_bit = seven_bit - 64; six_bit = seven_bit - '@'; |
Topic | Author | Date |
C8051F005 with KLA5XX 17segment display | 01/01/70 00:00 | |
Use a look table to convert | 01/01/70 00:00 | |
Thanks | 01/01/70 00:00 | |
6-bit ASCII??? | 01/01/70 00:00 | |
Yes - just the bottom 6 bits of ASCII! | 01/01/70 00:00 | |
So where's the problem?? | 01/01/70 00:00 | |
6 bit ASCII??? | 01/01/70 00:00 | |
Wrong answer. | 01/01/70 00:00 | |
unnecessary | 01/01/70 00:00 | |
Sorry once again | 01/01/70 00:00 | |
yes | 01/01/70 00:00 | |
That is a must... | 01/01/70 00:00 | |
No, that's wrong. | 01/01/70 00:00 | |
Not quite "6-bit ASCII" | 01/01/70 00:00 | |
Thanks to everybody | 01/01/70 00:00 | |
driver for ICM7243A with KLA5XX | 01/01/70 00:00 | |
Driver | 01/01/70 00:00 | |
Do you need the chip? | 01/01/70 00:00 | |
Yes Andy Neil | 01/01/70 00:00 | |
Yes Andy Neil | 01/01/70 00:00 | |
Hi erik can you help me | 01/01/70 00:00 | |
Why Erik? | 01/01/70 00:00 | |
What question? | 01/01/70 00:00 | |
great | 01/01/70 00:00 | |
how can you finalise the hardware??? | 01/01/70 00:00 | |
so many have a problem with the truth![]() | 01/01/70 00:00 |