- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am testing the XMC4700 by using Dave.
My settings are shown as below.
Reprtition is set as "cycles" and "3" times.
The "External trigger" is connect to a CCU4 slice.
But the DAC won't stop when the 3 times repetition of the LUT, and it act as endless repetition setting.
Do the settings incorrect?
- Labels:
-
DAVE™
- Tags:
- DAC_LUT
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
If I use the internal trigger, and config the cycle to 3, it can stop after output 3 cycles. And I add my test project in attachment.
If you change your APP config, please generate the code again just like the below screenshot.
I think the difference between ccu4 trigger and internal is at the starting. After starting, then they are the same.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @LinglingG_46 ,
Here is my test project.
Do you mean the DAC which is triggered by CCU4 slice should stop after 3 cycles?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Please test the project I attached in the previous response.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
1: The first step, please open the dac_lut_conf.c in generated folder.
2: Please check the DAC_LUT_t DAC_LUT_0 ={}
3: The source reason is the red cycle what I choose.
4: How to solve the issue, click the red cycle in below figure:
5: After generate new codes, please check the config again to check if it can solve the issue.
6: Hope my answer can help you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @LinglingG_46 ,
I found out why the DAC won't stop.
I re-registered the event handler in "main.c".
Here are the further more questions:
1. I set the external trigger with DMA configuration as the pictures in the first post.
And auto start the CCU4 and DAC_LUT after initialization.
But the DAC didn't output waveforms.
I have to enable the DMA manually by calling the API "XMC_DMA_CH_Enable".
Is that normal?
2. I cannot enable the DMA again after I called the DMA disable API "XMC_DMA_CH_Disable" for the "Endless" configuration.
But why?
3. How can I restart the DAC after it stopped in the event handler for the "Cycles" configuration?
I've attach the simple example of my test.
Thanks.