lpc4337 ADC QUESTION

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

lpc4337 ADC QUESTION

882 次查看
785377953
Contributor I

Hi,master

If I start the ADC conversation in soft start mode, must the DONE signal is1 after 11ADC clock?

if the DONE was always 0, what is the conversation result?

what reasons could lead  the conversation result to 0?

0 项奖励
回复
3 回复数

823 次查看
jeremyzhou
NXP Employee
NXP Employee

Hi ,

Thank you for your interest in NXP Semiconductor products and for the opportunity to serve you.
1) If I start the ADC conversation in soft start mode, must the DONE signal is1 after 11ADC clock?
-- Yes, it should be.
2) If the DONE was always 0, what is the conversion result?
-- In my opinion, it means the ADC conversion sequence doesn't start actually.
I'd highly recommend you to run the ADC demo which is from the LPCopen library for testing.

Have a great day,
TIC

 

-------------------------------------------------------------------------------
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 项奖励
回复

823 次查看
785377953
Contributor I

thank you for your help, My code following the steps:

1.config the ADC CR register

in the main loop

 2.for(int i=0;i<10;i++)

{

    select the ADC0 channel0 by SEL bits in CR.  

   Start the conversion

   check the DONE flag in DR[0]

  read the the result

}

3.for(int i=0;i<10;i++)

{

  select the ADC0 channel3 by SEL bits in CR

 Start the conversion

check the DONE flag in DR[3]

read the the result

}

I found sometimes the conversation result is 0.

what will make the result to be 0?

0 项奖励
回复

823 次查看
jeremyzhou
NXP Employee
NXP Employee

Hi ,

Thanks for your reply.
To provide the fastest possible support, I'd like to suggest you refer to
the attachment which contains some ADC demos.

Have a great day,
TIC

 

-------------------------------------------------------------------------------
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 项奖励
回复