K64 ADC Conversion

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

K64 ADC Conversion

跳至解决方案
3,513 次查看
andersbergström
Contributor II

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

标签 (1)
标记 (4)
0 项奖励
回复
1 解答
1,438 次查看
mjbcswitzerland
Specialist V

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

在原帖中查看解决方案

0 项奖励
回复
1 回复
1,439 次查看
mjbcswitzerland
Specialist V

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

0 项奖励
回复