MCP23S17 interfacing with pic18f23k22 through SPI

Submitted by priya on

Hello,

I want to interface mcp23s17  with pic controller through spi interface to glow 8 led connected on Port A and 8 led connected on port B ,

I am confused in coding,and not getting any idea about programming

can someone help me to resolve this issue?