I have an application using 16F877 with both I2C component and another PIC on SPI. Both functions are multiplexed on the same pins.
pin/SPI/I2C
RC3/SCK/SCL
RC4/SDI/SDA
RC5/SDO
Is it possible (electronically) to connect both on the same pin and communicate individually (of course one at a time)?
The reason for SPI to another PIC is that 16F877 UART is connected to modem. Besides using a software async to communicate with the second PIC, is there a better way?
Thanks in advance.
-- DJP
Jos
Joined: 15 Sep 2003 Posts: 4
Posted: Sat Mar 27, 2004 11:47 am
Why not use a software SPI-function in your program? It work's fine for me!
Jos
djpark
Joined: 02 Mar 2004 Posts: 49
Posted: Sat Mar 27, 2004 12:56 pm
Jos wrote:
Why not use a software SPI-function in your program? It work's fine for me!
Jos
Thanks for the suggestion.
Do you mean s/w-SPI on the master PIC to communicate with slave PIC?
How stable is it? Is there a sample from CCS or example to point to?
Thanks.
-- DJP
Neutone
Joined: 08 Sep 2003 Posts: 839 Location: Houston
Posted: Sat Mar 27, 2004 1:38 pm
You can dynamicaly reconfigure the port. I don't know what problems you will have but it can be multiplexed.
Haplo
Joined: 06 Sep 2003 Posts: 659 Location: Sydney, Australia
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum