Hello DineshSL, I need some help in using PIC16F877A-SPI-MCP23S17.... About what you said at your reply, YES, I'm planning to use MCP23S17 as a regular PORT like PORTA and other PORTS that can use either INPUT/OUTPUT in PIC16F877A... Can you give at least a Sample Code in C about Setting Up PIC16F877A SPI to MCP23S17 and setting Up MCP23S17 as Regular PORTS Input and Output like TRIS Registers of PORTA as Input... TRISA = 0xFF;.... Btw I'm using Proteus and Mikro C.... Please Help me... Thanks