Board logo

标题: keilC51 ???ù??1??×????ò???¨????1?????¨?????·??????     [打印本页]

作者: zing    时间: 2004-9-8 01:28     标题: keilC51 ???ù??1??×????ò???¨????1?????¨?????·??????    

C51 ???ù??1??×????ò???¨????1?????¨?????·??????     
????2?????ù????C51????
1?? ???ù??1??×????ò???¨????1?????¨?????·??????
   ?????? INT BCD2HEX?¨INT XX???¨????1000H
2?? HOW??EEPROM ?????¨????????·?1×?·?????
   ????200H??·??°COPYRIGHT 2001-11?±

???? ?????¨????±????¨??...

1???????¨????
??????°?C?????? tools.c ????????
int BIN2HEX(int xx)
{
  ...
}
·???CODE MEMORY??0x1000??????±à?????¤???????ó?ò?????¤????M51????????
* * *   C O D E   M E M O R Y   * * *
???????????¨??????????????????????????
CODE    xxxxH     xxxxH     UNIT         ?PR?_BCD2HEX?TOOLS
???ó????
Project->Options for Target ...->BL51 Locate??Code
????????????????
?PR?_BCD2HEX?TOOLS(0x1000)
????Build????M51???á·???????????·???CODE MEMORY??0x1000????

2??????????±????¨????
??????±????¨?????????????????????????????±?? _at_ ?????ê?????ò??????×÷??
???¤?????¨??????????????????InitVars.c???????????????í??±??????????¨???è??code±?
??????
char code myVer = {"COPYRIGHT 2001-11"};
???ó?????????????¤????±à?????ò??M51?????????¨??????code?????ò??
* * *   C O D E   M E M O R Y   * * *
??????????
CODE    xxxxH     xxxxH     UNIT         ?CO?INITVARS
???ó????
Project->Options for Target ...->BL51 Locate??Code
????????
?CO?INITVARS(0x200)
????±à????????

?à??????????xdata±??????òInitVars.c??????
char xdata myVer = {"COPYRIGHT 2001-11"};
???ó?????????????¤????±à?????ò??M51????????
* * *  X D A T A   M E M O R Y  * * *
??????????
XDATA   xxxxH     xxxxH     UNIT         ?XD?INITVARS
???ó????
Project->Options for Target ...->BL51 Locate??Xdata
????????
?XD?INITVARS(0x200)
????±à?????????à?????????¨??????data/idata??±??????ò?à?????í??????

3???????à??±????ò?????????????????·?¨?????ò??°????·?????????????ò??????







欢迎光临 我要委托设计网论坛 (http://51odm.com/fourms/) Powered by Discuz! 5.5.0