How can I create sinus wave by using TI C2000 launchpad and simulink?

Technical Source
2 min readSep 4, 2021

--

I am new to microcontrollers. I want to create sinus wave and read it with oscilloscope by using F28379D but I couldn’t manage to do that. Which blocks should I use to do that?

ANSWER

Matlabsolutions.com provide latest MatLab Homework Help,MatLab Assignment Help for students, engineers and researchers in Multiple Branches like ECE, EEE, CSE, Mechanical, Civil with 100% output.Matlab Code for B.E, B.Tech,M.E,M.Tech, Ph.D. Scholars with 100% privacy guaranteed. Get MATLAB projects with source code for your learning and research.

Hello ,

  1. Open a blank Simulink model, go the configuration parameters (Ctrl+E) > Hardware Implementation > Select the board you are using (i.e. F28379D LaunchPad)
  2. Drag a DAC block in your model from the Simulink library browser, under Embedded Coder Support Package for TI C2000 > F2837xD
  3. Drag a sine wave source block from Simulink source blocks, double-click on the sine wave and select “Sample based” for the sine type, set the Amplitude to 2047.5, Bias 2047.5, Samples per period: 100, Sample time: .01 → this will generate a 1Hz sine wave with 100 points oscillating from 0 to 4095, which is the range that the DAC wants.
  4. Connect the Sine wave to the DAC
  5. Make sure your board is connected to your computer and generate code for the model (Ctrl+B)

SEE COMPLETE ANSWER CLICK THE LINK

--

--

Technical Source
Technical Source

Written by Technical Source

Simple! That is me, a simple person. I am passionate about knowledge and reading. That’s why I have decided to write and share a bit of my life and thoughts to.

No responses yet