LPCXpresso55S69 / LPC55S69 I²C slave mode address corruption

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

LPCXpresso55S69 / LPC55S69 I²C slave mode address corruption

709 次查看
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 项奖励
回复
1 回复

696 次查看
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 项奖励
回复