Atmel SAM4S-XPLD Atmel ATSAM4S-XPLD ATSAM4S-XPLD Hoja De Datos

Los códigos de productos
ATSAM4S-XPLD
Descargar
Página de 1125
 821
SAM4S [DATASHEET]
11100E–ATARM–24-Jul-13
Figure 37-10.Multiple Write Functional Flow Diagram 
Note:
1.
It is assumed that this command has been correctly sent (see 
).
Send SELECT/DESELECT_CARD
command
(1)
to select the card
Send SET_BLOCKLEN command
(1)
Set the PDCMODE bit
HSMCI_MR = PDCMODE
Set the block length
HSMCI_MR = (BlockLength
16)
Configure the PDC channel
HSMCI_TPR = Data Buffer Address
HSMCI_TCR = BlockLength/4
Send WRITE_MULTIPLE_BLOCK
command
(1)
Read status register HSMCI_SR
Poll the bit
BLKE = 0
Yes
No
HSMCI_PTCR = TXTEN
Poll the bit
NOTBUSY = 0
Yes
RETURN
No
Send STOP_TRANSMISSION
command
(1)