?? adc42bsy.asm
字號:
;File: adc42bsy.a51
;Author: Eckart Hartmann Date:05/10/2003
; Development progress: Adc842.df
;
;AdcBsy==========Get ADC status.
;C Function prototype: char AdcRdy(void);
;Description of Function: Gets the status of the ADC.
;User interface: Call AdcRdy().
; Returns 0 if busy else 1.
;Robustness:
;Side effects: Overwrites a, P, c.
;
NAME ADCBSY
$NOMOD51
$IC(..kei842.inc) ; Parameter passing registers for Keil .
$IC(..kei842.dat) ; SFR definition for Keil .
;
public AdcBsy
;
?PR?AdcBsy?ADCBSY SEGMENT CODE
RSEG ?PR?AdcBsy?ADCBSY
;
AdcBsy: mov a,ADCCON3 ;cP1l = ADCCON3.7.
rlc a
clr a
rlc a
mov cP1l,a
ret
;
;Function End==========================================================Function End
END
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -