This is the mail archive of the ecos-discuss@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Re: Modifications to to ADC LPC24xx


Dear Uwe,

There seems to be significant differences between the LPC2294 and the LPC24xx according to
the UM10114 documentation. The 2294 lacks ADSTAT, ADINTEN and the eight ADDRn registers.

At a glance to your code:
I saw declaration but no use of the ADSTAT (ADC_STAT )
I found one instance of clearing the ADINTEN (ADC_INTEN) ( I have not checked
the use of ADINTEN with an other base vector)

In your ISR routine you are making use of the ADDR registers (ADC_DR()). 

The logic is somewhat different, rather than reading out each channel from the ADDRn registers
the global ADGDR data register has to be read for each conversion cycle (this will provide all
channels in time since all input seems to be multiplexed onto a single ADC)
I guess this could all be handled by the ISR routine. The converted channel's id is found
in ADGDR bits 26:24. In this case we do not need to cycle through all ADDRn registers.

This is what I can see from a cursory glance at the code. Obviuosly I'm nowhere near understanding your
code, so excuse me if I have overlooked some important points.


Regards,


Peter



Original Message ----
From: Uwe Kindler <uwe_kindler@web.de>
To: ecos-discuss@sourceware.org
Cc: duci750@yahoo.com
Sent: Tuesday, December 23, 2008 11:07:50 PM
Subject: [ECOS] Re: Modifications to to ADC LPC24xx

Hello Peter,

I've created the LPC24xx ADC driver. There are some differences between the older LPC2xxx ADC layout and between the newer LPC24xx and LPC23xx ADC peripheral. You should check if this driver is applicable for LPC2xxx variants with minor modifications. If the driver works also for LPC2xxx variants then you can provide a patch that converts the LPC24xx ADC driver into a generic LPC2xxx ADC driver.

I've also created the LPC2xxx CAN driver an also used this driver with the Olimex LPC2294 header board. So if you have further questions regarding the CAN drive you can contact me.

Regards, Uwe

-- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss


      


-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]