How to using LPC54608's ADC

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

How to using LPC54608's ADC

1,074件の閲覧回数
james73
Contributor I

Using the ADC of LPC54608.

 I have a question about using the adc module in LPC54608.

Would you please give me some help?

1. using two adc channel ,adc0 & adc4.

2.trigger by softare 

3. using sequence a only.

4. how to trigger the two channel adc ?

5. how to get the result ,need one by one ,or two channels at the same time?

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

948件の閲覧回数
ZhangJennie
NXP TechSupport
NXP TechSupport

Hi James,

You want to employ two channel ADC conversion by SW trigger.

I suggest you refer MCUXpresso SDK demo code.

lpc_adc_basic uses polling, assigning one channel with software  trigger

lpc_adc_interrupt with interrupt, assigning one channel with software trigger

In the case you need employ two channels, you need get result one by one.

for example SEQA, Channel 0,1

when you initialize ADC, make sure you enable both of the channels in sequence A control register.

when you read result, make sure you read it from the correct ADC channel data register -- DAT0 , DAT1.


Have a great day,
Jun Zhang

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 件の賞賛
返信