Other Parts Discussed in Thread: AM3505
Hi everyone
I am doing a master thesis project with a new board designed by a company(it's a secret,~_~ ^_^). It has an AM3505 processor with a 32MByte SDRAM(IS43DR16160A-5BBLI).Here is our initialization code, however, it doesn't work. Could someone give us a hint? Here is the datasheet for the SDRAM(http://www.issi.com/pdf/43-46DR83200A-16160A.pdf).
# Configure EMIF to Access Micron DDR2
#Step1: Setup DDR PHY control registers
0x6D0000E4 = 0x04 #DDR_PHY_CTRL_1
0x6D0000E8 = 0x04 #DDR_PHY_CTRL_1_SHDW
0x6D0000EC = 0x0 # DDR_PHY_CTRL_2
# Step2: Reset the PHY (using IODFT_TLGC) and wait till complete
0x6D000060 = 0x2411 #IODFT_TLGC
sleep 20
#Step3: Configure EMIF
#3.1 Setup timing registers (SDRAM_TIM_xxx)
0x6D000018 = 0x04447289 #SDRAM_TIM_1
0x6D00001C = 0x04447289 #SDRAM_TIM_1_SHDW
0x6D000020 = 0x141031CA #SDRAM_TIM_2
0x6D000024 = 0x141031CA #SDRAM_TIM_2_SHDW
0x6D000028 = 0xE7 #SDRAM_TIM_3
0x6D00002C = 0xE7 #SDRAM_TIM_3_SHDW
#3.2 Setup Power control reg (PWR_MGMT_CTRL)
0x6D000038 = 0x80000000 #PWR_MGMT_CTRL
0x6D00003C = 0x80000000 #PWR_MGMT_CTRL_SHDW
#3.3 Setup refresh rate (SDRAM_REF_CTRL)
0x6D000010 = 0x618 #SDRAM_REF_CTRL
0x6D000014 = 0x618 #SDRAM_REF_CTRL_SHDW
3.4 Setup SDRAM configuration register (SDRAM_CONFIG)
0x6D000008 = 0x40804C21 #SDRAM_CONFIG
Here is the schematic:
