MCP23S08 SPI Problems
Posted: Tue Oct 08, 2013 12:13 am
Hi
Has anyone got SPI working with a MCP23S08? Willing to help me out? Please.
I am trying to work out SPI stuff as I have several interfaces that need SPI communications but when I tried following the notes & circuits for the interfaces none worked. I have built many circuits but no joy.
So I thought I would just try a simple circuit first, get that working and then move back to the more intense stuff.
This is where I am at.
I am using a PIC18F4685 running with a 4Mhz crystal.
I have a RS232 chip connected to the USART TX & RX pins though at present I am not using that (it's built onto the board I have the PIC on).
I have a LED connected to RA0 and I flash this in the code just as a indication that something is happening.
I have the PIC18F4685 connected to the following MCP23S08 circuit (found in an application note somewhere) Here is the Flowcode file Anyone know why the Flowcode doesn't work?
The LED flashes but no matter what value I send to the port of the MCP23S08 the voltage on the port pins never changes.
The CS goes up and down and there is activity on the SI & SO pins (though I have only seen this using a digital multimeter not a scope (I don't have one).
Thanks for any help anyone can give, even a working project or example using a different PIC would be a great help. I have quite a few PICs so may be able to mimic your circuit).
Thanks for looking..
Regards Chris
Has anyone got SPI working with a MCP23S08? Willing to help me out? Please.
I am trying to work out SPI stuff as I have several interfaces that need SPI communications but when I tried following the notes & circuits for the interfaces none worked. I have built many circuits but no joy.
So I thought I would just try a simple circuit first, get that working and then move back to the more intense stuff.
This is where I am at.
I am using a PIC18F4685 running with a 4Mhz crystal.
I have a RS232 chip connected to the USART TX & RX pins though at present I am not using that (it's built onto the board I have the PIC on).
I have a LED connected to RA0 and I flash this in the code just as a indication that something is happening.
I have the PIC18F4685 connected to the following MCP23S08 circuit (found in an application note somewhere) Here is the Flowcode file Anyone know why the Flowcode doesn't work?
The LED flashes but no matter what value I send to the port of the MCP23S08 the voltage on the port pins never changes.
The CS goes up and down and there is activity on the SI & SO pins (though I have only seen this using a digital multimeter not a scope (I don't have one).
Thanks for any help anyone can give, even a working project or example using a different PIC would be a great help. I have quite a few PICs so may be able to mimic your circuit).
Thanks for looking..
Regards Chris