I2C_MasterTransferNonBlocking() bytes transfer capability

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

I2C_MasterTransferNonBlocking() bytes transfer capability

1,101 次查看
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,021 次查看
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,050 次查看
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 项奖励
回复