Ok,
So, I found out that, although, I would like to use the SDHC module and activating the clock gating for it like so:
// Enable Clock to SDHC
SIM_SCGC3 |= SIM_SCGC3_SDHC_MASK;
This is not the only thing that needs to be done! The issue I was having when I tried to multiplex PORTE is because, I also needed to
activate the clock gating for PORTE like so,
SIM_SCGC5 |= SIM_SCGC5_PORTE_MASK;
Then I was able to multiplex the lines:
PORTE_PCR0 = PORT_PCR_MUX(4); //PTE0
PORTE_PCR1 = PORT_PCR_MUX(4); //PTE1
PORTE_PCR2 = PORT_PCR_MUX(4); //PTE2
PORTE_PCR3 = PORT_PCR_MUX(4); //PTE3
PORTE_PCR4 = PORT_PCR_MUX(4); //PTE4
PORTE_PCR5 = PORT_PCR_MUX(4); //PTE5
PORTE_PCR5 = PORT_PCR_MUX(4); //PTE6
Then I set the mode for the SD:
SDHC->PROCTL |= SDHC_PROCTL_DTW(0x01); //Data Transfer Width (01b 4-bit mode)
but, when I tried to do this:
SDHC->SYSCTL |= SDHC_SYSCTL_INITA_MASK; //When this bit is set, 80 SD-clocks are sent to the card
I don't see the 80 SD-clocks? Is there some other register in/out of the SDHC that needs to be set?
Thank you.