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.
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
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- Innolux's intelligent steer-by-wire solution makes cars smarter and safer
- 8051 MCU - Parity Check
- How to efficiently balance the sensitivity of tactile sensing interfaces
- What should I do if the servo motor shakes? What causes the servo motor to shake quickly?
- 【Brushless Motor】Analysis of three-phase BLDC motor and sharing of two popular development boards
- Midea Industrial Technology's subsidiaries Clou Electronics and Hekang New Energy jointly appeared at the Munich Battery Energy Storage Exhibition and Solar Energy Exhibition
- Guoxin Sichen | Application of ferroelectric memory PB85RS2MC in power battery management, with a capacity of 2M
- Analysis of common faults of frequency converter
- In a head-on competition with Qualcomm, what kind of cockpit products has Intel come up with?
- Dalian Rongke's all-vanadium liquid flow battery energy storage equipment industrialization project has entered the sprint stage before production
- Allegro MicroSystems Introduces Advanced Magnetic and Inductive Position Sensing Solutions at Electronica 2024
- Car key in the left hand, liveness detection radar in the right hand, UWB is imperative for cars!
- After a decade of rapid development, domestic CIS has entered the market
- Aegis Dagger Battery + Thor EM-i Super Hybrid, Geely New Energy has thrown out two "king bombs"
- A brief discussion on functional safety - fault, error, and failure
- In the smart car 2.0 cycle, these core industry chains are facing major opportunities!
- The United States and Japan are developing new batteries. CATL faces challenges? How should China's new energy battery industry respond?
- Murata launches high-precision 6-axis inertial sensor for automobiles
- Ford patents pre-charge alarm to help save costs and respond to emergencies
- New real-time microcontroller system from Texas Instruments enables smarter processing in automotive and industrial applications
- LED Ukulele
- Ask for advice - paid 6678 download code and start via USB
- Operational amplifier parameter analysis and LTspice application simulation" Reading notes 1 Remember the gap between ideal and reality
- Beijing Embedded Software and Hardware Recruitment
- High frequency transformer, low frequency transformer, pulse transformer
- NBIoT and LoRa technology detailed explanation and competitive situation analysis
- Selling an ATRCB256RFR2-XPRO Wireless Evaluation Kit
- Book now to get a gift: Live broadcast on April 9, MIPI C-PHY? Understand it, learn it, and design it
- Gallium nitride transistors help make charging circuits smaller and more economical.
- Industrial design makes motorcycles more technological and cooler