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

📄 test.cmd

📁 这是关于有刷直流电动机PWM控制方案的源码
💻 CMD
字号:
/*-------------------------------------------------------------------*/
/* Memory Specifications                                             */
/*-------------------------------------------------------------------*/
MEMORY
{
	PAGE 0:	VECS:	o=0000h,	l=0040h		/* reset&int vectors */
			/*PROG:	o=0040h,	l=07fc0h	/* 32K prog space*/
			/*PROG:	o=0040h,	l=03fc0h	/* 16K prog space*/
			/*PROG:	o=0040h,	l=01FC0h	/* 8K prog space*/
			PROG:	o=0040h,	l=00FC0h	/* 4K prog space*/
			B0: 	o=0FF00h,	l=0100h		/* when CNF=1   */

	PAGE 1:	MMRS:	o=0000h,	l=005Fh		/* MMRS */
			B2:	    o=0060h,	l=0020h		/* DARAM B2 */
			B0B1:	o=0200h,	l=0200h		/* DARAM B0+B1 */
}

/*----------------------------------------------------------------*/
/* SECTIONS ALLOCATION                                            */
/*----------------------------------------------------------------*/
SECTIONS
{
	/* Program sections */
	vectors:			{ } > VECS	PAGE 0	/* Res/int vectors */
	.text:			    { } > PROG	PAGE 0	/* Code */
	.data:		    	{ } > PROG	PAGE 0	/* Init tables */

	/* Variable sections */
	.mmrs:			        { } > MMRS	PAGE 1	/* Memory Mapped Regs */
	.bss     block(0x80)	{ } > B0B1	PAGE 1	/* .bss variables */
	stack                   { } > B0B1	PAGE 1	/* .bss variables */
    rampgen  block(0x80)	{ } > B0B1	PAGE 1	/* rampgen variables */
	dac_view block(0x80)	{ } > B0B1	PAGE 1	/* DAC_VIEW variables */
	ileg2drv block(0x80)	{ } > B0B1	PAGE 1	/* ileg2drv variables */
	clarke   block(0x80)	{ } > B0B1	PAGE 1	/* clarke variables */
	park 	 block(0x80)	{ } > B0B1	PAGE 1	/* park variables */
	I_park   block(0x80)	{ } > B0B1	PAGE 1	/* I_park variables */
	svgen_dq block(0x80)	{ } > B0B1	PAGE 1	/* svgen_dq variables */
	pwm_drv  block(0x80)	{ } > B0B1	PAGE 1	/* pwm_drv variables */
	qep_drv  block(0x80)	{ } > B0B1	PAGE 1	/* qep_drv variables */
	pid 	 block(0x80)	{ } > B0B1	PAGE 1	/* pid regulators */
	cur_mod  block(0x80)    { } > B0B1	PAGE 1	
    spi_view block(0x80)	{ } > B0B1	PAGE 1
    data_log block(0x80)	{ } > B0B1	PAGE 1
    speed_fr block(0x80) 	{ } > B0B1	PAGE 1	  
    pid_spd  block(0x80)    { } > B0B1	PAGE 1
    I_GEN    block(0x80)    { } > B0B1	PAGE 1
    GI_A	 block(0x80)	{ } > B0B1	PAGE 1
	/* Program and variable sections for real time monitor */
	mon_main block(0x80)	{ } > PROG	PAGE 0	/* Main monitor program */
	mon_pge0 block(0x80)	{ } > B2	PAGE 1	/* Used by RT monitor */
	mon_rgst block(0x80)	{ } > B2	PAGE 1	/* Used by RT monitor */
}

⌨️ 快捷键说明

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