how to use RS485 communication and SPI expander
Posted: Thu Aug 21, 2008 10:47 am
hi friends,
I am using the pic16f877a for the RS 485 master slave communication as per the data sheet the SPI or the I2C are the serial communication with the peripherals as a master slave logic, but currently i am using the master slave communication between two pic 16f877a chips, since I need additional I/O ports for my project I am insist to use the expanders MCP23S17, . but I need to connect the master and slave through the PORTC, for RS 485 communication, but the SPI and I2C caonfiguration also in the PORTC , in this case how to manage the RS 485 communication and SPI for the expander at the same time is it possible to use at the same time
thanks
Saran
I am using the pic16f877a for the RS 485 master slave communication as per the data sheet the SPI or the I2C are the serial communication with the peripherals as a master slave logic, but currently i am using the master slave communication between two pic 16f877a chips, since I need additional I/O ports for my project I am insist to use the expanders MCP23S17, . but I need to connect the master and slave through the PORTC, for RS 485 communication, but the SPI and I2C caonfiguration also in the PORTC , in this case how to manage the RS 485 communication and SPI for the expander at the same time is it possible to use at the same time
thanks
Saran