| Electronic Components Datasheet Search |
|
PIC16C781 Datasheet(PDF) 75 Page - Microchip Technology |
|
|
|||||||||||||||||||||||||||||
PIC16C781 Datasheet(HTML) 75 Page - Microchip Technology |
|
75 / 186 page ![]() 2001 Microchip Technology Inc. Preliminary DS41171A-page 73 PIC16C781/782 9.2.4 INITIATING A CONVERSION The Analog-to-Digital conversion is initiated by setting the GO/DONE bit in ADCON0 register. When the con- version is complete, the ADC module: • Clears the GO/DONE bit • Sets the ADIF flag in the PIR1 register • Generates an interrupt if the ADIE, PEIE, and GIE bits are set. If the conversion must be aborted, the GO/DONE bit can be cleared in software. The ADRES register will not be updated with the partially completed ADC conver- sion sample. Instead, the ADRES will contain the value from the last completed conversion. After an aborted conversion, a 2TAD delay is required before another acquisition/conversion can be initiated. Following the delay, an input acquisition is automatically started on the selected channel. 9.3 ADC Acquisition Requirements For the ADC module to meet its specified accuracy, the internal Sample-and-Hold capacitor (CHOLD) must be allowed to charge to within ½ LSb of the voltage present on the input channel (see analog input model in Figure 9-2). The analog source resistance (RS) and the internal sampling switch resistance (RSS) will directly affect the time required to charge CHOLD. In addition, RSS will vary over the power supply voltage range (AVDD), and RS will affect the input offset voltage at the analog input (due to pin leakage current). Therefore: 1. The maximum recommended impedance for any analog sources is 10 kOhms. 2. Following any change in the analog input chan- nel selection, a minimum acquisition delay must be observed before another conversion can begin (see Equation 9-1). To calculate the minimum acquisition time, Equation 9-1 may be used. This equation calculates the acquisition time to within ½ LSb error, assuming an 8-bit conver- sion (512 steps for the PIC16C781/782 ADC). The ½ LSb error is the maximum error allowed for the ADC to meet its specified accuracy. EQUATION 9-1: ADC MINIMUM CHARGING TIME Example 9-1 shows the calculation of the minimum required acquisition time TACQ. This calculation is based on the following system assumptions. CHOLD = 51.2 pF RS = 10k Ω 1/2 LSb error RSS = 7k Ω @ VDD = 5V EXAMPLE 9-1: CALCULATING THE MINIMUM REQUIRED ACQUISITION TIME Note: The GO/DONE bit should NOT be set in the same instruction that turns on the ADC. VHOLD = (ADCREF-(ADCREF/512))•(1-e -TCAP/CHOLD(RIC+Rss+Rs)) Given: VHOLD = (ADCREF/512), for 1/2LSb resolution The above equation reduces to: TCAP = -(51.2 pF)(1 k Ω + RSS + RS) Ln(1/511) Note 1: The reference voltage (ADCREF) has no effect on the equation, since it cancels itself out. 2: The charge holding capacitor (CHOLD) is not discharged after each conversion. 3: The maximum recommended impedance for analog sources is 10 k Ω. This is required to meet the pin leakage specifi- cation. 4: After a conversion has completed, a 1.0TAD delay must be completed before acquisition can begin again. During this time the holding capacitor is not connected to the selected ADC input channel. TACQ = Amplifier Setting Time + Holding Capacitor Charging Time + Temperature Coefficient TACQ =5 µs + TCAP + [(Temp - 25°C)(0.05 µs/°C)] TCAP =-CHOLD (RIC + RSS + RS) In(1/511) -51.2 pF (1 k Ω + 7kΩ + 10kΩ) In(0.0020) -51.2 pF (18 k Ω) In(0.0020) -0.921 µs (-6.2364) 5.747 µs TACQ =5 µs + 5.747 µs + [(50°C -25°C)(0.05µs/°C)] 10.747 µs + 1.25 µs 11.997 µs |
|
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 |