Hello,
Help me, please: I want to use COMPxOUT for trip ePWM, but it seems like I need to use for this one more GPIO-pin... is concerto have possibility to generate events from comparator inside himself for trip ePWM?
p.s. my english is bad, sorry for this, and maybe i am reading worse then writing: if this possibility (and ways to use it) is described in manual, specify it for me.
Alexey,
There is not an internal way to trip the EPWM with the COMPxOUT signal. You need to dedicate a GPIO as in input and use the GPTRIP logic to trip the EPWM.
Regards,
Ricky
Thank you, Ricky, for the answer!
GPTRIP use only GPIO0 - GPIO63 that is mean, for example, that I need electrically connect the pin141/GPIO129/COMP1OUT to one of the pins/(GPIO0 - GPIO63), and then, use the GPTRIP logic to trip the EPWM?
Best regards,
Alexey
Yes, you are correct. You must connect the COMP1OUT pin externally to GPIO0-63, and then use the GPTRIP logic to trip the EPWM.
Ricky Rosinski
Thank you!
Hello to all again!When we initialize all (6) comparators in Concerto at sequence (1 - 2 -3 - 4 - 5 - 6) they working properly. But, if set its up in sequence: 2 - 3 - 1 - 4 - 5 - 6... :) Bit COMPDACEN for comp1 doesn't set, and bits COMPDACEN for comp2, comp3, comp4, cmp5, comp6 are set normally. If set breakpoint at row "Comp1Regs.COMPCTL.bit.COMPDACEN = 1;" - comp1 COMPDACEN is set normally.
It is bug or feature?
Best regards
Alexey.
This should not be the behavior and is not a feature. I was not able to reproduce this on my setup. Could you send me your code, so I can try it?
Ricky, thanks for the answer! More details in "Concerto analog comparator" http://e2e.ti.com/support/microcontrollers/tms320c2000_32-bit_real-time_mcus/f/171/t/201434.aspx
my colleague Yuriy Sikalov is now executes this task.
Best regards, Alexey!