void main ()
{
unsigned char hrs,mins,secs;
char ch1, ch2;
puts("\nEnter the hours to update: ");
ch1=getche();
ch2=getch();
hrs = ASCIItoBCD(ch1, ch2);
puts("\nEnter the minutes to update: ");
ch1=getche();
ch2=getch();
mins = ASCIItoBCD(ch1, ch2);
puts("\nEnter the seconds to update: ");
ch1=getche();
ch2=getch();
secs = ASCIItoBCD(ch1, ch2);
*tm = 0;
_CH = hrs;
_CL=mins;
_DH= secs;
_DL=0;
_AH =3;
geninterrupt(0x1a);
puts("Time Updated");
}
the 0x47 in ascii means 'G'. the 0x47 in BCD means ascii 0x34 and 0x37 that is '3' and '4'. Regards
Multiply by 16. ANSWER: The answer is bcd 11 = 3 111 = 7 1111 i= F 01111 =E and so foirth
47 in BCD & ASCII
explain decimal to BCD encoder
ASCII (American Standard Code for Information Interchange) and BCD (Binary Coded Decimal) are standards for storing information in the binary sytem. ASCII is used for storing alphabetic, numeric, symbols, and control characters in 8-bit binary, and BCD is used for storing numbers 0-9 in 4-bit binary.
Write a program to convert a 2-digit BCD number into hexadecimal
12
BCD can be converted into 7segment display by using an encoder.
WRITE A PROGRAM TO CONVERT A 2-DIGIT bcd NUMBER INTO HEXADECIMAL
Convert string have a nice day to equivalent ascii code include spaces between words in the resultant ascii?
Example Binary 00111000 Convert to Decimal 56 Convert to BCD by using groups of four binary numbers for each digit 5 6 0101 0110
atoi