Refer to the AN10974 LPC176x/175x 12-bit ADC design guidelines: http://www.nxp.com/documents/application_note/AN10974.pdf