Sine wave generation from TMS320f28379d in simulink with variable frequency.

조회 수: 4 (최근 30일)
bahurii sahu
bahurii sahu 2021년 2월 26일
편집: MULI 2025년 6월 4일
Iam working with TMS320f28379D i want to know how i can generate a sine wave using dac with where i want to change the frequency of the system in realtime. the frequency value i want to give through a push button or potentiometer using adc.
  댓글 수: 2
Abasiodiong Jackson
Abasiodiong Jackson 2023년 1월 26일
You can design a simulink program to do this. However, I find that there is an issue with the sinewave generated by the DAC where it is affected by the clock setting. What is the purpose for generating the sinewave?
MULI
MULI 2025년 6월 4일
편집: MULI 2025년 6월 4일
  • You can create a sine wave using the TI C2000 LaunchPad and Simulink by using a DAC block along with a sine wave lookup table.
  • You can refer to the below MathWorks forum post for generating a sine wave :https://www.mathworks.com/matlabcentral/answers/426925-how-can-i-create-sinus-wave-by-using-ti-c2000-launchpad-and-simulink
  • You can output the sine wave through the DAC by cycling through a list of pre-calculated sine values (lookup table).
  • To control the frequency in real time, you can read the voltage from a potentiometer using an ADC pin.
  • Based on that input, you adjust how quickly you step through the lookup table faster stepping means a higher frequency, and slower stepping gives a lower frequency.
  • This setup allows you to smoothly vary the output frequency using simple hardware like a knob or button.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 C2000 Microcontroller Blockset에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by