Interface circuit between STM32 and four-wire resistive touch screen
Source: InternetPublisher:两手空空 Keywords: Power supply other power circuits Updated: 2021/11/28
As shown in the figure below, the STM32F103F103 is directly connected to the four-wire resistive touch screen through its own I/O port to implement the touch screen controller function. Among them, PA8, PA9, PA10, and PA11 are used as the control terminals of four triodes respectively. By controlling the on and off of the triodes, the Y+, Y-, X+, and X- of the four-wire touch screen are controlled. PA1 and PA2 are two A/D conversion channels. , connecting Y+ and X+ respectively for calculating the X and Y coordinates of the touch point. The internal interrupt of the PA3 connection is used to detect whether there is a touch action on the touch screen. When the touch screen is running normally, let PA8, PA9 and PA11 output 0 and PA10=1, that is, only let VT2 be turned on. When there is a touch action, D1 is turned on to give an interrupt signal to PA3. After receiving the interrupt request, STM32F103 immediately sets PA8=1 and turns on VT1, so that voltage is added in the Y+ and Y- directions and the A/D conversion is started at the same time. Channel PA2, calculate the Y coordinate of the touch point by inputting the X+ upper voltage, and then similarly set PA8 and PA10 to 0, PA9, PA11 as 1, start the A/D conversion channel PA1, and calculate the touch point X by inputting the Y+ upper voltage. coordinate of.
- Analysis of the working principle of switching regulator
- Op amp power supply decoupling bypass measures
- Isolated two-wire current loop circuit (XTR101, ISO100)
- Offline 8w LED Flyback Power Supply with PFC using NCP1014
- LED Driver ZD1680
- Miniature polarity reversal power supply using MAX1721
- CNC regulated power supply production
- Car power 1.5V-12V six-speed converter
- USB power socket using the car battery
- MAX1811 Lithium Battery Charger Production
- Determining the prerequisites for successful circuit board design
- About star-delta step-down start plc ladder diagram circuit diagram
- Photosensitive automatic dimming desk lamp circuit and principle
- Humidity detection circuit schematic diagram
- Two-channel low-power amplifier circuit
- Heart rate detection circuit
- How to use "virtual short" and "virtual break" to analyze op amp circuits
- Unity gain four input audio mixer
- Dual tone generator for audio
- Simple mode logarithmic amplifier circuit of LOG100