Jun 05, 2019
03:51 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jun 05, 2019
03:51 AM
I have one of the ADC groups configured to control an external Multiplexer, the multiplexer is connected to channel 0 and I have a FIFO setup on 8 of the registers.
I have configured the FIFO as described in the VADC application note, with an interrupt being generated on the tail of the FIFO. This interrupt is being called every time a new result enters the tail of the FIFO as expected, however I don't want to have to generate an interrupt every time one of the multiplexers channels are converted, I would like for the FIFO to be filled with all 8 results and then an interrupt generated on the last result, i can then store those 8 values else were, clear the FIFO and wait for the next conversion.
Is it possible to configure / use it in this way?
Im using a XMC4500.
I have configured the FIFO as described in the VADC application note, with an interrupt being generated on the tail of the FIFO. This interrupt is being called every time a new result enters the tail of the FIFO as expected, however I don't want to have to generate an interrupt every time one of the multiplexers channels are converted, I would like for the FIFO to be filled with all 8 results and then an interrupt generated on the last result, i can then store those 8 values else were, clear the FIFO and wait for the next conversion.
Is it possible to configure / use it in this way?
Im using a XMC4500.
- Tags:
- IFX
2 Replies
Jun 05, 2019
08:03 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jun 05, 2019
08:03 AM
Hi,
It is not possible according to note in the reference manual: "Note: If enabled, a result interrupt is generated for each data word in the FIFO."
If you would use a queue conversion request source you could add to the queue the same channel 8 times, using 8 consecutives result registers and only trigger the service request on the last one.
Regards,
Jesus
It is not possible according to note in the reference manual: "Note: If enabled, a result interrupt is generated for each data word in the FIFO."
If you would use a queue conversion request source you could add to the queue the same channel 8 times, using 8 consecutives result registers and only trigger the service request on the last one.
Regards,
Jesus
Jun 05, 2019
11:33 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jun 05, 2019
11:33 PM
Ok thanks, have managed to achieve what i want to do with the scan conversion by generating a scan source event and reading the FIFO during this. Will have a look at using the queue request source and see which suits my application best.