ioport unsigned int *sdc1 =(unsigned int *)0x80F;
//ioport unsigned int *sdper=(unsigned int *)0x810;
//ioport unsigned int *sdcnt=(unsigned int *)0x811;
ioport unsigned int *init =(unsigned int *)0x812;
ioport unsigned int *sdc2 =(unsigned int *)0x813;
*ebsr = 0x221;
*egcr = 0x220;
*egcr = 0x220;
*ce01 = 0x3000;
*ce11 = 0x1fff;
*ce21 = 0x1fff;
*ce31 = 0x1fff;
*emirst = 0;
*sdc1 = 0x5958;
*sdc2 = 0x38F;
*init = 0;
}
4、func.h
void interrupt tint( void );
voidCLK_init( void );
voidSDRAM_init( void );
voidINTR_init( void );
voidTIME_init(void);
voidTMCR_Reset( void );
voidSetDSPPLL(unsigned intuPLL);
5 、myapp.h
//#include "C5509.h"
//#include "peripherals.h"
#include "func.h"
6、hex5509.cmd
dip.out
-o dip.hex
-map dip.mxp
-m2
-v5510:2
-boot
-parallel16
ROMS
{
PAGE 0 : ROM : o=0x400000, l=0x100000
}
7、out2hex.bat
hex55 hex5509.cmd
@pause