Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Find the minimum numberer of bits needed for the procedure's output, assuming the temperature is between 0F and 150F. Remember the result must have 4

image text in transcribed

Find the minimum numberer of bits needed for the procedure's output, assuming the temperature is between 0F and 150F. Remember the result must have 4 fractional bits. With that answer, find the fixed point representation of both VREFP_fpx and _147p5_fpx. Also, what is a, the number of bits before rounding?

uint32_t ADC2Temp( uint16_t Dout const uint32_t VREFP.fpx = y; const uint32.t -147p5.fpx = z; uint32-t tmp; /7 Calculate the temperature in C. tmp147p5.fpx - CC75 * VRE FP.fpx * Dout) / 4 096); /7 Calculate the temperature in F. tmp = (tmp * 9) / 5 + 32 * (1 > a; // Round and return 4-fp result. return (tmp >1) + (tmp & 1); uint32_t ADC2Temp( uint16_t Dout const uint32_t VREFP.fpx = y; const uint32.t -147p5.fpx = z; uint32-t tmp; /7 Calculate the temperature in C. tmp147p5.fpx - CC75 * VRE FP.fpx * Dout) / 4 096); /7 Calculate the temperature in F. tmp = (tmp * 9) / 5 + 32 * (1 > a; // Round and return 4-fp result. return (tmp >1) + (tmp & 1)

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