Download as pdf or txt
Download as pdf or txt
You are on page 1of 6

EE/CE 6302 Homework #4 (ADC and DAC)

Name: _____________________

Student Number: _______________

(We only accept e-document uploaded in turnitin and if


there is a plagiarism the report score will be zero)
1. (15 points) Example 9.3 page 403 (MSP430 Microcontroller BasicsTextbook)

2. (15 points) Example 9.6 page 424 (MSP430 Microcontroller BasicsTextbook)

3. (15 points) Example 9.7 page 424 (MSP430 Microcontroller BasicsTextbook)

4. (15 points) Example 9.11 page 468 (MSP430 Microcontroller BasicsTextbook)

5. (15 points) Example 9.12 page 475 (MSP430 Microcontroller BasicsTextbook)

6. MSP430 is connected to apressure sensor. The sensor output is between 0.5V


and1.5V.
(a) (15 points) How do you configure the MSP430s ADC12 to perform analog-todigital conversion with maximal resolution? Write your C code.
(b) (5 points) What is the digital value that corresponds to 1.25 V input voltage?
(c) (5 points) What is the analog voltage at the output of the MSP430s DAC if we
use 2.5 V reference voltage and 8-bit resolution? The data register
DAC12_DATA=0x007A.

You might also like