adc42cfg.asm

来自「ADUC842 C程序集,包括ADC,DAC,PLL,PWM,WDT等程序.」· 汇编 代码 · 共 33 行

ASM
33
字号
;File: adc42cfg.a51
;Author: Eckart Hartmann Date:17/10/2003
 ; Development progress: Adc842.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(..kei842.inc) ; Parameter passing registers for Keil .
 $IC(..kei842.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 + =
减小字号Ctrl + -
显示快捷键?