rt_spi_bus_attach_device(&spi_device, SPI_FLASH_DEVICE_NAME, SPI_BUS_NAME, (void*)&spi_cs);
fm25cl64_spi_dev->bus_name = "spi3";
fm25cl64_spi_dev->cs_pin_num = FRAM_CS;
fm25cl64_spi_dev->device_name = "spi30";
fm25cl64_spi_dev->cs_port = FRAM_CS_PORT;
fm25cl64_spi_dev->cs_pin = FRAM_CS_PIN;
以上是铁电芯片的片选挂载;
VCC—3V~5V
GND—0V
SCK—-SCLK:
SI—-MOSI:
SO—-MISO:
XCS—CS :
DREQ——-:
XDCS——-:
RST———:
以上是vs1053的芯片引脚,其中一个是命令片选XCS,一个是数据片选XDCS
更多回帖