To read the status of the sensor, the microcontroller must perform the following two steps (Figures 2 and 3):
1: Change the output state from "0" to "1" (write operation - Twr)
2: Read input status (read operation-Trd)
If the result of the read operation is "0", it means that the sensor is pressed. The finger capacitance is connected in series with capacitor C, making the circuit time constant larger.
Because the finger capacitance is small and the interval between Twr and Trd is less than 1 to 2μs, it is recommended that the PIC12CXXX internal clock use 4MHz.
The hardware circuit diagram in Figure 4 contains two sensor buttons. The trick is to read sensor SB0: GP0 is set as input and GP1 is set as output; and to read SB1: GP0 is set as output and GP1 is set as input. GP4, 5 are connected to LEDs to indicate the status of the sensor buttons. The other pins of PIC12C508 are not discussed here, they can be used as SYNCRO input and TRIAC DRIVER output.
The value of resistor R1 must be adjusted, it determines the sensitivity of the button. The value of capacitors C1 and C2 is not too important. It is recommended to use the same type as the microcontroller input, with equal input impedance.
The software flow is shown in Figure 5.
Previous article:Comparison of four failure modes of IGBT and its sub-devices
Next article:Principle and performance of LED electronic display screen
- MathWorks and NXP Collaborate to Launch Model-Based Design Toolbox for Battery Management Systems
- STMicroelectronics' advanced galvanically isolated gate driver STGAP3S provides flexible protection for IGBTs and SiC MOSFETs
- New diaphragm-free solid-state lithium battery technology is launched: the distance between the positive and negative electrodes is less than 0.000001 meters
- [“Source” Observe the Autumn Series] Application and testing of the next generation of semiconductor gallium oxide device photodetectors
- 采用自主设计封装,绝缘电阻显著提高!ROHM开发出更高电压xEV系统的SiC肖特基势垒二极管
- Will GaN replace SiC? PI's disruptive 1700V InnoMux2 is here to demonstrate
- From Isolation to the Third and a Half Generation: Understanding Naxinwei's Gate Driver IC in One Article
- The appeal of 48 V technology: importance, benefits and key factors in system-level applications
- Important breakthrough in recycling of used lithium-ion batteries
- 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!
- Rambus Launches Industry's First HBM 4 Controller IP: What Are the Technical Details Behind It?
- 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
- Interface corresponding to SNVS_TAMPER3 signal
- 【RPi PICO】Snapshot of the RP2040 chip
- Why does TIM1_CH3N not output PWM after configuring PWM in STM32F103C8T6?
- Please advise on the PinMux code
- Can you recommend a chip that can boost 3.3V to 5V?
- How to quickly gain points?
- [National Technology N32G457 Review] RT_Thread solves the problem that SPI NSS cannot be pulled low
- [Silicon Labs BG22-EK4108A Bluetooth Development Review] 1: IoT product introduction and BLE environment construction
- How does the company evaluate working from home?
- Advanced FPGA Design is a must-read for beginners of FPGA