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

📄 pmsm.cmd.txt

📁 此源码事有关DSP编程用的
💻 TXT
字号:
/*------------------------------------------------------------------*/
/* 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 */
	pmsmsmo block(0x80)		{ } > B0B1	PAGE 1	/* pmsmsmo variables */
	rmp_cntl block(0x80)	{ } > B0B1	PAGE 1	/* rmp_cntl variables */
	rampgen block(0x80)		{ } > B0B1	PAGE 1	/* rampgen 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 */
	smopos block(0x80)		{ } > B0B1	PAGE 1	/* smopos variables */
	en_drive block(0x80)	{ } > B0B1	PAGE 1	/* en_drive variables */
	atan_div block(0x80)	{ } > B0B1	PAGE 1	/* atan_div variables */
}

⌨️ 快捷键说明

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