#INCLUDE <16f84.h> // This routine converts an 4-bit hex value into an associated ASCII character byte byte_to_ascii(byte tdata) { if (tdata <= 9) { return (tdata | 0x30); } else { return ((tdata - 9) | 0x40); } }