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

📄 adc42cal.asm

📁 ADUC842 C程序集,包括ADC,DAC,PLL,PWM,WDT等程序.
💻 ASM
字号:
;File: adc42cal.a51
;Author: Eckart Hartmann Date:05/10/2003
 ; Development progress: Adc842.df
;
;AdcCal==========Starts a calibration conversion.
;C Function prototype: char AdcCal(char cType);
;Description of Function: Start a calibration by writing cType to ADCCON3.
;User interface: Set the bits in cType as desired.
;		See data sheet for meaning of individual bits.
;		Call AdcCal() to write cType to ADCCON3.
;		Activates gain callibration (GNCLD = 0).
;		Returns 1.
;Robustness:
;Side effects:
;
NAME ADCCAL
$NOMOD51
 $IC(..kei842.inc) ; Parameter passing registers for Keil .
 $IC(..kei842.dat) ; SFR definition for Keil .
;
public _AdcCal
;
?PR?_AdcCal?ADCCAL	SEGMENT CODE
	RSEG	?PR?_AdcCal?ADCCAL
;
_AdcCal:
	mov	ADCCON3,cP1l	;ADCCON3 = cType;
	anl	ADCCON3,#0bfh	;GNCLD = 0;
  	mov	cp1l,#1		;return 1;
	ret
;
;Function End==========================================================Function End
END

⌨️ 快捷键说明

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