adc0834模块的c51程序源文件(The C51 program source file for the adc0834 module).docVIP

adc0834模块的c51程序源文件(The C51 program source file for the adc0834 module).doc

  1. 1、本文档被系统程序自动判定探测到侵权嫌疑,本站暂时做下架处理。
  2. 2、如果您确认为侵权,可联系本站左侧在线QQ客服请求删除。我们会保证在24小时内做出处理,应急电话:400-050-0827。
  3. 3、此文档由网友上传,因疑似侵权的原因,本站不提供该文档下载,只提供部分内容试读。如果您是出版社/作者,看到后可认领文档,您也可以联系本站进行批量认领。
查看更多
adc0834模块的c51程序源文件(The C51 program source file for the adc0834 module)

adc0834模块的c51程序源文件(The C51 program source file for the adc0834 module) ADC0832-2 application Author: anonymous date: 2010 03 month 27 day [source: unknown font: Small] I want to comment (0) -------------------------------------------------------------------------------- Core prompt: //==============================================================================//2005-03-28... 2005-03-29//ADC0834 module C51 source file //File Name=ADC083X.c//==============================================================================#include include # //============================================================================== //2005-03-28... 2005-03-29 The C51 program source file for the //ADC0834 module //File Name=ADC083X.c //============================================================================== #include #include DELAY_S.h #include ADC083X.h A predefined global variable external / //******************************************************* / / number: / / HD_ADC083X_S01 / / function: / / port initialization / / input: / / no / / output: / / no //******************************************************** Void adc083x_init (void) { SET_ADC083X_CS; SET_ADC083X_DO; CLR_ADC083X_CLK; #if TYPE_VAL =ADC0832 SET_ADC083X_DI; #endif #if TYPE_VAL =ADC0834 SET_ADC083X_SARS; #endif } //******************************************************* / / number: / / HD_ADC083X_S02 / / function: Read data byte / / AD / / input: / / Chanel channel number and single, double end set, its value is a value of type restrictions! The effective value is select / / take a minimum of 4 and 3 respectively, 2 bit or not used / / specific values found in the PDF document! / / output: / / AD conversion results byte //******************************************************** Uchar adc083x_do_one_change (uchar Chanel) { Uchar data ad_val; Uchar data i; / / initialization before conversion SET_ADC083X_CS; CLR_ADC083X_CLK; SET_ADC083X_DO; CLR_ADC083X_CS; //SARS pins are not necessary when not in use to save pin r

文档评论(0)

jgx3536 + 关注
实名认证
文档贡献者

该用户很懒,什么也没介绍

版权声明书
用户编号:6111134150000003

1亿VIP精品文档

相关文档