Mr RB
Well-Known Member
Hi, I need to use a Microchip MCP23S17 16pin SPI port expander IC for the most basic application; I just need to send it 8bits to be output on 8 of its 16 pins.
All the examples i've got are way overcomplex and cover all of the IC's features including using its pins as inputs/outputs, using the IC's internal interrupts etc.
Does anyone have an example of the most basic procedure to do these 2 tasks;
1. Initialise IC and setup 8 pins (one port) as outputs
2. Then send a byte to the 8 outputs
I have limited PIC rom space (16F) to fit these 2 functions.
Thanks!
All the examples i've got are way overcomplex and cover all of the IC's features including using its pins as inputs/outputs, using the IC's internal interrupts etc.
Does anyone have an example of the most basic procedure to do these 2 tasks;
1. Initialise IC and setup 8 pins (one port) as outputs
2. Then send a byte to the 8 outputs
I have limited PIC rom space (16F) to fit these 2 functions.
Thanks!