at91sam9g20-cu ATMEL Corporation, at91sam9g20-cu Datasheet - Page 597

no-image

at91sam9g20-cu

Manufacturer Part Number
at91sam9g20-cu
Description
At91 Arm Thumb Microcontrollers
Manufacturer
ATMEL Corporation
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
AT91SAM9G20-CU
Manufacturer:
Atmel
Quantity:
5
Part Number:
AT91SAM9G20-CU
Manufacturer:
ATMEL
Quantity:
188
Part Number:
AT91SAM9G20-CU
Manufacturer:
ATMEL
Quantity:
705
Company:
Part Number:
AT91SAM9G20-CU
Quantity:
4
Figure 35-10. Read Functional Flow Diagram
Note:
6384B–ATARM–15-Dec-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 read = 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 read = 0 ?
Read status register MCI_SR
Send READ_SINGLE_BLOCK
Number of words to read -1
Number of words to read =
Read data = MCI_RDR
RXRDY = 0?
No
command (1)
Poll the bit
No
No
Send SET_BLOCKLEN command
Send SELECT/DESELECT_CARD
command (1) to select the card
Yes
Yes
RETURN
Read with PDC
Figure
AT91SAM9G20 Preliminary
(1)
35-9).
Set the PDCMODE bit
MCI_MR |= PDCMODE
Set the block length (in bytes)
MCI_MR |= (BlockLength << 16)
Set the block count (if necessary)
MCI_BLKR |= (BlockCount << 0)
Configure the PDC channel
MCI_RPR = Data Buffer Address
MCI_RCR = BlockLength/4
MCI_PTCR = RXTEN
Send READ_SINGLE_BLOCK
Yes
Read status register MCI_SR
command (1)
ENDRX = 0?
Poll the bit
RETURN
No
(2)
Yes
597

Related parts for at91sam9g20-cu