Tool/software: TI C/C++ Compiler
Hi,
I am trying to interface tms320c6713 with external SDRAM in 16-bit synchronous mode. I have configured CE2 as following
*(unsigned int*)EMIF_CE2 = 0x00000090 //EMIF_CE2 is the address of CE2 Register.
//Other registers are too set appropriately based on datasheet and PLL settings.
Now if i want to write to sdram, first 100 locations, should i do like this:
#define SDRAM 0xA00000000 //CE2 zone unsigned short i; for (i =0; i<100; i++) { *(unsigned short *)(SDRAM +i) = 0x55; }
1) Is this the right way to write to SDRAM?? How does it set ROWs and COLs addresses??
2) When i read back from SDRAM, i gives me 0x55 for all the zone not the first 100 locations.