Content originally posted in LPCWare by paulheays on Tue Dec 11 17:58:20 MST 2012
Dave,
Thanks for the info but I have tried using CLK01 option for CLK0 and CLK23 option for CLK2 and while this did allow CLK1 and CLK3 to be used for another function these pins do not support the SD Card clock function.
I have just tried the following again to confirm this.
Hardware setup:
SDRAM_CLK is connected to CLK0, SDRAM_CS connected to DYCS0 and SDRAM_CKE connected to EMC_CKEOUT0.
1.First of all I set CLK0..CLK3 to function 0 (EMC_CLKn) and the SDRAM worked fine.
2.Then I set CLK0 to function 5 (EMC_CLK01) and CLK1..CLK3 to function 0 (EMC_CLKn) and the SDRAM also worked fine.
3.Then I set CLK0 to function 5 (EMC_CLK01), CLK1 to function 1 (CLKOUT), CLK2 to function 0 (EMC_CLK3) and CLK3 to function 0 (EMC_CLK2) and the SDRAM also worked fine.
4.Then I set CLK0 to function 5 (EMC_CLK01), CLK1 to function 1 (CLKOUT), CLK2 function 5 (EMC_CLK23) and CLK3 to function 1 (CLKOUT) and the SDRAM also worked fine.
5.Then I set CLK0 to function 5 (EMC_CLK01), CLK1 to function 0 (EMC_CLK1), CLK2 to function 4 (SD_CLK) and CLK3 to function 0 (EMC_CLK2) and SDRAM did not work.
This seems to confirm that when using SDRAM the only clock pin that is available for the SD card is PC_0.
Thanks for your help.
Paul.