📄 pic18_adc.lst
字号:
000142 d7fb BRA 0x13a
000144 ecaa CALL 0x154,0x0 result = ReadADC(); // Read result D:\pic18_lib\pic18_adc\pic18_adc.c
000146 f000
000148 cff3 MOVFF 0xff3,0x8a
00014a f08a
00014c cff4 MOVFF 0xff4,0x8b
00014e f08b
//CloseADC(); // Disable A/D converter D:\pic18_lib\pic18_adc\pic18_adc.c
D:\pic18_lib\pic18_adc\pic18_adc.c
} D:\pic18_lib\pic18_adc\pic18_adc.c
D:\pic18_lib\pic18_adc\pic18_adc.c
000152 0012 RETURN 0x0 } D:\pic18_lib\pic18_adc\pic18_adc.c
/* $Id: adcbusy.c,v 1.1 2003/12/09 22:52:09 GrosbaJ Exp $ */ C:\mcc18\src\TRADIT~1\pmc\ADC\adcbusy.c
#include <p18cxxx.h> C:\mcc18\src\TRADIT~1\pmc\ADC\adcbusy.c
#include <adc.h> C:\mcc18\src\TRADIT~1\pmc\ADC\adcbusy.c
C:\mcc18\src\TRADIT~1\pmc\ADC\adcbusy.c
/**************************************************************** C:\mcc18\src\TRADIT~1\pmc\ADC\adcbusy.c
* Function Name: BusyADC * C:\mcc18\src\TRADIT~1\pmc\ADC\adcbusy.c
* Return Value: char: 1 - A/D busy, 0 - Done converting * C:\mcc18\src\TRADIT~1\pmc\ADC\adcbusy.c
* Parameters: void * C:\mcc18\src\TRADIT~1\pmc\ADC\adcbusy.c
* Description: This routine checks the GO bit to see if * C:\mcc18\src\TRADIT~1\pmc\ADC\adcbusy.c
* the A/D conversion is done. * C:\mcc18\src\TRADIT~1\pmc\ADC\adcbusy.c
****************************************************************/ C:\mcc18\src\TRADIT~1\pmc\ADC\adcbusy.c
char BusyADC(void) C:\mcc18\src\TRADIT~1\pmc\ADC\adcbusy.c
{ C:\mcc18\src\TRADIT~1\pmc\ADC\adcbusy.c
/* If the GO bit is set then A/D is busy converting C:\mcc18\src\TRADIT~1\pmc\ADC\adcbusy.c
* Otherwise A/D is done converting C:\mcc18\src\TRADIT~1\pmc\ADC\adcbusy.c
*/ C:\mcc18\src\TRADIT~1\pmc\ADC\adcbusy.c
0001ec 50c2 MOVF 0xc2,0x0,0x0 return(ADCON0bits.GO); C:\mcc18\src\TRADIT~1\pmc\ADC\adcbusy.c
0001ee 0b04 ANDLW 0x4
0001f0 e001 BZ 0x1f4
0001f2 0e01 MOVLW 0x1
C:\mcc18\src\TRADIT~1\pmc\ADC\adcbusy.c
0001f4 0012 RETURN 0x0 } C:\mcc18\src\TRADIT~1\pmc\ADC\adcbusy.c
LIST P=18F452 C:\MCC18\SRC\TRADIT~1\PROC\p18f452.asm
LIST C:\MCC18\SRC\TRADIT~1\PROC\p18f452.asm
END C:\MCC18\SRC\TRADIT~1\PROC\p18f452.asm
/* $Id: adcconv.c,v 1.1 2003/12/09 22:52:09 GrosbaJ Exp $ */ C:\mcc18\src\TRADIT~1\pmc\ADC\adcconv.c
#include <p18cxxx.h> C:\mcc18\src\TRADIT~1\pmc\ADC\adcconv.c
#include <adc.h> C:\mcc18\src\TRADIT~1\pmc\ADC\adcconv.c
C:\mcc18\src\TRADIT~1\pmc\ADC\adcconv.c
/******************************************************************** C:\mcc18\src\TRADIT~1\pmc\ADC\adcconv.c
* Function Name: ConvertADC * C:\mcc18\src\TRADIT~1\pmc\ADC\adcconv.c
* Return Value: void * C:\mcc18\src\TRADIT~1\pmc\ADC\adcconv.c
* Parameters: void * C:\mcc18\src\TRADIT~1\pmc\ADC\adcconv.c
* Description: This routine starts an A/D conversion by * C:\mcc18\src\TRADIT~1\pmc\ADC\adcconv.c
* setting the GO bit. * C:\mcc18\src\TRADIT~1\pmc\ADC\adcconv.c
********************************************************************/ C:\mcc18\src\TRADIT~1\pmc\ADC\adcconv.c
void ConvertADC(void) C:\mcc18\src\TRADIT~1\pmc\ADC\adcconv.c
{ C:\mcc18\src\TRADIT~1\pmc\ADC\adcconv.c
0001f6 84c2 BSF 0xc2,0x2,0x0 ADCON0bits.GO = 1; // Set the GO bit to start a conversion C:\mcc18\src\TRADIT~1\pmc\ADC\adcconv.c
0001f8 0012 RETURN 0x0 } C:\mcc18\src\TRADIT~1\pmc\ADC\adcconv.c
#include "p18cxxx.inc" C:\MCC18\SRC\TRADIT~1\DELAYS\d10tcyx.asm
LIST C:\MCC18\MPASM\p18cxxx.inc
; P18CXXX.INC Standard Header File, Version 1.00 Microchip Technology, Inc. C:\MCC18\MPASM\p18cxxx.inc
LIST C:\MCC18\MPASM\P18C452.INC
; P18C452.INC Standard Header File, Version 0.12 Microchip Technology, Inc. C:\MCC18\MPASM\P18C452.INC
LIST C:\MCC18\MPASM\P18C452.INC
ENDIF C:\MCC18\MPASM\p18cxxx.inc
IFDEF __18C242 C:\MCC18\MPASM\p18cxxx.inc
INCLUDE <P18C242.INC> C:\MCC18\MPASM\p18cxxx.inc
ENDIF C:\MCC18\MPASM\p18cxxx.inc
IFDEF __18F242 C:\MCC18\MPASM\p18cxxx.inc
INCLUDE <P18F242.INC> C:\MCC18\MPASM\p18cxxx.inc
ENDIF C:\MCC18\MPASM\p18cxxx.inc
IFDEF __18F248 C:\MCC18\MPASM\p18cxxx.inc
INCLUDE <P18F248.INC> C:\MCC18\MPASM\p18cxxx.inc
ENDIF C:\MCC18\MPASM\p18cxxx.inc
IFDEF __18C252 C:\MCC18\MPASM\p18cxxx.inc
INCLUDE <P18C252.INC> C:\MCC18\MPASM\p18cxxx.inc
ENDIF C:\MCC18\MPASM\p18cxxx.inc
IFDEF __18F252 C:\MCC18\MPASM\p18cxxx.inc
INCLUDE <P18F252.INC> C:\MCC18\MPASM\p18cxxx.inc
ENDIF C:\MCC18\MPASM\p18cxxx.inc
IFDEF __18F258 C:\MCC18\MPASM\p18cxxx.inc
INCLUDE <P18F258.INC> C:\MCC18\MPASM\p18cxxx.inc
ENDIF C:\MCC18\MPASM\p18cxxx.inc
IFDEF __18C442 C:\MCC18\MPASM\p18cxxx.inc
INCLUDE <P18C442.INC> C:\MCC18\MPASM\p18cxxx.inc
ENDIF C:\MCC18\MPASM\p18cxxx.inc
IFDEF __18F442 C:\MCC18\MPASM\p18cxxx.inc
INCLUDE <P18F442.INC> C:\MCC18\MPASM\p18cxxx.inc
ENDIF C:\MCC18\MPASM\p18cxxx.inc
IFDEF __18F448 C:\MCC18\MPASM\p18cxxx.inc
INCLUDE <P18F448.INC> C:\MCC18\MPASM\p18cxxx.inc
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -