Rabbit技术培训教材

整理文档很辛苦,赏杯茶钱您下走!

免费阅读已结束,点击下载阅读编辑剩下 ...

阅读已结束,您可以下载文档离线阅读编辑

资源描述

021-2857885162404003rabbit@ylib.cnRabbitbestregards299A10B200050021-28578851021-62407061021-62407061rabbit@ylib.cnhttp://www.ylib.cnMSNccnu_rxr@hotmail.com021-2857885162404003rabbit@ylib.cnDynamicC1.1DynamicCIBMZ-WorldRabbitRabbit2000850,000C1MC1.1.1DynamicCDynamicC•••••DynamicCDynamicCDynamicCCCDynamicCPrintfCDynamicCCcostatementcofunctionCDynamicCDynamicCI/O1.1.2DynamicCPC115,200bpsDynamicC530,0001.1.3DynamicCDynamicCDynamicC32forZ180DynamicCSEforRabbit2000DynamicCPremierforRabbit2000021-2857885162404003rabbit@ylib.cnZ-worldZILOGZ180DynamicC32Z180DynamicSERabbitDynamicCZ180RabbitDynamicCSECFFTZWORLDDynamicCSEDynamicCPremierDynamicCPremierRabbit2000Z-worldMicroC/OS-IIRTOSTCP/IPFTPPPPHTTPSSICGICOOKIESDHCPClientSMYPmailClientPOP3TFTPRealtekFFTZ-worldSPII2CAES1.2DynamicCCDynamicCPCUNIXCCCCZ-WorldC1.2.1DynamicCDynamicC•DynamicC•Costatement•Cofunction•Slice•DynamicCC•DynamicC•DynamicCDynamicC1M021-2857885162404003rabbit@ylib.cnDynamicCDynamicCroot64Kxmem1024K1Mrootxmem#memmap1.2.2DynamicCCDynamicCC•intx=0DynamicC7.xconstconstintx=0RAM#GLOBALINIT•staticautoDynamicC7.x#classauto•DynamicCCDynamicC#use#use#includeDynamicC#include••DynamicCexternregister1.2.3RabbitDynamicCZ180DynamicCZ180386EXRabbitDynamicCBIOSBIOSCDynamicCDynamicCBIOSRabbitCPURabbit•flashDynamicCflashEPROMBIOSflash-EPROMflashEPROMZ-WorldWebBIOS•BIOS021-2857885162404003rabbit@ylib.cn•RabbitCPUDynamicCZ-WorldBIOS•DynamicC7.xRabbitRabbit1.3DynamicCCompileCompilemainF9RunRunF9F8F7F7F8F2/CCforswitchctrl-Urunwatch()ctrl-UCostatementCostatementDynamicCabortwaitfor1.3.1Complier/Edit021-2857885162404003rabbit@ylib.cnPolit.binColdload.binResetBIOSDynamicDTRReset2400bps57600bps57600bps115200bps1.3.2CompileincludedebugcodeCompilewithoutdebugcodePolling/1.4BIOS1.4.1BIOSDynamicCBIOS()BIOSDynamicCDynamicCBIOSBIOSticks1980021-2857885162404003rabbit@ylib.cnBIOSModbusBIOSDynamicC1.4.2BIOSStartataddress0MAINDynamicCMasterBIOSBIOSYESBIOSFlashNOBIOSNOYESYESNOBIOS021-2857885162404003rabbit@ylib.cn1.5DynamicC1.5.1DynamicC#makechain#funcchainsegchain#makechainchain_name#funcchainchain_namenamesegchainchain_name{statements}segchainmy_function(){segchainchain_x{chain_x}segchainchain_y{chain_y}my_function}recover#makechainrecover...recover();1.5.2DynamicC_GLOBAL_INIT_GLOBAL_INIT021-2857885162404003rabbit@ylib.cnlongmy_func(charj);main(){my_func(100);}longmy_func(charj){inti;longarray[256];//GLOBAL_INIT#GLOBAL_INIT{for(i=0;i100;i++){array[i]=i*i;}}returnarray[j];//}#GLOBAL_INIT{}_GLOBAL_INIT_GLOBAL_INITCostatementCofunctionGLOBALINIT#GLOBAL_INIT#GLOBAL_INIT1.5.3DynamicCDynamicCLIB.LIBDynamicC.bin.cmain.cmain(){}#useZ-world#use#use#includeDynamicCDynamicCLIB.DIR*.DIR(DynamicC7.05Compiler*.DIR)021-2857885162404003rabbit@ylib.cn#use2DynamicCDynamicClibdefault.h#useDynamicC1.5.4DynamicCDynamicC4DynamicCDCW.CFGDC.HH#defineDynamicCLIB.DIRDynamicCDynamicCDynamicCLIB.DIR*.DIR(DynamicC7.05Compiler*.DIR)DEFAULT.HZ-World#use1.5.5DynamicC5.DynamicCDynamicC021-2857885162404003rabbit@ylib.cnDynamicC1.5.6DynamicCDynamicCDynamicC#use#include#include/***BeginHeaderfunc1,var2,....*/func1var2/***EndHeader*/func11.5.6.1/***BeginHeader[name1,name2,....]*/DynamicCBeginHeader1.5.6.2HeaderBeginHeaderEndHeaderDynamicCheaderheaderheaderheaderextern1.5.6.3EndHeaderBeginHeaderDynamicC021-2857885162404003rabbit@ylib.cnexternheaderexternLIB.DIRLIB.DIR#use/***BeginHeaderticks*/externunsignedlongticks;/***EndHeader*/unsignedlongticks;/***BeginHeaderGet_Ticks*/unsignedlongGet_Ticks();/***EndHeader*/unsignedlongGet_Ticks(){...}/***BeginHeaderInc_Ticks*/voidInc_Ticks(inti);/***EndHeader*/#asmInc_Ticks::oraipset1...ipresret#endasmticksGet_TicksInc_TicksInc_TicksheaderInc_TicksGet_Ticksticksticks1.5.6.4Z-WorldheaderDynamicC021-2857885162404003rabbit@ylib.cn/*STARTFUNCTIONDESCRIPTION**********************WrIOportIO.LIBSYNTAX:voidWrIOport(intportaddr,intvalue);DESCRIPTION:WritesdatatothespecifiedI/Oport.PARAMETER1:portaddr-registeraddressoftheport.PARAMETER2:value-datatobewrittentotheport.RETURNVALUE:NoneKEYWORDS:parallelportSEEALSO:RdIOportENDDESCRIPTION***********************************/FunctionLookup/InsertDynamicC1.68CPUI/ORTOSBIOSRabbit2000021-2857885162404003rabbit@ylib.cn2DynamicC2.11664K(65,536)DynamicC1M(20)(MMU)16204MMU(SEGSIZE,STACKSEG,DATASEGXPC)42.1.1DynamicC.DynamicCRAMflash128K0x00000flashRAM0x80000BIOSflashroot0x00000BIOSRAMrootroot0x80000021-2857885162404003rabbit@ylib.cn2.1.1.1DynamicCRabbit2.1.2E000HFFFFH202016rootDynamicCxmem2rootroot2xmemxmem2xmem2.1.3xmemrootCrootxmemCCrootCrootDynamicCCrootDynamicCrootCrootCrootroot2.1.416021-2857885162404003rabbit@ylib.cnsmallRootcodesegment24KInstructionRootConstantsRootdatasegment8orabove52KStaticVariablesStacksegment5256KAutoVariablesMultipleStacksXmemsegment56K64KShiftby4KeachtimeExtendmemoryExtendCode:InstructionConstantsExtendDate2.1.4.1RootMemorySegment24K4K0200RAMRAMCCC2.1.4.2DataSegmentRAMC8K52K(0xCFFF)FlashRAMRAM2.1.4.3StackSegment52K56K(0xD000-0xDFFF)RAM4K4K021-2857885162404003rabbit@ylib.cnRAM161k4k442.1.4.4ExtendedMemorySegment8K56K64K(

1 / 76
下载文档,编辑使用

©2015-2020 m.777doc.com 三七文档.

备案号:鲁ICP备2024069028号-1 客服联系 QQ:2149211541

×
保存成功