Rainbow Electronics AT91CAP9S250A User Manual
Page 772
Advertising
772
6264A–CAP–21-May-07
AT91CAP9S500A/AT91CAP9S250A
Figure 41-10. Multiple Write Functional Flow Diagram
Note:
1. It is assumed that this command has been correctly sent (see
2. This field is also accessible in the MCI Block Register (MCI_BLKR).
Configure the PDC channel
MCI_TPR = Data Buffer Address to write
MCI_TCR = BlockLength/4
Send WRITE_MULTIPLE_BLOCK
command
(1)
Read status register MCI_SR
Poll the bit
BLKE = 0?
Yes
MCI_PTCR = TXTEN
Set the PDCMODE bit
MCI_MR |= PDCMODE
Set the block length (in bytes)
MCI_MR |= (BlockLength << 16)
(2)
Set the block count (if necessary)
MCI_BLKR |= (BlockCount << 0)
No
Poll the bit
NOTBUSY = 0?
Yes
RETURN
No
Send STOP_TRANSMISSION
command
(1)
Send SELECT/DESELECT_CARD
command
(1)
to select the card
Send SET_BLOCKLEN command
(1)
Advertising