C2000 can EPWMxBLANK be routed out to a GPIO pin?

2 次查看(过去 30 天)
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
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