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

青果网络618:洛杉矶CN2 GIA/东京CN2套餐年付199元起,国内高防独服套餐66折

青果网络怎么样?青果网络隶属于泉州市青果网络科技有限公司,青果网络商家成立于2015年4月1日,拥有工信部颁发的全网IDC/ISP/IP-VPN资质,是国内为数不多具有IDC/ISP双资质的综合型云计算服务商。青果网络是APNIC和CNNIC地址分配联盟成员,泉州市互联网协会会员单位,信誉非常有保障。目前,青果网络商家正式开启了618云特惠活动,针对国内外机房都有相应的优惠。点击进入:青果网络官方...

Buyvm:VPS/块存储补货1Gbps不限流量/$2起/月

BuyVM测评,BuyVM怎么样?BuyVM好不好?BuyVM,2010年成立的国外老牌稳定商家,Frantech Solutions旗下,主要提供基于KVM的VPS服务器,数据中心有拉斯维加斯、纽约、卢森堡,付费可选强大的DDOS防护(月付3美金),特色是1Gbps不限流量,稳定商家,而且卢森堡不限版权。1G或以上内存可以安装Windows 2012 64bit,无需任何费用,所有型号包括免费的...

CheapWindowsVPS:7个机房可选全场5折,1Gbps不限流量每月4.5美元

CheapWindowsVPS是一家成立于2007年的老牌国外主机商,顾名思义,一个提供便宜的Windows系统VPS主机(同样也支持安装Linux系列的哈)的商家,可选数据中心包括美国洛杉矶、达拉斯、芝加哥、纽约、英国伦敦、法国、新加坡等等,目前商家针对VPS主机推出5折优惠码,优惠后最低4GB内存套餐月付仅4.5美元。下面列出几款VPS主机配置信息。CPU:2cores内存:4GB硬盘:60G...

科讯cms为你推荐
flashwind谁能教我怎么在360里下载个flashwind?linux防火墙设置怎么更改linux的防火墙设置?linux防火墙设置在linux iptables怎么开启波音737起飞爆胎客机起飞的时候时速是多少?闪拍网闪拍网是真的吗香港空间香港有什么标志性建筑?建站之星突唯阿和建站之星等有什么区别?引擎收录搜索引擎的收录和索引是什么意思邮件管理系统邮箱管理软件哪种好用zencartzencart建站有哪些优点?什么好处
动态域名解析软件 winscp 主机评测 mediafire下载工具 免费cdn加速 免费网络电视 本网站服务器在美国 100x100头像 服务器维护方案 200g硬盘 卡巴斯基试用版 广州服务器 gtt 无限流量 跟踪路由命令 中国电信测速器 路由跟踪 服务器防火墙 免备案cdn加速 umax 更多