PWM gneration using arduino mega 2560 through simulink

4 ビュー (過去 30 日間)
jiwanjot singh
jiwanjot singh 2014 年 8 月 26 日
回答済み: Saipraveen 2018 年 11 月 29 日
Respected sir/madam I am facing problem to generate the PWM using arduino mega 2560. I am generating the PWM pulses using simulink, PWM genration block at 50 % duty cycle but , arduino mega 2560 generates just upto 1200 hz digital output otherwise overrun detection occurs. I have tested on all pins. So how can i generate the digital output at any frequency( 20khz, 50khz) using simulink without occurrence overrun detection.

回答 (4 件)

oday
oday 2015 年 1 月 5 日
Have you found any solution to your problem, please let me know

jiwanjot singh
jiwanjot singh 2015 年 1 月 6 日
No.i Think it is not possible by simulink..because in the digital block no timer option is available..I think digital output block of arduino blockset needed to be reconstruct then may possible.

Ahmet yüksel
Ahmet yüksel 2016 年 11 月 29 日
Have you found any soluion to your problem, please let me know
pls may you help me

Saipraveen
Saipraveen 2018 年 11 月 29 日
Currently the PWM block generates in the default frequency. The frequency of the pins 4 & 13 is 976.5Hz while the other PWM pins generate at 490.1Hz.

コミュニティ

カテゴリ

Help Center および File ExchangeArduino Hardware についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by