SAM3SD8C Atmel Corporation, SAM3SD8C Datasheet - Page 836

no-image

SAM3SD8C

Manufacturer Part Number
SAM3SD8C
Description
Manufacturer
Atmel Corporation
Datasheets
836
836
SAM3S8/SD8
SAM3S8/SD8
The following flowchart
the PDC. Polling or interrupt method can be used to wait for the end of write according to the
contents of the Interrupt Mask Register (HSMCI_IMR).
Figure 34-10. Multiple Write Functional Flow Diagram
Note:
1. It is assumed that this command has been correctly sent (see
(Figure
Configure the PDC channel
HSMCI_TPR = Data Buffer Address
HSMCI_TCR = BlockLength/4
Send SET_BLOCKLEN command
34-10) shows how to manage a multiple write block transfer with
Send SELECT/DESELECT_CARD
Send WRITE_MULTIPLE_BLOCK
Read status register HSMCI_SR
Set the PDCMODE bit
HSMCI_MR |= PDCMODE
Set the block length
HSMCI_MR |= (BlockLength << 16)
command
Send STOP_TRANSMISSION
HSMCI_PTCR = TXTEN
NOTBUSY = 0?
command
command
(1)
Poll the bit
RETURN
BLKE = 0?
Poll the bit
to select the card
No
No
(1)
(1)
(1)
Yes
Yes
Figure
34-7).
11090A–ATARM–10-Feb-12
11090A–ATARM–10-Feb-12

Related parts for SAM3SD8C