Content originally posted in LPCWare by peufeu on Sun May 29 00:10:38 MST 2011
Hello !
I'm using a LPCXpresso with LPC1114, I have experience with AVRs but I'm a bit of a newbie with LPC111x...
The microcontroller will control a circuit which sends a pulse of current through a device under test. I would like to use the ADC to sample the voltage when this current pulse is active, allowing for settling time. I would also like the pulse to be as short as possible, and the measurement to be taken as soon as possible (but after settling time of course)
I'll use one of the PWMs to control the pulse and another PWM to synchronize the ADC.
On AVR microcontrollers, the ADC doesn't sample the input when you start the ADC conversion, but a few ADC clock cycles later. Also on AVR it is recommended to wait a little after switching channels (ADMUX) before performing a conversion.
I wonder if it's the same with LPC1114 ? The datasheet (in ADC chapter) doesn't say much...
Anyone knows when the ADC sampling window occurs relative to the ADC trigger ?
Thanks guys :D