ZigBee Tour (vi): Several important CC2430 basic experiments--ADC Single sampling
first, the connecting link
In wireless sensor networks, it is important to convert the analog value of the sensor to digital to facilitate transmission and processing. ADC (Analog-to-digital Converter) is used to accomplish this conversion.
In the previous section, we introduced the serial communication between CC2430 and PC
The 10-bit or 12-bit CMOS analog to digital converter (ADC) comprises of 10-channel analog inputs. It convertsThe analog input signal into 10-bit or 12-bit binary digital codes at a maximum conversion rate of 1 MSPs5 MHz A/D converter clock. A/D converter operates with On-Chip sample-and-hold function. ADC supports lowPower mode.Touch screen interface can control input pads (XP, XM, YP, and ym) to obtain x/
This article has been presented to: http://bibber.blog.sohu.com/162815791.htmlHow many bits is the ADC?12 GuestsHow many ADCs are there?One, 2 or more to 3, depending on the device, and each with multiple channels.About the channel:10.3.3 Channel SelectionThere are 16 multichannel channels. Transformations can be divided into two groups: regular and injected. A series of transformations in any order on any number of channels constitutes a group conver
First of all talk about the problem, feel this code Compose Studio is rather strange#include "Tft\tft_driver.h"File not found, unable to openNo include can use functions only under the same projectEach time you run the program results are differentAn example of using an ADC is given below:ADC Initialization function:void Configureadctempsensor (void) {/ * Configure ADC Temp Sensor Channel */ ADC10CTL1 = i
Assuming an existing set of Sigma-delta ADC output sequences, two methods for calculating the corresponding Snr are described below. The CIW window command where data is exported by cadence is: ocprint (? Output "Export directory/output file name" V ("/Saved circuit node"? Resultsdir "cadence Emulation Data Catalog/PSF"? Result "" Tran-tran ")? From the start time to the cut-off time? Step Step).Method One:The first method is to use the He Lenian "ana
The 1.stm32 uses a successive approximation analog digital approach, so what is successive approximation?The successive approximation is similar to the dichotomy, taking the 8-bit data as an example; When an analog amount is entered, the first half of the 8 digits, i.e. 1000 0000, is compared with the analog value, then becomes 1, less than the next bit; set the next one to 1, then compare, greater than 0, and less than the same. Until the two numbers are not large, stop comparing and output the
/* 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 (
On a, with GPIO direct power to the LED, with high and low level for switch, not reliable. A GPIO is a signal, not a power supply. Moreover, a GPIO can only give poor 5mA or so, take more will burn (I did not burn do not know if it is really going
BBB Board Eighth Lesson: building an Eclipse programming environmentRecently built a programming environment, feel very convenient, share to everyone. In addition to the BBB Board Remote Desktop directly write shell script or C program, through the
Lesson 7 on BBB Board: gpio Programming Control
In the first class, we made a simple gpio port output high and low level output through the IO function to enable and disable the control of an LED indicator. This section uses the complete C ++
Bbb board Lesson 5: shell script programming Experiment
In Class 1, we test and control the high/low output of the gpio port through simple echo commands to enable and disable the control of an LED indicator. This section uses shell script
Bbb board Lesson 3: debian7.5 system installation and remote control of BBB Board
Because the BBB board system is Debian 7.4, it is said that the Debian system can achieve seamless connection between many BBB boards and better learn and control
NODEMCU's documentation finally found that ESP8266 's GPIO 2 is indeed a PIN 4,gpio 0 is pin 3. Https://github.com/nodemcu/nodemcu-firmware/wiki/nodemcu_api_cn In other words, this API is not for the Earth people to see. According to the
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.