Both feature SPI and IIC

Thread Starter

MTech1

Joined Feb 15, 2023
181
Hey there,

I've been exploring the capabilities of the PIC18f45k22, and it seems like using both SPI and IIC simultaneously might not be possible due to the single MSSP module. From what I've seen, it appears that SCL and SCK share the same pin, which can limit the concurrent use of both protocols.

In a case when we have one device that works on SPI and another work on I2C. In this situation what would be possible solution ?
 

Jon Chandler

Joined Jun 12, 2008
1,560
The 18F45K22 has two MSSP modules:

SmartSelect_20240106_040420_Dropbox.jpg

I have run I2C and SPI devices from the same pins. The I2C devices will ignore transmission without their address, and SPI will ignore anything sent while CS/ is high.
 

Thread Starter

MTech1

Joined Feb 15, 2023
181
The 18F45K22 has two MSSP modules:

I have run I2C and SPI devices from the same pins. The I2C devices will ignore transmission without their address, and SPI will ignore anything sent while CS/ is high.
Could you share more about the connections needed to simultaneously run both I2C and SPI devices on the PIC18f45k22?
Specifically, how would the connections be set up considering the pins for SCL and SDA?
 
Top