SW006010 Microchip Technology, SW006010 Datasheet - Page 16

no-image

SW006010

Manufacturer Part Number
SW006010
Description
MPLAB 17C SOFTWARE
Manufacturer
Microchip Technology
Datasheets

Specifications of SW006010

Tool Function
Compiler
Tool Type
Compiler
Processor Series
PIC17C
Lead Free Status / RoHS Status
Not applicable / Not applicable
For Use With/related Products
MPLAB®
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
MPLAB
2.3
apRNOVS^-page 12
A/D CONVERTER FUNCTIONS
C17 C Compiler Libraries
This section contains a list of individual functions and an example of use of the
functions in this section. Functions may be implemented as macros.
2.3.1
BusyADC
Device:
Function:
Include:
Prototype:
Arguments:
Remarks:
Return Value:
File Name:
Code Example:
CloseADC
Device:
Function:
Include:
Prototype:
Arguments:
Remarks:
Return Value:
File Name:
Code Example:
ConvertADC
Device:
Function:
Include:
Prototype:
Arguments:
Remarks:
Return Value:
File Name:
Code Example:
Function Descriptions
PIC17C756
Returns the value of the
adc16.h
char BusyADC (void);
None
This function returns the value of the
register. If the value is equal to 1, then the A/D is busy
converting. If the value is equal to 0, then the A/D is done
converting.
This function returns a char with value either 0 (done) or 1(busy).
adcbusy.c
while (BusyACD());
PIC17C756
This function disables the A/D convertor.
adc16.h
void CloseADC (void);
None
This function first disables the A/D convertor by clearing the
bit in the
clearing the
None
adcclose.c
CloseADC
PIC17C756
Starts an A/D conversion by setting the
register.
adc16.h
void ConvertADC (void);
None
This function sets the
None
adcconv.c
ConvertADC();
ADCON0
();
ADIE
register. It then disables the A/D interrupt by
bit in the
GO
GO
bit in the
PIE2
bit in the
register.
ADCON0
ADCON0
GO
 2002 Microchip Technology Inc.
GO
bit in the
register.
bit in the
register.
ADCON0
ADCON0
ADON

Related parts for SW006010