
AT32F413
Series Reference Manual
2022.06.27
Page 354
Rev 2.00
SDIO interrupts
There is a pin with interrupt feature on the SD interface in oder to enable the SD I/O card to interrupt the
MultiMedia card/SD module. In 4-bit SD mode, this pin is SDIO_D1. The SD I/O interrupts are detected
when the level is active. In other words, the interrupt signal line must be active (low) before it is
recognized and responded by the MultiMedia card/SD module, and will remain inactive (high) at the end
of the interrupt routine.
When the SDIO_DTCTRL [11] bit is set, the SDIO interrupts are detected on the SDIO_D1 signal line.
23.4 SDIO registers
The device communicates with the system through 32-bit control registers accessible via AHB.
The peripheral registers must be accessed by words (32-bit).
Table 23-24
A summary of the
SDIO registers.
Register
Offset
Reset value
SDIO_PWRCTRL
0x00
0x0000 0000
SDIO_CLKCTRL
0x04
0x0000 0000
SDIO_ARG
0x08
0x0000 0000
SDIO_CMD
0x0C
0x0000 0000
SDIO_RSPCMD
0x10
0x0000 0000
SDIO_RSP1
0x14
0x0000 0000
SDIO_RSP2
0x18
0x0000 0000
SDIO_RSP3
0x1C
0x0000 0000
SDIO_RSP4
0x20
0x0000 0000
SDIO_DTTMR
0x24
0x0000 0000
SDIO_DTLEN
0x28
0x0000 0000
SDIO_DTCTRL
0x2C
0x0000 0000
SDIO_DTCNTR
0x30
0x0000 0000
SDIO_STS
0x34
0x0000 0000
SDIO_INTCLR
0x38
0x0000 0000
SDIO_INTEN
0x3C
0x0000 0000
SDIO_BUFCNTR
0x48
0x0000 0000
SDIO_BUF
0x80
0x0000 0000
23.4.1 SDIO power control register (SDIO_ PWRCTRL)
Bit
Register
Reset value
Type
Description
Bit 31: 2
Reserved
0x0000 0000 resd
Kept at its default value.
Bit 1: 0
PS
0x0
rw
Power switch
These bits are set or cleared by software. They are used
to define the current status of the card clock.
00: Power-off, the card clock is stopped.
01: Reserved
10: Reserved
11: Power-on, the card clock is started.
Note: Write access to this reg ister is not allowed within seven HCLK clock periods after
data is written.