Derive the linear relationship between n and


A 9S12 with an 8-bit DAC is used to create a software-controlled analog output. The 8-bit signed DAC (using offset binary format) is connected to the 9S12 Port B and has a -5 V to +5 V range as shown in the following table. N is the Port B output (DAC input), and V is the DAC output

118_9b9f4c67-cfa1-43b4-aa2f-eef0ebf5c0c1.png


a) Derive the linear relationship between N and V. Show both the equation that expresses V in terms of N and the equation that expresses N in terms of V.

b) What is the DAC precision? State the units.

c) What is the DAC resolution? State the units.

d) Write a 9S12 function, DAout, which takes the desired voltage (in millivolts) and outputs the appropriate value to Port B. The 16-bit signed input parameter is passed by reference on the stack. Here are a couple of typical calling sequences:

2313_329c74ee-ace7-4910-b351-30c75ce10eb0.png

Request for Solution File

Ask an Expert for Answer!!
Mechanical Engineering: Derive the linear relationship between n and
Reference No:- TGS01468074

Expected delivery within 24 Hours