Yahoo Groups archive

Lpc2000

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

Message

Re: I2C Restart

2005-05-21 by Thiadmer Riemersma (ITB CompuPhase)

> The events are:
>   I2CONSET = START
>   Slave Addr Write
>   Command Byte
>   I2CONSET = ????  // restart
>   Slave Addr Read
>   Followed by 1 or more reads until
>   I2CONSET = STOP

At the ????, you would just need to set the START bit again (0x20); if
all goes well, you will then enter state 0x10 (instead of 0x08). Note
that you also have to clear the start bit after getting into states
0x08  and/or ox10 (through I2CONCLR). The STOP bit is cleared
automatically by the hardware, but the start bit is not.

I hope this helps,
Thiadmer

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.