Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

unsigned int valuel, value2, value3; REFCTLO & REFMSTR; ADC12CTLO = ADC12SHTO_10+ ADC12SHT1_10+ ADC12REFON + ADC12ON + ADC12MSC; ADC12CTL1 = ADC12CSTARTADD_7 + ADC12SHP; POSEL |= BIT6;

image text in transcribed
image text in transcribed
unsigned int valuel, value2, value3; REFCTLO & REFMSTR; ADC12CTLO = ADC12SHTO_10+ ADC12SHT1_10+ ADC12REFON + ADC12ON + ADC12MSC; ADC12CTL1 = ADC12CSTARTADD_7 + ADC12SHP; POSEL |= BIT6; PZSEL = BIT1; ADC12MCTL7 = ADC12SREF_0+ ADC12INCH_6; ADC12MCTL8 = ADC12SREF_2 + ADC12INCH_13; ADC12MCTL9 = ADC12SREF_1 + ADC12INCH_8 + ADC12EOS; ADC12CTLO I = (ADC12SC|ADC12ENC); while (ADC12CTL1 & ADC12BUSY) _no_operation(); value1 = ADC12MEM7 & OxOFFF; value2 = ADC12MEM8 & OXOFFF; value3 = ADC12MEM9 & OxOFFF; b. What is the code value in value for the default voltage on that input channel? What is the voltage value on the corresponding analog input if value1 = 0x05A0? What is the code value in value2 if the voltage on the corresponding input is 0.73V? (5 pts) reference voltage Veref+= 3.0V

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

Define IP spoofing.

Answered: 1 week ago