external ADs
Posted: Tue Dec 04, 2012 4:03 am
--- In ARMexpress@yahoogroups.com, "basicnode" <bruce@...> wrote:
> The LPC2103 ADC can be programmed to repetitively do conversions,
> check the User Manual and specifically the BURST bit. You would have
> to write directly to the registers to set up this operation.
I'll read up on BURT next; I did see an example using BURST for
multiple channels
http://www.standardics.nxp.com/support/ ... tn06004.pd\
f
> You could poll on the DONE bit while the conversions are in process,
> or the ADC can be setup to interrupt after each conversion.
>
> Next would be handling the interrupts. So in C this can be readily
> done.
I generally find that I need to avoid polling to be able to get
anything else done, so I'll read the man section on ADC again
http://www.standardics.nxp.com/support/ ... user.manua\
l.lpc2101.lpc2102.lpc2103.pdf
pages 185+, for other's reference
> In BASIC, it would require using an untested/undocumented
> feature that was added to be included in a future release. There are
> 4 general purpose interrupts that can be assigned by the user to this
> type of task. At present this feature is untested and no sample code
> exists, but if you want to be the guinea pig to try this out contact
> me offline.
That might be good to try; I'll let you know once I get the other
concepts straightened out.
> The LPC2103 ADC can be programmed to repetitively do conversions,
> check the User Manual and specifically the BURST bit. You would have
> to write directly to the registers to set up this operation.
I'll read up on BURT next; I did see an example using BURST for
multiple channels
http://www.standardics.nxp.com/support/ ... tn06004.pd\
f
> You could poll on the DONE bit while the conversions are in process,
> or the ADC can be setup to interrupt after each conversion.
>
> Next would be handling the interrupts. So in C this can be readily
> done.
I generally find that I need to avoid polling to be able to get
anything else done, so I'll read the man section on ADC again
http://www.standardics.nxp.com/support/ ... user.manua\
l.lpc2101.lpc2102.lpc2103.pdf
pages 185+, for other's reference
> In BASIC, it would require using an untested/undocumented
> feature that was added to be included in a future release. There are
> 4 general purpose interrupts that can be assigned by the user to this
> type of task. At present this feature is untested and no sample code
> exists, but if you want to be the guinea pig to try this out contact
> me offline.
That might be good to try; I'll let you know once I get the other
concepts straightened out.