Need help with MCP23S08


Closed Thread
Results 1 to 13 of 13

Hybrid View

  1. #1
    Join Date
    Feb 2014
    Posts
    1


    Did you find this post helpful? Yes | No

    Default Re: Need help with MCP23S08

    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.

  2. #2
    Join Date
    Nov 2014
    Posts
    16


    Did you find this post helpful? Yes | No

    Default Re: Need help with MCP23S08

    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!

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts