Assume that the ANI pin of a PIC18 running with a 4 MHz crystal oscillator is...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Assume that the ANI pin of a PIC18 running with a 4 MHz crystal oscillator is connected to a potentiometer. The VDD of the system is (i) The power supply of the PIC is Vcc-5 Vand Vss=0. (1) The voltage ranges of the potentiometers are from 0 V to 3V. (ii) The reference external sources are used. (iii) The voltage is applied to the ANI pin. (iv) The voltage is measured with 8-bit. (v) Let the minimum value of TAD= 1.9 us and the minimum value of TAQ-7 μs (a) Write a program to measure the voltages applied to the ANI pin, convert it, and retrieved the conversion result and place it in RAM location 10H. Show the steps to determine the values of ADCONO, ADCON1 and ADCON2. (12 marks) (b) Suppose the measured bit value is 1100 0000, what is the measured voltage value? (3 marks) 87 1 (AN2) sal alle met TVAN) 6-Yan 0000 1001 3010 2003 1100 1101 17 1110 Hu 1.5 06 • VERGLACFO Velgener liga Table 12.3 PCFCCICS A/D por cgat b VCFG VERGO PCTG) PCTG: PCPGI PCFOR Vas Veupe DOP Contige Se CDDDDDDDD <DDDDDD * BS ADCONI 84 063 BY VERGE VOTOS PCTGS PCTGE PIGEPCTGR U ADCONO M ST121 0000Channel (ANG) 0001 Channel 1 (ANT) C162 CHST 068 Chanel Select 1100-Channel 12 (AN12) HO 12 111 GO DONE ADON 80 1-A/D Power Up 0-A/0 Shtol 1-Set to Start Conversion disset at the End of Comenion N7 8C MEM Ca Kig fed ADCON2 Reading 1a Jed NI ACOT ACUT ACOTO ABGRRADESH ADER) Nation Time Chick Select B Sele NI ACQTZ ACQTO: A 000-0TAD(1) 001-2 TAD 010-4 TAD 011-6 TAD ADCS2 ADCSO A/D conversion clock select bits 000-FOSC/2 001-FOSC/8 010-FOSC/32 100-STAD 101-12 TAD 110-16 TAD 111-20 TAD See Table 12:2 011-FRC (clock derived from A/D RC oscillator) 100-FOSC/4 101-FOSC/16 110-FOSC/64 111-FRC (clock denived from A/DRC illater) Assume that the ANI pin of a PIC18 running with a 4 MHz crystal oscillator is connected to a potentiometer. The VDD of the system is (i) The power supply of the PIC is Vcc-5 Vand Vss=0. (1) The voltage ranges of the potentiometers are from 0 V to 3V. (ii) The reference external sources are used. (iii) The voltage is applied to the ANI pin. (iv) The voltage is measured with 8-bit. (v) Let the minimum value of TAD= 1.9 us and the minimum value of TAQ-7 μs (a) Write a program to measure the voltages applied to the ANI pin, convert it, and retrieved the conversion result and place it in RAM location 10H. Show the steps to determine the values of ADCONO, ADCON1 and ADCON2. (12 marks) (b) Suppose the measured bit value is 1100 0000, what is the measured voltage value? (3 marks) 87 1 (AN2) sal alle met TVAN) 6-Yan 0000 1001 3010 2003 1100 1101 17 1110 Hu 1.5 06 • VERGLACFO Velgener liga Table 12.3 PCFCCICS A/D por cgat b VCFG VERGO PCTG) PCTG: PCPGI PCFOR Vas Veupe DOP Contige Se CDDDDDDDD <DDDDDD * BS ADCONI 84 063 BY VERGE VOTOS PCTGS PCTGE PIGEPCTGR U ADCONO M ST121 0000Channel (ANG) 0001 Channel 1 (ANT) C162 CHST 068 Chanel Select 1100-Channel 12 (AN12) HO 12 111 GO DONE ADON 80 1-A/D Power Up 0-A/0 Shtol 1-Set to Start Conversion disset at the End of Comenion N7 8C MEM Ca Kig fed ADCON2 Reading 1a Jed NI ACOT ACUT ACOTO ABGRRADESH ADER) Nation Time Chick Select B Sele NI ACQTZ ACQTO: A 000-0TAD(1) 001-2 TAD 010-4 TAD 011-6 TAD ADCS2 ADCSO A/D conversion clock select bits 000-FOSC/2 001-FOSC/8 010-FOSC/32 100-STAD 101-12 TAD 110-16 TAD 111-20 TAD See Table 12:2 011-FRC (clock derived from A/D RC oscillator) 100-FOSC/4 101-FOSC/16 110-FOSC/64 111-FRC (clock denived from A/DRC illater)
Expert Answer:
Related Book For
Cambridge International AS And A Level Physics Coursebook
ISBN: 9781108859035
3rd Edition
Authors: David Sang, Graham Jones, Gurinder Chadha, Richard Woodside
Posted Date:
Students also viewed these accounting questions
-
The following additional information is available for the Dr. Ivan and Irene Incisor family from Chapters 1-5. Ivan's grandfather died and left a portfolio of municipal bonds. In 2012, they pay Ivan...
-
KYC's stock price can go up by 15 percent every year, or down by 10 percent. Both outcomes are equally likely. The risk free rate is 5 percent, and the current stock price of KYC is 100. (a) Price a...
-
Let y vary directly with x. Complete the following. Find y when x = 1.3, if y = 7.2 when x = 5.2.
-
A certain type of elementary particle travels at a speed of 2.70 X 10-6s. What is the particles lifetime at rest?
-
Discuss cultural differences in job satisfaction and organizational commitment.
-
Apply the marketing-myopia concept to print media, magazines, and newspapers. What is the implication?
-
Condensed financial data of Pat Metheny Company for 2008 and 2007 are presented below. Additional information: During the year, $70 of common stock was issued in exchange for plant assets. No plant...
-
Inflation Bonds (I Bonds) are safe investments issued by the U.S. Treasury to protect individual's money from loosing value due to inflation. Interest rates on I Bonds are adjusted regularly to keep...
-
Sandra?s Purse Boutique has the following transactions related to its top-selling Gucci purse for the month of October. Required: 1. Calculate ending inventory and cost of goods sold at October 31,...
-
A horizonal milling conducted on a mild steel plate of a biomedical device is shown in the right figure. We know that the constant k = 1, cutting speed V=50 ft/min, cutting tool diameter D = 2 in,...
-
List the following 8 ASX listed companies in order ofthe stranded asset risk you expect they are exposed to. Which combination of companies would you go long and which would you short in order to...
-
Was the CDC authentic in its COVID messaging to the public? Include references if used.
-
You are a market maker in Qantas shares (QAN). You believe that, at the end of the session, QAN stock will be worth $5.80 (80% probability) or $6.00 (20% probability). Typically, 90% of incoming...
-
1. Matrix A and matrix B are defined as below. [1 2 3] A = 4 5 6 L7 8 91 B = y (5%) (a) Can we perform the matrix multiplication for B*A? If we can, what's the result? (5%) (b) Can we perform the...
-
The following statements about the FASEA Code of Ethics is TURE OR FALSE???? A financial adviser occasionally shirks their responsibilities to always provide clients with a Financial Services Guide...
-
Tortellini plc has basic earnings of 3 million for the year ended 30 November 2021 and a weighted average number of shares of 10 million. Tortellini pays corporation tax at 20%. It has a 5m of 6%...
-
According during to the IRS, individuals filing federal income tax returns prior to March 31 received an average refund of $1,088 in 2018. Consider the population of "last-minute" filers who mail...
-
a. State Faradays law of electromagnetic induction. b. A circular coil of diameter 200 mm has 600 turns is shown. It is placed with its plane perpendicular to a horizontal magnetic field of uniform...
-
Which force is caused by a difference in pressure? A. Drag B. Friction C. Upthrust D. Weight
-
Estimate the uncertainty when a student measures the length of a room using a steel tape measure calibrated in millimetres.
-
The city health inspector wishes to determine the mean bacteria count per liter of water at a popular city beach. Assume the number of bacteria per liter of water is normal with mean and standard...
-
An engineer takes a sample of 5 steel I beams from a batch, and measures the amount they sag under a standard load. The amounts in \(\mathrm{mm}\) are: It is known that the sag is normal( \({ }^{2}\)...
-
The standard process for making a polymer has mean yield \(35 \%\). A chemical engineer has developed a modified process. He runs the process on 10 batches and measures the yield (in percent) for...
Study smarter with the SolutionInn App