Question: ECE 2 0 4 9 Homework # 4 Analog - to - Digital Conversion and the ADC 1 2 1 ) With the ADC 1

ECE2049 Homework #4 Analog-to-Digital Conversion and the ADC12
1) With the ADC12_A as configured below, for each analog input list, the specific
values of the following, given that the external reference voltage V eRef+=2.5V
i. Full-scale range, ii. Resolution, iii. Dynamic Range
iv. Input Channel v. Memory output register
unsigned int value1, value2, value3;
...
REFCTL0 &= ~REFMSTR;
ADC12CTL0= ADC12SHT0_10+ ADC12SHT1_10+ ADC12REFON +
ADC12ON + ADC12MSC;
ADC12CTL1= ADC12CSTARTADD_7+ ADC12SHP;
P6SEL |= BIT6;
P7SEL |= BIT1;
ADC12MCTL7= ADC12SREF_0+ ADC12INCH_6;
ADC12MCTL8= ADC12SREF_2+ ADC12INCH_13;
ADC12MCTL9= ADC12SREF_1+ ADC12INCH_8+ ADC12EOS;
ADC12CTL0|=(ADC12SC|ADC12ENC);
while (ADC12CTL1 & ADC12BUSY)
__no_operation();
value1= ADC12MEM7 & 0x0FFF;
value2= ADC12MEM8 & 0x0FFF;
value3= ADC12MEM9 & 0x0FFF;
b. What is the code value in value3 for the default voltage on that input channel? What is
the voltage value on the corresponding analog input if value1=0x0410? What is the code
value in value2 if the voltage on the corresponding input is 1.56V?

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Electrical Engineering Questions!