Hi.
I read the reference manual for the K64 but i couldn´t find the information I was looking for.
We have around 16 ADC-Channels that we use for supervision ( Temperatures, voltages etc. )
Currently, the interrupt is triggered when a converison for a single channel is complete.
Is there any way to trigger the interrupt when all conversions are done?
Or do we need to set the next channel to convert every time?
We are using KSD and KDS.
Best regards,
/ Anders
Solved! Go to Solution.
Hi Anders
Each ADC can sample one of the multiplexed inputs at a time so if there are 2 ADCs in the device two inputs can be sampled in parallel.
If you use HW mode (eg. triggered by PDB) each ADC can then sample two inputs (serially - one after the other - and not in parallel).
This means that if you have 16 inputs and you will need to sample 2 or 4 inputs at a time and then adjust the input multiplexer, repeat for the next 2..4, then the next 2..4 etc. until you get back to the beginning again.
If you search the forum there are a number of discussions about doing this as well as some techniques for automating the input multiplexing based on DMA so that the complete cycle repeats without SW intervention (or reduced SW requirements).
Application note on DMA driven ADC and DAC, using PDB as timebase
https://community.freescale.com/message/365129#365129
https://community.freescale.com/message/112710#112710
Regards
Mark
Kinetis: µTasker Kinetis support
K64: µTasker Kinetis FRDM-K64F support / µTasker Kinetis TWR-K64F120M support
For the complete "out-of-the-box" Kinetis experience and faster time to market
Hi Anders
Each ADC can sample one of the multiplexed inputs at a time so if there are 2 ADCs in the device two inputs can be sampled in parallel.
If you use HW mode (eg. triggered by PDB) each ADC can then sample two inputs (serially - one after the other - and not in parallel).
This means that if you have 16 inputs and you will need to sample 2 or 4 inputs at a time and then adjust the input multiplexer, repeat for the next 2..4, then the next 2..4 etc. until you get back to the beginning again.
If you search the forum there are a number of discussions about doing this as well as some techniques for automating the input multiplexing based on DMA so that the complete cycle repeats without SW intervention (or reduced SW requirements).
Application note on DMA driven ADC and DAC, using PDB as timebase
https://community.freescale.com/message/365129#365129
https://community.freescale.com/message/112710#112710
Regards
Mark
Kinetis: µTasker Kinetis support
K64: µTasker Kinetis FRDM-K64F support / µTasker Kinetis TWR-K64F120M support
For the complete "out-of-the-box" Kinetis experience and faster time to market