Flash Magic Forum

Archive => Old Topics => Topic started by: Jeffrey Chang on August 22, 2004, 09:30:21 PM

Title: P89LPC934 ADC configuration !
Post by: Jeffrey Chang on August 22, 2004, 09:30:21 PM
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) !
Title: Re: P89LPC934 ADC configuration !
Post by: Andy Ayre on August 24, 2004, 12:05:54 PM
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.