/******************************************/ /* 广州天河双龙电子公司 */ /* http://www.sl.com.cn */ /*…
Sigma-delta+ADC 源代码
汇集 Sigma-delta+ADC 相关的电路原理图、PCB工程文件、单片机/FPGA源代码、数据手册与应用设计方案。
//********************************************* //ADC转换 //MCU:AVR_MEGA8L ,晶振频率:8.0 MHz //ADC通道:ADC3,PA3,采用软件方式 //制作人:平顶山工学…
/*ADC采样函数,采样第7通道信号,采样分辨率256*/ unsigned char get_ad(void) { unsigned char i; ADMUX = 0x67; /*基准AVCC、左对齐、通道7*/ ADCSRA …
#include unsigned char code table[]={0x3f,0x06,0x5b,0x4f,0x66, 0x6d,0x7d,0x07,0x7f,0x6f}; unsig…
/****************************************************** ** ADC转换初始化 ** *********************…
/****************************************************** ** ADC转换初始化 ** *********************…
#include "ADC.h" const unsigned char ADChannel[]={0,1,4,5,0xff}; unsigned int AdValue[8]; unsigned char AdP=0; unsigned char A…
#include "adc.h" //设置门限电压函数 void Set_Threshold( unsigned char threshold ) { SFRPAGE = ADC2_PAGE; threshold = t…
#include //【ADC2接口函数】 void Set_Threshold( unsigned char threshold ); unsigned char Acquire_Data( void );
#include "adc.h" //设置门限电压函数 void Set_Threshold( unsigned char threshold ) { SFRPAGE = ADC2_PAGE; ADC2GT = thre…