SW006010 Microchip Technology, SW006010 Datasheet - Page 18

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
apRNOVS^-page 14
C17 C Compiler Libraries
OpenADC (Continued)
Remarks:
Return Value:
File Name:
Code Example:
ReadADC
Device:
Function:
Include:
Prototype:
Arguments:
Remarks:
Return Value:
File Name:
Code Example:
SetChanADC
Device:
Function:
Include:
Prototype:
Arguments:
This function resets the A/D related Special Function Registers to
the POR state and then configures the clock, interrupts,
justification, voltage reference source, number of analog/ digital
I/Os and current channel.
None
adcopen.c
OpenADC(ADC_INT_OFF&ADC_FOSC_32&
PIC17C756
Reads the result of an A/D conversion.
adc16.h
int ReadADC (void);
None
This function reads the 16-bit result of an A/D conversion.
This function returns the 16-bit signed result of the A/D
conversion. If the
always right justified leaving the MSbs cleared. If the
cleared, then the result is left justified where the LSbs are
cleared.
adcread.c
int result;
result = ReadADC();
PIC17C756
Selects a specific A/D channel.
adc16.h
void SetChanADC (static unsigned char channel);
channel
The value of channel can be one of the following values
(defined in
ADC_CH0
ADC_CH1
ADC_CH2
ADC_CH3
ADC_CH4
ADC_CH5
ADC_CH6
ADC_CH7
ADC_CH8
ADC_CH9
ADC_CH10
ADC_CH11
ADC_RIGHT_JUST&ADC_VREF_INT&
ADC_ALL_ANALOG,ADC_CH0);
adc16.h
ADFM
):
bit in
Channel 0
Channel 1
Channel 2
Channel 3
Channel 4
Channel 5
Channel 6
Channel 7
Channel 8
Channel 9
Channel 10
Channel 11
ADCON1
is set, then the result is
 2002 Microchip Technology Inc.
ADFM
bit is

Related parts for SW006010