• BCD to binary conversion in Assembly
    Hi, I want to know how the 6 digit bcd is converted into hex value Ex: 123456 to 1E240. Please help me by providing the assembly code for 8051.
  • 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...
  • BCD Mathematicd
    Hi, I need some help with BCD mathematics , like adding / subtracting packed BCD pairs. How can we do it in C? Regards Kishor