Pages

Monday, May 13, 2013

MCP23S17 detection failure!


So I ran the spi_00_detect, first with the SPI cable looping back MOSI to MISO, then with the cable connected to the MCP23S17.

The looping back detection is OK.  But no luck for the MCP23S17.  It was all zeros!.

I remember I forgot to set the Reset pin to no reset.  So there is still hope!

pi@raspberrypi ~/python_programs/test_decoder $ sudo ./spi_00_detect
spi mode: 0
bits per word: 8
max speed: 500000 Hz (500 KHz)

FF FF FF FF FF FF
40 00 00 00 00 95
FF FF FF FF FF FF
FF FF FF FF FF FF
FF FF FF FF FF FF
DE AD BE EF BA AD
F0 0D
pi@raspberrypi ~/python_programs/test_decoder $ sudo ./spi_00_detect
spi mode: 0
bits per word: 8
max speed: 500000 Hz (500 KHz)

00 00 00 00 00 00
00 00 00 00 00 00
00 00 00 00 00 00
00 00 00 00 00 00
00 00 00 00 00 00
00 00 00 00 00 00
00 00
pi@raspberrypi ~/python_programs/test_decoder $ date
Mon May 13 08:56:55 UTC 2013
pi@raspberrypi ~/python_programs/test_decoder $

.END

No comments:

Post a Comment