STM32 SD卡 TF卡 SPI 接口

Posted on 2011-08-25 12:45  蓝色星宇  阅读(5423)  评论(0编辑  收藏  举报

  SD卡和TF卡管脚定义有区别,需要注意。

*          +-------------------------------------------------------+
  *          |                     Pin assignment                    |
  *          +-------------------------+---------------+-------------+
  *          |  STM32 SPI Pins            |     SD         |    Pin      |  TF Pin
  *          +-------------------------+---------------+-------------+
  *          | SD_SPI_CS_PIN             |   ChipSelect   |    1        |    2
  *          | SD_SPI_MOSI_PIN / MOSI   |   DataIn       |    2        |    3
  *          |                         |   GND         |    3 (0 V)   |
  *          |                         |   VDD         |    4 (3.3 V) |     |   4
  *          | SD_SPI_SCK_PIN / SCLK     |   Clock        |    5        |    5
  *          |                         |   GND         |    6 (0 V)    |  6  |   6
  *          | SD_SPI_MISO_PIN / MISO    |   DataOut      |    7        |   7
  *          +-------------------------+---------------+-------------+

Copyright © 2024 蓝色星宇
Powered by .NET 9.0 on Kubernetes

跟小D每日学口语 跟小D每日学口语