- The PWM pins can be set up in Simulink after creating a PWM signal using the pulse generator block. The PWM signal will be transmitted to the microcontroller's PWM pin by connecting the output of the pulse Generator block to a digital output block.
- To see the sine wave on the output of the Sine Wave block in Simulink, add a scope block to the output. The graphed waveform shown by the scope block can be used to verify that the sine wave is being produced correctly.
how to read analog sine voltage from TMSF28335 using simulink
2 次查看(过去 30 天)
显示 更早的评论
Hi everyone, Currently I am using TMSF28335 to produce sine voltage with 3.3v amplitude using simulink. I created a simulink file that takes this sine wave and gives pwm signal if the voltage is above the 1.65v and below the -1.65v. simulation in simulink is ok and it is working but I want to see sine voltage on voltage prob using oscillator and also see the pwm signal later. I am using syndem kit so it has voltage probs to analyze its outputs. The Question is how can I see sine wave or any analog voltage signal on outputs of F28335 and what connection is needed on simulink.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1298655/image.jpeg)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1298660/image.jpeg)
0 个评论
回答(1 个)
Naren
2023-3-2
Hello Bekir Bölükçü,
I beileve what you are trying to achieve is to visualize the sine wave output from a TMSF28335 microcontroller in real-time using an oscillator and voltage probes and monitor the corresponding PWM signal generated by the Simulink model. Refer to the steps below.
For further information, refer to the documentation given below
TMSF28335 technical data sheet.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 C2000 Microcontroller Blockset 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!