Connecting I2C and SPI Devices to PIC18F45K80

mikroC, mikroBasic and mikroPascal PRO for Microchip’s 8-bit PIC MCUs.
Post Reply
Author
Message
sgssn
Posts: 35
Joined: 13 Sep 2021 16:24

Re: Connecting I2C and SPI Devices to PIC18F45K80

#1 Post by sgssn » 05 Jul 2023 15:18

Yes, it seems you are right. There is only one MSSP-module for both functions.
In the description of the chip you find:
...
1 MSSP serial ports for SPI or I2C™ communication
...

I don't know if it is possible to use both serial functions by changing the program. Perhaps you have to find other chips to only use SPI or I2C.

regards
Gerhard

creasesuit
Posts: 1
Joined: 22 Nov 2023 09:01

Re: Connecting I2C and SPI Devices to PIC18F45K80

#2 Post by creasesuit » 22 Nov 2023 09:06

Thanks for your help. It is very helpful. I have successfully connected both I2C and SPI devices to the PIC18F45K80

head223a
Posts: 1
Joined: 24 Nov 2023 13:48

Re: Connecting I2C and SPI Devices to PIC18F45K80

#3 Post by head223a » 24 Nov 2023 13:49

I know it makes no difference, but is there a reason you routed CS1 and SDA in the back of the board? If possible, I'd avoid crossing data/clock lines. If you're more generous with those 3.3V, you can run the clock separate from TX and RX.

Post Reply

Return to “PIC PRO Compilers”