SAM3S8B Atmel Corporation, SAM3S8B Datasheet - Page 831

no-image

SAM3S8B

Manufacturer Part Number
SAM3S8B
Description
Manufacturer
Atmel Corporation
Datasheets
Figure 34-7. Command/Response Functional Flow Diagram
11090A–ATARM–10-Feb-12
11090A–ATARM–10-Feb-12
The following flowchart shows how to send a command to the card and read the response if
needed. In this example, the status register bits are polled but setting the appropriate bits in the
interrupt enable register (HSMCI_IER) allows using an interrupt method.
Check error bits in the
Wait for command
status register
ready status flag
(1)
HSMCI_ARGR = Argument
Set the command argument
HSMCI_CMDR = Command
Read response if required
Does the command involve
Status error flags?
Set the command
Read HSMCI_SR
Read HSMCI_SR
a busy indication?
RETURN OK
NOTBUSY
CMDRDY
1
1
(1)
RETURN ERROR
Yes
No
0
RETURN OK
0
(1)
SAM3S8/SD8
SAM3S8/SD8
831
831

Related parts for SAM3S8B