在BF533板子中的程序
void Init_EBIU(void)
{
*pEBIU_AMBCTL0 = 0x7bb07bb0;
*pEBIU_AMBCTL1 = 0x7bb07bb0;
*pEBIU_AMGCTL = 0x000f;
}
初始化EBIU后,LED跑BANK3地址的时候可以正常点亮,
#define pDEVICE_OE (volatile unsigned short *)0x20320000
#define pLED_DAT (volatile unsigned short *)0x20340000
#define pINTERRUPT_DAT (volatile unsigned short *)0x20360000
#define pKEYBOARD_DAT (volatile unsigned short *)0x20380000
#define pEXT_CS (volatile unsigned short *)0x203A0000
#define pEXT_IO_INDAT (volatile unsigned short *)0x203C0000
#define pEXT_IO_OUTDAT (volatile unsigned short *)0x203E0000
都修改成BANK0或者1或者2时候都不能点亮,下面为修改成BANK0的代码
#define pDEVICE_OE (volatile unsigned short *)0x20020000
#define pLED_DAT (volatile unsigned short *)0x20040000
#define pINTERRUPT_DAT (volatile unsigned short *)0x20060000
#define pKEYBOARD_DAT (volatile unsigned short *)0x20080000
#define pEXT_CS (volatile unsigned short *)0x200A0000
#define pEXT_IO_INDAT (volatile unsigned short *)0x200C0000
#define pEXT_IO_OUTDAT (volatile unsigned short *)0x200E0000
请问论坛大神,这是什么原因 还是其他地方也需要修改?