How to Perform Packed BCD to ASCII Conversion ?

preview_player
Показать описание
In this article i have discussed how to perform Packed BCD to ASCII conversion with examples. Many computer systems or devices have Real Time Clock (RTC). This clock is actually used for displaying time (hour, minutes, seconds) and date (year, month, day). Even though the power is ON or OFF, this information is processed but in BCD format. In order to display this information on devices screens, LCDs, or seven segments they need to be converted into the ASCII format.

First a packed BCD number is converted into unpacked BCD, then it is masked with 30H and finally it is converted into ASCII.

Binary Coded Decimal:

How to perform Packed BCD to ASCII conversion and vice versa?  Binary Coded Decimal is an encoding system in which decimal numbers from 0 to 9 are represented in binary form.
click below to read more:
#packedbcd #unpackedbcd #bcdtoascii #mplab #eevibes
Рекомендации по теме