In Reference using a PIC Microcontroller Software & Hardware: Also the link to t
ID: 3676835 • Letter: I
Question
In Reference using a PIC Microcontroller Software & Hardware:
Also the link to the data sheet for its specs:http://ww1.microchip.com/downloads/en/DeviceDoc/39564c.pdf
Again here is the link below to the data sheet for its specs to determine the TAD and Tacq and the Freq is at 4MHZ:
http://ww1.microchip.com/downloads/en/DeviceDoc/39564c.pdf
Using a PIC Microcontroller Microchip PIC18F452 with a crystal oscillator of 4MHZ Please Determine the Following with the Code Provided Below.... include #include «adc.h> #include #include «delays"h> int result void main (void) OpenADC (ADC_FOSC_32 & ADC_RIGHT JUST & ADC_1ANA OREF, ADC_CH1 & ADC INT OFF); Delay10TCYx(2); Convert ADC( ); While (BusyADC( ) Result= ReadADC( ); CloseADC( ); 1) Which channel is used? 2) What is the number of sensors? 3) The period (in s) of t 4) The acquisition time (in necessary to read the analog signal? he A/D converter?Explanation / Answer
Answer:)
1. ADC channel has been used
2.There are five sensors in use: ADC_FOSC_32, ADC_RIGHT_JUST, ADC_1ANA_0REF, ADC_CH1 and ADC_INT_OFF
3.ADC has its own clock with a configurable period. Acquisition takes a minimum of 132 ns and the minimum ADC clock period (TAD) is listed as being 65 ns. Since conversion takes 12 TAD (one per bit plus a start/stop bit), in theory, the fastest the ADC can complete one sample/convert sequence is 912 ns.
Therefore, period of A/Dconverter = .912 s
4.As mentioned above, acquisition time necessary to read the analog signal = .132s
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.