Yahoo Groups archive

Lpc2000

Index last updated: 2026-04-28 23:31 UTC

Message

Re: i2c test code

2004-03-18 by golssa

The Ashling code is very crude, it doesen't work when you change the 
CPU clock frequency of the CPU to its max of 60MHz for example. It 
also does not generate I2C transactions that allow access to multiple 
devices on the I2C bus.

Since the Arm I2C peripheral is very similar to some Philips 8051 I2C 
peripherals hopefully Philips will port their 8051 IIC code examples 
to the Arm at some point.

Good peripheral software examples are unfortunately almost completely 
lacking for this processor.


--- In lpc2000@yahoogroups.com, "*****" <billygadget@y...> wrote:
> Hi Bill,
> 
> If you download the 'demo' from www.ashling.com they a have a 
> quick 'n' dirty example of I2C for thier LPC2106 demo board so you 
> can see how its done
> 
> regards Billy
>  
> 
> --- In lpc2000@yahoogroups.com, "Bill Knight" <billk7670@c...> 
wrote:
> > Does anyone have some quick-and-dirty code for testing the i2c
> > interface on the LPC?  I'm doing a hardware checkout of a PCB 
prior 
> to
> > sending it in for second spin.  All I really need is the ability 
to 
> do
> > a simple read and write to a single slave device.  Elegant, 
> interrupt
> > driven code will follow AFTER the PCB spin.
> > 
> > Thanks in advance.
> > 
> > -Bill Knight
> > R O SoftWare

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.