You are on page 1of 2

Think about this now Numbers 0 to 9 first of all what is it ??

How is your keypad laid out ??


Then think matrix theory perhaps ??

Columns and Rows ? Yes , No

Then what do we think ?? How to connect this to a port

So we are going to switch each column line on in turn and then see row we get a reading
from

Basic algorithm for doing this would be What ??

If (( Column 4 ==1 ) And ( Row4 == 1))


Then Button F pushed Value = decimal 15

So start from there first drawing your hardware diagram connection to processor ports then
we think about what BCD " Binary coded decimal " maybe

So we have to do what Draw up a truth table

15 in decimal is FF in hex is 0000 1111 binary 8 bit unsigned

table will be something along the lines of port pins (representing our segments ) mapped to
decimal display Correct ?? Yes or No

So we need to draw a circuit showing this + connections to 7 Segment display and keypad

Finally implement a look up table which is going to be an array of some type index
corresponding to decimal picked up by switch pressed with value in binary output to port
Flow chart or basic English algorithm showing us how we intend to do this
+ Code for the processor written either in c or may be even better still assembler

Best way to start something like this What do you think ??

You might also like