This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM1705 MMC/SD Datasheet clarity Question.

Other Parts Discussed in Thread: AM1705

Hello TI Team,

I am current pre-coding as much as I can for a non-OS AM1705 SoC.

My question regards the MMC/SD peripheral. I am writing the code for CM7 SELECT_CARD. I need to load the Relative Card Address into the argument register MMCARGHL. The datasheet states:

"Write the card’s relative address to the MMC argument registers (MMCARGH and MMCARGL). Load
the higher part of the address to MMCARGH and the low part of the address to MMCARGL."


Now, MMCARGHL is 32 bits, and the RCA is 16 bits. Format is little endian. My interpretation is to load the argument register like this:

MMCARGHL = ((relativeCardAddress << 8) & 0x00FF 0000) | (relativeCardAddress & 0x0000 00FF);

I'm unable to test my code so I hoping to receive confirmation that my approach looks correct.

Cheers,

Alex