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.
We have a product planned that would use a lot of EPWM's and there are not enough Trip Zones available.
We are already using 8 CBC TZ's and need 8 more. Is it possible to say feed in 8 comparator outputs into the CLB
and then AND them individually with a one of 8 EPWM channels before putting the PWM
out to the pin? It would save us bringing out the COMP signals to GPIO and ANDing them externally with the PWM.
Or if there are only 4 Tiles available one is limited to just 4 EPWM channels.
Thanks in advance
Andrew
Hi,
If I understand the problem statement correctly then you would like to control the EPWM outputs based on 16 trips signals from CMPSS, in that case would you like to trip all the PWM modules if any of the trip signal is active? If that's the case, then you can actually the OR gate part of the EPWM X-BAR architecture and feed just single trip signal to all the EPWM modules.
On the CLB related question, you can actually enhance the internal PWM signals and drive 4 outputs with single tile (OUT0/OUT2/OUT4/OUT5) so in total you should be able to drive 16 PWM outputs with the 4 CLB tiles.
If my reply answers your question please click on "This resolved my issue" button located at the bottom of my post.
Regards
Himanshu
Hi Himanshu
We have in effect 8 x EPWMA/B = 16 EPWM channels. Each EPWM module requires two completely independent trip zones one for A and one for B.
Our present understanding is that only EPWM Modules 1 to 4 can be enhanced by the CLB, but we would be very happy to learn if that the other modules could also be enhanced. At the moment we are testing to see if we can use the internal CBC trip zones for EPWM5-8, and the CLB for EPWM1-4.
But what I hear you say is that each CLB tile should be able to enhance any 4 PWM channels, and so enhancing 16 PWM channels should be possible - correct? If so that would be even better.
Thanks for your reply
Andrew
Yes that's correct, if you look into the Output X-BAR configuration table in the device TRM you would notice that outputs CLB_OUT4/5 from CLB can be routed to the GPIOs. Thus you can use these two outputs additionally to drive the PWM signals so in total 4 signals can be driven using single CLB tile. Hope this helps!
If my reply answers your question please click on "This resolved my issue" button located at the bottom of my post.
Regards
Himanshu