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

企鹅小屋6折年付240元起,美国CN2 GIA VPS促销,独享CPU,三网回程CN2 GIA

企鹅小屋怎么样?企鹅小屋最近针对自己的美国cn2 gia套餐推出了2个优惠码:月付7折和年付6折,独享CPU,100%性能,三网回程CN2 GIA网络,100Mbps峰值带宽,用完优惠码1G内存套餐是年付240元,线路方面三网回程CN2 GIA。如果新购IP不能正常使用,请在开通时间60分钟内工单VPS技术部门更换正常IP;特价主机不支持退款。点击进入:企鹅小屋官网地址企鹅小屋优惠码:年付6折优惠...

御云(RoyalYun):香港CN2 GIA VPS仅7.9元每月起,美国vps仅8.9/月,续费同价,可叠加优惠

御云怎么样?炎炎暑期即将来临,御云(royalyun)香港、美国服务器开启大特惠模式。御云是新成立的云服务提供商,主要提供香港、美国的云服务器,不久将开启虚拟主机业务。我们的香港和美国主机采用CN2 GIA线路。目前,香港cn2 gia vps仅7.9元每月起,美国vps仅8.9/月,续费同价,可叠加优惠,香港云服务器国内延迟一般在50ms左右,是搭建网站的最佳选择,但是请不要用于违法用途。点击进...

618云上Go:腾讯云秒杀云服务器95元/年起,1C2G5M三年仅288元起

进入6月,各大网络平台都开启了618促销,腾讯云目前也正在开展618云上Go活动,上海/北京/广州/成都/香港/新加坡/硅谷等多个地区云服务器及轻量服务器秒杀,最低年付95元起,参与活动的产品还包括短信包、CDN流量包、MySQL数据库、云存储(标准存储)、直播/点播流量包等等,本轮秒杀活动每天5场,一直持续到7月中旬,感兴趣的朋友可以关注本页。活动页面:https://cloud.tencent...

科讯cms为你推荐
新浪企业邮箱使用手册新iphone也将禁售iPhone已停用,停用时间为多久?全国企业信息查询有没有可以查全国企业信息的工商查询网站my.qq.commy.qq.com我是CF会员吗internetexplorer无法打开Internet Explorer无法打开站点怎么解决X1080012高等数学Ⅱ课程教学大纲加多宝和王老吉加多宝和王老吉什么关系 王老吉和加多宝哪个正宗温州商标注册温州代理注册个商标是怎么收费的?本帖隐藏的内容怎么设置本帖隐藏的内容需要回复才可以浏览显示隐藏文件如何让隐藏文件显示出来
租服务器 香港vps linode代购 轻博 个人空间申请 空间出租 秒杀汇 1g内存 鲁诺 如何建立邮箱 空间登入 太原联通测速 杭州电信宽带优惠 hdsky 电信测速器在线测网速 国外bt网站 魔兽世界网通服务器 ibm服务器机柜 dns服务器是什么 灵动鬼影实录4 更多