DSPRelated.com
Forums

c6211 DSK Daughter Boards

Started by Sidney Jung September 4, 2001
Hi,
I was wondering if anyone out there could help me get my DSK's Daugterboard EMIF
working
for asynchronous memory elements? I can't seem to get the CE2 signal happening
at all. I
was wondering what you would have to change in the registers etc. and if there
is any tricks
to accessing it?
Any help would be greatly appreciated.



RE: [c6x] c6211 DSK Daughter Boards

This is how I did it:

#define         EXT_MEM_CE2             REG16(0xA0000000) //use REG32(xxxxxxx) for 32 bit access

Uint16  var;

EXT_MEM_CE2=0x0ABC; //to write
var=EXT_MEM_CE2; //to read

You can use default wait states or change them as you wish. You can also use DMA or QDMA access.
As far as I know there are no special tricks required for access to CE2 space. Example program to initialize EMIF is here:

(using CCS1.2 with CSL read manual on CSL for 6x)
        myEMIFconfig.gblctl=HEMIF_GBLCTL;
        myEMIFconfig.ce0ctl=HEMIF_CE0CTL;
        myEMIFconfig.ce1ctl=HEMIF_CE1CTL;
        myEMIFconfig.ce2ctl=EMIF_MK_CECTL(EMIF_CECTL_RDHLD_OF(1),
                                                                        EMIF_CECTL_MTYPE_ASYNC16,
                                                                        EMIF_CECTL_RDSTRB_OF(8),
                                                                        EMIF_CECTL_TA_NA,
                                                                        EMIF_CECTL_RDSETUP_OF(9),
                                                                        EMIF_CECTL_WRHLD_OF(7),
                                                                        EMIF_CECTL_WRSTRB_OF(7),
                                                                        EMIF_CECTL_WRSETUP_OF(4));
        myEMIFconfig.ce3ctl=HEMIF_CE3CTL;
        myEMIFconfig.sdctl=HEMIF_SDCTL;
        myEMIFconfig.sdtim=HEMIF_SDTIM;
        myEMIFconfig.sdext=HEMIF_SDEXT;
       
        EMIF_ConfigA(&myEMIFconfig);

If you have CCS2.0 you can program EMIF using GUI.
In any event CE2 should be happening any time you access appropriate rang of addresses
0xA0000000 - 0xAFFFFFFF for read or write if it's configured as asynchronous type.

Mike.


-----Original Message-----
From: Sidney Jung [mailto:j...@today.com.au]
Sent: Tuesday, September 04, 2001 1:20 AM
To: c...@yahoogroups.com
Subject: [c6x] c6211 DSK Daughter Boards


Hi,
I was wondering if anyone out there could help me get my DSK's Daugterboard EMIF working
for asynchronous memory elements? I can't seem to get the CE2 signal happening at all. I
was wondering what you would have to change in the registers etc. and if there is any tricks
to accessing it?
Any help would be greatly appreciated.