필터 지우기
필터 지우기

C2000 can EPWMxBLANK be routed out to a GPIO pin?

조회 수: 2 (최근 30일)
Richard Scott
Richard Scott 2022년 10월 12일
댓글: Richard Scott 2023년 9월 7일
I'm having trouble getting the ePWM blanking window working as I want on an F28388D (I'm trying to blank out the switch-on spike for a Peak Curent Control scheme).
Is there a method to route the effective EPWMxBLANK signal out to a GPIO pin so that I can monitor it on a scope vs the PWM and CMPSS1H outputs? (I have CMPSS1H connected to a GPIO already for this purpose).
Kind regards,
Richard.

답변 (1개)

Sivapriya Srinivasan
Sivapriya Srinivasan 2023년 9월 5일
Hello Richard,
Yes, you can route the ePWM blanking signal to a GPIO pin for monitoring it on a scope. On the F28388D microcontroller, you can use the ePWMxTZ signal to achieve this. Here are the steps to route the ePWMxBLANK signal to a GPIO pin:
  1. Configure the GPIO pin: Choose a GPIO pin that you want to use for monitoring the ePWM blanking signal. Configure the pin as an input using the appropriate GPIO registers or the corresponding peripheral configuration tool provided by your development environment.
  2. Enable the ePWM blanking signal routing: In order to route the ePWM blanking signal to the GPIO pin, you need to configure the appropriate register in the ePWM module. The specific register and bit names may vary depending on the exact microcontroller and development environment you are using.
  3. Connect the ePWM blanking signal to the GPIO pin: Physically connect the output of the ePWM blanking signal to the GPIO pin you have chosen. This can be done by connecting the appropriate pins or using jumper wires, depending on your hardware setup.
  4. Monitor the ePWM blanking signal: Once you have completed the above steps, you can now monitor the ePWM blanking signal on the GPIO pin using a scope or any other monitoring device. This will allow you to observe the behavior of the blanking signal alongside the PWM and CMPSS1H outputs.
  댓글 수: 1
Richard Scott
Richard Scott 2023년 9월 7일
Thank you for your response.
Do you have any pointers to resources for step 2? It is routing the ePWM blanking signal out to a pin that I am stuck on.
Kind regards,
Richard.

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

태그

제품


릴리스

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by