Design of single-pin keyboard interface circuit to save power

Publisher:rockstar7Latest update time:2012-06-27 Source: 61ic Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

This design realizes the connection of a 4-row 4-column matrix keyboard to a single-chip microcomputer through one pin . It is an ideal choice when the number of pins is limited and has the advantage of saving energy. The 555 timer has an output current. In order to reduce power consumption, the circuit is designed as shown in Figure 1, and there is only leakage loss on the CMOS integrated circuit.
When a key is pressed, the 74HC14 Schmitt trigger forms an oscillator. The output of U1C is the feedback signal connected to the input of U1A and the time base capacitor C1, then an oscillation circuit is constructed to generate an output pulse. In the figure, SIL1, SIL2 and C1 determine the pulse oscillation period. Due to the different switching thresholds of CMOS and 555, the frequency selection of resistors is unstable in time or temperature. This paper introduces current control diodes D1~D10 to solve this problem. The SLI1 and SLI2 resistor networks determine the duty time respectively. Since there are 4 different duty times in one cycle, a small change in temperature will not generate an erroneous key signal. The single-chip microcomputer determines whether a key is pressed by querying the duty time and using the threshold value encoding and decoding.
When no key is pressed, the feedback circuit is open, and the input of U1A is set to 0 through R1. All inputs and outputs of the 74HC14 in the figure are 0V or VCC, so the leakage loss is low, the power supply works in an ideal state, and a pulse signal is generated when a key is pressed. When the microcontroller is not working, no key query is performed and it is in a dormant state.
In the figure, D11 and D12 realize temperature compensation. When the temperature change is not large, D11 and D12 can be omitted. ■


Figure 1 When a key is pressed, the 74HC14 Schmitt trigger forms an oscillator.

Reference address:Design of single-pin keyboard interface circuit to save power

Previous article:Design of LED color light control solution using NXP STARplug series chips
Next article:Design of automatic alarm system for home anti-theft

Latest Microcontroller Articles
  • Download from the Internet--ARM Getting Started Notes
    A brief introduction: From today on, the ARM notebook of the rookie is open, and it can be regarded as a place to store these notes. Why publish it? Maybe you are interested in it. In fact, the reason for these notes is ...
  • Learn ARM development(22)
    Turning off and on interrupts Interrupts are an efficient dialogue mechanism, but sometimes you don't want to interrupt the program while it is running. For example, when you are printing something, the program suddenly interrupts and another ...
  • Learn ARM development(21)
    First, declare the task pointer, because it will be used later. Task pointer volatile TASK_TCB* volatile g_pCurrentTask = NULL;volatile TASK_TCB* vol ...
  • Learn ARM development(20)
    With the previous Tick interrupt, the basic task switching conditions are ready. However, this "easterly" is also difficult to understand. Only through continuous practice can we understand it. ...
  • Learn ARM development(19)
    After many days of hard work, I finally got the interrupt working. But in order to allow RTOS to use timer interrupts, what kind of interrupts can be implemented in S3C44B0? There are two methods in S3C44B0. ...
  • Learn ARM development(14)
  • Learn ARM development(15)
  • Learn ARM development(16)
  • Learn ARM development(17)
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号