SPI & I2C operation confirmation

Discussion in 'Embedded Systems and Microcontrollers' started by urb-nurd, Apr 21, 2015.

  1. urb-nurd

    Thread Starter Member

    Jul 9, 2014
    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.

    [​IMG] [​IMG]

    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.
  2. ErnieM

    AAC Fanatic!

    Apr 24, 2011
    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.
  3. urb-nurd

    Thread Starter Member

    Jul 9, 2014
    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!