??? 06/29/05 22:27 Read: times |
#96254 - Not ASCII Responding to: ???'s previous message |
Yeah, i make a mistake with the question, i get 8 bits and i whant to convert that 8 bit number in 2 bytes decimal.
if i get 1000000 i whant to send to the serial port 64 rigth now if i send the value to the serial port i recive a @. rigth now i'm doing this byte_to_bcd: MOV R0,A ANL A,#0Fh ADD A,#0F6h JNC byte_to_bcd_2 ADD A,#07h byte_to_bcd_2: ADD A,#3Ah XCH A,R0 SWAP A ANL A,#0Fh ADD A,#0F6h JNC byte_to_bcd_3 ADD A,#07h byte_to_bcd_3: ADD A,#3Ah RET if the value is 01000011 i get 2 bytes 43 that is the Hex value of the char C and i whant to get 2 bytes in decimal 67. |
Topic | Author | Date |
ASCII TO DECIMAL | 01/01/70 00:00 | |
re: ascii to decimal | 01/01/70 00:00 | |
DS1620 - ASCII??? | 01/01/70 00:00 | |
9 bits | 01/01/70 00:00 | |
So not ASCII, then! | 01/01/70 00:00 | |
The Othe way around | 01/01/70 00:00 | |
Not ASCII | 01/01/70 00:00 | |
Still Confused | 01/01/70 00:00 | |
i whant to do this | 01/01/70 00:00 | |
Re-read Neil's post! | 01/01/70 00:00 | |
It was discused al least..... a lot but: | 01/01/70 00:00 | |
You only forgot ... | 01/01/70 00:00 | |
For Ivan![]() | 01/01/70 00:00 | |
resource | 01/01/70 00:00 |