Create a lookup table consisting of an array of U8s. The array contains the PDU values for each character. For example, H has an ascii value of 72 (decimal) so make element 72 of the array equal to 56 (0111000 in decimal). In the same way, setup the lookup table array for all the values, and use the ascii values--the contents of array 1 in my example--to index into the loopup table array.
Alternately, you could also look to see if there is any sort of fixed mathematical relationships between the two charcter maps, like the PDU code is always 16 less than the ascii code. If there is you can do the calculations of the array of ascii codes.
Mike...