why when I set the STA bit and scope the I2C bus, I see data being transmited? I didn't write anything in the I2DAT register! Gus --- In lpc2000@yahoogroups.com, "Thiadmer Riemersma (ITB CompuPhase)" <go@c...> wrote: > > 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
Message
Re: I2C Restart
2005-05-21 by Gus
Attachments
- No local attachments were found for this message.