P89LPC934 ADC configuration !

Started by Jeffrey Chang, August 22, 2004, 09:30:21 PM

Previous topic - Next topic

Jeffrey Chang

I used CodeArchitecture 2.05 to generate LPC934 reference code
for AD10 (P0.1) fixed channel, continuous conversion mode.
I hope to set Timer Triggered Mode, is it necessary to configure
TIMER 0 by myself ? If yes, how to configure the TIMER 0 ?
Current CodeArchitecture set CLK[2:0]=010 for internal
osc. (7.3728 MHz) !

Andy Ayre

You need to configure the timer 0 peripheral seperately. Conversions are started on timer 0 overflow. So for mode you probably want to select "Timer (periodic overflow)" and then enter the number of milliseconds between overflows. This will ensure the ADC conversions are started every so many milliseconds.

Alternatively, if you want ADC conversions to start after so many falling edges on an input, you can select that option instead.

This gives you a great deal of flexibility to choose what you want.

Embedded Systems Academy, Inc.
support at esacademy dot com