주요 콘텐츠

SD Card SPI CS Pin

Chip select (CS) pin number of the SD card

Since R2023a

Model Configuration Pane: Hardware Implementation / Hardware board settings / Target hardware resources / SPI properties

Description

Enter the chip select (CS) pin number of the SD card when interfaced with the Arduino® board for SPI communication. This table lists the Arduino boards that support configuring the CS pin for the SD card.

Note

Do not change the CS pin for the SD card when using an Arduino MKR Zero board. Because the MKR Zero board has an in-built SD card slot, the support package auto-populates the parameter.

Settings

4 | 28

You can configure virtual SPI and SPI hardware properties for ESP32 Arduino-compatible boards. You can also configure SPI modules 0 and 1 for Raspberry Pi® Pico (Arduino Compatible) and Raspberry Pi Pico W (Arduino Compatible) hardware boards.

Supported Arduino BoardsSD Card CS Pin Number
Arduino Due, Arduino Leonardo, Arduino MKR WiFi 1010, Arduino MKR 1000, Arduino Mega 2560, Arduino Mega ADK, Arduino Micro, Arduino Nano 33 BLE Sense, Arduino Nano 33 IoT, Arduino Uno4
Arduino MKR Zero28

Programmatic Use

No programmatic use is available.

Version History

Introduced in R2023a