[ECOS] Re: Modifications to to ADC LPC24xx

Peter Huszar duci750@yahoo.com
Fri Dec 26 12:22:00 GMT 2008


Hello Uwe,

I've been looking at the differences between 22xx and 24xx. 
Here are some of my initial findings:
- There are no individual data registers for each channel in the LPC22xx/LPC21xx (except for "01" suffix parts)
- There is only one ADC we have to find out from the global data register,
  which multiplexed channel was converted. The ISR and DSR will not need to loop through the 
  existing possibilities but use the channel found in the Global Data Register should be used.

- On the LPC22xx we have 8 channels, but the high order channels are multiplexed
  with external memory (chip select, data and block selects), so it can only be used
  if these are not required.

- The PIN Function Select Register (0xE002 C014) is totally different from the LC22xx/LPC21xx
  Only PIN Function Select register 1 and 2 are available (0xC002 0000 and 0xC002 0004)

- The function CYG_HAL_ARM_LPC2XXX_PIN_CFG() must be limited to the the low order
  channels. (by the way, this function is not present in the LPC22xx generic implementation).

I would like to know your opinion about placing #if -s in your code? 
Would you rather prefer if your code would be used to create an LPC22xx specific version in a new location?
The downside of moving the code to a new location is the maintenance of the relatively recent code.



Thanks


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



More information about the Ecos-discuss mailing list