Content originally posted in LPCWare by picman on Tue Feb 26 03:39:06 MST 2013
Further to my previous post, i have found that both the SDCARD and the SDRAM use clock2 but they are on different pins..
SDCARD pin init:
LPC_SCU->SFSCLK_2 = (1 << 7) | (1 << 6) | (1 << 5) | (1 << 4) | 0x4; /* PC.0 = SD_CLK */
SDRAM pin init:
LPC_SCU->SFSCLK_0 = MD_PLN_FAST;
LPC_SCU->SFSCLK_1 = MD_PLN_FAST;
LPC_SCU->SFSCLK_2 = MD_PLN_FAST; // <<<<----- same clock
LPC_SCU->SFSCLK_3 = MD_PLN_FAST;
Can i use the same clock for both the SDRAM and the SDCARD??