PICPgm Tutorial PDF
PICPgm Tutorial PDF
WeusethePICPgmDevelopSoftwareforwritingourcodesintotheFlashMemoryofthePICMicrocontroller.
PICPgmisverygoodopensourcesoftwareforWindows.WorkswellwithWindows98,XPandVista.It
supportsevenourJDMbasedprogrammercircuit.
HereisaScreenshotofthesoftwareasyouopenit(withoutconnectinganyhardwarecircuitry).
PICPgmDevelopProgrammerTutorial
Page1of1
SourabhSankule&MakarandMijar
SummerProject2008
Now,ifyoujustconnecttheProgrammerHardwarePCB(withouttheactualPICMicrocontrollerICplacedon
it)totheSerialPortoftheComputerCPU(throughaSerialPortConnectionWire),andpresstheAutodetect
ProgrammerHardwareButtonyouwillgettoseethetypeofProgrammerHardware,asfollows:
Nowadditionally,ifyouplaceany40pinPICMicrocontrollerIC(belongingtothe16For18FSeries)onthezip
socket,andpresstheAutodetectPICTypebuttonyouwillgettoseetheICNumber.
(Youcanalsoprogramanon40pinPICICusingtheexternalpinconnector,insteadofusingthezipsocket)
PICPgmDevelopProgrammerTutorial
Page2of2
SourabhSankule&MakarandMijar
SummerProject2008
IftheJDMprogrammerisnotautomaticallydetected,thenyoucantrysettingHardwaresettingsfromHardwareoption.
Seethescreenshotforsettingitup.
Anyprogramthatyouwishtofeedintothe(Flashmemoryof)Microcontroller,mustbeintheHex
(Hexadecimal)FileFormat.i.e.withthe.hexfileextension.
Youcanwriteforyourself,theprograminanyhigherlevellanguage(forexample:C).Butthenyouneed
anothersoftware,ormorespecifically,acompiler;thatcompilesyourhigherlevellanguageprogramintothe
Assemblylanguage(bydefaultinHexFormat),whichcanbeunderstoodbythespecificMicrocontrollerinuse.
TherearevariousCompilersavailable,whicharemadespecificallytoprogramanytypeofPICMicrocontroller.
Fore.g.:MicroC,MPLAB.Eachoneofthemwillcreatea*.hexfileofyourrequiredprogram.
PICPgmDevelopProgrammerTutorial
Page3of3
SourabhSankule&MakarandMijar
SummerProject2008
Tofeedthe.hexfileintothemicrocontroller,locatethe.hexfilethroughthebrowsefunction,andusethe
ProgramPICbutton.
Ifeverythingisfine,thenyouwillgetaGreenmessagewindowsignifyingthesuccessfulprocessofburning
(programming)thefileintotheTargetMicrocontroller.
Now,yourPICICisfullyprogrammed(asperthefedcode),andcanberemovedfromtheZIPSocketfor
furtheruse.
PICPgmDevelopProgrammerTutorial
Page4of4
SourabhSankule&MakarandMijar
SummerProject2008