SW006010 Microchip Technology, SW006010 Datasheet - Page 17

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
 2002 Microchip Technology Inc.
OpenADC
Device:
Function:
Include:
Prototype:
Arguments:
PIC17C756
Configures the A/D convertor.
adc16.h
void OpenADC (static unsigned char config, static
unsigned char channel);
config
The value of config can be a combination of the following values
(defined in
A/D Interrupts
A/D clock source
A/D result justification
A/D voltage reference source
A/D analog/digital I/O configuration
channel
The value of channel can be one of the following values
(defined in
ADC_INT_ON
ADC_INT_OFF
ADC_FOSC_8
ADC_FOSC_32
ADC_FOSC_64
ADC_FOSC_RC
ADC_RIGHT_JUST
ADC_LEFT_JUST
ADC_VREF_EXT
ADC_VREF_INT
ADC_ALL_ANALOGAll channels analog
ADC_ALL_DIGITAL All channels digital
ADC_11ANA_1DIG 11 analog, 1 digital
ADC_10ANA_2DIG 10 analog, 2 digital
ADC_9ANA_3DIG 9 analog, 3 digital
ADC_8ANA_4DIG 8 analog, 4 digital
ADC_6ANA_6DIG 6 analog, 6 digital
ADC_4ANA_8DIG 4 analog, 8 digital
ADC_CH0
ADC_CH1
ADC_CH2
ADC_CH3
ADC_CH4
ADC_CH5
ADC_CH6
ADC_CH7
ADC_CH8
ADC_CH9
ADC_CH10
ADC_CH11
Hardware Peripheral Library
adc16.h
adc16.h
):
):
Interrupts ON
Interrupts OFF
F
F
F
Internal RC Oscillator
Vref from I/O pins
Vref from AVdd pin
Channel 0
Channel 1
Channel 2
Channel 3
Channel 4
Channel 5
Channel 6
Channel 7
Channel 8
Channel 9
Channel 10
Channel 11
OSC
OSC
OSC
/8
/32
/64
apRNOVS^-page 13

Related parts for SW006010