ADC0832转换数据

/*
--ADC0832转换数据
--Flystone 2008-07
--转载保留此信息
*/

//******************ADC0832.h**************

#ifndef _ADCHG_H
#define _ADCHG_H

#define AdcDo  AD14
#define AdcCs  AD12
#define AdcClk AD15		
#define AdcDi  AD13    							

//--------------------------------------------------------
unsigned char ReadAdc(unsigned char Channel);
//--------------------------------------------------------

#endif /* _ADCHG_H */


//******************ADC0832.C**************

//-------------------------------------------------------------------

void Delay(unsigned char x) 
{
	unsigned char i;

	while(i<x get_num return adccs="0;" adcclks for adcdi="1;" else if char unsigned i channel readadc adcclk="1;Delay(10);" void></x>

你可能感兴趣的:(C++,c,C#)