I. background:
Although mod_fifo and mod_callcenter can be used as call center applications, it is difficult to customize these two modules in the application, here I use Lua to implement the 5-way Customer Service (1000-1004), a call center number: 9958 ADC implementation solution, which is recorded here.
Ii. flowchart:
Iii. Specific settings:
1. Add/usr/local/freeswitch/CONF/autoload_confilgs/modules. conf. XML to the mod_lua module, which is loade
EFM32 currently supports two ADC modes: single mode and Scan mode.
Single mode is a Single-channel conversion mode, while Scan is a multi-channel conversion mode.
In Single mode, because it is a Single-channel application, you will encounter the problem of how to switch the ADC channel.
The following is a routine for switching the ADC channel in
EmbeddedLinux Bare Metal Development (14)--ADC First,Introduction to AD conversion ad conversions are analog -to-digital conversions , is to convert analog signals into digital signals. A/D converters are used to convert analog quantities into digital quantities through a certain circuit. Analog can be voltage, current and other electrical signals, can also be pressure, temperature, humidity, displacement, sound and other non-electrical signals. Befo
Generally, the ADC must be used together with the DMA. Here, the ADC application is simply configured with the library to continuously scan the ADC.
First, configure the clock of gpio and ADC:
Adc_inittypedef adc_initstructure;Gpio_inittypedef gpio_initstructure;
Rcc_apb2periphclockcmd (rcc_apb2periph_adc1, enable );
#include "stm32_lib/inc/stm32f0xx_rcc.h" #include "stm32_lib/inc/stm32f0xx_adc.h" #include "stm32_lib/inc/stm32f0xx
_gpio.h "int main (void) {//Clock configuration rcc_ahbperiphclockcmd (Rcc_ahbperiph_gpioa, ENABLE);
Rcc_apb2periphclockcmd (rcc_apb2periph_adc1,enable);
ADC IO configuration, where the PA0 port is defined as the ADC ports Gpio_inittypedef PORT_ADC; PORT_ADC.
Gpio_pin=gpio_pin_0; PORT_ADC
Normal through the file system access to the value of Ain serial port, you can use Fread and other file IO read/sys/bus/iio/devices/iio:device0/in_voltage*_raw content.
But this requires high frequency access to the ADC is very inefficient, the data needs to be copied from the disk to the kernel process space, and then copied to the user process space, consuming unnecessary resources.
This problem can be solved by memory innuendo, Mmap can realize the
standards; supporting various computer network devices and telephone systems; modular, open, flexible and scalable; multi-mode optical fiber trunk is used for vertical data, three types of log cables are used for vertical voice trunk, and single-mode optical fiber trunk cables are used for buildings. Data Communication Optical terminal and optical fiber distribution frame, and voice distribution frame are used to connect PABX and telephone bureaus or switchboard) the remote module is deployed i
The figure shows that the analog ADC has two functions: Touch Screen and general ADC. Int_tc and int_adc can be generated respectively. The ADC module has a total of eight channels for analog signal input, ain0, ain1, ain2, ain3, ym, YP, XM, and XP are selected through an 8-way analog switch MUX. Set the value of the pre-divider in the control register (adccon) t
#ifndef __adc1_h_#define __adc1_h_#include "Common.h"#include "Delay.h"void Adc_init(u8 ch,U8 div);U16 Adc_cover(u8 ch);#endif#include "Adc1.h"void Adc_init(u8 ch,u8 div)//MAX clock must not be greater than 12.4M{Opening the ADC and IO port clocksLPC_SC, Pconp |= (1) | ( 1);Switch (ch){ case 0:Lpc_iocon-p0_23 = 0x00;Lpc_iocon, p0_23 |= (10) | ( 18) | (1); No filter analog ADC open-drain Break ; Case 1:Lpc_i
There are projects that need to use Silabs's c8051f850. In fact, the most important is to fancy the price, as well as its working temperature. So we need to start learning this film. The simplest ADC routines are as follows:Initializes the system clock, initializes the IO, and so on. The P1.0 is led output and the P1.2 is the ADC input. The ADC uses VDD and GND a
I use the ADC081SD chip, Cpol:cs is pulled to low power sclk is high, Cpol for 1,cs was pulled to low power sclk for 0 o'clock, Cpol for 0;The Cpha:cs is pulled to the low level after the first clock edge is 0, and the second clock along the acquisition data is 1.When the corresponding acquisition data bits of the clock rise are stable, the rising edge is collected, and the clock falling along the corresponding acquisition data bits are collected along the falling edge.As shown in the SCLK, the
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 Channel group. Generally, up to 16 channels can be arranged
First Glimpse of ZigBeeTo add a smoke sensor module to the ZigBee network, a cc2530 ADC is required to sample the analog signal output from the sensor. The following is a procedure for implementing an external voltage acquisition using an ADC of the CC2530.The following is the configuration of the ADC:1#include 2#include"adc.h"3#include"uart.h"4#include 5#include
The entire concept of Software Defined Network (SDN) is about abstracting hardware to enable new types of network streams. Although many early discussions on SDN are concentrated on routers and switches, SDN does not stop here. SDN has many functions, including helping WCO and application delivery controller (ADC) businesses.
Recently, network vendor Riverbed has joined the web content optimization market with its Stingray product series, which also i
The friendly arms mini6410 Android development and learning note source code is synchronously updated. Please use the GIT tool for synchronization. For more information about git tools, see: http://progit.org/book/zh/
git clone https://code.google.com/p/androiddemoformini6410/
Adcactivity. Java
Package COM. mini6410.adc; import Java. util. timer; import Java. util. timertask; import android. app. activity; import android. OS. bundle; import androi
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.