• BCD to BIN
    Hello. I need a procedure of translation of 16-bit number from BCD to BIN. Thanks.
  • BCD to binary
    How can convert 32-bit BCD to Binary vise-versa.?
  • ASCII to BCD conversion
    I am trying to use the following code to convert 2 digit ASCII numbers to BCD number, for setting RTC Clock DS1307. unsigned char ASCII_TO_BCD(unsigned char ascii_text[2]) { unsigned char bcd_value;...
  • Need BINARY to BCD function
    Hi, Does anyone know how to convert a BINARY 8 bit to a 2 digit packed BCD. Example if I have value 0x0C (wich is 12 decimal) the result will be 12 or a char value of 0x12. thank you, Adi...
  • Converting from BCD
    So I have to convert a number from BCD, however when I do it like this: ((X>>4)*10) + X&0xF It comes out a wrong number, however if I do this: int H = x>>4; int L = x&0xF; return H*10 +...