pic32mx320f064h Microchip Technology Inc., pic32mx320f064h Datasheet - Page 441

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-2:
22.4.9
When SSRC<2:0> = 111, the conversion trigger is
under
(AD1CON3<4:0>) select the number of T
cycles between the start of acquisition and the start of
conversion. This trigger option provides the fastest
conversion rates on multiple channels. After the start of
acquisition, the module will count a number of T
clocks specified by the SAMC bits.
EQUATION 22-1:
SAMC must always be programmed for at least one
clock cycle. See Example 22-1 for a code example.
© 2007 Microchip Technology Inc.
{
}
AD1PCFG = 0xFF7F;
AD1CON1 = 0x0004;
AD1CHS = 0x00070000;
AD1CSSL = 0;
AD1CON3 = 0x0002;
AD1CON2 = 0;
AD1CON1SET = 0x8000;
while (1)
DelayNmSec(100);
AD1CON1SET = 0x0002;
while (!(AD1CON1 & 0x0001));// conversion done?
ADCValue = ADC1BUF0;
ADC
CLOCKED CONVERSION TRIGGER
T
SMP
clock
= SAMC<4:0>* T
CONVERTING 1 CHANNEL, AUTOMATIC SAMPLE START, MANUAL
CONVERSION START CODE
CLOCKED CONVERSION
TRIGGER TIME
control.
The
AD
// all PORTB = Digital but RB7 = analog
// ASAM bit = 1 implies acquisition ..
// starts immediately after last
// conversion is done
// Connect RB7/AN7 as CH0 input
// in this example RB7/AN7 is the input
// Sample time manual, Tad = internal 2 Tcy
// turn ADC ON
// repeat continuously
// sample for 100 mS
// start Converting
// yes then get ADC value
// repeat
SAMC
Advance Information
AD
clock
bits
AD
PIC32MX FAMILY
..
DS61143A-page 439

Related parts for pic32mx320f064h