We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hi all,
I have a grasp of setting up the ADC on the LPC2119 (by Phillps NXP). However, when it comes to reading the different channels I seem to be a little lost.
Please could someone explain how you can request the data from a specific channel of the ADC? As reading the ADDR is self explanatory, but reading a specific channel is not mentioned in the datasheet or user manual.
Many thanks
I don't think that the manual is confusing. It states very clearly that you should only enable one channel in software mode.
ADCR b7:0 Selects which of the Ain3:0 (LPC2119/2129/2194) or Ain7:0 (LPC2292/2294) pins is (are) to be sampled and converted. Only bits 3:0 should be set to 1 in the 48 or 64 pin package. In software-controlled mode, only one of these bits should be 1. In hardware scan mode, any value containing 1 to 8 ones (1 to 4 ones in the 48 or 64 pin package) can be used. All zeroes is equivalent to 0x01.
Alex
Note that this is a different user asking a slightly different question for a different processor with a different ADC, even if both chips are in the LPC21xx family.
What do you mean?
The quote in my reply is from the LPC2119 user manual, that is exactly the mcu that the question refers to.