EmbeddedRelated.com
Forums
Memfault Beyond the Launch

Why LPC18xx has 16 pins for ADC but only 8 channels?

Started by ntchien2013 August 6, 2013
Hello,

> > I think the chance to get support from NXP is prety low.

> If you are posting your messages here NXP are unlikely to see them.
> They are responding to messages posted in their forums e.g.
> http://www.lpcware.com/forums/microprocessor-forums/lpc18xx

But also on lpcware.com it is unlikely you get an answer...

And if you really get an answer, a notification
comes 3 weeks later via email...
so good to check your questions periodically...

But it is not a NXP related thing,
other companies have the same problems with their support...

Best regards,

Martin

An Engineer's Guide to the LPC2100 Series

Dear Arie,

thank you for your reply.
I think that could be a good explain.

Best regards,
Chien

--- In l..., Ariehl wrote:
>
> My dear man when doing a PCB it is good to have flexibility. In choosing the pins all the more so in a bga package. So you have more pins to give you more options in routing.I have not worked with the lpc18xx.The same is true for chip selects.
>
> Arie
>

I can see why you say it is hard to understand. I am completely
confused by the statement "All ADC channels are shared between ADC0 and
ADC1." I would appreciate it if somebody can explain why only 8 ADC
input channels are shown in Table 967 in UM10430 when Table 967 shows 15
analog functions. My guess is "shared" has an unusual meaning in this
context and limits the LCP1850 to 8 ADC channels.

However irrespective of my confusion about the meaning of "shared" I am
convinced the LPC1800 series of MCUs have a maximum of 8 ADC channels.
Page 1050 in UM10430 says "Input multiplexing among 8 pins. And by the
number of ADC channels for the different MCUs in the LPC1800 series as
shown by this document



Howard
On 8/7/2013 7:33 AM, Felipe de Andrade Neves Lavratti wrote:
> It is hard to understand, I still didn't get it fully yet.
>
> But, read this at page 275:
> Remark: The ADC input channels are shared between ADC0 and ADC1 on all
> LPC18xx
> parts. This means that input ADC0_n is connected to channel n on ADC0 and
> ADC1 and
> input ADC1_n is connected to channel n on ADC0 and ADC1, See Table 130 and
> Table 132.
>
> Mapping the ADC pins we get:
> P4_1 ADC0_1 (ADC cannel ADC0_1 and/or ADC1_1 available)
> P4_3 ADC0_0 ( " " )
> P7_4 ADC0_4 ( " " )
> P7_5 ADC0_3 ( " " )
> P7_7 ADC1_6 ( " " )
> PB_6 ADC0_6 ( " " )
> PC_0 ADC1_1 ( " " )
> PC_3 ADC1_0 ( " " )
> PF_5 ADC1_4 ( " " )
> PF_6 ADC1_3 ( " " )
> PF_7 ADC1_7 ( " " )
> PF_8 ADC0_2 ( " " )
> PF_9 ADC1_2 ( " " )
> PF_10 ADC0_5 ( " " )
> PF_11 ADC1_5 ( " " )
>
> The truth is: In each of the above pins, you can get either ADC0 or ADC1
> channel to work with.
>
> Now, you have to check what pins are available in your LPC18xx package and
> your board. This information is listed on page 1148.
>
> On Wed, Aug 7, 2013 at 8:50 AM, ntchien2013 wrote:
>
>> **
>> Hi Felipeanl,
>>
>> I agree with what you said but still not clear about using of ADC.
>> For example in the lpc18xx User Manual
>> Channel 1 ADC:
>> Page 183: P4_1 coresponds to Pin A1 is ADC0_1
>> Page 202: PC_0 coresponds to Pin D4 is ADC1_1
>> Page 220: Pin C3 corespond to ADC0_1/ADC1_1 for channel 1 of ADC0/1
>> So in order to use ADC channel1, which pin should I connect to? In the
>> board mcb1800 they connected to C3 but why they needs the other pin for?
>>
>> Best regards,
>> Chien
>> --- I..., Felipe de Andrade Neves Lavratti
>> wrote:
>>> I've just read the User Manual, and that's it. They've shared the pins
>>> among the two ADCs. So, in practice, you've got only 8 ADC inputs
>>> available. There is no way of getting the 16 inputs outside the chip in a
>>> parallel fashion.
>>>
>>
>>

[Non-text portions of this message have been removed]

I think the opposite. Depending the package, you will have up to 16 ADCs.

Em quinta-feira, 8 de agosto de 2013, Howard Hansen escreveu:

> **
> I can see why you say it is hard to understand. I am completely
> confused by the statement "All ADC channels are shared between ADC0 and
> ADC1." I would appreciate it if somebody can explain why only 8 ADC
> input channels are shown in Table 967 in UM10430 when Table 967 shows 15
> analog functions. My guess is "shared" has an unusual meaning in this
> context and limits the LCP1850 to 8 ADC channels.
>
> However irrespective of my confusion about the meaning of "shared" I am
> convinced the LPC1800 series of MCUs have a maximum of 8 ADC channels.
> Page 1050 in UM10430 says "Input multiplexing among 8 pins. And by the
> number of ADC channels for the different MCUs in the LPC1800 series as
> shown by this document
> <
> http://www.nxp.com/products/microcontrollers/cortex_m3/series/LPC1800.html#quickreference> <
> http://www.nxp.com/products/microcontrollers/cortex_m3/series/LPC1800.html#quickreference
> > Howard
>
> On 8/7/2013 7:33 AM, Felipe de Andrade Neves Lavratti wrote:
> > It is hard to understand, I still didn't get it fully yet.
> >
> > But, read this at page 275:
> > Remark: The ADC input channels are shared between ADC0 and ADC1 on all
> > LPC18xx
> > parts. This means that input ADC0_n is connected to channel n on ADC0 and
> > ADC1 and
> > input ADC1_n is connected to channel n on ADC0 and ADC1, See Table 130
> and
> > Table 132.
> >
> > Mapping the ADC pins we get:
> > P4_1 ADC0_1 (ADC cannel ADC0_1 and/or ADC1_1 available)
> > P4_3 ADC0_0 ( " " )
> > P7_4 ADC0_4 ( " " )
> > P7_5 ADC0_3 ( " " )
> > P7_7 ADC1_6 ( " " )
> > PB_6 ADC0_6 ( " " )
> > PC_0 ADC1_1 ( " " )
> > PC_3 ADC1_0 ( " " )
> > PF_5 ADC1_4 ( " " )
> > PF_6 ADC1_3 ( " " )
> > PF_7 ADC1_7 ( " " )
> > PF_8 ADC0_2 ( " " )
> > PF_9 ADC1_2 ( " " )
> > PF_10 ADC0_5 ( " " )
> > PF_11 ADC1_5 ( " " )
> >
> > The truth is: In each of the above pins, you can get either ADC0 or ADC1
> > channel to work with.
> >
> > Now, you have to check what pins are available in your LPC18xx package
> and
> > your board. This information is listed on page 1148.
> >
> >
> >
> >
> >
> > On Wed, Aug 7, 2013 at 8:50 AM, ntchien2013>
> wrote:
> >
> >> **
> >>
> >>
> >> Hi Felipeanl,
> >>
> >> I agree with what you said but still not clear about using of ADC.
> >> For example in the lpc18xx User Manual
> >> Channel 1 ADC:
> >> Page 183: P4_1 coresponds to Pin A1 is ADC0_1
> >> Page 202: PC_0 coresponds to Pin D4 is ADC1_1
> >> Page 220: Pin C3 corespond to ADC0_1/ADC1_1 for channel 1 of ADC0/1
> >> So in order to use ADC channel1, which pin should I connect to? In the
> >> board mcb1800 they connected to C3 but why they needs the other pin for?
> >>
> >> Best regards,
> >> Chien
> >>
> >>
> >> --- I... > 'Inlpc2000%40yahoogroups.com');>, Felipe de Andrade Neves Lavratti
> >> wrote:
> >>> I've just read the User Manual, and that's it. They've shared the pins
> >>> among the two ADCs. So, in practice, you've got only 8 ADC inputs
> >>> available. There is no way of getting the 16 inputs outside the chip
> in a
> >>> parallel fashion.
> >>>
> >>
> >> [Non-text portions of this message have been removed]
>
>
>
--
Skype: felipeanl
[Non-text portions of this message have been removed]

Hi,

The datasheet, website and user manual all contradict
each other. The text is clear in that there should be
only up to 8 input lines connecting to two ADCs. The
tables on the otherhand show up to 16 input lines
connecting to two ADCs.

On Thu, 2013-08-08 at 21:52 -0300, Felipe de Andrade Neves Lavratti
wrote:
> I think the opposite. Depending the package, you will have up to 16 ADCs.

Put in a support call to NXP and ask about it. Make them
provide a "schematic" on how things are connected.

The cost of an explorer board at 330 euro is to high for
me to do some experiments with a processor I do not need
:-(

roelof

I think the answer is really quite different to what has been discussed so
far.

Do not get confused between ADC channels and dedicated analog channels,.

From the user manual there are 2 8 channel 10 bit ADC's, theses can be
multiplexed to a variety of pins, there are also 8 dedicated analog input
pins which they can use So there are 16 ADC channels in total, how you
multiplex them is up to you.

Generally the reason for having "Analog input channels" as opposed to
multiplexing the analog function onto a digital pin is for performance, so
the dedicated analog input pins will have lower capacitance, higher
impedance, and lower noise than when the inputs are multiplexed onto the
digital pins.

Usually they also have a dedicated power network to help reduce noise.

Simply uses these pins as a first preference, but if you need more than 8
channels multiplex the least critical signals onto the shared pins and use
the dedicated analog pins for the most critical.

Regards

Phil.

From: l... [mailto:l...] On Behalf Of
Howard Hansen
Sent: 09 August 2013 01:02
To: l...
Subject: Re: [lpc2000] Re: Why LPC18xx has 16 pins for ADC but only 8
channels?

I can see why you say it is hard to understand. I am completely
confused by the statement "All ADC channels are shared between ADC0 and
ADC1." I would appreciate it if somebody can explain why only 8 ADC
input channels are shown in Table 967 in UM10430 when Table 967 shows 15
analog functions. My guess is "shared" has an unusual meaning in this
context and limits the LCP1850 to 8 ADC channels.

However irrespective of my confusion about the meaning of "shared" I am
convinced the LPC1800 series of MCUs have a maximum of 8 ADC channels.
Page 1050 in UM10430 says "Input multiplexing among 8 pins. And by the
number of ADC channels for the different MCUs in the LPC1800 series as
shown by this document
quickreference>
quickreference>

Howard

On 8/7/2013 7:33 AM, Felipe de Andrade Neves Lavratti wrote:
> It is hard to understand, I still didn't get it fully yet.
>
> But, read this at page 275:
> Remark: The ADC input channels are shared between ADC0 and ADC1 on all
> LPC18xx
> parts. This means that input ADC0_n is connected to channel n on ADC0 and
> ADC1 and
> input ADC1_n is connected to channel n on ADC0 and ADC1, See Table 130 and
> Table 132.
>
> Mapping the ADC pins we get:
> P4_1 ADC0_1 (ADC cannel ADC0_1 and/or ADC1_1 available)
> P4_3 ADC0_0 ( " " )
> P7_4 ADC0_4 ( " " )
> P7_5 ADC0_3 ( " " )
> P7_7 ADC1_6 ( " " )
> PB_6 ADC0_6 ( " " )
> PC_0 ADC1_1 ( " " )
> PC_3 ADC1_0 ( " " )
> PF_5 ADC1_4 ( " " )
> PF_6 ADC1_3 ( " " )
> PF_7 ADC1_7 ( " " )
> PF_8 ADC0_2 ( " " )
> PF_9 ADC1_2 ( " " )
> PF_10 ADC0_5 ( " " )
> PF_11 ADC1_5 ( " " )
>
> The truth is: In each of the above pins, you can get either ADC0 or ADC1
> channel to work with.
>
> Now, you have to check what pins are available in your LPC18xx package and
> your board. This information is listed on page 1148.
>
> On Wed, Aug 7, 2013 at 8:50 AM, ntchien2013
> wrote:
>
>> **
>> Hi Felipeanl,
>>
>> I agree with what you said but still not clear about using of ADC.
>> For example in the lpc18xx User Manual
>> Channel 1 ADC:
>> Page 183: P4_1 coresponds to Pin A1 is ADC0_1
>> Page 202: PC_0 coresponds to Pin D4 is ADC1_1
>> Page 220: Pin C3 corespond to ADC0_1/ADC1_1 for channel 1 of ADC0/1
>> So in order to use ADC channel1, which pin should I connect to? In the
>> board mcb1800 they connected to C3 but why they needs the other pin for?
>>
>> Best regards,
>> Chien
>> --- Inl... ,
Felipe de Andrade Neves Lavratti
>> wrote:
>>> I've just read the User Manual, and that's it. They've shared the pins
>>> among the two ADCs. So, in practice, you've got only 8 ADC inputs
>>> available. There is no way of getting the 16 inputs outside the chip in
a
>>> parallel fashion.
>>>

[Non-text portions of this message have been removed]

[Non-text portions of this message have been removed]

Hi Phil,

On 09.08.2013 11:56, Phil Young wrote:
>
>
> I think the answer is really quite different to what has been discussed so
> far.
>
Unfortunately, it is exactly like what has been discussed so far... :-(

Only eight ADC channels can be used at a time, seven if you also use the
DAC.
The choice left is to select your favorite ADC to do the conversion.

Channel 0 of ADC is *physically wired* to channel 0 of ADC1, and so
forth for all eight channels.

Regards,
Rolf

[Non-text portions of this message have been removed]

So, there is no way of using ADC1_1 and ADC0_1 at the same time, even on
different pins?
On Fri, Aug 9, 2013 at 4:12 PM, Rolf Meeser wrote:

> **
> Hi Phil,
> On 09.08.2013 11:56, Phil Young wrote:
> >
> >
> > I think the answer is really quite different to what has been discussed
> so
> > far.
> >
> Unfortunately, it is exactly like what has been discussed so far... :-(
>
> Only eight ADC channels can be used at a time, seven if you also use the
> DAC.
> The choice left is to select your favorite ADC to do the conversion.
>
> Channel 0 of ADC is *physically wired* to channel 0 of ADC1, and so
> forth for all eight channels.
>
> Regards,
> Rolf
> [Non-text portions of this message have been removed]
>
>
>

--
Skype: felipeanl
[Non-text portions of this message have been removed]

Nope...

On 09.08.2013 21:29, Felipe de Andrade Neves Lavratti wrote:
> So, there is no way of using ADC1_1 and ADC0_1 at the same time, even on
> different pins?

Hi Rolf,

Is there an Errata for this then, because I can't find that in the errata on
LPCWare.

According to the UM there are 8 dedicated ADC inputs, 7 if you use the DAC,
but additionally you can re-use some of the digital IO pins as ADC inputs.

This is controlled using the ENAIO0/1 registers.

The NXP manuals are often ambiguous as I have found many times, particularly
with the LPC43xx parts which share the same peripherals but interpreting
them in the only way that makes sense the ENAIO0/1 register bits should
multiplex the actual ADC inputs between the dedicated ADC input pins and the
shared IO pins.

If the corresponding but is set in this register I would expect the ADC
input to be routed from the shared digital pin instead of the dedicated
analog input.

Do you have some other information?.

Regards

Phil.

From: l... [mailto:l...] On Behalf Of
Rolf Meeser
Sent: 09 August 2013 20:12
To: l...
Subject: Re: [lpc2000] Re: Why LPC18xx has 16 pins for ADC but only 8
channels?

Hi Phil,

On 09.08.2013 11:56, Phil Young wrote:
> I think the answer is really quite different to what has been discussed so
> far.
>
Unfortunately, it is exactly like what has been discussed so far... :-(

Only eight ADC channels can be used at a time, seven if you also use the
DAC.
The choice left is to select your favorite ADC to do the conversion.

Channel 0 of ADC is *physically wired* to channel 0 of ADC1, and so
forth for all eight channels.

Regards,
Rolf

[Non-text portions of this message have been removed]

[Non-text portions of this message have been removed]


Memfault Beyond the Launch