Question: . Write a PIC16F877A assembler subroutine called HexToAscii to convert a hexadecimal byte in register HexByte in memory location 20h, into two ASCII characters. The
. Write a PIC16F877A assembler subroutine called HexToAscii to convert a hexadecimal byte in register HexByte in memory location 20h, into two ASCII characters. The higher nibble ASCII character must be returned in register CharTens in memory location 21h and the lower nibble ASCII character must be returned in register CharUnits in memory location 22h. A look-up table called AsciiChar must be used to convert a hexadecimal nibble value to an ASCII character.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
