lpcware

Bug report : lpcopen_2_10_lpcxpresso_nxp_lpcxpresso_1769, adc_17xx_40xx.c

Discussion created by lpcware Employee on Jun 15, 2016
Latest reply on Jun 18, 2016 by lpcware
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;

Outcomes