An issue regarding slave bit errors in LPI2C

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

An issue regarding slave bit errors in LPI2C

Jump to solution
158 Views
GXY
Contributor III

I am using S32K146, and the manual states that a bit error will be triggered when the slave sends 1 but the bus is 0. However, in actual testing, a bit error will also be triggered when the slave sends 0 but the bus is 1. I want to know if this phenomenon is correct?

0 Kudos
Reply
1 Solution
112 Views
Julián_AragónM
NXP TechSupport
NXP TechSupport

Hi @GXY,

Yes, this is correct. Bit error flag is triggered once slave is driving SDA, but samples different
value than what is expected, not necessarily only when it sends 1 and reads 0.

My guess is that the register description is simply stating an example for when the bit error flag is set.

Julin_AragnM_0-1782338806510.png

Julin_AragnM_1-1782338836158.png

Best regards,
Julián

View solution in original post

1 Reply
113 Views
Julián_AragónM
NXP TechSupport
NXP TechSupport

Hi @GXY,

Yes, this is correct. Bit error flag is triggered once slave is driving SDA, but samples different
value than what is expected, not necessarily only when it sends 1 and reads 0.

My guess is that the register description is simply stating an example for when the bit error flag is set.

Julin_AragnM_0-1782338806510.png

Julin_AragnM_1-1782338836158.png

Best regards,
Julián

%3CLINGO-SUB%20id%3D%22lingo-sub-2385614%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EAn%20issue%20regarding%20slave%20bit%20errors%20in%20LPI2C%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2385614%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EI%20am%20using%20S32K146%2C%20and%20the%20manual%20states%20that%20a%20bit%20error%20will%20be%20triggered%20when%20the%20slave%20sends%201%20but%20the%20bus%20is%200.%20However%2C%20in%20actual%20testing%2C%20a%20bit%20error%20will%20also%20be%20triggered%20when%20the%20slave%20sends%200%20but%20the%20bus%20is%201.%20I%20want%20to%20know%20if%20this%20phenomenon%20is%20correct%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2386010%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20An%20issue%20regarding%20slave%20bit%20errors%20in%20LPI2C%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2386010%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F254513%22%20target%3D%22_blank%22%3E%40GXY%3C%2FA%3E%2C%3C%2FP%3E%0A%3CP%3EYes%2C%20this%20is%20correct.%20Bit%20error%20flag%20is%20triggered%20once%26nbsp%3Bslave%20is%20driving%20SDA%2C%20but%20samples%20different%3CBR%20%2F%3Evalue%20than%20what%20is%20expected%2C%20not%20necessarily%20only%20when%20it%20sends%201%20and%20reads%200.%3C%2FP%3E%0A%3CP%3EMy%20guess%20is%20that%20the%20register%20description%20is%20simply%20stating%20an%20example%20for%20when%20the%20bit%20error%20flag%20is%20set.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Julin_AragnM_0-1782338806510.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Julin_AragnM_0-1782338806510.png%22%20style%3D%22width%3A%20382px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F390055iEDAFCCE736A5E421%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Julin_AragnM_0-1782338806510.png%22%20alt%3D%22Julin_AragnM_0-1782338806510.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Julin_AragnM_1-1782338836158.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Julin_AragnM_1-1782338836158.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F390056iB6C9D2259AD264D6%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Julin_AragnM_1-1782338836158.png%22%20alt%3D%22Julin_AragnM_1-1782338836158.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EBest%20regards%2C%3CBR%20%2F%3EJuli%C3%A1n%3C%2FP%3E%3C%2FLINGO-BODY%3E