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
近期RAKsmart上线云服务器Cloud Server产品,KVM架构1核1G内存40G硬盘1M带宽基础配置7.59美元/月!RAKsmart云服务器Cloud Server位于美国硅谷机房,下单可选DIY各项配置,VPC网络/经典网络,大陆优化/精品网线路,1-1000Mbps带宽,支持Linux或者Windows操作系统,提供Snap和Backup。RAKsmart机房是一家成立于2012年...
LOCVPS商家我们还是比较熟悉的老牌的国内服务商,包括他们还有其他的产品品牌。这不看到商家的信息,有新增KVM架构轻量/迷你套餐,提供的机房包括香港云地和美国洛杉矶,适用全场8折优惠,月付29.6元起。LOCVPS是一家成立于2011年的稳定老牌国人商家,主要从事XEN、KVM架构的国外VPS销售,主推洛杉矶MC、洛杉矶C3、香港邦联、香港沙田电信、香港大埔、日本东京、日本大阪、新加坡等数据中心...
介绍:819云怎么样?819云创办于2019,由一家从2017年开始从业的idc行业商家创办,主要从事云服务器,和物理机器819云—-带来了9月最新的秋季便宜vps促销活动,一共4款便宜vps,从2~32G内存,支持Windows系统,…高速建站的美国vps位于洛杉矶cera机房,服务器接入1Gbps带宽,采用魔方管理系统,适合新手玩耍!官方网站:https://www.8...
科讯cms为你推荐
organizationalsnshttp404未找到为什么网站上传,打开看不到,显示HTTP 404 - 未找到文件支付宝调整还款日花呗还款日是什么时候呢www.topit.me提供好的图片网站结点cuteftp三友网怎么是“三友”三五互联南京最专业的网站建设公司是哪家?双尚网络做的好不好? 给分求答案厦门三五互联科技股份有限公司厦门三五互联科技股份有限公司怎么样?中国保健养猪网中央7台致富经养猪如何发帖子网上怎么发帖子?
动态域名解析软件 云图标 中国智能物流骨干网 西安服务器托管 789 摩尔庄园注册 工信部icp备案查询 密钥索引 hosts文件修改 cdn免备案空间 低价 paypal登陆 9929 招聘瓦工 电脑主机配置 堡垒主机 紫田网络 正在登陆游戏服务器 中国联通网站 韩剧国语版789 更多