LPCXpresso55S69 / LPC55S69 I²C slave mode address corruption

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

LPCXpresso55S69 / LPC55S69 I²C slave mode address corruption

711 Views
Landswellsong
Contributor I

Hi,

I'm trying to set LPC55S69 up in slave mode (got a LPCXpresso and a in house board with the MCU only). For some reason when I set the slave address, the board does not respond to it, but rather to a similar one.

E.g. I set the address to 0x46, the board would only respond and 0x4F. 

I first used mbed, but then took the code verbatim from the LPC55S69 user manual and I'm completely sure that the slave address register is set up correctly.

Any pointers to what's going on?

0 Kudos
Reply
1 Reply

698 Views
Landswellsong
Contributor I

Just tried to use the source directly from NXP documentation (slave address is `0x08`). Dummy write of a static string and dummy read in a buffer. The result of detection:

elfy@hobontica ~ $ i2cdetect -y 7
     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:                         -- -- -- -- -- -- -- -- 
10: -- -- -- -- -- -- 16 -- -- -- 1a -- -- 1d -- -- 
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
70: -- -- -- -- -- -- -- --                         
elfy@hobontica ~ $ i2cdetect -y 7
     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:                         -- 09 -- -- -- -- -- -- 
10: -- -- -- -- -- -- -- -- -- -- 1a -- -- 1d -- -- 
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
70: -- -- -- -- -- -- -- --                         
elfy@hobontica ~ $ i2cdetect -y 7
     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:                         08 09 0a -- 0c 0d -- -- 
10: -- -- -- -- -- -- -- -- -- -- 1a -- -- 1d -- -- 
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
70: -- -- -- -- -- -- -- --  

 

0 Kudos
Reply