![]() ![]() This only has to work on the numbers 0 through 59. Office 2013 english version download.įor example: (starting number) (convert to) 00h 00h 05h 05h 0Ah 10h 0Fh 15h 14h 20h 19h 25h 1Eh 30h. The output number has to look like BCD while actually being hex. Problem is that the starting number, calculations, and result all have to be in hex. Hex to BCD is easy if I do it, but trying to get the HC-12 to do it is another matter. (I need the BCD for outputting a 2-digit number to a pair of 7-segment LED displays connected to one of the ports). I'm trying to convert a Hex number to a BCD number in Assembly, programming a Motorola M68HC12 microcontroller. Given a hexadecimal number as input, we need to write a program to convert the given hexadecimal number into equivalent decimal number.Ĭonverting Hex to BCD sounds simple, but I've been trying to figure this out for hours without much to show for the effort (a search didn't reveal anything very helpful either). This is a C program to convert a hexadecimal number to its decimal equivalent. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |