I need to fabricate a 0-9 keypad encoder that will accept 2-digit button presses and output 8-bit binary. I have looked at typical encoders such as the M74C922 and understand their operation, but I'm getting hung up on how to handle the second input digit and add the extra 4 output lines. I know this must be relatively simple. Can anyone help? Thanks.