LPC1817 EMC Interface read cycle

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

LPC1817 EMC Interface read cycle

1,500 Views
chase_lin
Contributor I

Hi NXP support team,

I got an issue about LPC1817 EMC interface read cycle. I connected the EMC(Static memory) interface to SRAM in my design.  When I issued one read cycle, I got two EMC address(0x00 -> 0x01) toggle from scope as follows. It made the read data error. It should be one address in one read cycle. My EMC configuration as follows. Do you have any ideas? Thanks.

 


//======================================EMC Configuration===================================
LPC_EMC->STATICCONFIG0 = ( (0 << 0)    |       // Memory width 8-bit
                                                       (0 << 3)    |       // Async page mode disable
                                                       (0 << 6)    |       // Active LOW chip select
                                                       (1 << 7)    |       // Byte lane state: use WE signal
                                                       (0 << 19) );       // Disable buffer

LPC_EMC->STATICWAITWEN0 = 0x2;                 // Wait output enable: 2 delay

LPC_EMC->STATICWAITOEN0    = 0x2;                   // Wait output enable: 2 delay

LPC_EMC->STATICWAITTURN0  = 0x0;


LPC_EMC->STATICWAITPAG0     = 0x0;


LPC_EMC->STATICWAITWR0      = 0x0F;


LPC_EMC->STATICWAITRD0       = 0x0F;

LPC_EMC->CONTROL = ( (1 << 0) | //EMC Enable
                                             (0 << 1) ); //EMC Addr non-mirror

pastedImage_1.png

emc‌

lpc18xx‌

lpc1817‌

lpc18xx lpcopen‌

external memery‌

external ram‌

Labels (3)
0 Kudos
2 Replies

1,277 Views
Sabina_Bruce
NXP Employee
NXP Employee

Hello Chase,

Hope you are doing well. It is possible that an EMC will perform a burst read access even when the buffer enable bit is disabled. In the case of the configurations you have provided the bit 19 of the Static Memory Configuration register that is described in table 369 of the user manual.

Burst read means that if you were meant to read register 0(even with the buffer disabled) it will read 0 and 1.

Let me know if you have further questions.

Best Regards,

Sabina

0 Kudos

1,007 Views
chase_lin
Contributor I

Hi Bruce,

So I couldn't use any methods to disable the burst read ? Thanks.

0 Kudos