CCLK and SDRAM DynamicRefresh

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

CCLK and SDRAM DynamicRefresh

409 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by FrankAndersen on Thu Jul 18 05:48:43 MST 2013
Hi,

I am trying to reduce the CCLK in order to save power, but I am concerned that the SDRAM will suffer from this, as the EMC CLK is equal to CCLK.

Is it okay to change the Dynamic Refresh Register on the fly?

Basicly I am doing this:

    if ( Mode == POWER_SAVE )
    {
        LPC_EMC->DynamicRefresh    = 0x00000023; /* ( n * 16 ) -> 560 clock cycles -> 15.560uS at 48MHz <= 15.625uS ( 64ms / 4096 row ) */     
        LPC_SC->CCLKSEL = 0x104;  // Set Clk to 36 MHz
    }
    else
    {
      LPC_SC->CCLKSEL = 0x102;  // Set Clk to 48 MHz   
      LPC_EMC->DynamicRefresh    = 0x00000046; /* ( n * 16 ) -> 1120 clock cycles -> 15.556uS at 72MHz <= 15.625uS ( 64ms / 4096 row ) */
    }

Are there anything else I have to change to the EMC for the SDRAM?

Best regards,

Frank Andersen
标签 (1)
0 项奖励
0 回复数