This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

extern static memory

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

Parents
  • 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

Reply
  • 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

Children