Oct 08, 2020
01:48 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Oct 08, 2020
01:48 AM
Greetings from Germany,
What I want to achieve seems quite simple but I am have problems.
I have one CCU4 with 2 PWM slices controlling 2 MOSFETS. For both PWMs, EVENT_0 "Synchronous Start" is checked in "External Event Settings".
I am controlling POSITIVE OR NEGITIVE current flow.
An ADC_ADV using FAST( 10 bit ) and two channels, (connected to the same ADC pin) provide a POS boundry flag and a NEG boundry flag. These work fine.
POS boundry flag event is connected to one PWM EVENT_2 using TRAP function. NEG boundry flag event is connected to the other PWM EVENT_2
using TRAP function as well.
( each boundry event through an Event Detector/Generator pair )
My desire is that BOTH PWMs Synchronously TRAP at the same time. I.E. when PMW 0 is trapped PWM 1 is also trapped and vice versa.
Dave does not allow me to interconnect/share same Event Generator to both PWMS.
DAVE seems to have restrictions, perhaps a solution using registers or low commands will solve my problem. I have searched the forums without result.
I hope this is clear. I will be glad to clarify.
Thanks, Ken
What I want to achieve seems quite simple but I am have problems.
I have one CCU4 with 2 PWM slices controlling 2 MOSFETS. For both PWMs, EVENT_0 "Synchronous Start" is checked in "External Event Settings".
I am controlling POSITIVE OR NEGITIVE current flow.
An ADC_ADV using FAST( 10 bit ) and two channels, (connected to the same ADC pin) provide a POS boundry flag and a NEG boundry flag. These work fine.
POS boundry flag event is connected to one PWM EVENT_2 using TRAP function. NEG boundry flag event is connected to the other PWM EVENT_2
using TRAP function as well.
( each boundry event through an Event Detector/Generator pair )
My desire is that BOTH PWMs Synchronously TRAP at the same time. I.E. when PMW 0 is trapped PWM 1 is also trapped and vice versa.
Dave does not allow me to interconnect/share same Event Generator to both PWMS.
DAVE seems to have restrictions, perhaps a solution using registers or low commands will solve my problem. I have searched the forums without result.
I hope this is clear. I will be glad to clarify.
Thanks, Ken
0 Replies