Yahoo Groups archive

Lpc2000

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

Message

Re: need i2c help please

2005-05-24 by dadebertolino1

--- In lpc2000@yahoogroups.com, b clapper <clapper@b...> wrote:
> Hi D.,
> Thanks for your note. I'm currently not using interrupts to drive
> the i2c. I only have one device on the bus and didn't think it was
> necessary. Do you think that's a problem?
> 
> In your setup do you use the same duty cycles for I2CSCLL/I2CSCLH?
> or are they equal? Does it matter?
> 
> Anyway, thanks for your help.
> 
> Bryan.

Hi Bryan,
I decided to use an Interrupt driven routine because I need to write 
1KByte frame twice at second (the entire ldc field), and I can't wait 
until the routine will end (I need to do other things in that time).
And the routine is very simple (perhaps more than the non interrupt
one)
In my setup I use the same value for I2CSCLL & I2CSCLH.
Anyway, I think it will not represent a problem if the 2 value 
differing one from the other of a unit.
If you think that this is the problem try to put the same value (the 
higher one for both) in the two register.
In any case, in my application, the lcd controller (ste2002) is
enabled to work at 1MHz, while the I2C is enabled to work at a max of 
400KHz.
If you think it can help, I can post my I2C routine (in GCC)

Good luck
Davide Bertolino

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.