⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 vc5509-a.gel

📁 tms320vc5509a dsp 芯片的有关例子程序
💻 GEL
字号:
StartUp()
{
	//TMCR_Reset(); 
	CLK_init();
	SDRAM_init();
}
menuitem "C5509_init"
#define CLKMD  *(int *)0x1c00@IO 
#define EBSR   *(int *)0x6c00@IO
#define EGCR   *(int *)0x800@IO
#define EMIRST *(int *)0x801@IO
#define EMIBE  *(int *)0x802@IO  
#define CE01   *(int *)0x803@IO
#define CE02   *(int *)0x804@IO
#define CE03   *(int *)0x805@IO
#define CE11   *(int *)0x806@IO
#define CE12   *(int *)0x807@IO
#define CE13   *(int *)0x808@IO
#define CE21   *(int *)0x809@IO
#define CE22   *(int *)0x80A@IO
#define CE23   *(int *)0x80B@IO
#define CE31   *(int *)0x80C@IO
#define CE32   *(int *)0x80D@IO
#define CE33   *(int *)0x80E@IO
#define SDC1   *(int *)0x80F@IO
#define SDPER  *(int *)0x810@IO
#define SDCNT  *(int *)0x811@IO
#define INIT   *(int *)0x812@IO
#define SDC2   *(int *)0x813@IO



hotmenu CLK_init()
{
   //CLKMD=0x2413;//2610
   CLKMD=0x21f3;
}
menuitem "C5509_init"
hotmenu SDRAM_init()
{
      EBSR = 0xa01;
      EGCR = 0x220;
      EGCR = 0X220;
      CE01 =0X3000;
      CE11 = 0X1fff;
      CE21 =0x1fff;
      CE31 =0X1FFF;
      EMIRST = 0;
      SDC1 =0X5958;
      SDC2=0X38F;
      INIT = 0;
}     
TMCR_Reset() 
{ 
	#define TMCR_MGS3	0x07FE 
	#define TMCR_MM		0x07FF 

	*(short *)TMCR_MGS3@IO = 0x0510; 
	*(short *)TMCR_MM@IO    = 0x0000; 
} 

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -