S32K144 IIC Master

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

S32K144 IIC Master

3,434 次查看
walker_xiao
Contributor II
hello
I have some problems with the SDK example lpi2c_master_s32k144.My IIC address =0xAA, why is the address shown in the waveform not 0xAA?Data structure initialization.jpgread address.jpg
write address.jpg
标记 (1)
0 项奖励
回复
3 回复数

3,179 次查看
dianabatrlova
NXP TechSupport
NXP TechSupport

Hello,

1.

The lpi2c1.c is generated by Processor Expert. Please, do not modify it. 

If you want to change setting click on the lpi2c1:lpi2c component on the right side and after that, you will see the Configuration list.

pastedImage_1.png

2.

The 0xAA cannot be set as slave address in 7-bit address mode. The eighth bit is used for the read/write mode.

pastedImage_3.png

I hope it helps you.

Best Regards,

Diana

0 项奖励
回复

3,179 次查看
walker_xiao
Contributor II

Hello Diana,

        thanks for your reply. I would like to know whether the address can be changed by code in this example besides the address setting method you mentioned. For example, write address 0xAA directly.

Best Regards,

Walker

0 项奖励
回复

3,179 次查看
razva_tilimpea
NXP Employee
NXP Employee

Hi,

You can change the slave address at run-time with LPI2C_DRV_MasterSetSlaveAddr function.

Best regards,

Razvan

0 项奖励
回复