tst WROTE:today I attend an interview, the interviewer ask me an question and i duno how to answer it.
Can you connect the 4x4 keypad to the PIC microcontroller if there is only 1 I/O port for you to use? The interviewer ask me go home and find it out myself. Anyone have the idea?
It could.
The keypad is connected to a resistor network first, and then to a astable 555 timer and each key can generate a specific frequency, just like a musical keyboard.
The square wave is fed into the I/O pin.
The MCU intepretes the frequency.
And get the key information from the lookup table.
PIC - UIC00B from Cytron (replacement for my broken PICKit 2), Pickit 3, MikroC for PIC
dsPIC - MikroC for dsPIC, mikromedia board (dsPIC33)
AVR - AVR Dragon
Parallax - Prop tool