⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 adc41cfg.asm

📁 ADuC841的详细程序
💻 ASM
字号:
;File: adc41cfg.a51
;Author: Eckart Hartmann Date:05/03/2002
 ; Development progress: Adc841.df

;AdcCfg==========Configure converter.
;C Function prototype: char AdcCfg(char cCfg);
;Description of Function: Configures ADC by writing cCfg to ADCCON1.
;User interface: Set the bits in cCfg as desired.
;		See data sheet for meaning of individual bits.
;		Call AdcCfg() to write cCfg to ADCCON1.
;		Returns 1.
;Robustness:
;Side effects: Stops any conversion in progress.
;
NAME ADCCFG
$NOMOD51
 $IC(..kei841.inc) ; Parameter passing registers for Keil .
 $IC(..kei841.dat) ; SFR definition for Keil .
;
public _AdcCfg

?PR?_AdcCfg?ADCCFG	SEGMENT CODE
	RSEG	?PR?_AdcCfg?ADCCFG

_AdcCfg:
	mov	ADCCON1,cP1l	;Set configuration.
	mov	cP1l,#1
	ret
;
;Function End==========================================================Function End
END

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -