Conversion mode of ADC in MEK04

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Conversion mode of ADC in MEK04

851件の閲覧回数
vipinkumarmishr
Contributor I

Hi,

In my project i am planning to use MKE04Z64VLH4.

In my application i need to trigger ADC at fixed interval (For example at 625uS) and complete the conversion of all channel without firmware intervention (to ensure there is fixed delay between each channel for conversion).

In ADC module there is two mode of conversion is possible 

1. Continuous conversions

2. One conversion

In first mode difficult to set the time and in seconf mode after conversion of one channel i can trigger to another channel for converion which include some delay which may vary case to case.

How i can achieve desired functionality in this controller.

Regards

Vipin Mishra

ラベル(1)
0 件の賞賛
返信
2 返答(返信)

711件の閲覧回数
vipinkumarmishr
Contributor I

Hi Mark,

Thanks for reply.

I have one more observation, In MKE04 there is two FIFO for ADC

1. AD channel FIFO

2. AD result FIFO

If we store channel no in FIFO for 8 channel and run ADC in FIFO mode. Will it work as per our requirment?

If yes, can you send me the sample code for ADC FIFO implementation so that i can evaluate this.

Regards

Vipin Kumar Mishra

0 件の賞賛
返信

711件の閲覧回数
mjbcswitzerland
Specialist V

Hi Vipin

You can trigger ADC conversions using a PIT.
Or you can let the ADC run continuously and read the result periodically.
If you however need to sample more than one ADC input you need to reprogram the input multiplexer between each sample, which needs to be done by software since the KE04 doesn't have DMA support. If automatic scanning is a hard requirement it may be better to use a part which does support DMA.

Regards

Mark


Complete KE04 solutions, training and support:http://www.utasker.com/kinetis.html
Kinetis KE:
- http://www.utasker.com/kinetis/FRDM-KE02Z.html
- http://www.utasker.com/kinetis/FRDM-KE02Z40M.html
- http://www.utasker.com/kinetis/FRDM-KE04Z.html
- http://www.utasker.com/kinetis/FRDM-KE06Z.html
- http://www.utasker.com/kinetis/FRDM-KE15Z.html

0 件の賞賛
返信