Question
Problem 2. Signal output with PWM and DAC. Create a new CCS project with the name Lab6_2. Write a program to do the following: o
Problem 2. Signal output with PWM and DAC. Create a new CCS project with the name Lab6_2. Write a program to do the following: o Blink LEDs at the rate of 2Hz using Timer32_0. o Enable UART to accept user command and display messages. o Configure the P2.7 pin as PWM signal output as in Problem 1. o Adjust the duty cycle of the signal using the on-board pushbuttons, left pushbutton to increase and right pushbutton to decrease the duty cycle. o Configure and interface with the SPI DAC chip MCP4921 as in your previous lab assignment. o Output the duty cycle value of the PWM signal through SPI DAC. The 100% duty cycle value corresponds to 3.3 V, and 0% duty cycle value corresponds to 0 V. Measure the SPI DAC output voltage using DMM VI in the NI ELVISmx Instrument Launcher. Derive the conversion formula to convert the DMM voltage measurement value to the PWM signal duty cycle value and include the formula in your report. o Build and run your program on LauchPad. o Increase and decrease the duty cycle of the PWM signal and observe the changes in the Scope VI and DMM VI. Capture the screen display as needed to explain what you have implemented in the report. Explain your source code in the report.
In a MSP432
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started