I am working on a project where I have to display different letters (r, g, b, u and n) on a seven segment display using a PIC18F45K20 microcontroller and assembly language. This is as simple as connecting each of the segments to 8 pins of the PIC and then outputting the right logic values on these pins to get the character I want however that is rather costly on the pin count and I'd like to use as little of these pins as possible to drive the common anode seven segment. Any suggestions on how I could reduce the pin count? I'm thinking I should maybe use a bcd to seven segment display driver such as a 74LS47 to do this, that way I could get it down to 4 pins. I'm not quite sure how I would do characters with the driver though?
Are there any other better ways to do this?