Jul 28, 2021
03:36 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jul 28, 2021
03:36 AM
Hello,
in my application I measure the current with DeltaSigma and filter it with the DSD unit on the XMC4400. For overcurrent protection I use the Auxiliary Filter of the DSD.
I would like to switch off the PWM, generated with CCU8, automatically without any software in between. Is it possible to connect the Auxíliary Filter directly to the CCU8?
I tried to find that out, with the ERU in between, but I didn't succeed.
I know I can generate an interrupt and switch off the PWM programmatically, that's how I do it now, but I would prefer a direct connection.
Any ideas?
in my application I measure the current with DeltaSigma and filter it with the DSD unit on the XMC4400. For overcurrent protection I use the Auxiliary Filter of the DSD.
I would like to switch off the PWM, generated with CCU8, automatically without any software in between. Is it possible to connect the Auxíliary Filter directly to the CCU8?
I tried to find that out, with the ERU in between, but I didn't succeed.
I know I can generate an interrupt and switch off the PWM programmatically, that's how I do it now, but I would prefer a direct connection.
Any ideas?
Solved! Go to Solution.
1 Solution
Aug 11, 2021
12:07 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Aug 11, 2021
12:07 AM
Hi,
Following is the DSD architecture.
The comparator results are routed to NVIC and DMA. This is why the limitation is arising from. I was thinking about the possibility of modifying CC8yTC.TRAP register using DMA
to get this done. But this not tested. Let me know your thoughts.
Best Regards,
Vasanth
Following is the DSD architecture.
The comparator results are routed to NVIC and DMA. This is why the limitation is arising from. I was thinking about the possibility of modifying CC8yTC.TRAP register using DMA
to get this done. But this not tested. Let me know your thoughts.
Best Regards,
Vasanth
4 Replies
Aug 11, 2021
12:07 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Aug 11, 2021
12:07 AM
Hi,
Following is the DSD architecture.
The comparator results are routed to NVIC and DMA. This is why the limitation is arising from. I was thinking about the possibility of modifying CC8yTC.TRAP register using DMA
to get this done. But this not tested. Let me know your thoughts.
Best Regards,
Vasanth
Following is the DSD architecture.
The comparator results are routed to NVIC and DMA. This is why the limitation is arising from. I was thinking about the possibility of modifying CC8yTC.TRAP register using DMA
to get this done. But this not tested. Let me know your thoughts.
Best Regards,
Vasanth
Aug 12, 2021
09:29 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Aug 12, 2021
09:29 AM
Hi Vasanth,
you mean the CC8yTC.TRAPEx bits? But they just enable or disable TRAP, right? They don't cause a trap event.
How exactly do you want to use the DMA to do that? Do you have an example code?
Regards,
Tobias
you mean the CC8yTC.TRAPEx bits? But they just enable or disable TRAP, right? They don't cause a trap event.
How exactly do you want to use the DMA to do that? Do you have an example code?
Regards,
Tobias
Aug 25, 2021
02:23 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Aug 25, 2021
02:23 AM
Hi,
My bad. So my suggestion was to modify the CCU8 registers using DMA as a direct connection to stop the CCU8 is not available from DSD. CC8yTCCLR can be used to stop the timer.
So that can be the DMA destination address. Will that solution be feasible for your application. If yes, I can try to generate a sample project for the same.
Best Regards,
Vasanth
My bad. So my suggestion was to modify the CCU8 registers using DMA as a direct connection to stop the CCU8 is not available from DSD. CC8yTCCLR can be used to stop the timer.
So that can be the DMA destination address. Will that solution be feasible for your application. If yes, I can try to generate a sample project for the same.
Best Regards,
Vasanth
Aug 27, 2021
01:10 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Aug 27, 2021
01:10 AM
Hi Vasanth,
I'm not sure if CC8yTCCLR is the right register, because the PWM outputs should be set in a passive state as the TRAP does. If the counters just stop, the output could be left active.
But anyway, I understand your idea to modify a register via DMA. A sample code would be very helpful!
Best regards, Tobias
I'm not sure if CC8yTCCLR is the right register, because the PWM outputs should be set in a passive state as the TRAP does. If the counters just stop, the output could be left active.
But anyway, I understand your idea to modify a register via DMA. A sample code would be very helpful!
Best regards, Tobias