1.0科讯cms
科讯cms 时间:2021-05-08 阅读:(
)
2000717LingcoDr.
,Suite209Richardson,TX75081(972)994-9676FAX(972)994-9170email:Gary@axman.
comweb:http://www.
axman.
comxiomanufacturingCMS-8GP32AMotorolaMC68HC908GP32MicrocontrollerBoard2CONTENTSCONTENTSFEATURES.
3GETTINGSTARTED.
4SoftwareDevelopment4TUTORIAL.
5BuildingSoftware.
5ProgrammingtheFlashMemory.
6ExecutinganApplication.
7MEMORYMAP.
8OPTIONSWITCHESANDJUMPERS9JumpersJP1andJP29MODESwitch.
9CONNECTORS10DEBUGPort.
10COMPort11J1PowerConnector.
11SPECIFICATIONS.
113FEATURESTheCMS-8GP32isaMotorolaMC68HC908GP32MicrocontrollerdevelopmentboardwithI/Opinheaders,oscillatorcircuit,powersupply,MON08DebugInterface,andRS232COMport.
TheMC68HC908GP32microcontrollerhasahostoffeatureswhichmakesitidealforlow-costembeddedcontrolapplications.
TheCMS-08GP32boardprovidesalowcostandeasytouseplatformtodevelopapplicationsonortouseinprototypegeneration.
BoardFeaturesRS232serialportwithDB9connectorfromHC08SCIport.
FullfeaturedMON08portwithDB9andRS232Levels.
HC08SingleChipOperationAllHC08I/OtoHeaderConnectornexttoprotoarea.
9.
8304MHzReferenceCrystalOscillatorinpinsockets.
+6-20VInputPowerSupplySolderlessPrototypeAreaMODESwitchforeasyconfiguration.
5Voperationstandard,3.
3VoperationoptionalMC68HC908GP32FeaturesCPU08coreprocessorStaticto8MHzinternalBusOperation,softwareselectable32KBytesFlashEEPROMonchip512BytesSRAMonchipSCIserialportSPIserialport8channel8bitADCTwo16bittimerswithPWMKeyboardInterrupton8pinsLowpowermodeswithPORResetandLVIfunctions.
BreakPointmoduleMON08developmentmonitor33I/Opins,26multiplexedwithinternalperipheralsDevelopmentSoftwareFeaturesMCU-EZfortheHC08provided.
ContainsAssemblerandLinkerwithWindowsIDE.
AxiomMON08DebuggerandProgrammingInterfaceforWindowsprovided.
DriveWayperipheraldriversourcecodegeneratorforWindowsprovided.
CompatiblewithHIWAREHiwave08software.
CompatiblewithPEMicroICS08GPZsoftware.
4GETTINGSTARTEDSeetheREADME.
TXTfileontheCDprovidedwiththisboardforallthedocumentationandsupportfilesprovided.
Togetstartedquickly,performthefollowingtestnowtomakesuretheboardisworkingcorrectlyandyouareabletocommunicatewithyourPCserialCOMport:1.
Connectoneendofthesupplied9-pinserialcabletoafreeCOMportonyourPC.
ConnecttheotherendofthecabletotheCOMportconnectorontheCMS-08GP32board.
2.
RunastandardANSIterminalcommunicationsprogramsetto9600baud,N,8,1.
Anyterminalprogramwillwork,includingthesimpleterminal(HyperTerminal)thatcomeswithMSWindows.
SeeTerminalSettingsinthismanualformoreinformation.
YoucanalsousetheAXIOMIDE(AX-IDE)fortheTerminal.
3.
VerifyallMODEswitchesareOFF,JP1andJP2areinstalled.
4.
Applypowertotheboardbyplugginginthe9Vpowertransformerwallplugthatcamewiththesystem.
5.
Ifeverythingisworkingproperly,youshouldseetheAxiompromptonyourterminal,similartothefollowing:AXIOMMFG.
CMS-08GP32UTILITIES1.
0Presskey1or21.
SerialPortTest2.
I/OPortTest(allswitchesoff)Yourboardisnowreadytouse.
IfyoudonotseethemenuandyouhavenotreprogrammedtheHC08flashpreviously,followthestepsinTroubleshootingtofindwhyyourPCCOMportwillnotcommunicatewiththeboard.
SoftwareDevelopmentSoftwaredevelopmentwillrequiretheuseofanHC08assemblerorcompilerandahostPCoperatingaMON08debuginterface.
SuppliedwiththisboardistheMotorolaMCUezHC08assemblertoolsalongwiththeAxiomMON08IDEforWindowsforDebuggingandFlashprogramming.
Inaddition,theHIWAREPantademoCDprovidedcontainsaCcompiler,assembler,linker,simulatorandMON08supporttools.
TheHIWAREsoftwarewilloperatein"demo"modewhichprovidessizelimitedassemblyoperationuntilitisregistered.
ThePEMicroICS08GPZtoolkitforthe68HC08hasalsobeentestedandworkswiththeCMS-8GP32board.
YoucandownloaditfromeitherMotorola(http://mcu.
motsps.
com/)orPEMicro(http://www.
pemicro.
com)websites.
ApowerfulsourcecodegenerationtoolcalledDriveWayisalsoprovidedonthesupportCD.
ThiscangenerateCsourcecodefortheHC08microcontrollerperipheralsforyou,basedonyourspecifications.
Seeit'sreadme.
txtfileformoreinformation.
5TUTORIALThissectionwaswrittentohelpyougetstartedwiththespecificsoftheCMS-8GP32softwaredevelopmentprocess.
Besuretoreadtherestofthismanualforfurtherinformation.
Also,youshouldseethe68HC08referencemanualandotherdocumentationontheCD.
Thefollowingsectionstakeyouthroughthecompletedevelopmentcycleofasimple"helloworld"program,whichsendsthestring"HelloWorld"totheserialport.
BuildingSoftwareYoucanwritesourcecodefortheCMS-8GP32boardusinganylanguagethatcompilestoMotorola68HC08instructions.
IncludedontheCDisafreeassemblerprovidedbyMotorolacalledMCUez.
ThisisaWindowsdevelopmentenvironmentandyoushouldinstallitnowifyouhaven'talready.
SeetheMotorolawebsittodownloadthelatestversion.
YoushouldwriteyoursourcecodeusingastandardASCIItexteditor.
ManypowerfulcodeeditorsareavailableoryoucanusethefreeEDITorNOTEPADprogramsthatcomewithyourcomputer.
Onceyoursourcecodeiswrittenandsavedtoafile,youcanassembleorcompileittoaMotorolaS-Record(hex)format.
Thistypeofoutputfileusuallyhasa.
MOT,.
HEX,SXor.
S19fileextensionandisinaformatthatcanbereadbyprogrammingutilitiestowritetheFlashMemoryontheCMS-8GP32board.
It'simportanttounderstandyourdevelopmentboard'suseofMemoryandAddressingwhenwritingsourcecodesoyoucanlocateyourcodeatvalidaddresses.
YoushouldputyourprogramCODEsomewhereintheFlashMemoryarea.
Inassemblylanguage,youcandothiswithORGstatementsinyoursourcecode.
AnylinesfollowinganORGstatementwillbeginatthatORGlocation,whichisthefirstnumberfollowingthewordORG,forexample:ORG$8000.
YoumuststartyourDATA(orvariables)inaRAMlocationunusedbyyourprogram,forexample:ORG$40.
YoumustalsoprogramtheSTACKregistersomewhereatthetopofyouravailableRAM,forexamplehex$23F.
AlookattheexampleprogramsontheCDcanmakethisclearer.
Asimpleprogramcalled"HELLO.
ASM"isprovidedunderthe\EXAMPLESdirectoryontheCD.
Ifyou'reusingacompilerinsteadofanassembler,consultthecompilerdocumentationformethodsusedtolocateyourcodeanddata.
Toassembletheexampleprogram:1.
LaunchtheMCUezshellandchoosetheAssemblerbutton.
2.
ChoseFile/Assemblefromthemenuandselectthe"HELLO.
ASM"thatwasinstalledonyourharddrivefromthesupportCD.
Youcanalsojust"drag"thefileintotheassemblerwindow.
3.
Theprogramshouldassemblewithoutanyerrorsandproducealistingfile,HELLO.
LST,andaMotorolahexoutputfilecalledHELLO.
SX.
Thelistingfileisespeciallyhelpfultolookatwhendebuggingyourprogram.
Ifyourprogramhaserrors,theywillbedisplayedandnooutputwillbegenerateduntilyoufixthem.
6ProgrammingtheFlashMemoryYoucanusethesuppliedMON08utilitytobothprogrammemoryanddebugyourapplicationsontheCMS-8GP32board.
DebuggingwiththeMON08iseasierifyouusethe2ndserialportonyourPC.
Thefollowingtutorial,however,willassumeonly1serialportconnectionisused.
1.
DisconnectpowerfromtheCMS-8GP32board.
2.
MoveallMODEswitchestoONexceptfor7whichshouldbeOFF.
JP1andJP2installed.
3.
AttachtheserialcabletotheDEBUGportconnectorontheCMS-08GP32board.
4.
Re-applypowertotheboard.
NOTE:Powershouldremainoffatleast3secondsaftertheMODEswitchesarechanged,toallowfullpowerdischarge.
5.
LaunchtheMON08forWindowsutilityinstalledfromthesupportCD.
InthewindowthatcomesupenteryourPCCOMportusedtoconnecttotheboard,the"checksecurity"boxshouldbechecked,andthesecuritybytescanbeanything(allFFforexample).
6.
SelecttheOKbutton.
TheMON08applicationwindow(shownbelow)shouldbedisplayed.
77.
SelecttheDebugmenuitemandchoose"MasseraseflashEEPROM".
ThiswilleraseanythingcurrentlyinFlashMemory.
8.
SelecttheDebugmenuagainandchoose"ProgramflashEEPROM".
Choosethe"HELLO.
SX"fileyoucompiledintheprevioussectionthenselecttheStarttoProgrambutton.
WhenfinishedprogrammingtheflashEEPROM,thedebuggershouldlocatetheprogramcounteratthebeginningofyourprogram.
Ifit'snot,rightclickontheProgramwindowandgothere.
Youcandebugorexecuteyourprogramnow,usingthesinglestep,breakpoint,trace,watchwindowandotherfeatures.
NOTE:IfyouwanttousetheBreakfeature,youmustselect"ProgramIRQvector"fromtheDebugwindow.
SeetheonlineHelpformoreinformation.
ExecutinganApplicationTheexample"hello"programsendsastringouttheserialport.
Ifyouhaveonly1serialcableconnectedtotheboard,youwillhavetotestitstand-alone-outsideoftheMON08debugger,sinceitalsousestheserialport.
Tomakeyourprogramrunonpower-up,dothefollowing:1.
ClosetheMON08program.
2.
Disconnectpowerfromtheboard.
3.
MoveallMODEswitchestotheOFFposition.
(powershouldremainoffatleast3secondsaftermovingtheMODEswitches).
4.
MovetheserialcablefromtheDEBUGconnectortotheCOMconnector.
(thisisnotrequiredifyou'reusing2serialcables).
5.
StartaserialterminalprogramonyourPC(thesuppliedAxIDEprogramontheCDwillwork)soyoucanseetheprogramrun.
6.
Reconnectpowertotheboard.
Youshouldseethemessage"HelloWorld"intheterminalwindow,everytimeyoupressakey.
Youcanmodifythissimpleprogramtodisplayotherstringsordoanythingyouwant.
Theproceduresforassemblingyourcode,programmingmemoryandexecutingitremainthesame.
8MEMORYMAPThememorymapfortheCMS-08GP32isfixedbythehostprocessor-theMC68HC908GP32.
Refertothe9GP32R3.
PDFfile,theMC68HC908GP32technicalmanual,fordetails.
Fordevelopmentuse,applicationcodeundertestmustresideintheinternal512byteSRAMorbeprogrammedintotheinternal32KByteFlashMemory.
0000MC68HC908GP32RegistersandI/O64Bytes0040SRAMMemoryStackandProgramDataarea512Bytes0240Unused32KBytes8000FLASHMemoryProgramCodeandConstantDataarea32KBytesFE00UtilityMemorySIMandInterruptStatus,Breakcontrol,FlashcontrolandMON08ROMarea500BytesFFF6FFFFVECTORSandSecurityMemoryPartofFlashmemoryblock,10Bytes9OPTIONSWITCHESandJUMPERSJumpersJP1andJP2OptionJumpersJP1andJP2provideconnectionoftheHC08SCITXDandRXDserialportpinstotheRS232TransceiverandCOMPort.
JP1connectsHC08I/OPortE(PTE0)pin0(TXD)andJP2connectsHC08PortE(PTE1)pin1(RXD).
Withthejumpersremoved,theCOMPortwillnotfunctionasnopathtotheportwillbeprovidedfromtheHC08.
TheI/OpinscanbeusedforsimpleI/OfunctionsorCMOSlevelserialportintheusersapplicationwiththejumpersremoved.
ConnectiontotheHC08pinscanbemadeontheJ2I/OPortHeader.
MODESwitchThe8positionMODESWITCHprovidesaneasymethodofconfiguringtheCMS-8GP32boardoperation.
Modeswitches1through6onlyeffect68HC908GP32operationduringPowerOnResetcondition.
ModeswitchesshouldalwaysbesetpriortopowerbeingappliedtotheCMS-8GP32board.
Fornormaloperationofaprograminstalledinthe68HC908GP32flashmemory,allswitchesshouldbeintheoffposition.
MON08operationisenabledandconfiguredbyplacingoneormoreswitchesintheonposition.
Followingisatableindicatingoperationofthemodeswitchesand68HC908GP32I/Oportpinseffected.
ItisimportantthatI/OportsusedforMON08configurationnotbedrivenfromusercircuitryorpossiblemisoperationordamagecanoccur.
MODESWITCHOPERATIONsettoONpositionHC08I/OPORTUSED1EnableMON08communicationpathPTA02EnableMON08forserialcommunicationPTA73EnableResetvectornotblankoperation*1IRQ4EnableOverrideclockselectionPTC05EnableOverrideclockselectionPTC16EnableOverrideclockselectionPTC37EnableMON08BREAKdetect*1IRQ8EnableMON08RESETRESET*1–MODESwitchposition3and7shouldneverbeONatthesametime.
TheCMS-8GP32boardisconfiguredtobeeasytousewith3basicmodesofoperation.
ModesofoperationareNormalMode,MON08StandardMode,andMON08SpecialMode.
FollowingaretheModeSwitchsettingsandcapabilitiesforeachmodeofoperation:NORMALMODE–AllMODESwitchesareintheoffpositionandMON08isdisabled.
Programcontainedinthe68HC908GP32flashmemorywillbeexecutedfromResetorPowerup.
10MON08STANDARDMODE–MODESwitches1and2areONduringPowerup,the68HC908GP32flashmemoryResetVectorlocation(0xFFFE–FFFF)iserased(value=0xFFFF),andthesecuritybytevaluesareknown(valuesin0xFFF6–FFFD).
MON08willoperatenormallyat9600baudwithhostsoftware.
Modeswitches7and8canalsobeenabledtosupporthostBREAKandRESETfunctions,howeverthesecuritybytesfortheIRQvectorat0xFFFAandFFFBwillnotbeblankandmustbeknown(seetutorials).
MON08SPECIALMODE–Modeswitches1,2,3,4,5,6,and8areONduringPowerup.
The68HC908GP32flashmemorycontentsdoesnotneedtobeknown.
ThismodewillallowtheerasingoftheflashmemorysothatStandardModecanbeused.
AfterentryintospecialmodetheBulkEraseoftheinternalflashcanbeperformedsothatasubsequentpowerdownandrestartintoMON08StandardModecanbeperformed.
Ifthesecuritybytesareknown,thenSpecialModecancontinuetobeusedforthedebugsession.
However,thehostBREAKfunctionwillnotoperateduetoModeSwitchposition7beingintheOFFposition.
NotethatModeSwitchposition3and7cannotbeintheONpositionatthesametime.
InthiscasetheRESETvector(0xFFFE–FFFFhex)canbeerasedwhileinspecialModewhichwillallowreturntoMON08StandardModeonthenextpoweroff–oncycle.
CONNECTORSDEBUGPortTheDEBUGPortprovidesanRS-232levelserialinterfacefortheMC68HC908GP32-MON08monitor.
SeetheMODESwitchsectionforenablinganddisablingtheMON08monitor.
FollowingaretheDEBUGportconnections:Pin1,4&6ConnectedtogetherforNULLofRS232signalsDSR,DTR,andCD.
Pin2TransmitDatatoHostPCPin3ReceiveDatafromHostPC,alsoprovidesBREAKsignal,seenotebelow.
Pin5GroundcommonPin7,8ConnectedtogetherforNULLofRS232signalsRTSandCTS,alsoprovideRESETinputfromhostPCRTSsignalifMODEswitchposition8isON.
BREAKSignal-ThehostPCcansendatransmitbreakcharacterforhaltingcodeexecutionandreturningtheHC08toMON08controlfromtheexecutingapplicationifthefollowingconditionsaremet:1.
HC08IRQvectorisenabledtoperformBreakservicefortheMON08Monitor.
2.
MODESwitchposition7isON(3mustbeOFF).
3.
TheTransmittedBreakcharacterisaminimum15mslong.
11COMPortTheCOMPortprovidesanRS-232levelinterfacetotheMC68HC908GP32SCIserialportforsampleoruserapplications.
SeeJP1andJP2optionsalso.
FollowingarethesignalsprovidedontheCOMPort:Pin1,4&6ConnectedtogetherforNULLofRS232signalsDSR,DTR,andCD.
Pin2SCITransmitDatatoHostterminalPin3SCIReceiveDatafromHostterminalPin5GroundcommonPin7,8ConnectedtogetherforNULLofRS232signalsRTSandCTS.
NOTE:Pins1,4,6,7,8,and9haveuserconnectionpadsthatallowadditionaluserapplicationspecificconfigurationoftheCOMPortsuchashandshakesignaling.
Thepinscanbeisolatedfromeachotherbycuttingthetietracelocatedunderthepinidentificationprintontopoftheboard.
JP1-enablesconnectionofHC08SCIorPortPE0/TXDpintoCOMPortRS232transceiver.
JP2-enablesconnectionofHC08SCIorPortPE1/RXDpintoCOMPortRS232transceiver.
J1PowerConnectorThese3connectionpointsallowforalternatepowerinput(suchasabatteryorpowersupply)aswellasoutputvoltagesupply.
+V+7to16VDCunregulatedInputorOutputGNDGroundVCC+5VInputorOutputSPECIFICATIONSOscillator9.
8304MHzCrystalStandard,4.
9MHzor32KHzuseroption.
MaximumClock8MHzInternalOperatingTemperature0to70degreesCBoardSize4.
0x4.
0InchesPowerRequirement6–20VDC@20maInputTypical
LightNode是一家成立于2002年,总部位于香港的VPS服务商。提供基于KVM虚拟化技术.支持CentOS、Ubuntu或者Windows等操作系统。公司名:厦门靠谱云股份有限公司官方网站:https://www.lightnode.com拥有高质量香港CN2 GIA与东南亚节点(河内、曼谷、迪拜等)。最低月付7.71美金,按时付费,可随时取消。灵活满足开发建站、游戏应用、外贸电商等需求。首...
傲游主机商我们可能很多人并不陌生,实际上这个商家早年也就是个人主机商,传说是有几个个人投资创办的,不过能坚持到现在也算不错,毕竟有早年的用户积累正常情况上还是能延续的。如果是新服务商这几年确实不是特别容易,问到几个老牌的个人服务商很多都是早年的用户积累客户群。傲游主机目前有提供XEN和KVM架构的云服务器,不少还是亚洲CN2优化节点,目前数据中心包括中国香港、韩国、德国、荷兰和美国等多个地区的CN...
云雀云(larkyun)当前主要运作国内线路的机器,最大提供1Gbps服务器,有云服务器(VDS)、也有独立服务器,对接国内、国外的效果都是相当靠谱的。此外,还有台湾hinet线路的动态云服务器和静态云服务器。当前,larkyun对广州移动二期正在搞优惠促销!官方网站:https://larkyun.top付款方式:支付宝、微信、USDT广移二期开售8折折扣码:56NZVE0YZN (试用于常州联...
科讯cms为你推荐
sns平台SNS分类及代表性网站有哪些flashwind谁能教我怎么在360里下载个flashwind?360与搜狗腾讯搜搜为什么比不上360比不上搜狗比不上百度 ?三五互联南京最专业的网站建设公司是哪家?双尚网络做的好不好? 给分求答案美国独立美国独立战争的概况社区动力如何建立一个论坛?就是社区动力discuz论坛 这个discuz!是不是一个软件?关于建立论坛给个系统的的教商务软件软件分为哪几种类型?推荐位关于橱窗推荐位规则的描述哪个是错误的快钱网上支付快钱支付客服电话是多少网店制作如何做网店?怎么开?
深圳主机租用 万网免费域名 免费申请域名 lnmp 新加坡主机 wavecom 512av 360抢票助手 鲜果阅读 服务器怎么绑定域名 2017年万圣节 网盘申请 最好看的qq空间 qq数据库下载 hkg 卡巴斯基是免费的吗 cloudlink atom处理器 后门 97rb 更多