ADC readings on FRDM KL25Z

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

ADC readings on FRDM KL25Z

4,024 次查看
Matt85
Contributor I

Hi,

I configured the ADC for the FRDM KL25Z board as in:

pastedImage_1.png

This is my code:

  (void)AD1_Calibrate(TRUE);

  for(;;) {

    (void)AD1_Measure(TRUE); /* do conversion and wait for the result */

    (void)AD1_GetValue16(&value); /* get the result into value variable */

  }

The readings are (with the PTD5 pin connected to 3.3v):

pastedImage_0.png

any idea?

Thanks

0 项奖励
回复
4 回复数

2,617 次查看
Alice_Yang
NXP TechSupport
NXP TechSupport

Hi Matt,

1) From  the waveform , it seems that it haven't input signal in ADC0_SE6b pin, I suggest you check the pin  use  scope;

2) I suggest that before read the result , measure the complete status ,  the detail code you can refer to the "help on component ";

3) You can change anther pin to try .

Hope it helps

Alice

0 项奖励
回复

2,617 次查看
Matt85
Contributor I

Hi, thanks for your reply, I will try your suggestions.

Do you know if I need a buffer (voltage follower) at the adc input? Is it mandatory? In case it is, which P/N is suggested? Thanks

0 项奖励
回复

2,617 次查看
Alice_Yang
NXP TechSupport
NXP TechSupport

Hi Matt,

Use the convenience pin , i test use the ADC0_SE0;

I think whether need  voltage follower is rely on your input analog signal , is is a stable direct current signal , it needn't voltage follower .

Hope it helps

Alice

0 项奖励
回复

2,617 次查看
Matt85
Contributor I

Hi, P/N for part number, which op amp is recommended to interface the ADC?

I tried the example code in the help page, it still doesn't work, most probably the impedance seen at the 3.3v pin is high/very high.

0 项奖励
回复