Bug report : lpcopen_2_10_lpcxpresso_nxp_lpcxpresso_1769, adc_17xx_40xx.c

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Bug report : lpcopen_2_10_lpcxpresso_nxp_lpcxpresso_1769, adc_17xx_40xx.c

552 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by thedaz on Thu Apr 07 09:59:29 MST 2016
The getClkDiv() function used to calculate the ADC peripheral clock prescaler ist wrong and generates way to little prescaler values causing the ADC on my LPC1769 @ 120MHz being run with 15MHz while the manual states the ADC clock should not be higher than 13MHz. Instead the formula to calculate the divider needs to be
div = (adcBlockFreq - 1) / fullAdcRate;
Labels (1)
0 Kudos
Reply
1 Reply

541 Views
lpcware
NXP Employee
NXP Employee
bump
0 Kudos
Reply