embeded/esp322023. 11. 18. 22:36

spi로 된 lcd를 달면 어떻게 되긴 되는 듯

VSPI가 카메라에서 사용중이라 HSPI를 써야 한다고 한다.

[링크 : https://blog.naver.com/mapes_khkim/221893783364]

 

SPI0, SPI1은 플래시용 (사용자 사용불가)

SPI2(hspi), SPI3(vspi)

[링크 : https://devicein.tistory.com/entry/ESP32-SPI-설정-관련-팁]

 

HSPI는 17~24번 사이에 있고

VSPI는 34~42번 사이에 있는 듯.

3.8.2 Serial Peripheral Interface (SPI)
ESP32 features three SPIs (SPI, HSPI and VSPI) in slave and master modes in 1-line full-duplex and 1/2/4-line
half-duplex communication modes. These SPIs also support the following general-purpose SPI features:
• Four modes of SPI transfer format, which depend on the polarity (CPOL) and the phase (CPHA) of the SPI clock
• Up to 80 MHz (The actual speed it can reach depends on the selected pads, PCB tracing, peripheral characteristics, etc.)
• up to 64-byte FIFO All SPIs can also be connected to the external flash/SRAM and LCD. Each SPI can be served by DMA controllers.


[링크 : https://www.espressif.com/sites/default/files/documentation/esp32_datasheet_en.pdf]

 

gpio matrix를 거칠수도 있고 아닐수도 있는데 spi2(hspi) spi3(vspi)는 속도에서 차이가 없나?



Controllers SPI2 and SPI3 use signal buses starting with “HSPI” and “VSPI” respectively

[링크 : https://www.espressif.com/sites/default/files/documentation/esp32_technical_reference_manual_en.pdf#spi]

 

대충보기에는 이 제품인것 같은데

ILI9341C 칩이면 되려나?

[링크 : https://www.11st.co.kr/products/3126317068] 2.2인치 / 24,000

[링크 : https://www.11st.co.kr/products/pa/4440530323] 2.8인치 터치 / 32,030

 

+

// VSPI (default under Arduino)
    SPIClass  SPI1(VSPI);
    Adafruit_ILI9341 tft0 = Adafruit_ILI9341(&SPI1, VSP_DC, VSP_CS, VSP_RST);

  // HSPI 
    SPIClass  SPI2(HSPI);
    Adafruit_ILI9341 tft1 = Adafruit_ILI9341(&SPI2, HSP_DC, HSP_CS, HSP_RST);

[링크 : https://www.youtube.com/watch?v=UUsP7u4vkN0]

'embeded > esp32' 카테고리의 다른 글

esp32cam / esp wroom 32 - pinout  (0) 2023.11.30
esp32 bt hid  (0) 2023.11.30
LVGL (Light and Versatile Graphics Library)  (0) 2023.11.18
xtensa lx6 instruction set  (0) 2023.03.13
esp32cam ptz 카메라 완료  (0) 2021.12.30
Posted by 구차니