Bug in LPCOpen - ADC_MAX_SAMPLE_RATE

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

Bug in LPCOpen - ADC_MAX_SAMPLE_RATE

748件の閲覧回数
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 返信

665件の閲覧回数
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 件の賞賛
返信