·¢ÐÅÈË: champaign (ÔÒ°), ÐÅÇø: ECE
±ê Ìâ: TMS320C3X¸¡µãDSPµÄÉè¼Æ·½·¨
·¢ÐÅÕ¾: ×Ï ¶¡ Ïã (Sun Jan 23 16:29:08 2000), תÐÅ
·¢ÐÅÈË: fangf (·½·½), ÐÅÇø: DSP
±ê Ìâ: TMS320C3X¸¡µãDSPµÄÉè¼Æ·½·¨
·¢ÐÅÕ¾: Òûˮ˼Դվ (Sun Sep 12 01:07:29 1999) , Õ¾ÄÚÐżþ
TMS320C3X¸¡µãDSPµÄÉè¼Æ·½·¨
¡öÖпÆÔºÉùѧËù Åá Õæ
±±¾©ÎÅͤ¹«Ë¾ ¶ÓÀºê
----------------------------------------------------------------------------
----
Ó²¼þÉè¼Æ
---- 1.µäÐÍϵͳ¿òͼ
---- ÎÒÃÇÒÔÒ»¸öµäÐ͵ÄTMS320C3XϵͳΪÀý£¬½éÉÜTI¹«Ë¾TMS320C3XϵͳµÄÓ²¼þÉè¼Æ¡£ÏÂ
ͼÊǸÃϵͳµÄÔÀí¿òͼ£º
---- ¸ÃϵͳÅäÖÃһƬTMS320C3XоƬ£»128K¡Á32λµÄ³ÌÐòºÍÊý¾Ý´æ´¢Æ÷£»128K¡Á8λµÄE
PROM£»Ò»Â·A/DºÍD/A£¬¾«¶ÈΪ14룬²ÉÑùƵÂÊΪ×î¸ß19.2kHz£»Ò»¸ö²¢ÐÐͨÐÅ¿Ú£¬Á½¸öÒì
²½´®Ðпڣ¬Ò»¸öJTAG¿Ú¡£
---- 2.ϵͳÉè¼Æ
---- C3XÄÜÉè¼ÆµÄµäÐÍϵͳÓУºCPUÏà¹ØÐźŵĴ¦Àí£¬Æ¬Íâ´æ´¢Æ÷À©Õ¹£¬EPROM½Ó¿Ú£¬I/
OÀ©Õ¹£¬A/D¡¢D/AÓë´®ÐпÚͨÐÅ£¬JTAG½Ó¿ÚµÈ¡£
---- 3.Ó²¼þÉè¼Æ×¢ÒâÊÂÏî
---- 1£© Ïß¿íºÍÏß¼ä¾àµÄÑ¡Ôñ
---- »ù±¾ÒªÇóÊÇ£º¸ù¾ÝÇé¿öÑ¡ÔñºÏÊʵÄÏß¿íºÍÏß¼ä¾à£¬×¢Òâ¹ý¿×ºÍº¸Å̵ijߴ磬²¼Ïßʱ
±ÜÃâ×ßÖ±½Ç¡£
±ÜÃâ×ßÖ±½Ç¡£
---- 2£© ÔªÆ÷¼þ²¼¾Ö
---- »ù±¾ÒªÇó£ºÏß¾¡Á¿¶Ì£¬¼ÓÈ¥ñîµçÈݺÍÂ˲¨µçÈÝ£¬Êý×ÖÇøÓëÄ£ÄâÇø·Ö¿ª£¬Áô²âÊÔ¶Ë×Ó
£¬Îªº¸½Óµ÷ÊÔÔ¤±¸¿Õ¼ä¡£
---- 3£© µçÔ´¡¢µØ
---- µçÔ´ºÍµØÏßÒª´Ö£¬Êý×ֵغÍÄ£ÄâµØµ¥µãÁ¬½Ó¡£
Èí¼þ±à³Ì
---- 1. Èí¼þ¿ª·¢Á÷³Ì
---- TMS320C3XÈí¼þ¿ª·¢Á÷³ÌÈçÏÂͼËùʾ£º
---- 2. ³ÌÐò±à³Ì
---- Óû§Ê¹ÓÃÈÎÒâÒ»ÖÖÎı¾±à¼Æ÷¾ù¿É±à¼Ô´³ÌÐò´úÂë¡£ÔÚ½øÐлã±àÓïÑÔ±à³Ìʱ£¬Çë×¢
Òâ¸÷ÖÖ×Ö·ûµÄ´óСд¡£Ô´³ÌÐòÊÇ°´±àÂë¿é¡¢Êý¾Ý¿éµÄ¸ñʽ±àдµÄ£¬Í¨³£·ÖΪÈý¶Î£¬¼´£º
text°üÀ¨¿ÉÖ´ÐбàÂë
data°üÀ¨³õʼ»¯±àÂë
bss±£Áô·Ç³õʼ»¯±äÁ¿¿Õ¼ä
---- ´ËÍ⣬ԴÎļþ»¹¿É°üÀ¨ÒÔϸ÷¶Î£¨Í³³ÆÃüÃû¶Î£©£»
usect¡°Section Name¡±£¬Size;ÀàËÆ.bss£¬²úÉúÔڷdzõʼ»¯¶Î¡£
sect¡°Section Name¡±£»ÀàËÆȱʡµÄ.text.data¶Î£¬°üÀ¨±àÂëºÍÊý¾Ý¶Î£¬²úÉúÔÚ³õʼ»¯
¶Î£¬Ïà¶Ô¶¨Î»¡£
asect¡°Section Name¡±£¬Address£»²úÉúÔÚ³õʼ»¯¶Î£¬¾ø¶Ô¶¨Î»¡£
---- 1£© Ô´³ÌÐò±àд
---- ÏÂÃæÊÇÒ»¸ö±àд²âÊÔƬÍâSRAMµÄ³ÌÐòÀý×Ó£¬Æ书ÄÜÊǽ«´æ´¢Æ÷¿Õ¼ä401000H¡«401F
FFHÌî³ä0¡«FFFHµÄÀÛ¼ÓÊý£¬Ô´³ÌÐòÈçÏ£º
*File demo.asm *;ÎļþÃûdemo.asm
.SECT¡°INIT¡± ;ÃüÃû¶Î
.TEXT ;¿ÉÖ´ÐбàÂë
BR INIT
NOP
NOP
NOP
INIT LD1 40H,DP
LD1 0,R0
LD1 @ADDR,AR0
LD1 @LEN,AR1
LOOP ST1 R0,*AR0++(1)
ADDI I,R0
DB AR1,LOOP
AAA NOP
NOP
BR AAA
.DATA ;Êý¾Ý¶Î
ADDR .WORD 401000H ;³£Á¿¶¨Òå
LEN .WORD 1000H
.END
.END
---- 2)ÃüÁîÎļþ±àд
---- Èç¹ûÏëÒª°Ñ.text¡¢.data¡¢.bssµÈ¶¨Î»µ½×Ô¼ºÏëÒª¶¨Î»µÄµØ·½£¬¾ÍÐèÒª²ÉÓô洢Çø
¶¨Î»·½Ê½£¬¼´Òª½¨Á¢Ò»¸öÃüÁîÎļþ¡°*.cmd¡±Îļþ£¬¹©LNK30µ÷Óã¬ÎªÁËÇå³þµØ˵Ã÷ÕâÖÖ
¶¨Î»·½Ê½£¬ÏÂÃæÒÔdemo.cmdΪÀý½øÐÐ˵Ã÷£º
/* DEMO.CMD */ ;ÎļþÃû
-O DEMO.OUT ;Êä³öÎļþÃû
-M DEMO.MAP ;Êä³öÓ³ÉäÎļþÃû
DEMO.OBJ ;ÊäÈëÎļþÃû
MEMORY
{
RAM0£ºORIGIN=809800H LENGTH=400H ;
ƬÄÚ´æ´¢Æ÷RAM0
RAM1£ºORIGIN=809C00H LENGTH=400H ;
ƬÄÚ´æ´¢Æ÷RAM1
RAM£º ORIGIN=400000H LENGTH=1FFFFH ;
ƬÄÚ´æ´¢Æ÷RAM
}
SECTIONS
{
.TEXT:{}>RAM ;TEXT´Ó400000H¿ªÊ¼
.DATA:{}>RAM ;DATA½ô½Ó×ÅTEXT
.BSS: {}>RAM
.BSS: {}>RAM
}
---- 3. »ã±àºÍÁ¬½Ó
---- Óû§ÔÚ±à¼ÍêÔ´³ÌÐòºó£¬»ã±àºÍÁ¬½ÓÊÇÓû§±ØÐëµÄ²½Ö裬ÏÖ¼òÒªÐðÊöÈçÏ£º
---- 1£© »ã±àÆ÷µÄʹÓÃ
A. Ò»°ã¸ñʽ£ºASM30_INPUT FILE_OBJECT
FILE_-SECTION
ASM30£ºµ÷»ã±àÆ÷µÄÃüÁ
INPUT FILE£º»ã±àÓïÑÔ³ÌÐòÎļþ£»
OBJECT FILE£º»ã±àÆ÷²úÉúµÄÄ¿µÄÎļþ£¬¿ÉÒÔȱʡ£»
SECTION£º»ã±àÆ÷¿ÉÒÔʶ±ðÄãÒªµÄÑ¡Ôñ£¬ÀýÈç
-S ´ø·ûºÅµ÷ÊÔ
B. ³£Óøñʽ¾ÙÀý
ASM30 DEMO.ASM;.ASM¿Éȱʡ£¬Ö»²úÉúOBJÎļþ
ASM30 -L PATHNAME DEMO£»Ô´Îļþ¼Ó·¾¶
ASM30 DEMO-S£»²úÉúOBJÎļþ£¬¿É´ø·ûºÅµ÷ÊÔ
---- 2£© Á¬½ÓÆ÷µÄʹÓÃ
---- Á¬½ÓÆ÷ÓÐÁ½¸öÖ÷Òª¹¦ÄÜ£ºµÚÒ»£¬°ÑCOFFÄ¿±êÎļþ£¨Ò»¸ö»ò¶à¸ö£©×÷ΪÊäÈëÎļþÁ¬½Ó
ÆðÀ´£¬²úÉú¿ÉÖ´ÐеÄÊä³öÎļþ£¬¼´*.OUTÎļþ£»µÚ¶þ£¬¶¨Î»Êä³öÎļþµÄ´æ´¢Æ÷µØÖ·¡£ÔÚÇ°
ÃæÎÒÃDZàдÁËDEMO.CMDÎļþ£¬¶¨ÒåÊä³öÎļþµÄ´æ´¢Æ÷µØÖ·ÈçÏ£º
---- ƬÄÚ´æ´¢Æ÷£º809800H¡«809FFFH
---- ƬÍâ´æ´¢Æ÷£º400000H¡«41FFFFH
---- ¶¨Î».textµ½Æ¬Íâ´æ´¢Æ÷£¬¿ªÊ¼µØַΪ400000H;
---- ¶¨Î».dataµ½Æ¬Íâ´æ´¢Æ÷£¬½ô½Ó×ÅTEXTÖ®ºó£»
---- ÆäÒ»°ã¸ñʽΪ£ºLNK30 DEMO.CMD
---- ÆäÖУ¬ÊäÈëÎļþΪDEMO.OBJ£¬Êä³öÎļþΪDEMO.OUT£¬Ó³ÉäÎļþΪDEMO.MAP¡£
---- 4. EPROM±à³Ì
---- Éϵ縴λºó£¬TMS320C3Xͨ¹ýƬÄÚÈí¼þ£¬½«ÍⲿEPROMÄڵijÌÐò×°Ôص½Íⲿ»òÄÚ²¿´æ
´¢Æ÷ÖС£Òò´Ë£¬±ØÐëÁ˽âÓÉ»ã±àÁ¬½ÓÉú³ÉµÄ*.outÎļþÊÇÈçºÎת»¯ÎªEPROMÖеĶþ½øÖÆÎÄ
¼þµÄ¡£
---- ²½ÖèÈçÏ£º
---- 1£© ÔÚ·ÂÕæÆ÷´°¿ÚÏ£¬½«*.out´æΪ*.binÎļþ£»
---- 2£© ÔÚPC»úÖУ¬¼ÓÔØ*.binÎļþ£¬²¢°´Ó²¼þÉè¼Æ¼ÓÉÏÎļþÍ·£¨°üÀ¨Òýµ¼¿í¶È£¬µÈ´ý
״̬£¬Îļþ³¤¶È£¬Ä¿±êµØÖ·µÈ£©£¬ÖØдæΪһ¸öеĶþ½øÖÆÎļþ£»
---- 3£© ͨ¹ý±à³ÌÆ÷½«´ËÎļþÉÕÈëEPROMÖС£
----
µ÷ÊÔ¹ý³Ì
----
ÕýÈ·Á¬½ÓJTAG¿Ú
ÕýÈ·ÌṩµçÔ´ºÍµØ
½øÈëµ÷ÊÔ½çÃæ²¢¼ÓÔسÌÐò
µ¥²½¡¢¶ÏµãÔËÐв¢¹Û²ì½á¹û
дEPROM
ÍÑÀëµ÷ÊÔ¹¤¾ßÍê³É¶ÀÁ¢ÏµÍ³
ì½á¹û
дEPROM
ÍÑÀëµ÷ÊÔ¹¤¾ßÍê³É¶ÀÁ¢ÏµÍ³
--
¸ÐÇéÊÇÒ»¸öÄÑÒÔѱ·þµÄÒ°Âí
ÀíÖÇÈ´ÊÇÒ»¸öÑÏÀ÷µÄÂí·ò
¡ù À´Ô´:£®×Ï ¶¡ Ïã bbs.hit.edu.cn£®[FROM: 202.118.228.139]
Powered by KBS BBS 2.0 (http://dev.kcn.cn)
Ò³ÃæÖ´ÐÐʱ¼ä£º2.586ºÁÃë