S32G3 I2c 10-bit slave address

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

S32G3 I2c 10-bit slave address

1,448 Views
tony_green
Contributor II

Hello, staff
At present, I am using S32g3 as the I2c master to read the slave information. When the slave address is 7-bit, I can read it normally, but when it is 10-bit, I can't read the information normally. What is the reason? Please help me.

0 Kudos
Reply
5 Replies

1,437 Views
Joey_z
NXP Employee
NXP Employee

hi,tony_green

Thank you for contacting us.

Do you using RDB3 development board?  Which i2c demo in RTD are you using ?

If you use the 10-bit slave address, do you can use get the ACK for slave?

If you can not get the ACK , you should check the address and setting address function correctly.

Hope it can help you.

BR

Joey 

0 Kudos
Reply

1,434 Views
tony_green
Contributor II

Hi, Joey.

I use RDB3 development board to test I2C function. The demo is basic example (I2c examples). 

When I use RDB3 as the master, I send data to the slave, and there is no ACK reception at this time. I think there is something wrong with the configuration of the master. I don't know where to set the slave to 10bit. Is the configuration in the code correct? 

Tags (1)
0 Kudos
Reply

1,421 Views
Joey_z
NXP Employee
NXP Employee

hi,tony_green

Thank you for your informaiton.

You can try to check the function of I2c_AsyncTransmit(0U, &pRequestSend);.

Then, it uses the function of I2c_Ip_MasterTransmitAddress(uint8 Instance) to transmint the address, the setting slave address will be left move one bit. You should make sure your slave that it can get the 10 bit address. And, you also can try to capture the master sending address.

Joey_z_1-1755081493896.png

 

Joey_z_0-1755081472709.png

Hope it can help you.

BR

Joey

 

0 Kudos
Reply

1,388 Views
tony_green
Contributor II

hi, joey.

At present, the slave device supports data input with 10-bit address, but the nxp code only supports 8-bit number input. If I want to read and write data to 0x123 10 bit address, how should I write the code?
Is it as shown in the figure below, but I can't find this signal on the slave. Is there something wrong?

0 Kudos
Reply

1,244 Views
Joey_z
NXP Employee
NXP Employee

hi,tony_green

Thank you for your reply.

This function should be improved; I will submit this issue to the software team.

Thanks.

BR

Joey

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2151424%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ES32G3%20I2c%2010-bit%20slave%20address%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2151424%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%2C%20staff%3CBR%20%2F%3EAt%20present%2C%20I%20am%20using%20S32g3%20as%20the%20I2c%20master%20to%20read%20the%20slave%20information.%20When%20the%20slave%20address%20is%207-bit%2C%20I%20can%20read%20it%20normally%2C%20but%20when%20it%20is%2010-bit%2C%20I%20can't%20read%20the%20information%20normally.%20What%20is%20the%20reason%3F%20Please%20help%20me.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2155188%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20S32G3%20I2c%2010-bit%20slave%20address%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2155188%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3Ehi%EF%BC%8C%3CSPAN%3Etony_green%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EThank%20you%20for%20your%20reply.%3C%2FP%3E%0A%3CP%3EThis%20function%20should%20be%20improved%3B%20I%20will%20submit%20this%20issue%20to%20the%20software%20team.%3C%2FP%3E%0A%3CP%3EThanks.%3C%2FP%3E%0A%3CP%3EBR%3C%2FP%3E%0A%3CP%3EJoey%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2152602%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20S32G3%20I2c%2010-bit%20slave%20address%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2152602%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3Ehi%2C%20joey.%3C%2FP%3E%3CP%3EAt%20present%2C%20the%20slave%20device%20supports%20data%20input%20with%2010-bit%20address%2C%20but%20the%20nxp%20code%20only%20supports%208-bit%20number%20input.%20If%20I%20want%20to%20read%20and%20write%20data%20to%200x123%2010%20bit%20address%2C%20how%20should%20I%20write%20the%20code%3F%3CBR%20%2F%3EIs%20it%20as%20shown%20in%20the%20figure%20below%2C%20but%20I%20can't%20find%20this%20signal%20on%20the%20slave.%20Is%20there%20something%20wrong%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2151613%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20S32G3%20I2c%2010-bit%20slave%20address%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2151613%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3Ehi%2C%3CSPAN%3Etony_green%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EThank%20you%20for%20your%20informaiton.%3C%2FP%3E%0A%3CP%3EYou%20can%20try%20to%20check%20the%20function%20of%26nbsp%3BI2c_AsyncTransmit(0U%2C%20%26amp%3BpRequestSend)%3B.%3C%2FP%3E%0A%3CP%3EThen%2C%20it%20uses%20the%20function%20of%26nbsp%3BI2c_Ip_MasterTransmitAddress(uint8%20Instance)%20to%20transmint%20the%20address%2C%20the%20setting%20slave%20address%20will%20be%20left%20move%20one%20bit.%20You%20should%20make%20sure%20your%20slave%20that%20it%20can%20get%20the%2010%20bit%20address.%20And%2C%20you%20also%20can%20try%20to%20capture%20the%20master%20sending%20address.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Joey_z_1-1755081493896.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Joey_z_1-1755081493896.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F352211i5FA97BAFD1D9E4B8%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Joey_z_1-1755081493896.png%22%20alt%3D%22Joey_z_1-1755081493896.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Joey_z_0-1755081472709.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Joey_z_0-1755081472709.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F352210iA537236D988C3CFE%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Joey_z_0-1755081472709.png%22%20alt%3D%22Joey_z_0-1755081472709.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EHope%20it%20can%20help%20you.%3C%2FP%3E%0A%3CP%3EBR%3C%2FP%3E%0A%3CP%3EJoey%3C%2FP%3E%0A%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2151513%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20S32G3%20I2c%2010-bit%20slave%20address%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2151513%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%2C%20Joey.%3C%2FP%3E%3CP%3EI%20use%20RDB3%20development%20board%20to%20test%20I2C%20function.%20The%20demo%20is%20basic%20example%20(I2c%20examples).%26nbsp%3B%3C%2FP%3E%3CP%3EWhen%20I%20use%20RDB3%20as%20the%20master%2C%20I%20send%20data%20to%20the%20slave%2C%20and%20there%20is%20no%20ACK%20reception%20at%20this%20time.%20I%20think%20there%20is%20something%20wrong%20with%20the%20configuration%20of%20the%20master.%20I%20don't%20know%20where%20to%20set%20the%20slave%20to%2010bit.%20Is%20the%20configuration%20in%20the%20code%20correct%3F%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2151500%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20S32G3%20I2c%2010-bit%20slave%20address%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2151500%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3Ehi%2C%3CSPAN%3Etony_green%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EThank%20you%20for%20contacting%20us.%3C%2FP%3E%0A%3CP%3EDo%20you%20using%20RDB3%20development%20board%3F%26nbsp%3B%20Which%20i2c%20demo%20in%20RTD%20are%20you%20using%20%3F%3C%2FP%3E%0A%3CP%3EIf%20you%20use%20the%2010-bit%20slave%20address%2C%20do%20you%20can%20use%20get%20the%26nbsp%3BACK%20for%20slave%3F%3C%2FP%3E%0A%3CP%3EIf%20you%20can%20not%20get%20the%20ACK%20%2C%20you%20should%20check%20the%20address%20and%20setting%20address%20function%20correctly.%3C%2FP%3E%0A%3CP%3EHope%20it%20can%20help%20you.%3C%2FP%3E%0A%3CP%3EBR%3C%2FP%3E%0A%3CP%3EJoey%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E