/* Songhan SN8P2711 2722 ADC initialization program and application instance */INIT_ADC: MOVA, #0XB2 // start the ADC circuit to enable AIN channel B0MOVADM, AMOVA, # 0XF0B0MOVADR,; fad = 1/2 Fcpu sets the ADC conversion rate; MOVA, # 0X1C for a pure analog input port; P4.2 3 4 for a simulated AD port B0MOVP4CON, a ret // --- application instance -----//*********
); determines whether the adswitch is over.Ret = adcdat0 0x3ff;, the value after normal ADC conversion.
That's it. It's easy? Okay. You can only say that.
Then, makefile:
obj-m :=adc.o
Then create a makemod. The Code is as follows:
make -C /home/eastmoon/work/linux2.6.28/ M=`pwd` modules
Then, you only need source makemod to compile it into buzzer. Ko.
OK, the driver is like this, and then the application
#include
Then makefile:
CC =
1. Normal converson Mode)
The Normal conversion mode (auto_pst = 0, xy_pst = 0) is used for general ADC conversion, such as measuring the battery voltage through ADC.
2. Independent x/y position conversion mode (separate x/y position Conversion Mode)
The independent X-axis/Y-axis coordinate conversion mode includes the x-axis mode and Y-axis mode. To obtain the X and Y coordinates, you must first coordinate
From: http://bbs.ednchina.com/BLOG_ARTICLE_225912.HTM
Each ADC module of stm32 can switch to different input channels and perform conversion through an internal analog multi-channel switch. Stm32 is particularly added to multiple group conversion modes. After the program is configured, It can automatically sample and convert multiple analog channels one by one.
There are two ways to divide the conversion group: rule Channel group and injection Chan
[Csharp]/*************************************** **************************** Program name: Mega_ADK ADC** Parameter count: None** Function: Send the voltage value (mv) collected by AD through the serial port)** Note: The target board is Maga adk and the mcu is ATmega 2560.** Author: Zhao Lulu** Version: v1.0** Modification time: 2012.8.17**************************************** **************************/# Define adPin A0Void setup (){Serial. begin (
1. Click the Home button in the lower left corner of the screen;
2. Find "Resource management" in the application;
3. Click to open Resource management, you can see the local disk and mobile disk;
4. We need to find the
In the application, find "settings";
2. Click on the settings, you can see Bluetooth, the following figure:
3. If Bluetooth is off, need to slide, turn on Bluetooth, and then automatically search the surrounding Bluetooth devices;
Method One: Right mouse button exit
Right click on the taskbar app icon, the left-hand list appears, select "Exit Application."
Method Two: Gesture Long press exit
Long press taskbar app icon, appear on the left list, select
The process of adding a load complete is:Configure SLB server as the so-called real server, the backend real service hostConfigure SLB Service-group to define a service group that contains which real server hostsConfigure SLB Virtual-server, virtual
/*****************************************//by Unreal Code//name: Read the on-chip temperature and through the serial port Display//Description: Take on-chip temperature sensor for the ad source, through the serial port on the PC display. Experiment
#ifndef __ADC_H__#define __ADC_H__#include void rt_hw_adc_init(void);#endif
# Include # include void construct (void) {ADC_InitTypeDef ADC_InitStructure; using GPIO_InitStructure; using (encoding, ENABLE); Using (encoding, ENABLE); Using =
After reading this code, I finally understood what the rule multi-channel conversion is, and how it is implemented as a whole. Code:
/*************************************** ***************************************** Function name: Main*
components, intelligent service configurations, simple business models, and high-performance service systems. And for the first time with Cisco ACI cooperation, a bit and Gartner "echoed" meaning.
Citrix in the ADC market progress is obvious, from the overall revenue point of view, Si Jie is the world's second largest ADC suppliers. The company has a portfolio of experienced global channel partners and is
supplier to solve the problem, and the customer may not be willing to cooperate.2. aflex scriptIn this way, the interception of the DNS request packet, all the response on www.abc.com domain name in the public IP address with the Intranet IP address, so that the direct implementation of the same functionality as the DNS-MAP. The advantage is that you do not need to cooperate with the user. The disadvantage is that the device needs to monitor all the DNS packages, which affects the performance o
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.