|
发表于 2007-2-8 17:30:10
|
显示全部楼层
旧版软件有这个数组来配置mcp
/* \CS0 ~ \CS7 must be defined orderedly */
const EMI_NODE_TYPE EMI_Node[EMI_NUMBER_OF_ENTRIES] =
#if defined(MCU_52M)
{
/* Flash */
{EMI_CS0, EMI_PAGE_MODE, EMI_4_WAIT_STATE, EMI_2_WAIT_STATE, EMI_16B_PER_PAGE, EMI_1_WAIT_STATE, EMI_16BIT_DEVICE,
EMI_RBLN_ENABLE, EMI_SETUP_TIME_1, EMI_SETUP_TIME_1, EMI_HOLD_TIME_0},
/* SRAM */
// {EMI_CS1, EMI_BURST_MODE, EMI_4_WAIT_STATE, EMI_2_WAIT_STATE, EMI_16B_PER_PAGE, EMI_1_WAIT_STATE, EMI_16BIT_DEVICE,
//EMI_RBLN_ENABLE, EMI_SETUP_TIME_1, EMI_SETUP_TIME_1, EMI_HOLD_TIME_0}
{EMI_CS1, EMI_BURST_MODE, EMI_4_WAIT_STATE, EMI_4_WAIT_STATE,
EMI_16B_PER_PAGE, EMI_2_WAIT_STATE, EMI_16BIT_DEVICE,
EMI_RBLN_ENABLE, EMI_SETUP_TIME_1, EMI_SETUP_TIME_1, EMI_HOLD_TIME_0}
#else
{
/* Flash */
{EMI_CS0, EMI_PAGE_MODE, EMI_3_WAIT_STATE, EMI_1_WAIT_STATE, EMI_16B_PER_PAGE, EMI_1_WAIT_STATE, EMI_16BIT_DEVICE,
EMI_RBLN_ENABLE, EMI_SETUP_TIME_1, EMI_SETUP_TIME_1, EMI_HOLD_TIME_0},
/* SRAM */
{EMI_CS1, EMI_BURST_MODE, EMI_3_WAIT_STATE, EMI_1_WAIT_STATE, EMI_16B_PER_PAGE, EMI_1_WAIT_STATE, EMI_16BIT_DEVICE,
EMI_RBLN_ENABLE, EMI_SETUP_TIME_1, EMI_SETUP_TIME_1, EMI_HOLD_TIME_0}
#endif
};
具体的值要参考spec来确定。
新版软件不再提供这个数组,而是在Flash_opt.c中选择相应的选项。 |
|