S32K144 IIC Master

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

S32K144 IIC Master

3,420件の閲覧回数
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,165件の閲覧回数
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,165件の閲覧回数
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,165件の閲覧回数
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 件の賞賛
返信