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

RackNerd 2022春节促销提供三款年付套餐 低至年付10.88美元

RackNerd 商家我们应该是比较熟悉的商家,速度一般,但是人家便宜且可选机房也是比较多的,较多集中在美国机房。包括前面的新年元旦促销的时候有提供年付10美元左右的方案,实际上RackNerd商家的营销策略也是如此,每逢节日都有活动,配置简单变化,价格基本差不多,所以我们网友看到没有必要囤货,有需要就选择。RackNerd 商家这次2022农历新年也是有几款年付套餐。低至RackNerd VPS...

古德云香港cn2/美国cn235元/月起, gia云服务器,2核2G,40G系统盘+50G数据盘

古德云(goodkvm)怎么样?古德云是一家成立于2020年的商家,原名(锤子云),古德云主要出售VPS服务器、独立服务器。古德云主打产品是香港cn2弹性云及美西cn2云服务器,采用的是kvm虚拟化构架,硬盘Raid10。目前,古德云香港沙田cn2机房及美国五星级机房云服务器,2核2G,40G系统盘+50G数据盘,仅35元/月起,性价比较高,可以入手!点击进入:古德云goodkvm官方网站地址古德...

香港云服务器 1核 256M 19.9元/月 Mineserver Ltd

Mineserver(ASN142586|UK CompanyNumber 1351696),已经成立一年半。主营香港日本机房的VPS、物理服务器业务。Telegram群组: @mineserver1 | Discord群组: https://discord.gg/MTB8ww9GEA7折循环优惠:JP30(JPCN2宣布产品可以使用)8折循环优惠:CMI20(仅1024M以上套餐可以使用)9折循...

科讯cms为你推荐
操作http音视频iphone重庆400年老树穿楼生长重庆海拔500左右的红沙土适合栽哪种果树verticalflash小型汽车网上自主编号申请成都新车上牌办理流程和办理条件是如何的三五互联科技股份有限公司厦门三五互联科技股份有限公司 怎么样?drupal教程搭建一个多店家订餐网站,可以用joomla,wordpress完成吗?求教程团购程序团购系统软件有哪些?一般需要考虑那几点?无忧登陆无忧登录好吗?谷歌新漏洞Google hacking???
sharktech 荷兰服务器 主机 raksmart 便宜建站 免费静态空间 dropbox网盘 云鼎网络 html空间 网通ip 服务器维护方案 免费申请网站 hktv 爱奇艺会员免费试用 新睿云 双线空间 域名转入 阵亡将士纪念日 存储服务器 国外免费网盘 更多