at91sam9260-cj ATMEL Corporation, at91sam9260-cj Datasheet - Page 561

no-image

at91sam9260-cj

Manufacturer Part Number
at91sam9260-cj
Description
At91 Arm Thumb Microcontrollers
Manufacturer
ATMEL Corporation
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
AT91SAM9260-CJ
Manufacturer:
Atmel
Quantity:
60
Part Number:
AT91SAM9260-CJ
Manufacturer:
ATMEL
Quantity:
210
Figure 35-11. Write Functional Flow Diagram
Note:
6221G–ATARM–31-Jan-08
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).
Number of words to write = BlockLength/4
Reset the PDCMODE bit
MCI_MR &= ~PDCMODE
Set the block length (in bytes)
MCI_MR |= (BlockLenght <<16) (2)
Set the block count (if necessary)
MCI_BLKR |= (BlockCount << 0)
Number of words to write = 0 ?
Read status register MCI_SR
Send WRITE_SINGLE_BLOCK
Number of words to write =
Number of words to write -1
MCI_TDR = Data to write
No
TXRDY = 0?
command (1)
Poll the bit
No
No
Send SET_BLOCKLEN command (1)
Send SELECT/DESELECT_CARD
command (1) to select the card
Yes
Yes
RETURN
Write using PDC
Figure
Configure the PDC channel
MCI_TPR = Data Buffer Address to write
MCI_TCR = BlockLength/4
Yes
35-9).
Set the PDCMODE bit
MCI_MR |= PDCMODE
Set the block length (in bytes)
MCI_BLKR |= (BlockLength << 16) (2)
Send WRITE_SINGLE_BLOCK
Read status register MCI_SR
MCI_PTCR = TXTEN
NOTBUSY= 0?
command (1)
Poll the bit
RETURN
No
AT91SAM9260
Yes
561

Related parts for at91sam9260-cj