WHC Interface and Hardware Configuration

WHC Interface Connections

The pin connections between Ameba and Raspberry Pi are as follows:

Interface

Ameba SoC pin

Raspberry Pi GPIO

Function

SDIO

PB6

GPIO 26

SDIO_DAT2

PB7

GPIO 27

SDIO_DAT3

PB8

GPIO 23

SDIO_CMD

PB9

GPIO 22

SDIO_CLK

PB13

GPIO 24

SDIO_DAT0

PB14

GPIO 25

SDIO_DAT1

SPI

PB24

GPIO 10

SPI_MOSI

PB25

GPIO 9

SPI_MISO

PB23

GPIO 11

SPI_CLK

PB26

GPIO 8

SPI_CS

PB8

GPIO 23

DEV_TX_REQ

PB9

GPIO 22

DEV_READY

Note

  • SPI DEV_TX_REQ: Ameba notifies Host of pending data transmission via rising edge on this pin

  • SPI DEV_READY: Ameba status indicator

    • High level (1): Device ready to receive data

    • Low level (0): Device busy (pause transmission)

Note

  • Default SDIO pins defined in Ameba SDK are used. If modification is required, adjust the SDIO_Pin_Grp parameter in the files below, which corresponds to the pinmux index in SDIO_PAD :

    file location: component/soc/usrcfg/amebadplus/ameba_intfcfg.c

  • Host-side SDIO interrupt requirements:

    • By default, SDIO_DATA1 is used.

    • If the Host does not support SDIO interrupts:

      • It can switch to polling mode for communication.

      • If the Host requires GPIO-based interrupts: The Ameba platform provides limited configurable GPIOs for this functionality. For detailed configurations and supported GPIO lists, currently request, please contact us.

WHC SDIO Adapter Board

Realtek provides adapter board that enables convenient connection to mini SD card slots. It is recommended to use dedicated adapter boards for interfacing with SDIO pins.

../../_images/sdio_adapter_board.jpg

WHC SDIO adapter board (physical diagram)

Note

Realtek official adapter boards will be available soon. Currently request samples, please contact us.

WHC Raspberry Pi Direct Connection

For high-speed scenarios, directly solder Ameba SDIO pins to Raspberry Pi GPIO.

../../_images/connection_with_raspberry_pi.jpg

Ameba-Raspberry Pi direct connection diagram