| Electronic Components Datasheet Search |
|
PIC16C781 Datasheet(PDF) 74 Page - Microchip Technology |
|
|
|||||||||||||||||||||||||||||
PIC16C781 Datasheet(HTML) 74 Page - Microchip Technology |
|
74 / 186 page ![]() PIC16C781/782 DS41171A-page 72 Preliminary 2001 Microchip Technology Inc. 9.2 Configuring the ADC Module 9.2.1 CONFIGURING ANALOG PORT PINS The ANSEL and TRISB registers control the operation of the ADC port pins. The port pins to be used as ana- log inputs must have their corresponding TRISB bits set (= 1). The proper ANSEL bits must also be set (ana- log input) to disable the digital input buffer. 9.2.2 CONFIGURING THE REFERENCE VOLTAGES The VCFG<5:4> bits in the ADCON1 register configure the ADC module reference voltage input, ADCREF. The reference input can come from any of the following: • Internal voltage reference (VR) • External comparator C1 reference (VREF1) • DAC output (VDAC) • Analog positive supply (AVDD) If an external reference is chosen for the ADCREF input, the port pin that multiplexes with the incoming external reference must also be configured as an analog input. 9.2.3 SELECTING THE ADC CONVERSION CLOCK The ADC conversion cycle requires 9.5TAD. The source of the ADC conversion clock is software selectable. The four possible options for ADC clock are: • FOSC/2 • FOSC/8 • FOSC/32 • ADRC (clock derived from a dedicated internal RC oscillator) For correct ADC conversion, the ADC conversion clock (TAD) must be selected to ensure a minimum TAD time of 1.6 µsec. Table 9-1 shows the resultant TAD times derived from the device operating frequencies and the ADC clock source selected. TABLE 9-1: TAD vs. DEVICE OPERATING FREQUENCIES: PIC16C781/782 Legend: Shaded cells are outside of recommended range. Note 1: The RC source has a typical TAD time of 4 µs. 2: These values violate the minimum required TAD time. 3: For faster conversion times, the selection of another clock source is recommended. 4: When device frequency is greater than 1 MHz, the RC ADC conversion clock source is recommended for SLEEP operation only. Note 1: The ADC operation is independent of the state of the TRISB or ANSEL bits. These bits must be configured by the firmware prior to initiation of an ADC conversion. 2: When reading the PORTA or PORTB reg- isters, all pins configured as analog input channels will read as a ‘0’. 3: Analog levels on any pin that is defined as a digital input, including AN<7:0>, may cause the input buffer to consume excess supply current. ADC Clock Source (TAD) Device Frequency Operation ADCS1:ADCS0 20 MHz 5 MHz 1.25 MHz 333.33kHz 2 TOSC 00 100 ns(2) 400 ns(2) 1.6 s 6 µs 8 TOSC 01 400 ns 1.6 µs6.4 µs 24 µs(3) 32 TOSC 10 1.6 µs6.4 µs25.6 µs(3) 96 µs(3) RC 11 2 - 6 µs(1,4) 2 - 6 µs(1,4) 2 - 6 µs(1,4) 2 - 6 µs(1) |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |