1. Principle of resistive touch screen
2. Resistive touch screen equivalent circuit
2.1 Touch screen idle state
When the touch screen is not pressed, the equivalent circuit is shown in Figure 14.5. S4 and S5 are closed, S1, S2, and S3 are open, that is, YM is grounded, XP is pulled up, XP is used as analog input (for the CPU), YP is used as analog input, and XM is high impedance.
Normally, when the touch screen is not pressed, due to the pull-up resistor, Y_ADC is at a high level. When the x-axis and y-axis are squeezed and contacted, the voltage of Y_ADC becomes a low level because the y-axis of the connecting channel is grounded. This low level can be used as an interrupt trigger signal to notify the CPU of a "Pen Down" event.
2.2 Sampling X_ADC voltage
Sample the X_ADC voltage to obtain the x-coordinate. The equivalent circuit is shown in Figure 14.6.
S1 and S3 are closed, S2, S4, and S5 are open, that is, XP is connected to the power supply, XM is grounded, YP is used as analog input, YM is high impedance, and XP is prohibited from pulling up. At this time, YP, namely X_ADC, is the voltage divider point of the x-axis, and the x-coordinate is obtained after A/D conversion.
2.3 Sampling Y_ADC voltage
Sample the Y_ADC voltage to obtain the y coordinate. The equivalent circuit is shown in Figure 14.7.
S2 and S4 are closed, and S1, S3, and S5 are disconnected, that is, YP is connected to the power supply, YM is grounded, XP is used as the analog input, XM is high impedance, and XP is prohibited from pulling up. At this time, XP, namely Y_ADC, is the voltage divider point of the y-axis, and the y coordinate is obtained after A/D conversion.
Previous article:S3C2440 bare metal --- touch screen _ S3C2440 touch screen interface
Next article:S3C2440 bare metal -------ADC_ADC hardware principle
- Popular Resources
- Popular amplifiers
- Learn ARM development(16)
- Learn ARM development(17)
- Learn ARM development(18)
- Embedded system debugging simulation tool
- A small question that has been bothering me recently has finally been solved~~
- Learn ARM development (1)
- Learn ARM development (2)
- Learn ARM development (4)
- Learn ARM development (6)
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- LED chemical incompatibility test to see which chemicals LEDs can be used with
- Application of ARM9 hardware coprocessor on WinCE embedded motherboard
- What are the key points for selecting rotor flowmeter?
- LM317 high power charger circuit
- A brief analysis of Embest's application and development of embedded medical devices
- Single-phase RC protection circuit
- stm32 PVD programmable voltage monitor
- Introduction and measurement of edge trigger and level trigger of 51 single chip microcomputer
- Improved design of Linux system software shell protection technology
- What to do if the ABB robot protection device stops
- Wi-Fi 8 specification is on the way: 2.4/5/6GHz triple-band operation
- Wi-Fi 8 specification is on the way: 2.4/5/6GHz triple-band operation
- Vietnam's chip packaging and testing business is growing, and supply-side fragmentation is splitting the market
- Vietnam's chip packaging and testing business is growing, and supply-side fragmentation is splitting the market
- Three steps to govern hybrid multicloud environments
- Three steps to govern hybrid multicloud environments
- Microchip Accelerates Real-Time Edge AI Deployment with NVIDIA Holoscan Platform
- Microchip Accelerates Real-Time Edge AI Deployment with NVIDIA Holoscan Platform
- Melexis launches ultra-low power automotive contactless micro-power switch chip
- Melexis launches ultra-low power automotive contactless micro-power switch chip
- MSP340F149 card number reading reference routine
- Summary of comprehensive test lists in various regions
- Use CCS to connect to a running C2000 chip
- A request for help from a newbie
- Wind speed and light irradiance synchronous tester based on MSP430
- Convert gerber file to ad format pcb
- USB Development Encyclopedia (4th Edition)
- Application of high-performance line cards for synchronous networks
- Analysis of AC-coupled op amp circuits
- Let’s chat: Qinheng PD fast charging protocol chip online customization platform is launched, are you interested?