Question
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?
Expert Answer
Kshitij Singh
PhD Expert
Answered Aug 24, 2026
Hello ,
- Open a blank Simulink model, go the configuration parameters (Ctrl+E) > Hardware Implementation > Select the board you are using (i.e. F28379D LaunchPad)
- Drag a DAC block in your model from the Simulink library browser, under Embedded Coder Support Package for TI C2000 > F2837xD
- 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.
- Connect the Sine wave to the DAC
- Make sure your board is connected to your computer and generate code for the model (Ctrl+B)
- Put a scope on the DAC pin (Pin 30 on connector J3 is using the Launchpad) and enjoy watching the sine wave oscillate
- Accept this answer and post your model so others can benefit from it :-), feel free to share with the rest of the world how easy it was to run your first model with our TI C2000 support package.
100% Run Guarantee
3-Hour Fast-Track Delivery
Need a Custom Version or Complete Simulation for This Problem?
Our 500+ PhD engineers build, debug, and optimize working MATLAB scripts and Simulink (.slx) models tailored to your exact assignment rubrics with zero plagiarism.
Tested on MATLAB R2024b / R2026a
Turnitin 0% Plagiarism Report
Free 7-Day Revisions Guarantee
Have a different question? Ask here
Related c2000 Questions & Solutions
Browse All →
Explore similar technical troubleshooting questions and verified MATLAB solutions:
Ready-to-Run MATLAB & Simulink Projects
Browse All Projects →