This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi,
This a follow-up question to our exchange last year regarding the proper way to achieve 0% or 100% duty cycle when using HRPWM enabled (this is on ePWM Type 4). As stated in the TRM, "the duty cycle must not fall within the restricted range".
Since there are several distinct features in the ePWM module which can affect the duty cycle by triggering edges, my new question concerns what exactly qualifies as "the duty cycle".
Thanks and regards,
Pierre
Okay so 1 is easy and we agree on.
Now for the rest of the scenarios, here is the general rule.
The MEP is not gonna place a correct EDGE if you are putting the edge between 0-3 TBCLK cycles from the restricted events. Thats it. If you want your edge to be placed correctly, it has to be after/before 3TBCLK cycles from the restricted range.
The falling edge/ rising edge from force events don't get HiRES edge placement.
To get down to 0%, or up to 100% duty, (without hires) you have multiple options. One of them is the one I mentioned in the other posts, others are changing AQTCLA/B events to always be high/low. depends on how you want to program them.
Pierre,
I'm sure I missed to answer a question, so let me know what I missed and I'll answer it. I love the numbered/bulleted questions format. Makes it easier to answer.
For the restricted range, think of "is my edge that I programmed, going to be withing 3cycles or not?" and do not consider FORCED events or trips.
Nima
Nima,
So if I make a recap of your answer in terms of which registers to use in my specific case:
Is this correct?
Kind regards,
Pierre