Subscribe to EDN
RSS
Reprints/License
Print
Email

EDN Access -- 10.13.94 4-bit µP's A/D converter decodes keypad's input

-- EDN, October 13, 1994

EDN logo

Design Ideas:October 13, 1994

4-bit µP's A/D converter decodes keypad's inputs


Zhaohua Zhu,
Ryoden International (Shanghai) Ltd, Shanghai, China

thumbnailFig 1 shows a Mitsubishi M50927-XXXSP/FP 4-bit microcontroller decoding a 4x4 keypad using only four digital I/O lines instead of eight. Saving four of a 4-bit µC's precious I/O lines couild be significant.

The 4-bit µC's ADC provides the key to the savings. The µC's output lines, F1 through F4, energize the keypad's column lines one at a time via 74HC4049 buffer/driver. If a user presses a key, the µC's ADC reads an analog voltage coresponding to the row of the pressed key. The resistors that the keypad's keys connect to the µC's ADC determine the voltage that the ADC sees. Table 1 lists these voltages.

Scanning each of the columns for a 3-msec period provides good response. Connect the ADC's reference to +5V. The 74HC4049 buffer/driver ensures that the voltage applied to the keypad's columns is a full 5V. (DI 1594)

Table 1--Voltages vs row of key pressed
Voltage (V) Row of Key pressed
5 First
3.75 Second
2.50 Third
1.25 Fourth
0.00 no key



| EDN Access | feedback | subscribe to EDN! |
| design features | design ideas | columnist |

Copyright c 1995 EDN Magazine. EDN is a registered trademark of Reed Properties Inc, used under license.

RSS
Reprints/License
Print
Email
Talkback
Canon Resource Center

Featured Company


Most Recent Resources

Advertisement
Related Content

No related content found.

  • 0 rated items found.
Advertisement

KNOWLEDGE CENTER

Datasheets.com Parts Search

185 million searchable parts
(please enter a part number or hit search to begin)
Featured Job On
Scroll for More Jobs
Advertisement
About EDN   |   Site Map   |   Contact Us   |   Subscription   |   RSS
© 2012 UBM Electronics. All rights reserved.
Use of this Web site is subject to its Terms of Use | Privacy Policy

Please visit these other UBM Canon sites

UBM Canon | Design News | Test & Measurement World | Packaging Digest | EDN | Qmed | Pharmalive | Appliance Magazine | Plastics Today | Powder Bulk Solids | Canon Trade Shows