📄 lcd.rst
字号:
///////////////////////////////////////////////
///// Memc settings for Samsung 8MB DRAM /////
///////////////////////////////////////////////
// Config reg (24MHz MEMCLK)
//ASSIGN [0x8fff0000].L=0x87d5
// Config reg (150MHz MEMCLK)
ASSIGN [0x8fff0000].L=0x8735
//refresh interfal ***change to more appropiate value
ASSIGN [0x8fff0004].L=0x5e
//sram1 timing ***change to more appropiate value
ASSIGN [0x8fff0010].L=0x5577
//refresh control
ASSIGN [0x8fff0008].L=0x1
// precharge
ASSIGN [0x8fff000c].L=0xb0400
//auto refresh #1
ASSIGN [0x8fff000c].L=0xd0000
//auto refresh #2
ASSIGN [0x8fff000c].L=0xd0000
//auto refresh #3
ASSIGN [0x8fff000c].L=0xd0000
//auto refresh #4
ASSIGN [0x8fff000c].L=0xd0000
//auto refresh #5
ASSIGN [0x8fff000c].L=0xd0000
//auto refresh #6
ASSIGN [0x8fff000c].L=0xd0000
//auto refresh #7
ASSIGN [0x8fff000c].L=0xd0000
//auto refresh #8
ASSIGN [0x8fff000c].L=0xd0000
//load mode reg ***see above, also note the 0xF on bits [15:12]
ASSIGN [0x8fff000c].L=0xf0031
WAIT 1
//Remap
ASSIGN [0x90070000].L=0x1
WAIT 1
//change PLL for 150M Hz CPU clock
ASSIGN [0x900B0000].L=0x00000100
//WAIT 1
//activate PLL change
ASSIGN [0x900B0004].L=0x1
WAIT 1
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -