LPC51U68 I2C Slave STAT[10:9] = SLVSTATE = 0x0 Slave address

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

LPC51U68 I2C Slave STAT[10:9] = SLVSTATE = 0x0 Slave address

758件の閲覧回数
danielgull
Contributor IV

Hi

I am working with LPC51U68. I am operating this device in I2C Slave mode. The I2C->STAT register allows me to readout the current state the I2C interface is in. There are three states available:

1. STAT[10:9] = SLVSTATE = 0x0 --> Slave address

2. STAT[10:9] = SLVSTATE = 0x1 --> Slvae receive

3. STAT[10:9] = SLVSTATE = 0x2 --> Slave transmit

I would like to know what is the read / write bit in the "Slave address" state (i.e. SLVSTATE = 0x0).

Is there a way to get this information in this state?

I would like to ACK/NAK the address depending on Read/Write and internal buffer availability.

Currently my implementation can only ACK/NACK in the other two slave states which means I am already in the data part of the I2C protocol and the address has already been ACKed.

I want to ACK/NACK the "Slave address" based on the information contained in the read/write bit.

Many thanks

Dani

ラベル(1)
タグ(2)
0 件の賞賛
1 返信

714件の閲覧回数
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello Daniel,

How about read the bit 0 of Slave Data register (SLVDAT) ?

BR

Alice

0 件の賞賛