Using multiple SPI devices and CAN bus on ESP32

Thread Starter

cyberpks

Joined Nov 29, 2020
11
I am designing a circuit and I am using arrays of 74HC165 and 74HC595 for increasing GPIO to my ESP32 microcontroller.

Wanted to understand what's the best way to use SPI on this MCU. Do I use 2 different SPI out of 4 (usually HSPI and VSPI are recommended for use), one for array of 165s and the other one for 595s.

Can I please ask for recommendation on my pin selection? Is it better to use these two separate SPI lets say, HSPI for my daisy chained 74HC165s, and the VSPI for daisy chained 74HC595s.

HSPI Pinouts
GPIO 14 - CLK
GPIO 12 - MISO
GPIO 13 - MOSI
GPIO 15 - CS0

VSPI Pinouts
GPIO 18 - CLK
GPIO 19 - MISO
GPIO 23 - MOSI
GPIO 5 - CS0

I am also going to use CAN bus on this setup, which I think would need GPIO 1 (TX) and GPIO 3 (RX). Is there anything I need to take care of when interfacing all these ICs with ESP32. Is there any probable interference complication, I need to keep in mind.
 
Top