PIC Simulator IDE Help Topics
Table Of Contents: General info File menu Clear Memory, oa! Pro"ram, Sa#e Memory, Simulation menu Start, Step, Stop, $un To %e&t '(SIC Statement, $ate menu Step 'y Step, Slo), %ormal, Fast, E&tremely Fast, *ltimate, Tools menu '(SIC Compiler, Microcontroller +ie), (lternati#e SF$ +ie)er, Pro"ram Memory E!itor, EEP$OM Memory E!itor, Har!)are Stac, +ie)er, (ssembler, Disassembler, 'rea,points Mana"er, Special 'rea,points, Interacti#e (ssembler E!itor, - & ED 'oar!, .eypa! Matri&, CD Mo!ule, Grap/ical 01-&23 CD Mo!ule, Stepper Motor P/ase Simulation, I1C EEP$OM, Har!)are *($T Simulation Interface, PC4s Serial Port Terminal, Soft)are *($T Simulation Interface, Oscilloscope, Si"nal Generator, 56Se"ment ED Displays Panel, E&ternal Mo!ules, 7atc/ +ariables, Options menu Select Microcontroller, C/an"e Cloc, Fre8uency, Confi"uration 'its, Sa#e Positions, Sa#e (l)ays On Top, (uto Start Options, $eset Simulation Statistics, C/an"e EEP$OM 7rite Time, C/an"e (9D Con#ersion Time, C/an"e *($T Transmit9$ecei#e Time, C/an"e F (SH9EEP$OM *npro"ramme! +alue, Compact Microcontroller +ie), Infinite oop Stops Simulation, 'asic Pro"ram Trac,in", S/o) Confirmation 'o&es, Preser#e Input States on Simulation Start, *se +olta"e for (nalo" Inputs, Continuous (nalo" Input Sli!er *p!ate, C/an"e *ltimate $ate $efres/ Inter#al, E!itor Setup, C/an"e Color T/eme, Help menu Help Topics, '(SIC Compiler $eference Manual, E&ternal Mo!ules Manual, C/ec, For *p!ates, 'u" $eport Interface, (bout, +ie) icense Information, Special notes T/e list of simulate! perip/erals
: General info PIC Simulator IDE is po)erful application t/at supplies PIC !e#elopers )it/ user6frien!ly "rap/ical !e#elopment en#ironment for 7in!o)s )it/ inte"rate! simulator ;emulator<, '(SIC compiler, assembler, !isassembler an! !ebu""er= T/e main application )in!o) s/o)s all PIC microcontroller internal re"isters status, mnemonics of t/e last e&ecute! instruction, mnemonics of t/e ne&t instruction t/at )ill be e&ecute!, cloc, cycles an! instructions counter an! real time !uration of t/e simulation= : File menu 6 Clear Memory T/is comman! )ill reset simulator to t/e initial state an! clear F (SH pro"ram memory an! EEP$OM !ata memory )or,in" buffers= 6 oa! Pro"ram T/is comman! loa!s pro"ram file into PIC Simulator F (SH pro"ram memory buffer= T/e pro"ram
file must be in Intel HE> format= Default e&tension is HE>= If present in t/e HE> file, confi"uration )or! an! EEP$OM memory !ata )ill also be loa!e! into )or,in" buffers= Once loa!e! pro"ram file can be 8uic,ly reloa!e! by clic,in" on its location fiel! on t/e main pro"ram interface or by ,eyboar! s/ortcut SP(CE= 6 Sa#e Memory 7it/ t/is comman! it is possible to sa#e t/e contents of t/e F (SH pro"ram memory an! EEP$OM !ata memory )or,in" buffers to a HE> file= : Simulation menu 6 Start PIC Simulator IDE enters simulation mo!e an! be"ins t/e e&ecution of instructions startin" from t/e ????H pro"ram memory location= 6 Step T/is comman! is enable! only )/en Step 'y Step simulation rate is selecte!= %e&t instruction is e&ecute! on e#ery clic, on ,eyboar! s/ortcut F1= 6 Stop PIC Simulator IDE e&its simulation mo!e an! presents t/e information about t/e total number of e&ecute! instructions, !uration of t/e simulation an! total real time !uration of t/e simulation in cloc, cycles an! @s on PIC microcontroller le#el= 6 $un To %e&t '(SIC Statement T/is comman! is a#ailable for pro"rams "enerate! by inte"rate! 'asic compiler= It )ill start E&tremely Fast simulation until t/e ne&t 'asic statement is reac/e! an! t/en automatically s)itc/ to Step 'y Step mo!e= .eyboar! s/ortcut is F3= 7/en a#ailable in Step 'y Step simulation rate, t/is comman! )ill also appear as a ne) main menu item on t/e pro"ram interface= : $ate menu It enables user to c/an"e t/e simulation rate= It is accessible !urin" t/e simulation, also= 6 Step 'y Step T/e inter#al bet)een consecuti#e instructions is at user )ill= 7/en t/e simulator is in Step 'y Step mo!e, it is possible to c/an"e t/e #alues in all special function an! "eneral purpose re"isters, pro"ram counter an! )or,in" re"ister, by clic,in" on t/e appropriate name or #alue fiel! on t/e pro"ram interface= T/e #alue in t/e SF$ re"isters can be c/an"e! alternati#ely by to""lin" in!i#i!ual bits of t/e "rap/ical representation an! t/is feature can be use! also )it/ ot/er simulation rates= 7/en t/is simulation rate is selecte! ne) main menu item 4STEP4 )ill appear on t/e pro"ram interface= T/at )ill enable an easy access to Step comman! from t/e Simulation menu= 6 Slo) T/e inter#al is 0A?? ms= 6 %ormal T/e inter#al is 1A? ms= 6 Fast T/e inter#al is aroun! A? ms= 6 E&tremely Fast T/e inter#al is #ery s/ort an! is linearly !epen!ent on t/e o#erall computer performance= 6 *ltimate T/e main simulator )in!o) is not continuously refres/e! after e#ery simulate! instruction t/at si"nificantly impro#e t/e simulation performance= T/e refres/ inter#al can be c/an"e! usin" C/an"e *ltimate $ate $efres/ Inter#al comman! in Options menu= : Tools menu 6 '(SIC Compiler Inte"rate! '(SIC compiler e!itor )in!o) )ill be opene!= More information a#ailable in '(SIC Compiler $eference Manual= It can be accesse! from t/e Help menu of t/e main application )in!o) or from t/e '(SIC compiler e!itor )in!o)= 6 Microcontroller +ie) T/is comman! )ill open t/e )in!o) )it/ t/e selecte! PIC microcontroller pinout= o"ical states on all I9O pins is "rap/ically !isplaye!, an! can be manually c/an"e! on t/e input pins by clic,in" on t/e appropriate to""le buttons= It is possible to c/an"e analo" #alues on all I9O pins confi"ure! as analo" inputs= If t/is )in!o) is opene!, it )ill be refres/e! !urin" t/e simulation= 6 (lternati#e SF$ +ie)er T/is comman! opens an alternati#e #ie)er )in!o) for special function re"isters t/at can be resiBe!=
6 Pro"ram Memory E!itor T/is is access to PIC Simulator F (SH pro"ram memory buffer e!itor= It is possible to manually enter instruction opco!e by clic,in" on t/e !isplay line of t/e tar"et location= 6 EEP$OM Memory E!itor T/is opens PIC Simulator !ata EEP$OM memory buffer e!itor= If t/is )in!o) is opene!, it )ill be refres/e! !urin" t/e simulation= T/e #alue in t/e specific !ata memory location can be c/an"e! by clic,in" on it= 6 Har!)are Stac, +ie)er T/is comman! )ill open t/e PIC Simulator /ar!)are stac, buffer #ie)er= If t/is )in!o) is opene!, it )ill be refres/e! !urin" t/e simulation= 6 (ssembler T/is comman! starts inte"rate! assembler= (ssembler source files can be e!ite! an! assemble! in t/e same "rap/ical en#ironment= Default e&tension is (SM= (fter t/e successful assembly process t)o ne) files are "enerate!= One )it/ HE> e&tension t/at is pro"ram file in Intel HE> format an! t/at can be loa!e! into PIC pro"ram memory an! t/e ot/er )it/ ST e&tension t/at is assembler output listin"= T/is assembler is e&cellent solution for assemblin" source files )it/ siBe up to 1?.= For lar"er files t/e assembly process can ta,e some time, but t/ere are no limits in file siBe= Its limits are t/at only O$G ;=O$G<, EC* ;=EC*<, D' ;=D', DEF', =DEF'<, D7 ;=D7, DEF7, =DEF7< an! E%D ;=E%D< assembler !irecti#es are supporte!= Confi"uration )or! an! EEP$OM memory buffers are also sa#e! in t/e "enerate! HE> file= T/ese buffers can be accesse! an! e!ite! from t/e Options menu of t/e (ssembler )in!o)= DCO%F ;=DCO%F, DEFCO%F, =DEFCO%F< !irecti#e can be use to set t/e #alue;s< t/at )ill o#erri!e t/e !efaults= 6 Disassembler PIC Simulator IDE /as internal !isassembler t/at is starte! by t/is comman!= T/e !isassemblin" process is automatically initiate! by openin" t/is )in!o)= T/e !isassembler )ill al)ays start from t/e a!!ress ????H= (fter t/e operation is complete! !isassembler )ill !isplay t/e output listin" file= T/e "enerate! listin" can be sa#e! to !is,= *ser )ill be prompte! to enter t/e name for t/e output file= Default e&tension is ST= 6 'rea,points Mana"er T/is comman! starts inte"rate! !ebu""er t/at can be use! to !ebu" an! monitor t/e pro"ram e&ecution= T/e !ebu""er listin" file of t/e pro"ram in memory can be "enerate! usin" internal assembler listin" file ;if it e&ists< or by internal !isassembler= It is possible to !efine up to 0? brea,points by clic,in" on in!i#i!ual lines in t/e loa!e! pro"ram listin"= 7/en t/e simulation starts in faster rate mo!es it )ill automatically s)itc/ to Step 'y Step mo!e )/en reac/in" any of t/ese brea,points= T/e brea,points are mar,e! by re! circles, an! t/e current #alue of t/e PC re"ister is mar,e! by yello) arro)= T/ere is an option to ,eep t/e PC pointer in focus !urin" t/e simulation= 6 Special 'rea,points T/is simulation tool pro#i!es t/e feature to !efine special brea,points t/at )ill s)itc/ t/e simulation rate to Step 'y Step mo!e )/en t/e #alue of t/e pre!efine! re"ister /as c/an"e! or reac/e! t/e pre!efine! #alue= *p to A special brea,points can be !efine! to be simultaneously acti#e= 6 Interacti#e (ssembler E!itor T/is comman! starts inte"rate! "rap/ical tool t/at )ill enable be"inners to )rite t/eir first assembler routines interacti#ely )it/out /a#in" to memoriBe t/e mnemonics of in!i#i!ual instructions from PICmicro instruction set= T/is is a "reat tool for e!ucational purposes= 6 - & ED 'oar! T/is simple simulation mo!ule can be use! to attac/ up to ei"/t EDs to microcontroller pins= T/e color of eac/ !io!e can be c/an"e! by clic,in" on t/e ED color fiel! an! t/e pin assi"nment can be c/an"e! by clic,in" on t/e label s/o)in" t/e current pin selection= 6 .eypa! Matri& T/is is anot/er simple simulation mo!ule for up to 3&3 ,eypa! matri&= T/e pin assi"nments can be c/an"e! by clic,in" on t/e appropriate pin labels= 6 CD Mo!ule T/is comman! starts inte"rate! CD Mo!ule simulator= 'efore it can be use! for simulation, user s/oul! set up t/e interface parameters from t/e Setup !ialo"= 6 Grap/ical 01-&23 CD Mo!ule T/is comman! starts inte"rate! "rap/ical 01-&23 CD Mo!ule simulator= 'efore it can be use! for simulation, user s/oul! set up t/e interface parameters from t/e Setup !ialo"= 6 Stepper Motor P/ase Simulation T/is simulation tool )ill s/o) simplifie! ;16pole< "rap/ical presentation of a unipolar stepper motor p/ases in bot/ full6step an! /alf6step mo!es= Durin" t/e simulation Step Counter fiel! )ill !isplay t/e current absolute rotor position measure! in steps from t/e first )ell6!efine! rotor position=
6 I1C EEP$OM T/is comman! starts inte"rate! simulation mo!ule for e&ternal I1C EEP$OMs from 13C family= 6 Har!)are *($T Simulation Interface T/is comman! opens interface for /ar!)are *($T simulator= 6 PC4s Serial Port Terminal T/is is an inte"rate! tool t/at is in!epen!ent from t/e simulator= T/is terminal is connecte! to PC4s serial port an! can be use! for communication )it/ a real PIC !e#ice for t/e purpose of serial communication routines testin"= Comm port number an! bau! rate can be set usin" appropriate comman!s from t/e menu= 6 Soft)are *($T Simulation Interface T/is comman! opens interface for soft)are *($T simulator= It is a serial !e#ice t/at can communicate )it/ PIC microcontroller runnin" soft)are implemente! *($T routines ;SE$I%, SE$I%I%+, SE$O*T an! SE$O*TI%+ statements< usin" real6time serial communication simulate! on $> an! T> pins= 6 Oscilloscope T/is is a #ery useful inte"rate! tool for trac,in" lo"ic le#els on microcontroller pins !urin" t/e simulation= It is a four c/annel !i"ital oscilloscope= *ser can assi"n tar"et pins to t/e oscilloscope c/annels an! c/an"e t/e len"t/ of t/e !isplay inter#al usin" comman!s from t/e Settin"s menu= Input an! output pins are painte! )it/ !ifferent colors t/at are user selecte!= If Pull6up option is selecte! for an oscilloscope c/annel, upon transition from output to input pin state, t/e pin )ill be set to /i"/ !efault lo"ic le#el= 6 Si"nal Generator 7it/ t/is simulation tool user can !efine up to four in!epen!ent continuous pulses "enerators )it/ selectable tar"et input pins, pulse perio!s an! !uty cycles= Suitable animation )ill s/o) t/e current p/ase of eac/ pulse "eneration= 6 56Se"ment ED Displays Panel T/is inte"rate! simulation tool enables user to !efine connection )it/ up to four 56se"ment ED !isplays= T/e connection !efinition inclu!es pin assi"nments for all !isplay se"ments an! one enable line to control !isplay selection )/en more t/an one !isplay is use! )it/ parallel connection of se"ments 6 multiple&in"= (cti#e le#els for all connection lines can be in#erte! to suit /ar!)are re8uirements= T/ere is also an option to c/an"e t/e color use! to paint t/e acti#e EDs on t/e !isplays an! .eep ast Display option to simulate slo) eye response effect for pro"rams t/at use multiple&in" !isplays= 6 E&ternal Mo!ules T/is tool s/oul! be use! to establis/ automation interface )it/ up to fi#e e&ternal client9ser#er mo!ules= It is re8uire! to enter t/e class name supplie! by e&ternal !e#ice in t/e form (pplication%ame=ObDect%ame in or!er to establis/ connection )it/ it= E&ternal client9ser#er applications )ill be starte! an! terminate! automatically )it/ PIC Simulator IDE= More information a#ailable in E&ternal Mo!ules Manual= It can be accesse! from t/e Help menu of t/e main application )in!o)= 6 7atc/ +ariables Durin" t/e simulation of pro"rams )ritten usin" inte"rate! basic compiler, t/is tool can be use! to )atc/ t/e current #alues of all #ariables !eclare! in t/e simulate! basic pro"ram= It is also possible to a!! user !efine! #ariables to t/e list to monitor ot/er memory locations of interest !urin" t/e simulation= T/is feature is useful for memory monitorin" for simulate! pro"ram files, t/at are not compile! )it/ t/e inte"rate! basic compiler= *ser a!!e! #ariables )ill be remembere! bet)een sessions as lon" as t/e same pro"ram file is loa!e! in t/e simulator= +ariables from t/e )atc/ list can be easily remo#e! )it/ t/e Delete +ariable comman!, so t/e list can contain #ariables of special interest only= Ot/er comman!s an! options inclu!e: C/an"e +ariable +alue ;can be also starte! by a sin"le6clic, on t/e #ariable from t/e list<, Display HE> +alues, Confirm Delete= : Options menu 6 Select Microcontroller T/is comman! is use! to c/an"e t/e PIC microcontroller mo!el selection for t/e simulation= It )ill reset t/e application to t/e initial state= 6 C/an"e Cloc, Fre8uency T/is comman! allo)s user to c/an"e t/e fre8uency parameter t/at is use! for t/e calculation of t/e real time !uration of t/e simulation= T/e entere! #alue in MHB is remembere! for t/e future sessions= T/is parameter is also use! by a number of statements in '(SIC compiler t/at use some form of timin" routines ;7aitMs, 7ait*s, Serin, Serout, ===<= T/e !efault #alue is 3 MHB= 6 Confi"uration 'its
T/is option s/oul! be use! to c/an"e t/e !efault settin"s for t/e confi"uration bits= T/at information )ill be sa#e! in all HE> files "enerate! by inte"rate! assembler= T/is option is also a#ailable in t/e menu of t/e assembler )in!o)= 6 Sa#e Positions 7it/ t/is option selecte!, t/e positions of t/e )in!o)s on t/e screen )ill be remembere!= 6 Sa#e (l)ays On Top 7it/ t/is option selecte!, t/e (l)ays On Top settin" for all of t/e )in!o)s )it/ t/is feature )ill be remembere!= 6 (uto Start Options 7it/ t/is utility users can !efine actions t/at )ill be performe! on t/e application startup= T/ese actions inclu!e automatic openin" of #arious tools an! simulation interfaces from t/e Tools menu an! automatic loa!in" of t/e last use! files in t/e simulator, assembler an! basic compiler= 6 $eset Simulation Statistics T/is comman! )ill set to Bero cloc, cycles counter, instructions counter an! real time !uration of t/e simulation= T/is comman! can be use! to !etermine t/e !uration of t/e specific portion of simulate! pro"ram= 6 C/an"e EEP$OM 7rite Time T/is comman! is use! to c/an"e t/e number of cloc, cycles t/at )ill be use! for t/e EEP$OM )rite inter#al= T/e realistic #alue is aroun! Ams= T/e !efault #alue is 0??? cloc, cycles= 6 C/an"e (9D Con#ersion Time T/is comman! is use! to c/an"e t/e number of cloc, cycles t/at )ill be use! for t/e (9D con#ersion time= T/e settin" in t/e (DCO%? re"ister is i"nore! by t/e simulator= T/e !efault #alue is 0?? cloc, cycles= 6 C/an"e *($T Transmit9$ecei#e Time T/is comman! is use! to c/an"e t/e number of cloc, cycles t/at )ill be use! for t/e *($T transmit9recei#e time by internal /ar!)are *($T simulator= T/e realistic #alue !epen!s on t/e !efine! bau! rate= T/e !efault #alue is 0??? cloc, cycles= 6 C/an"e F (SH9EEP$OM *npro"ramme! +alue T/is comman! is use! to c/an"e t/e unpro"ramme! bit #alues for F (SH pro"ram memory an! !ata EEP$OM memory from 0 to ?, an! #ice #ersa from ? to 0= If unpro"ramme! bit #alue is 0 t/en unpro"ramme! F (SH location )ill contain EFFF/ an! unpro"ramme! EEP$OM location )ill contain FF/= If unpro"ramme! bit #alue is ? t/en all unpro"ramme! memory )ill be fille! )it/ Beros= 6 Compact Microcontroller +ie) If t/is option is turne! on Microcontroller +ie) )in!o)s )ill be !isplaye! in more compact form= 6 Infinite oop Stops Simulation C/ec,in" t/is option )ill force t/e simulator to automatically stop t/e simulation )/en an infinite loop is encountere!= 6 'asic Pro"ram Trac,in" Currently simulate! basic statement )ill appear /i"/li"/te! in 'asic compiler )in!o) )/en t/is option is enable!= 6 S/o) Confirmation 'o&es 7/en t/is option is enable! t/e confirmation bo&es s/o)in" results of operations )ill be !isplaye! an! )ill re8uire user response to be close!= 6 Preser#e Input States on Simulation Start If t/is option is enable! t/en t/e states of !i"ital an! analo" inputs on t/e Microcontroller +ie) )in!o) )ill not be reset to OFF !i"ital state an! Bero analo" #alue )/en t/e simulation is starte! a"ain= 6 *se +olta"e for (nalo" Inputs *se t/is option if you prefer to see #olta"e #alue ;?=??+6A=??+< instea! of ra) analo" #alue ;?60?1E< for analo" input states in Microcontroller +ie) )in!o)s= 6 Continuous (nalo" Input Sli!er *p!ate If t/is option is enable! t/en t/e analo" input #alues )ill be continuously up!ate! )it/ scrollin" of t/e analo" input sli!er in t/e Microcontroller +ie) )in!o)= Ot/er)ise, t/e up!ate )ill occur on t/e closin" of analo" sli!er pop6up only= 6 C/an"e *ltimate $ate $efres/ Inter#al T/is comman! allo)s user to c/an"e t/e refres/ inter#al ;in millisecon!s< for t/e main simulation interface )/en t/e simulation is runnin" at *ltimate rate= Its #alue /o)e#er !oes not affect t/e simulation performance consi!erably= T/e !efault #alue is A??ms= 6 E!itor Setup 7it/ t/is setup tool it is possible to c/an"e #arious properties of basic compiler an! assembler co!e
e!itors= 6 C/an"e Color T/eme T/is comman! )ill open a !ialo" )it/ t/e ric/ list of a#ailable color t/emes, so t/at user can c/an"e application appearance= : Help menu 6 Help Topics T/is comman! )ill !isplay Help Topics= T/is /elp file contains "eneral information about t/e application )it/ !escription of all menu items= Help #ie)er )in!o) features na#i"ation panel s/o)in" topics an! subtopics of t/e !isplaye! /elp file= $i"/t6clic, on t/e na#i"ation panel )ill s/o) popup menu )it/ S/o) (ll Subtopics an! Hi!e (ll Subtopics comman!s= Sin"le6clic, on t/e item from t/e na#i"ation panel )ill mo#e focus on t/e !isplay panel to t/e appropriate position= Double6clic, on t/e topic item )ill s/o)9/i!e its subtopics= T/e !isplay panel s/o)s t/e content of t/e loa!e! /elp file= $i"/t6clic, )ill !isplay popup menu containin" #arious options an! comman!s inclu!in": Copy, Copy $TF, Copy HTM , Print, Font Increase, Font Decrease, Font $eset, (l)ays On Top= Help #ie)er )in!o) is resiBable an! )ill remember bot/ its position an! siBe= T/e #ertical separator bet)een na#i"ation an! !isplay panels is mo#eable an! its position )ill also be sa#e! after t/e #ie)er is close!= 6 '(SIC Compiler $eference Manual '(SIC Compiler $eference Manual )ill be !isplye! in t/e /elp #ie)er= 6 E&ternal Mo!ules Manual E&ternal Mo!ules Manual )ill be !isplye! in t/e /elp #ie)er= 6 C/ec, For *p!ates T/is tool )ill enable user to establis/ connection )it/ Os/onSoft=com )eb site to c/ec, out if t/ere is a ne) soft)are release a#ailable for !o)nloa!= +ersion lo" file )ill be !isplaye! after t/e response from t/e )eb site /as been recei#e!= 6 'u" $eport Interface T/is interface s/oul! be use! to sen! t/e reports about possible bu"s in soft)are to Os/onSoft=com= In a!!ition to t/e user )ritten part t/e full report )ill contain a part t/at is "enerate! by soft)are ;system report<= 6 (bout T/is comman! )ill !isplay t/e basic information about t/e soft)are pac,a"e= 6 +ie) icense Information T/is comman! )ill !isplay t/e information about t/e installe! license for t/e soft)are= Info button )ill !isplay information about t/e a!!6on mo!ules enable! by t/e license= : Special notes 6 7atc/!o" Timer is not simulate! ;C $7DT instruction is e&ecute! as %OP< 6 Po)er6!o)n Mo!e is not simulate! ;S EEP instruction )ill stop t/e simulation< : T/e list of simulate! perip/erals 6 Di"ital I9O 6 Data EEP$OM Memory 6 Interrupts 6 Timer? Mo!ule 6 (9D Con#erter Mo!ule 6 Comparator Mo!ule 6 +olta"e $eference Mo!ule 6 Har!)are *($T Mo!ule 6 Timer0 Mo!ule ;'its T0OSCE% an! FT0SG%C in T0CO% are i"nore!=< 6 Timer1 Mo!ule 6 Capture, Compare an! P7M mo!es of CCP mo!ules 6 $ea!in" F (SH pro"ram memory