I2C_MasterTransferNonBlocking() bytes transfer capability

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

I2C_MasterTransferNonBlocking() bytes transfer capability

1,144件の閲覧回数
Deeps_bang
Contributor III

Hi Team, 

We are using LPC55s69 controller.

we wanted to know what's the maximum I2C bytes transferred at a time using

status_t I2C_MasterTransferNonBlocking(I2C_Type *base, i2c_master_handle_t *handle, i2c_master_transfer_t *xfer);

Is it 256 bytes or is it capable of transferring more length? 

 

Thanks & Regards,

Deep_bang

0 件の賞賛
返信
2 返答(返信)

1,064件の閲覧回数
Deeps_bang
Contributor III

Hi Pablo,

Thank you for the response. 

With mentioned  I2C non_blocking API, I could able to transfer the entire data length .

 

Thanks & Regards,

Deep_Bang

 

0 件の賞賛
返信

1,093件の閲覧回数
Pablo_Ramos
NXP Employee
NXP Employee

Hi @Deeps_bang,
If you check the examples that the SDK provide about I2C we can find that the max length is 256 bytes.

Pablo_Ramos_0-1721937639524.png

One alternative to send more than 256 bytes can be implementing a start/repeated start. This means divide the frame and add the related address, the first frame Start+address+data(256B), the second frame start+address(orginal address +256)+data(the other register data).

Hope it helps you!

0 件の賞賛
返信