K64 ADC Conversion

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 
2,866件の閲覧回数
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 解決策
791件の閲覧回数
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 返信
792件の閲覧回数
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 件の賞賛