Hello
I have a PCB with a LPC2468 and a extern static memory . datasheet www.issi.com/.../61LV25616AL.pdf
I don't arrive to configure the register EMC_STA_CFG0 = ; EMC_STA_WAITWEN0 = ; EMC_STA_WAITOEN0 = ; EMC_STA_WAITRD0 = ; EMC_STA_WAITPAGE0 = ; EMC_STA_WAITWR0 = ; EMC_STA_WAITTURN0 = ;
Can you help me ?
thank you
thierry ADB
can you give me the full code to start EMC with the memory
thierry
For the moment I wrote PCONP |= 0x00000800; /*Enable Power EMC*/ EMC_CTRL = 0x00000001; /*Disable Address mirror*/ PINSEL6 = 0x55555555; // P3.0 => P3.15 (D0..D15) PINSEL8 = 0x55555554; // P4.1 => P4.15 (A1..A15) PINSEL9 = 0x10550015; // P4.16..17..18 = A16..A17..A18 // P4.30 = CS0 // P4.27 = BLS1 // P4.26 = BLS0 // P4.25 = WE // P4.24 = OE EMC_STA_CFG0 = 0x00081; // MW = 16 bits // PB = 1
EMC_STA_WAITWEN0 = 0x1; EMC_STA_WAITOEN0 = 0x1; EMC_STA_WAITRD0 = 0x1; EMC_STA_WAITPAGE0 = 0x1; EMC_STA_WAITWR0 = 0x1; EMC_STA_WAITTURN0 = 0x1;
(*(volatile unsigned char *)(0x80000003)) = 0x16; delay(2000); if ((*(volatile unsigned char *)(0x80000003)) == 0x16) break; // OK else break; // not ok
Please take a look at MDK installation folder in C:\Keil\ARM\Boards\Keil\MCB2400\Blinky\ and this is an example for LPC2468 also with scripts for external memory.