RPM MPQ Series User manual

MPQ Manufacturing Programmer
User's Guide
March, 2016
RPM SystemsCorporation
Redmond,Washington, USA
(425)869-3901 www.rpmsys.com
• MPQ-PSoC
• MPQ-Z8
• MPQ-C2
• MPQ-AVR
• MPQ-AVR32
• MPQ-ARM

RPM Systems Corporation March, 2016 Page 2
MPQ Manufacturing Programmer User's Guide
Contents
1. MPQ Overview ............................................................................................................ 5
1.1MPQConnections ......................................................................................................................... 5
1.2ProgrammingImages..................................................................................................................... 5
2. MPQ Setup and Operation ......................................................................................... 7
2.1InstallingtheMPManagerSoftware ........................................................................................... 7
2.2ConnectingMPQPowerandCommunications ............................................................................ 7
2.2.1UsingaUSBtoSerialCommunicationsAdapterwithMPQ ..................................................... 7
2.3StartingMPManagerSoftwareandConnectingtoMPQ .......................................................... 7
2.4LoadingImage FilesintoMPQ Flash........................................................................................... 8
2.4.1SelectingProgrammingParameters........................................................................................... 9
2.4.2MultipleFiles ......................................................................................................................... 11
2.4.3Projects................................................................................................................................. 11
2.4.4SecuritySettings .................................................................................................................... 12
2.4.5Serialization ........................................................................................................................... 12
2.5DeletingImagesfromProgrammerFlash .................................................................................. 14
2.6ProgrammingDevicesfromMPManager ................................................................................. 14
2.6.1EnablingandDisablingTargetPorts ....................................................................................... 16
2.6.2VerifyingDevices................................................................................................................... 16
2.6.3ProgrammingErrors............................................................................................................... 16
2.6.4 CRCorChecksumVerify..................................................................................................... 16
2.6.5ProgrammingOptions ............................................................................................................... 16
2.7 Reading Images from Target Devices ....................................................................................... 17
2.8UploadingImagesfromMPQ ..................................................................................................... 18
2.9ArrayProgrammingfromMPManager..................................................................................... 18
3.0 Stand-alone Device Programming .........................................................................20
3.1DefaultImage andPortEnable Selections................................................................................. 20
4.0 Interfacing MPQ with Automated Test Equipment .............................................22
4.1ControlConnectorSignalDescription ........................................................................................22
4.1.1Active#Control ..................................................................................................................... 22
4.1.2ATEPass/FailStatus................................................................................................................ 24
4.1.3ATEOptionSelection............................................................................................................. 24
4.1.4ATEOptionSetup................................................................................................................. 24

RPM Systems Corporation March, 2016 Page 3
MPQ Manufacturing Programmer User's Guide
5.0 MPQ Arrays .............................................................................................................26
5.1Stand-AloneArrays ..................................................................................................................... 26
5.2ATEControlledArrays ............................................................................................................... 26
5.3PC-ControlledArrays .................................................................................................................. 26
Appendix A - Cypress PSoC and enCoRe Microcontrollers ....................................28
A.1 Device Options............................................................................................................................ 28
A.1.1DeviceType ......................................................................................................................... 28
A.1.2TargetVoltage ...................................................................................................................... 29
A.1.3 Mode ................................................................................................................................... 29
A.2ProgrammingOptions ................................................................................................................. 29
A.3PSoCTargetCableConnections................................................................................................ 29
Appendix B - Zilog Z8 Encore! and ZLF645 ..............................................................31
B.1 Device Options............................................................................................................................ 31
B.1.1DeviceFamilyandType ........................................................................................................ 31
B.1.2TargetVoltage ...................................................................................................................... 32
B.1.3 Mode ................................................................................................................................... 32
B.1.4TargetFrequency .................................................................................................................. 32
B.1.5SpecialConsiderationsfor8-pinandCrimzonParts ............................................................... 32
B.2ProgrammingOptions ................................................................................................................. 32
B.3-Target CableConnections........................................................................................................ 33
Appendix D - Silicon Labs C2 Microcontrollers ........................................................35
D.1 Device Options ........................................................................................................................... 35
D.1.1DeviceType ......................................................................................................................... 35
D.1.2TargetVoltage ...................................................................................................................... 36
D.1.3 Mode ................................................................................................................................... 36
D.2ProgrammingOptions ................................................................................................................. 36
D.3SiliconLabsC2TargetCableConnections............................................................................... 36
Appendix F - Atmel AVR ................................................................................................ 38
F.1 Device Options ............................................................................................................................ 38
F.1.1DeviceType.......................................................................................................................... 38
F.1.2TargetVoltage ...................................................................................................................... 38
F.1.3 Mode.................................................................................................................................... 38
F.1.4TargetFrequency .................................................................................................................. 39
F.1.5SPI/JTAGProtocolSelect..................................................................................................... 39
F.2ProgrammingOptions.................................................................................................................. 39
F.2.1FuseValues .......................................................................................................................... 40

RPM Systems Corporation March, 2016 Page 4
MPQ Manufacturing Programmer User's Guide
F.2.2EEPROMProgramming ........................................................................................................ 40
F.2.3OSCCALProgramming ........................................................................................................ 41
F.3-TargetCableConnections ........................................................................................................ 41
Appendix G - Atmel AVR32 ...........................................................................................44
G.1 Device Options ........................................................................................................................... 44
G.1.1DeviceType ......................................................................................................................... 44
G.1.2TargetVoltage ...................................................................................................................... 44
G.1.3 Mode ................................................................................................................................... 45
G.2ProgrammingOptions ................................................................................................................. 45
G.2.1FuseValues .......................................................................................................................... 45
G.2.2UserMemoryProgramming .................................................................................................. 46
G.2.3 SecurityBitProgramming ..................................................................................................... 47
G.3-TargetCableConnections ....................................................................................................... 47

RPM Systems Corporation March, 2016 Page 5
MPQ Manufacturing Programmer User's Guide
1. MPQ Overview
TheMPQManufacturingProgrammerisa fourportdeviceprogrammerforInSystemProgramming
(ISP)ofmicrocontrollers. MPQallowsyouto:
•programuptofourdevicessimultaneouslyfromoneMPQ
•buildarraysofupto16MPQprogrammerstoprogramupto64devicessimultaneously
•storeuptofourdifferentdeviceimagesinprogrammerFlash
•usestand-alone(push-button),PC-controlledorATE(AutomatedTestEquipment)-controlled
modesofoperation
•accommodatetargetdevicevoltagesfrom1.6to5.5V
1.1MPQConnections
TheMPQhasthreeexternalconnectors:thePowerconnector,theControlconnectorandtheTarget
connector.TheControlconnectorisa25-pinFemaleDSubminiatureconnectorthroughwhichexternalcontrol
ofMPQoperationstakesplace.ACommunicationsCableisprovidedwiththeMPQ,whichprovidesa
connectionbetweenitsControlportandahostPCserialportforcommunicationswiththeMPManager
software.
TheTargetconnectorisa30-pin2mmmaleheaderwhichprovidesprogrammingsignalsforuptofour
targetdevices.ThePowerconnectorisa2.1mmmalebarrelconnector,throughwhichtheMPQitselfis
powered.ATargetCableassemblyisprovidedwithMPQwhichconnectsitsTargetporttothecircuit
board(s)containingtheISPdevicestobeprogrammed.RPMoffersseveralterminationoptionsforthetarget
endofTargetCablesdependingupontheparticularmicrocontrollerbeingsupported.Targetconnectoroptions
andpinassignmentsareoutlinedintheappendicesofthismanual.
MPQsensesthetargetsystempowersupplyvoltageoneachofthefourportstodeterminewhentarget
voltageisatacceptablelevelsforprogramming.TheMPQdoesnotprovidepowertothetargetsystems.The
powerdrawnbytheMPQfromeachtargetsystemfortargetvoltagesensingislessthan1mA.
ApowersupplyisprovidedwiththeMPQ,whichplugsdirectlyintotheMPQ'sPowerconnector,and
whichiscapableofoperationfromany50/60Hz,100~240VACpowersource.
1.2ProgrammingImages
ImagestobeprogrammedintothetargetdevicesarestoredintheMPQ'sinternalFlashmemory.Upto
fourdifferentimagescanbestoredintheMPQ.ImagesareloadedintoMPQflashfromafileonthehostPC,
orbyreadingaprogrammeddevice,usingtheMPManagersoftwareprovidedwiththeMPQ.Additional
informationrequiredtoprogramthetargetdevice,suchasdevicetype,targetvoltageandprogrammingmode,
isprovidedbytheoperatoratthetimeeachimageisloaded,andisstoredwiththeimageintheprogrammer.
Onceanimageisloadedintoflashandtheprogrammer'sTargetCableisconnectedtothetargetsystems,
programmingcanbeinitiatedinoneofthreeways:bypushingthegreenbuttononthetopoftheMPQbox
(stand-alonemode),byassertingtheActive#lineontheControlconnector(ATEmode),oroncommandfrom

RPM Systems Corporation March, 2016 Page 6
MPQ Manufacturing Programmer User's Guide
theMPManagerhostsoftware(PC-controlledmode).
Whileprogrammingisinprogress,theMPQ'sActiveLEDwillbelit.Uponcompletionofprogramming,
theActiveLEDwillbedoused,andcompletionstatusforeachofthefourportswillbedisplayedonthePass/
FailstatusLEDs.DisabledportswillnotdisplayLEDpass/failstatus.

RPM Systems Corporation March, 2016 Page 7
MPQ Manufacturing Programmer User's Guide
2. MPQ Setup and Operation
Beforeanydevicescanbeprogrammed,theMPQmustbeconfiguredandtargetimagesloadedintoits
internalFlashmemory.
2.1InstallingtheMPManagerSoftware
MPManagersoftwareisprovidedontheCD-ROMincludedwiththeMPQ.Itcanalsobedownloaded
fromtheRPMSystemswebsiteat:http://www.rpmsys.com/mpq.html.MinimumsystemrequirementsforMP
Manageroperationarea600MHzPentiumclasscomputerwith64MBytesofRAM,40MBytesofavailable
diskspaceandoneavailableserialport.MPManageriscompatiblewithMicrosoftWindows98,Windows
NT,Windows2000andWindowsXPoperatingsystems.
ToinstallMPManager,inserttheCD-ROMintheCDdriveofthecomputer.Iftheinstallerdoesnotstart
automatically,browsetotheMPManagerfolderontheCD-ROM,andrunthesetup.exefilefromthatfolder.
Followtheon-screeninstructionstocompleteinstallationofMPManageronthecomputer.OnceMPManager
hasbeeninstalled,itcanbeinvokedfromtheWindowsStartmenu.
2.2ConnectingMPQPowerandCommunications
ConnecttheMPQ-PSpowersupplyprovidedwithyourMPQtotheprogrammer,andplugitintoa90to
240VAC,50/60Hzpoweroutlet.ThenconnecttheCommunicationsCable,alsoprovided,totheMPQ
Controlconnector,andtoa9-pinserialportonthePChost.
2.2.1UsingaUSBtoSerialCommunicationsAdapterwithMPQ
ManynewercomputersdonotprovideanRS-232serialcommunicationsport,insteadprovidinga
UniversalSerialBus(USB)standardport.AdaptersareavailablewhichallowtheUSBporttobeusedto
communicatewiththeMPQ'sserialinterface.IfyouwishtouseaUSBtoseraladapterwithyourMPQ,please
contactRPMSystemsforrecommendedproducts,ortopurchaseanadapterfromusdirectly.
2.3StartingMPManagerSoftwareandConnectingtoMPQ
WithMPQpoweredonandconnectedthehostPCasoutlinedintheprevioussection,starttheMP
ManagersoftwareonthehostPC(Start/MPManager/MPManager).InthemainMPManagerwindow,select
thecommunicationsporttowhichtheMPQisattached,thenclicktheScanforProgrammers toolbuttonto
locateandconnecttoprogrammersconnectedtothatCOMport.

RPM Systems Corporation March, 2016 Page 8
MPQ Manufacturing Programmer User's Guide
Thesoftwarewilldisplaythestatusmessage"AcquiringProgrammers",andaprogressbarwillbedis-
played,whileitqueriestheserialporttoidentifytheprogrammer(s)attached. Alistoftheprogrammerscon-
nectedtotheCOMportwillbedisplayed intheprogrammerselectbox. If aprogrammerisnotdetected,
ensurethattheprogrammerispoweredon,thatthecommunicationscableisproperlyconnected,andthatthe
propercommunicationsportisselectedintheMPManagermainwindow.
Thecurrentlyselectedprogrammerwillbeshownintheprogrammerselectbox.ClickontheImage
Managertoolbarbuttontoopentheimagemanager.TheProgrammerframeontheleft-handsideoftheImage
Managerwindowwillshowinformationregardingthecurrentlyselectedprogrammer-modelnumber,device
supportandrevisioninformation.TherightsideoftheImageManagerwindowwillshowalistoftheimages
currentlyprogrammedintotheFlashmemoryoftheprogrammer.Foranewprogrammer,thislistwillbeempty.
2.4LoadingImage FilesintoMPQ Flash
ToloadanewimagefileintoprogrammerFlash,firstselectwhichofthefourImagebanks,Image1,2,3
or4,showninthe"ImagesStoredonThisProgrammer"frame,willreceivethenewimage.Dothisbyclicking
oneoftheImagenumberswithyourmouse,orusingthearrowkeysonyourkeyboard.Notethat,ifthebank
youselectalreadycontainsanimage,thatimagewillbeoverwrittenwiththenewimage.
Next,selecttheImage/LoadImageFileoptionfromtheMPManagermenubar, orselecttheFile-
Opentoolbarbutton.Thiswillopenafilebrowsebox.Browsetofindtheimagefileyouwishtoload.The
imagefilewillbea.hexfilewhichwascreatedusingthedevelopmentsoftwarefortheparticularmicrocontroller
supportedbyyourMPQ.Onceyouhaveselectedtheimage,MPQreadsthe.hexfileandverifiesthatitis

RPM Systems Corporation March, 2016 Page 9
MPQ Manufacturing Programmer User's Guide
valid.The"LoadImagefromFile"dialogboxwillthenappear.Inthisdialogbox,youwillnametheimageand
selecttheprogrammingparameterswhichwillbestoredwiththisimageinprogrammerFlash. (Note:ifyou
"Cancel"thefilebrowseboxwithoutselectinganimage,theLoadImagefromFiledialogwillopenwithan
emptyimagefile
name).
2.4.1SelectingProgrammingParameters
TheLoadImagedialogallowsyoutonamethenewimageandtoselectotherparametersnecessaryfor
theprogrammertoproperlyprogramdevices.
TheImageNameispurelyforuserconvenience.ItisstoredwiththeimageinFlash,andisintendedto
helpyouidentifytheimage.TheImageNamedefaultstothenameofthe.heximagefile,butcouldbechanged,
forinstance,toindicatethepartnumberandrevisionofthefirmware.
OncetheLoadImagedialogisopen,youmaychooseadifferentimagefilebyclickingontheellipsesnext
totheImageFile.Thiswillreopenthefilebrowsebox.
TheImageNumbershownintheLoadImagedialogisthenumberoftheimagebankselectedintheImage

RPM Systems Corporation March, 2016 Page 10
MPQ Manufacturing Programmer User's Guide
Managerwindow.Tochooseadifferentimage,switchtotheImageManagerwindow,selectthedesiredimage,
thenswitchbacktotheProgrammerManager.
Thedrop-downboxesatthebottomoftheLoadImagedialogallowyoutospecifythedevicefamily
(dependsuponthemicrocontrollerssupportedbyeachMPQ),devicetype,targetvoltageandprogramming
mode.Thetargetvoltageinformationisusedbytheprogrammertodeterminewhenpoweronthetargetsystem
isviable,aswellastodetermineatwhatvoltageleveltodrivetheprogrammingsignalstothetargetsystem.
ThedeviceparameterswindowwillalwaysdisplaytheDeviceFamily,DeviceTypeandTargetVoltage
parameters.Otherparametersdisplayedinthiswindowwilldependupontheparticulardevicetypebeing
programmed.DeviceOptionsinformationspecifictoeachdevicefamilyisprovidedintheappendicesofthis
document.
Onceyouhaveselectedthedesiredimagefileandprogrammingparameters,clicktheLoadImagebutton
toloadthenewimageintoprogrammerFlash.MPManagerwilldisplaystatusmessagesandaprogressbar
indicatingthatitisdownloadingtheimagetotheprogrammer,thenverifyingit,afterwhichamessageboxwillbe
displayedindicatingthatthedownloadiscomplete.
Imagesinanyofthefourbanksmayalsobereplacedusingthisprocess.

RPM Systems Corporation March, 2016 Page 11
MPQ Manufacturing Programmer User's Guide
2.4.2 Multiple Files
AdditionalHEXfilesmaybeadded,uptoatotaloffour,byselectingthe"+"buttonintheFileInfomration
pane.ThecontentsofthesefileswillbecombinedtocreateasingleimagetobedownloadedtotheMPQ.Files
mayalsobedeletedfromthisareabyselectingthe"X"buttonnexttothefile.
2.4.3Projects
OnceFile,OptionandDeviceselectionshavebeenmade,thesetofselectionscanbesavedasaProject,
byclickingontheSaveProjectbutton.Thiswillsavethefile,optionanddeviceselectioninfomrationina
ProjectFile,whichcansubsequentlybeopenedfromtheImageManager.

RPM Systems Corporation March, 2016 Page 12
MPQ Manufacturing Programmer User's Guide
2.4.4Security Settings
Thesecuritysettingsprovidesomemeasureofprotectionagainstaccesstoyourimageinformationby
unauthorizedindividuals,aswellasaprogrammablelimittothenumberofdevicewhichcanbeprogrammed
fromtheimage.
TheReadProtectoptionpreventstheabilitytouploadtheimagefromtheprogrammerandsaveittoafile
(i.e.,theImage/SaveImagetoFileoptionisnotavailableforthisimage).Selectingthisoptionhasnoeffecton
theuseoftheimageforprogrammingdevices,itsimplycannotbereadoutoftheprogrammerforstorageonthe
hostPC.
TheRestrictedCountoptionallowsyoutolimitthetotalnumberofdeviceswhichcanbeprogrammed
withthisimage.Ifthisoptionisselected,thenumberofcyclesindicatedinthe"Count"fieldwillbethetotal
numberofdeviceswhichmaybesuccessfullyprogrammedwiththeimage.Oncethecountisexhausted,subse-
quentattemptstoprogramwiththisimagewillfail,andanewcopyoftheimagemustbeloadedfromthehostto
authorizeadditionalprogrammingcycles.Notethat,whenthe"RestrictedCount"optionisselected,the"Read
Protect"optionwillautomaticallybeselectedaswell.
NOTE:OnlytheReadProtectoptionisavailableonolderMPQ(V1)programmers.BothReadProtect
andRestrictedCountfunctionalityisavailableonV2andlaterprogrammers.
Thesecuritysettingsforeachimage,aswellasthenumberofcyclesremainingforrestricted-countimages,
areshownintheImageManager.
2.4.5Serialization
SomeMPQprogrammerssupportserializationoftheprogrammeddevices.Thisfeatureallowstheopera-

RPM Systems Corporation March, 2016 Page 13
MPQ Manufacturing Programmer User's Guide
tortodefineanaddressintargetmicrocontrollermemorywhichcancontaina2-bye,4-byteor6-bytebinary
serialnumber,whichisautomaticallincrementedbytheprogrammerforeachsubsequentdeviceprogrammed.
TheserializationdialogisinvokedfromtheLoadImagedialog.Itallowstheusertoselectatargetaddressfor
theserialnumber,amemoryspace(FlashorEEPROM,dependinguponthedevicefamily),thesizeoftheserial
numberareainthetargetmemory,inbytes,andthestartingserialnumbervalue.Thebyteorderingoftheserial
numberinformationwrittentothetargetisselectable,LSBfirstorMSBfirst.
Aftertheimagehasbeenloaded,andafteranynumberofprogrammingcycles,thecurrentserialnumber
foreachimagecanbeviewedfromtheImageManagerwindowbyselectingtheimagebank,thenselecting
ViewSerialization fromtheImagemenu,orbyright-clickingontheimageintheImageManager,andselect-
ingViewSerializationfromthepopupmenu.

RPM Systems Corporation March, 2016 Page 14
MPQ Manufacturing Programmer User's Guide
2.5DeletingImagesfromProgrammerFlash
ItisnotnecessarytodeleteanimagefromthetargetFlashbeforereplacingitwithanewimage.However,
thereareoccasionswhenitmaybedesirabletoremoveanimagefromtheprogrammer,forinstancetoensure
thatitisnolongerusedtoprogramdevices.Todeleteimagesfromtheprogrammer,starttheImageManager
windowaspreviouslydescribed,andselecttheimagetobedeleted,eitherbyclickingontheimagenumberor
usingthekeyboardarrowkeys.ThenselecttheImage/DeleteImageoptionfromtheMPManagermenubar,
ortheDeletebuttononthetoolbar.Youwillbequeriedtobecertainthatyouwanttodeletetheimage.Ifyou
chosetodoso,theimagewillbedeletedfromtheprogrammer.
2.6ProgrammingDevicesfromMPManager
OnceanimageorimageshavebeenloadedintotheprogrammerFlash,programmingoperationscanbe
initiateddirectlyfromMPManagerifyousodesire.First,ensurethattheTargetcableisconnectedbetweenthe
MPQ'sTargetconnectorandthesystemorsystemstobeprogrammed(seeappendicesforadiscussionof
targetsystemconnections). IntheImageManagerwindow,selecttheimagetobeprogrammed. Next,open
theProgrammingManagerbyselectingtheProgrammingManagertoolbarbutton,orbyselectingtheView/
ProgrammingManageroptionfromtheMPManagermenubar.ThiswillcausetheProgrammingManager
windowtobeopened.

RPM Systems Corporation March, 2016 Page 15
MPQ Manufacturing Programmer User's Guide
TheProgrammingManagershowstheprogramminginformationfortheimagetobeprogrammed.When
theProgrammingMangerisopened,itdefaultstotheimagewhichwasselectedintheImageManagerwindow.
Tochooseadifferentimage,usethedrop-downboxintheImagepaneontheleftsideoftheProgramming
Managerwindow.
Toinitiateprogramming,clicktheProgrambutton,orselecttheProgram/ProgramoptionfromtheMP
Managermenubar.Duringprogramming,statuswillbedisplayedforallfourportsaseachdeviceispro-
grammedandverified.Ifpowerisnotappliedtothetargetsystemswhenprogrammingisinitiated, theMPQ
willwaitapproximately10secondsforpowertobeapplied.Assoonasvalidpowerisdetectedonallfour
ports,programmingwillbegin.Ifpowerhasnotbeendetectedonallenabledportsafter10seconds,theMPQ
willproceedtoprogramallportsonwhichpowerisdetected,andwilldisplayanerrorstatusforthoseenabled
portsonwhichpowerwasnotdetected.
Whiletheprogrammingoperationisinprogress,statuswillbedisplayedforallenabledportsinthePro-
grammerPortStatusframe.Uponcompletionofprogramming,thisstatuswillindicateDoneifprogrammingis
successful,orafailurestatusifitisnot.Inaddition,pass/failstatusforeachportwillbedisplayedontheMPQ's
statusLEDsatthecompletionofprogramming.
OncetheProgrammingManagerwindowisopen,youmayrunmultipleprogrammingcyclessimplyby
clickingtheProgrambuttontostarteachnewcycle.Ifyouwouldliketoswitchimages,youcandosoby
switchingtotheImageManagerwindow,selectingadifferentimage,thenswitchingbacktotheProgramming
Managerwindow.ItisnotnecessarytocloseandreopentheProgrammingManager.

RPM Systems Corporation March, 2016 Page 16
MPQ Manufacturing Programmer User's Guide
2.6.1EnablingandDisablingTargetPorts
EnableordisabletargetportsbycheckingorunchecktheboxesnexttoeachtargetportintheProgram-
merPortStatusframe.Acheckmarkintheboxindicatesthattheportisenabled.Itisnotnecessarytodisable
portsthatarenotattachedtoatargetsystem,howeverdoingsodoesmaketheprogrammingcyclegomore
quicklyfortheenabledports,astheMPQisnotrequiredtowaitforthe10-secondpowertime-outperiodto
expire.
2.6.2 Verifying Devices
AlldevicesareverifiedimmediatelyafterprogrammingduringtheProgramcycle,beforethesecurityfuses
areprogrammed.However,aseparateverify-onlycyclemaybeperformedbyclickingtheVerifybuttoninthe
ProgrammingManagerwindow,orbyselectingtheProgram/VerifyoptionfromtheMPManagermenubar.
Notethatmostmicrocontrollerscontainsecurityfuseswhichcanbeprogrammedtopreventsubsequentreading
ofthe device'sprogrammemory.Ifthesefuseswereprogrammedtosettingotherthan"Unprotected"during
theinitialprogrammingcycle,thedevicecannotbereadback,andVERIFYWILLFAIL.
2.6.3ProgrammingErrors
ThefollowingfailurestatusesmaybereportedintheProgrammerPortStatusframe:
NoTargetVcc Nopowerwasdetectedontheportwithin10secondsofprograminitiation
DeviceTimeout Thedevicestoppedrespondingduringtheprogram/verifysequence
VerifyFailed Datareadbackfromthedeviceafterprogrammingwasincorrect
DeviceIDFailed ThedeviceIDreadfromthedevicebeingprogrammeddidnotmatchthetarget
devicetypespecifiedfortheimage
VCCPresent TargetVccwasalreadypresentwhenaPower-Onprogrammingcyclewas
initiated
2.6.4 CRCor Checksum Verify
WhenMPQprogramsadevice,itnormallyreadstheentiredevicecontentsandcomparesittothepro-
grammingimageinordertoverifythatthepartwasprogrammedcorrectly.Theread-verifyoperationensures
thattheprogrammedimageis100%correct,butlengthenstheoveralldurationoftheprogramcycle.Some
microcontrollers,however,allowaCRCorchecksumtobereadfromthedeviceonceitisprogrammed.MPQ
canusethiscapabilitytoreduceprogramcycletimebyverifyingthatthedeviceCRCorchecksummatchesthe
valueexpectedfortheprogrammedimage.Thisallowsasometimessubstantialtimesavingsoneachprogram
cycle,withrelativelylittleriskofnotidentifyingimproperlyprogrammeddevices.Bycheckingthe"CRCVerify"
or"ChecksumVerify"boxintheProgramManagerwindow,theoperatorcanelecttohaveMPQverify
programmingbythismethod,ratherthanperformingacompleteread-verify.
2.6.5ProgrammingOptions
Somedevicesofferprogrammingoptions,suchasmemoryprotectionfeatures,oscillatorselection,etc.,

RPM Systems Corporation March, 2016 Page 17
MPQ Manufacturing Programmer User's Guide
thatmustbeselectedatprogrammingtime.IftheMPQofferstheabilitytoprogramtheseoptionsforthedevice
beingprogrammed,an"Options"buttonwillbedisplayedintheProgramManagerwindow.Clickingonthe
Optionsbuttonwillopenasecondwindowwhichallowstheavailableoptionstobeselected.Theseoption
windowsarediscussedindetailintheappendixforeachdevicefamily.
2.7 Reading Images from Target Devices
Itispossibletoreadimagesfromprogrammedtargetdevicesandstoretheminanimagebankonthe
MPQ.Thisisusefulifyoudesiretocopythecontentsofagivendeviceforthepurposeofprogrammingother
devices.NOTEthatitisonlypossibletoreadavalidimagefromadevicewhichhashaditsprotectionfuses
programmedtopreventthereadingofitsinternalmemory.Imagesreadfromadevicewhichhasbeenpro-
grammedforsecuritywillnotbevalid.
Toreadanimagefromaprogrammed,unprotecteddevice,opentheImageManagerWindow,andselect
theimagebankwhichyouwouldliketoreceivetheimagetoberead.TheselectImage/ReadImagefrom
Target fromtheMPManagermenubar.ThiswillinvoketheReadImagefromTargetdialogbox.Thisdialog
allowsyoutoselectthetargetportfromwhichtheimagewillberead,andtosettheprogrammingparameters
fortheimage.Notethatthedevice,targetvoltageandprogrammingmodeselectionsyouchoosefortheimage
willalsobeusedwhenreadingtheimagefromthetargetdevice.Youmayalsoenteranameforthenewimage.
Onceyouhavemadeyourselections,clicktheReadImagebuttontoreadthedeviceandprogramtheimage
intoMPQFlash.Whiletheimageisbeingread,statuswillbedisplayedintheTargetPortframe.

RPM Systems Corporation March, 2016 Page 18
MPQ Manufacturing Programmer User's Guide
2.8UploadingImagesfromMPQ
AnimagestoredinanyofMPQ'sfourimagebanksmaybeuploadedandstoredinafileonthehostPC.
Touploadanimage,opentheImageManager,selecttheimageyouwouldliketoupload,thenselectImage/
SaveImagetoFilefromtheMPManagermenubar.Thiswillopenafilebrowsebox,allowingyoutospecify
afiletoreceivetheuploadedimage. WhenyouclickSaveintheBrowsebox,ImageManagerwilldisplay
statusandaprogressbarastheimageisuploadedfromtheprogrammer.TheimagewillbestoredonthePCas
astandardIntelHexfile.
2.9ArrayProgrammingfromMPManager
MPQprogrammerscanbeconnectedtogetherinarrays,allowingmultipleprogrammerstobemanaged
together,forsimultaneousprogrammingofupto64devices. ImagesareloadedintoeachMPQ,asdescribed
previously,andtheArrayProgramManagerisusedtocontroltheprogrammingon multipleMPQ'ssimulta-
neously. InordertoaccessmultipleMPQ'sfromtheArrayProgramManager,theymustbeinterconnected
usingtheRS-485communicationsbus(seesection5),whichallowsmultipleprogrammerstoshareasinglePC
communicationsport.
Thefirststepinarrayprogrammingistoloadtargetimagesintoalloftheprogrammersinthearray,using
theImageManageraspreviouslydescribed.Next,invoketheArrayProgramManagerusingthetoolbarbutton.
IntheArrayProgramManagerwindow,youwillbepresentedwithalistofallavailableprogrammerscon-
nectedtothesystem(asdeterminedbythelastScanforProgrammersoperation).Youwillbeabletoselect
whichprogrammerswillbeincludedinthearrayprogrammingoperationbyclickingthecheckboxontheleft
sideofeachprogrammerframe.Youwillalsobeabletoenableordisableindividualportsoneachprogrammer,
justasyoucanfromtheProgrammingManager.Finally,youwillbeabletoselectthedesiredimagebankfor
eachprogrammer.Onceyouhaveselectedthedesiredparameters,simplyclicktheProgrambuttontoinitiate
programmingoftheentirearray.

RPM Systems Corporation March, 2016 Page 19
MPQ Manufacturing Programmer User's Guide

RPM Systems Corporation March, 2016 Page 20
MPQ Manufacturing Programmer User's Guide
3.0 Stand-alone Device Programming
OnceMPManagerhasbeenusedtoloadanimageorimagesintotheMPQ'sinternalFlash, devicesmay
beprogrammedwithouttheneedforahostPCconnection.First,useMPManagertoloadimagesintopro-
grammerFlash,andtomakedefaultimageandportenableselectionsasdescribedinthefollowingsection.
MPQmaythenbedisconnectedfromthehostPCandusedinstand-aloneoperation.
Forstand-aloneoperation,providepowertotheMPQusingtheMPQ-PSpowersupply,andconnectthe
Targetcabletothetargetsystem(s).AprogrammingcycleisinitiatedbypressingthegreenbuttonontheMPQ.
TheprogrammingstepstakenbytheMPQareidenticalinstand-alonemodetothosetakeninPC-connected
mode.FinalprogrammingstatuswillbedisplayedonthestatusLEDsuponcompletionofprogramming.In
stand-alonemode,withoutthehostPCconnectedfordetailederrorreporting,onlytheLEDpass/failstatusis
available.
Stand-aloneoperationcanalsobeusedwithMPQarraystoprogramupto64devicessimultaneously.
MPQarraysarediscussedinSection5.
3.1DefaultImage andPortEnable Selections
TopreparetheMPQforstand-alone("push-button")operation,MPManagermustbeusedtoselecta
defaultprogrammingimageandport-enableselection.Toselecttheseoptions,invoketheProgrammingMan-
ager,andselecttheimagenumberandtheport-enablesyouwouldliketohaveenabledduringstand-alone
operation,justasifyouwerepreparingtoprogramfromMPManager. Forthosedevicefamilieswhichsupport
CRCVerifyorChecksumVerify,thisoptionshouldalsobeselectedatthistimeifitisdesiredforstand-alone
programming.
Onceyouhaveselectedthedesiredimageandport-enableparametersforstand-aloneoperation,select
Configure/SetDefaultsfromtheMPManagermenubar.Thiswillcauseyourselectionstobeloadedand
storedintheMPQ,andusedasthedefaultsettingsforstand-aloneoperations.
This manual suits for next models
6
Table of contents