How can I generate Arbitrary PWM with specific pattern on C2834x DSP?

조회 수: 3 (최근 30일)
Ahmed Khamis
Ahmed Khamis 2020년 6월 15일
댓글: Ahmed Khamis 2020년 7월 14일
Hello.
I am trying to generate a signal with same width as in figure on 2834x DSP using c2000 support package. Unfortunately ePWm modules CANNOT be used and the only option that I have got are the GPIO pins. I tried repeating sequence stair block and it worked fine When sampling time was 1/(3*140000). However, when decreasing the samplig time to 1/(12*140000), the PWM pin behaviour becomes awkward and the pins is either always ON r always OFF. I tried modifing the step size to be lower value 1/(120*140000), but it also gave this awkward behaviour.

답변 (1개)

Venkatesh Chilapur
Venkatesh Chilapur 2020년 7월 2일
Hi,
Here is an idea:
I set the solver to 0.01step time in above case.
HTH,
Regards,
Venkatesh C
  댓글 수: 1
Ahmed Khamis
Ahmed Khamis 2020년 7월 14일
This doesn't work, I even checked the output of "rem" block, it is zero all the time. Anyways, I doubt that this logic would output a signal with same pattern shown in scope in my original question.

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

카테고리

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