pic32mx320f064h Microchip Technology Inc., pic32mx320f064h Datasheet - Page 445

no-image

pic32mx320f064h

Manufacturer Part Number
pic32mx320f064h
Description
64/100-pin General Purpose, 32-bit Flash Microcontrollers
Manufacturer
Microchip Technology Inc.
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
pic32mx320f064h-40I/PT
Manufacturer:
Microchip Technology
Quantity:
10 000
Part Number:
pic32mx320f064h-40I/PT
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
Part Number:
pic32mx320f064h-40V/PT
Manufacturer:
Microchip Technology
Quantity:
10 000
Part Number:
pic32mx320f064h-80I/PT
Manufacturer:
Microchip Technology
Quantity:
10 000
Part Number:
pic32mx320f064h-80V/PT
Manufacturer:
Microchip Technology
Quantity:
10 000
Part Number:
pic32mx320f064hT-40I/PT
Manufacturer:
Microchip Technology
Quantity:
10 000
EXAMPLE 22-4:
© 2007 Microchip Technology Inc.
AD1PCFG = 0x0000;
AD1CON1 = 0x2208;
AD1CON2 = 0x0000;
AD1CON3 = 0x0000;
AD1CHS = 0x0000;
AD1CSSL = 0x0000;
IFS1CLR = 2;
// Configure ADC interrupt priority bits (AD1IP<2:0>) here, if
// required. (default priority level is 4)
IEC1SET = 2;
AD1CON1SET = 0x8000;
AD1CON1SET = 0x0002;
DelayNmSec(100);
AD1CON1CLR = 0x0002;
:
:
ADC INITIALIZATION CODE EXAMPLE
/* Ensure the correct sampling time has elapsed before
/* Configure ADC port
/* Configure sample clock source and Conversion Trigger mode.
/* Configure ADC voltage reference
/* Configure ADC conversion clock */
/* Configure input channels,
/* No inputs are scanned.
/*Clear ADC conversion interrupt*/
/* Enable ADC conversion interrupt*/
/* Turn on the ADC module */
/* Start sampling the input */
/* End Sampling and start Conversion*/
/* The DONE bit is set by hardware when the convert sequence
/* The ADIF bit will be set. */
Unsigned Fractional format, Manual conversion trigger,
Manual start of sampling, Simultaneous sampling,
No operation in IDLE mode.
Note: Contents of AD1CSSL are ignored when CSCNA = 0 */
all input pins are analog */
CH0+ input is AN0.
CHO- input is VREFL (AVss)
starting a conversion.*/
is finished. */
VREF from AVDD and AVSS,
Inputs are not scanned,
Interrupt every sample */
and buffer fill modes.
Advance Information
PIC32MX FAMILY
*/
DS61143A-page 443

Related parts for pic32mx320f064h