S32K144 IIC Master
01-15-2019
01:46 AM
2,221 Views
walker_xiao
Contributor II
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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?
3 Replies
01-16-2019
05:53 AM
1,966 Views
dianabatrlova
NXP TechSupport
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
2.
The 0xAA cannot be set as slave address in 7-bit address mode. The eighth bit is used for the read/write mode.
I hope it helps you.
Best Regards,
Diana
01-16-2019
06:55 AM
1,966 Views
walker_xiao
Contributor II
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
01-17-2019
07:53 AM
1,966 Views
razva_tilimpea
NXP Employee
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
You can change the slave address at run-time with LPI2C_DRV_MasterSetSlaveAddr function.
Best regards,
Razvan