1.9.2_ADC and Touch Screen_ADC Programming_P

Publisher:真实幻想Latest update time:2021-08-17 Source: eefocusKeywords:ADC Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

Write an ADC test function to test the ADC reading channel 0. It is mainly divided into the following four steps:

  1. Initialize ADC;

  2. Read data;

  3. Displayed on the serial port;

  4. Displayed on LCD;

Among them, the LCD shows that it is to be completed later, and only the first three steps have been completed so far.

insert image description here
insert image description here

It's quite simple, so I won't describe it in detail.

Keywords:ADC Reference address:1.9.2_ADC and Touch Screen_ADC Programming_P

Previous article:1.9.1_ADC and Touch Screen_ADC Hardware Principle_P
Next article:1.9.3_ADC and touch screen_Resistive touch screen hardware principle_P

Recommended ReadingLatest update time:2024-11-15 11:07

20200208 optimized version of STC15 series MCU ADC function library
Reference: STC official website function library Advantages: After initializing any P1 port, the main function only needs to call the ADC_Convert() function in a loop to complete the analog acquisition of all configured ADC ports in a loop. The ADC conversion results are placed in the Dpj_ZongCunChu array for use by o
[Microcontroller]
51 MCU MPX4115 pressure sensor + ADC0832 simulation course program
The microcontroller source program is as follows: #include math.h #include absacc.h #include intrins.h #include reg51.h #define uchar unsigned char #define uint unsigned int #define ulong unsigned long #define BUSY 0x80 //Constant definition             #define DATAPORT P0 sbit Alarm_led_red = P1^6; //Red lig
[Microcontroller]
About the implementation of AD sampling using Stm32 timer + ADC + DMA
Note: This STM32 microcontroller is the STM32F103 series. The ADC of Stm32 has DMA function. This is beyond doubt and is what we use most! However, if we want to sample a signal (such as a pulse signal) at a fixed time (that is, after a period of time, such as 2ms), there are three methods: 1. Use the timer interrupt
[Microcontroller]
Sample and Hold Amplifier
Introduction and Historical Overview The sample-and-hold amplifier, or SHA, is a key component of most data acquisition systems, capturing an analog signal and holding it during some operation, most commonly analog-to-digital conversion. The SHA places very high demands on the associated circuitry, and certain chara
[Analog Electronics]
Sample and Hold Amplifier
DC-DC converter and ADC power supply interface
In the previous article, we discussed various topics about ADC power input; now, let us follow this direction and expand our topic a little. So far, we have discussed various types of ADC power inputs and some methods of driving them. We have focused primarily on using LDOs, but as you can see, this is not always th
[Power Management]
DC-DC converter and ADC power supply interface
Oscilloscope acquisition mode
The oscilloscope acquisition mode determines how the sample points acquired by the oscilloscope from the analog-to-digital converter (ADC) are combined with the waveform points and displayed. The following acquisition modes are the most common: Normal or real-time acquisition mode This is the most basic sampling mod
[Test Measurement]
AD analog-to-digital conversion of single chip microcomputer and ADC0832
In industrial control and intelligent instruments, real-time control and real-time data processing are usually performed by microcomputers. The information processed by the computer is always digital, while the relevant parameters to be controlled or measured are often continuously changing analog quantities, such as t
[Microcontroller]
AD analog-to-digital conversion of single chip microcomputer and ADC0832
【STM32】The basic principles and registers of ADC
STM32F1xx official information: "STM32 Chinese Reference Manual V10" - Chapter 11 Analog/Digital Conversion (ADC) Basic Introduction to ADC Basic Definition of ADC The abbreviation of Analog-to-Digital Converter. It refers to an analog/digital converter or an analog/digital converter. It refers to a device that co
[Microcontroller]
【STM32】The basic principles and registers of ADC
Latest Microcontroller Articles
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号