Bug in LPCOpen - ADC_MAX_SAMPLE_RATE

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

Bug in LPCOpen - ADC_MAX_SAMPLE_RATE

743 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by brownm on Mon Oct 20 18:31:22 MST 2014
Hi there

In the LPCOpen 11u68 ADC example named periph_adc

The ADC clock rate is set in main() as follows.

/* Setup for maximum ADC clock rate using sycnchronous clocking */
Chip_ADC_SetClockRate(LPC_ADC, ADC_MAX_SAMPLE_RATE);

In the header file adc_11u6x.h

/** Maximum sample rate in Hz (12-bit conversions) */
#define ADC_MAX_SAMPLE_RATE 50000000                     //<---------------------BADNESS HERE


50MHz is too fast.

The user manual  page 299

Maximum 12-bit conversion rate of 2 Msamples/s (VDD = 2.7 V to 3.6 V) or
1 Msamples/s (VDD = 2.4 V to 2.7 V).

Using 50Mhz causes weirdness all over the place.

Regards
Marshall


标签 (1)
0 项奖励
回复
1 回复

660 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by NXP_Paul on Thu Oct 23 13:42:22 MST 2014
Thank you for bringing this to our attention.
I will inform the software team about this issue.
Regards
Paul
0 项奖励
回复