SAM3SD8B Atmel Corporation, SAM3SD8B Datasheet - Page 833

no-image

SAM3SD8B

Manufacturer Part Number
SAM3SD8B
Description
Manufacturer
Atmel Corporation
Datasheets
Figure 34-8. Read Functional Flow Diagram
Note:
11090A–ATARM–10-Feb-12
11090A–ATARM–10-Feb-12
1. It is assumed that this command has been correctly sent (see
Number of words to read = BlockLength/4
Reset the PDCMODE bit
HSMCI_MR &= ~PDCMODE
Set the block length (in bytes)
HSMCI_MR |= (BlockLenght <<16)
Read status register HSMCI_SR
Number of words to read = 0 ?
Send READ_SINGLE_BLOCK
Number of words to read -1
Number of words to read =
Read data = HSMCI_RDR
RXRDY = 0?
No
command (1)
Poll the bit
No
No
Send SET_BLOCKLEN command
Send SELECT/DESELECT_CARD
command
Yes
Yes
RETURN
Read with PDC
(1)
to select the card
Figure
(1)
Configure the PDC channel
HSMCI_RPR = Data Buffer Address
HSMCI_RCR = BlockLength/4
HSMCI_PTCR = RXTEN
Set the PDCMODE bit
HSMCI_MR |= PDCMODE
Set the block length (in bytes)
HSMCI_MR |= (BlockLength << 16)
Send READ_SINGLE_BLOCK
Read status register HSMCI_SR
34-7).
Yes
command (1)
ENDRX = 0?
Poll the bit
RETURN
No
SAM3S8/SD8
SAM3S8/SD8
Yes
833
833

Related parts for SAM3SD8B