Content originally posted in LPCWare by Wouter on Thu Jan 24 04:02:51 MST 2013
Hi,
When using the burst mode, The AD converter does repeated conversions at the rate selected by the CLKS field, scanning (if necessary) through the pins selected by 1s in the SEL field of register AD0CR. The first conversion after the start corresponds to the least-significant bit set to 1 in the SEL field, then the next higher bits (pins) set to 1 are scanned if applicable. Repeated conversions can be terminated by clearing the BURST bit (AD0CR), but the conversion in progress when
this bit is cleared will be completed.
When all enabled channels must be converted only once, the easiest solution using burst mode would be to enable the interrupt just for the enabled channel with the highest number (= last converted channel). In this interrupt the BURST bit must be cleared to disable the conversion, and the conversion result of each channel can be read from the A/D Data Registers (AD0DR0 to AD0DR7)
Regards,
Wouter