Dear All,
Using 5510 dsk, Spectrum Digital,
In a hurry to drive EMIF bypassing DSP/BIOS but I can't see the CE pin
changing in the write operation:
Here is main source file:
======================
#include
#include
#include
#include
#include
EMIF_Config emifCfg0 = {
0x022F, /* Global Control Register */
0xffff, /* Global Reset Register */
0x3FFF, /* CE0 Space Control Register 1 */
0x5fff, /* CE0 Space Control Register 2 */
0x0000, /* CE0 Space Control Register 3 */
0x1038, /* CE1 Space Control Register 1 */
0x0038, /* CE1 Space Control Register 2 */
0x0000, /* CE1 Space Control Register 3 */
0x1050, /* CE2 Space Control Register 1 */
0x0050, /* CE2 Space Control Register 2 */
0x0000, /* CE2 Space Control Register
3 */
0x1050, /* CE3 Space Control Register 1 */
0x0050, /* CE3 Space Control Register 2 */
0x0000, /* CE3 Space Control Register 3 */
0x2B11, /* SDRAM Control Register 1 */
0x0578, /* SDRAM Period Register */
0x0000, /* SDRAM Initialization Register */
0x0535 /* SDRAM Control Register 2 */
};
void CSL_cfgInit()
{
EMIF_config(&emifCfg0);
}
void main()
{
CSL_cfgInit();
EMIF_config(&emifCfg0);
EMIF_RSET(EMIRST,0xFFFFu);
while(1)
{
*(volatile int*)0x400001= 0xffff; //Writing 0xffff to address
0x400001
for (i=0;i<100;i++) //Just a delay between two write operations
j`;
*(volatile int*)0x400002= 0xffff; //Writing 0xffff to address
0x400002
}
}
Any ideas?
Mehdi Abolfathi,