I would love to know why this info on the mcp23s08 is not in the data sheet or the application notes from the manufacturer?
It has taken me a week of on-off searching to answer this question.
Thanks to all.
I would love to know why this info on the mcp23s08 is not in the data sheet or the application notes from the manufacturer?
It has taken me a week of on-off searching to answer this question.
Thanks to all.
Last edited by Larrystein; - 6th February 2014 at 14:51.
I am having a very strange problem with the Microchip MCP23S08.
It seems no matter what I do, bit #6, GP6 is ALWAYS an input.
I send 0 to the IODIR register to make all 8 bits to be outputs.
I can output to any output except GP6.
X1 VAR BYTE
MCPWRT = $40
MCPREAD = $41
MCP23S08_IODIR = 0
SHIFTOUT SDO2, SCK2, MSBFIRST, [MCPWRT,MCP23S08_IODIR,0]
if I read back the IODIR register
SHIFTOUT SDO2, SCK2, MSBFIRST, [MCPREAD,MCP23S08_IODIR]
SHIFTIN SDI2, SCK2, MSBPRE, [X1]
X1 always comes back and hex 40 indication GP6 is an input
Help!
Bookmarks