#include unsigned char code table[]={0x3f,0x06,0x5b,0x4f,0x66, 0x6d,0x7d,0x07,0x7f,0x6f}; unsig…
计数型ADC 源代码
汇集 计数型ADC 相关的电路原理图、PCB工程文件、单片机/FPGA源代码、数据手册与应用设计方案。
/****************************************************** ** 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…
#define ADC0 0 #define ADC1 1 #define CHANNEL ADMUX&0x1F extern int pressure_temp; extern int protect_temp; extern UNS8 c…
#define ADC0 0 #define ADC1 1 #define CHANNEL ADMUX&0x1F extern int pressure_temp; extern int protect_temp; extern UNS8 c…
#include #include #include "stdtypes.h" #include "adc.h" #define ADC_END ADCSRA&0x10 int adc0_value; int adc1_val…