SPI & I2C operation confirmation

Thread Starter

urb-nurd

Joined Jul 9, 2014
269
I am using a PIC18F45K22 microcontroller for a project at the moment.

I am planning to use both I2c and SPI as per this schematic.

The data sheet states there are 2 mssp modules, which i believe to mean i can configure them independently and have each one using its respective bus system.



I just wanted to confirm that i havent missed anything here as my lecturer was more than surprised that i was using both SPI and I2C at the same time.

Im not sure if it is my foolishness of his age that is causing communication issues haha.
 

Attachments

ErnieM

Joined Apr 24, 2011
8,415
You have it right: there are two independent modules and each can be configured as you wish.

I don't know why your prof is so surprised, I've done this several times when using say a RTC (clock) running off I2C and an SD card using SPI.
 

Thread Starter

urb-nurd

Joined Jul 9, 2014
269
You have it right: there are two independent modules and each can be configured as you wish.

I don't know why your prof is so surprised, I've done this several times when using say a RTC (clock) running off I2C and an SD card using SPI.
HAHA yeah..... his behaviour is somewhat of a 4-year running joke between my friends.

He has more qualifications than i have hair follicles on my genitalia yet he seems frozen in the 80's

Thanks for the confirmation!
 
Top