c6747支持8位的flash吗?如果支持连接图是怎么样的呢? 谢谢
第一次接触6000系列 ,希望能解释的详细些
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
c6747支持8位的flash吗?如果支持连接图是怎么样的呢? 谢谢
第一次接触6000系列 ,希望能解释的详细些
Int16 _resetEMIF( Uint16 chip_select )
{
Uint32 emif_max_timeout = 0
| ( 0 << 31 ) // Select Strobe [ Normal ]
| ( 0 << 30 ) // Extended Wait [ Disabled ]
| ( 15 << 26 ) // Write Setup [ 151.5 ns ]
| ( 31 << 20 ) // Write Strobe [ 313.1 ns ]
| ( 7 << 17 ) // Write Hold [ 70.7 ns ]
| ( 15 << 13 ) // Read Setup [ 151.5 ns ]
| ( 31 << 7 ) // Read Strobe [ 313.1 ns ]
| ( 7 << 4 ) // Read Hold [ 70.7 ns ]
| ( 3 << 2 ) // Turn Around [ 30.3 ns ]
| ( 0 << 0 ); // Bus Size [ 8-bit Bus ]
switch ( chip_select )
{
case 3://2
AEMIF_A1CR = emif_max_timeout;
AEMIF_NANDFCR &= ~( 1 << 0 ); // NAND Flash [ OFF ]
AEMIF_A2CR = emif_max_timeout;
AEMIF_NANDFCR &= ~( 1 << 1 ); // NAND Flash [ OFF ]
AEMIF_A3CR = emif_max_timeout;
AEMIF_NANDFCR &= ~( 1 << 2 ); // NAND Flash [ OFF ]
AEMIF_A4CR = emif_max_timeout;
AEMIF_NANDFCR &= ~( 1 << 3 ); // NAND Flash [ OFF ]
break;
case 2://3
AEMIF_A2CR = emif_max_timeout;
AEMIF_NANDFCR &= ~( 1 << 1 ); // NAND Flash [ OFF ]
break;
case 4:
AEMIF_A3CR = emif_max_timeout;
AEMIF_NANDFCR &= ~( 1 << 0 ); // NAND Flash [ Off ]
break;
case 5:
AEMIF_A4CR = emif_max_timeout;
AEMIF_NANDFCR &= ~( 1 << 0 ); // NAND Flash [ Off ]
break;
default:
return -1;
}
return 0;
}
Int16 _setupEMIF( Uint16 chip_select, Uint32 emif_timing, Uint16 emif_mode )
{
AEMIF_A1CR = emif_timing;
AEMIF_A2CR = emif_timing;
AEMIF_A3CR = emif_timing;
AEMIF_A4CR = emif_timing;
AEMIF_NANDFCR |= 0x;
return 0;
}
你好,我又仔细看了一下 函数 这个 restEMIF 和setupEMIF 里面对AEMIF_AnCR分别进行了配置 这是问什么? 配置的参数是怎么确定的? 我按照手册18.3的配置例子计算出的时间参数应该在哪个函数配置?
谢谢