You are on page 1of 6

AVR Simulator IDE Help Topics

Table Of Contents: General info File menu Clear Memor ! "oa# $ro%ram! Sa&e Memor ! Simulation menu Start! Step! Stop! Run To 'e(t )ASIC Statement! Rate menu Step ) Step! Slo*! 'ormal! Fast! E(tremel Fast! +ltimate! Tools menu )ASIC Compiler! Microcontroller Vie*! Alternati&e Re%isters Vie*er! $ro%ram Memor E#itor! EE$ROM Memor E#itor! Stac, SRAM Space Vie*er! Assembler! Disassembler! )rea,points Mana%er! Special )rea,points! - ( "ED )oar#! .e pa# Matri(! "CD Mo#ule! Grap/ical 01-(23 "CD Mo#ule! Stepper Motor $/ase Simulation! I1C EE$ROM! Har#*are +ART Simulation Interface! $C4s Serial $ort Terminal! Soft*are +ART Simulation Interface! Oscilloscope! Si%nal Generator! 56 Se%ment "ED Displa s $anel! E(ternal Mo#ules! 7atc/ Variables! Options menu Select Microcontroller! C/an%e Cloc, Fre8uenc ! Sa&e $ositions! "ist I9O Re%isters First! Sa&e Al*a s On Top! Auto Start Options! Reset Simulation Statistics! C/an%e EE$ROM 7rite Time! C/an%e A9D Con&ersion Time! C/an%e +ART Transmit9Recei&e Time! C/an%e F"ASH9EE$ROM +npro%ramme# Value! Compact Microcontroller Vie*! Infinite "oop Stops Simulation! )asic $ro%ram Trac,in%! S/o* Confirmation )o(es! $reser&e Input States on Simulation Start! +se Volta%e for Analo% Inputs! Continuous Analo% Input Sli#er +p#ate! C/an%e +ltimate Rate Refres/ Inter&al! E#itor Setup! C/an%e Color T/eme! Help menu Help Topics! )ASIC Compiler Reference Manual! E(ternal Mo#ules Manual! C/ec, For +p#ates! )u% Report Interface! About! Vie* "icense Information! Special notes T/e list of simulate# perip/erals

: General info AVR Simulator IDE is po*erful application t/at supplies AVR #e&elopers *it/ user6frien#l %rap/ical #e&elopment en&ironment for 7in#o*s *it/ inte%rate# simulator ;emulator<! )ASIC compiler! assembler! #isassembler an# #ebu%%er= T/e main application *in#o* s/o*s all AVR microcontroller internal re%isters status ;%eneral purpose *or,in% an# I9O re%isters! internal #ata SRAM an# pro%ram counter<! mnemonics of t/e last e(ecute# instruction! mnemonics of t/e ne(t instruction t/at *ill be e(ecute#! cloc, c cles an# instructions counter an# real time #uration of t/e simulation= : File menu 6 Clear Memor T/is comman# *ill reset simulator to t/e initial state an# clear F"ASH pro%ram memor an# EE$ROM #ata memor *or,in% buffers= 6 "oa# $ro%ram

T/is comman# loa#s pro%ram file into AVR Simulator F"ASH pro%ram memor buffer= T/e pro%ram file must be in Intel HE> format= Default e(tension is HE>= Once loa#e# pro%ram file can be 8uic,l reloa#e# b clic,in% on its location fiel# on t/e main pro%ram interface or b ,e boar# s/ortcut S$ACE= 6 Sa&e Memor 7it/ t/is comman# it is possible to sa&e t/e contents of t/e F"ASH pro%ram memor *or,in% buffer to a HE> file= : Simulation menu 6 Start AVR Simulator IDE enters simulation mo#e an# be%ins t/e e(ecution of instructions startin% from t/e reset &ector in t/e pro%ram memor = 6 Step T/is comman# is enable# onl */en Step ) Step simulation rate is selecte#= 'e(t instruction is e(ecute# on e&er clic, on ,e boar# s/ortcut F1= 6 Stop AVR 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, c cles an# ?s on AVR microcontroller le&el= 6 Run To 'e(t )ASIC Statement T/is comman# is a&ailable for pro%rams %enerate# b inte%rate# )asic compiler= It *ill start E(tremel Fast simulation until t/e ne(t )asic statement is reac/e# an# t/en automaticall s*itc/ to Step ) Step mo#e= .e boar# s/ortcut is F3= 7/en a&ailable in Step ) Step simulation rate! t/is comman# *ill also appear as a ne* main menu item on t/e pro%ram interface= : Rate menu It enables user to c/an%e t/e simulation rate= It is accessible #urin% t/e simulation! also= 6 Step ) Step T/e inter&al bet*een consecuti&e instructions is at user *ill= 7/en t/e simulator is in Step ) Step mo#e! it is possible to c/an%e t/e &alues in all General $urpose 7or,in% an# I9O re%isters! pro%ram counter an# SRAM re%isters! b clic,in% on t/e appropriate name or &alue fiel# on t/e pro%ram interface= T/e &alue in t/e G$7R an# I9O re%isters can be c/an%e# alternati&el b 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 4STE$4 *ill appear on t/e pro%ram interface= T/at *ill enable an eas access to Step comman# from t/e Simulation menu= 6 Slo* T/e inter&al is 0@AA ms= 6 'ormal T/e inter&al is 1@A ms= 6 Fast T/e inter&al is aroun# @A ms= 6 E(tremel Fast T/e inter&al is &er s/ort an# is linearl #epen#ent on t/e o&erall computer performance= 6 +ltimate T/e main simulator *in#o* is not continuousl refres/e# after e&er simulate# instruction t/at si%nificantl impro&e t/e simulation performance= T/e refres/ inter&al can be c/an%e# usin% C/an%e +ltimate Rate Refres/ Inter&al comman# in Options menu= : Tools menu 6 )ASIC Compiler Inte%rate# )ASIC compiler e#itor *in#o* *ill be opene#= More information a&ailable in )ASIC Compiler Reference Manual= It can be accesse# from t/e Help menu of t/e main application *in#o* or from t/e )ASIC compiler e#itor *in#o*= 6 Microcontroller Vie* T/is comman# *ill open t/e *in#o* *it/ t/e selecte# AVR microcontroller pinout= "o%ical states on all I9O pins is %rap/icall #ispla e#! an# can be manuall c/an%e# on t/e input pins b clic,in% on t/e appropriate to%%le buttons= To use a pin for analo% purposes! its to%%le button s/oul# be ri%/t6 clic,e#= After t/at it *oul# be possible to c/an%e t/e analo% &alue applie# to t/e pin usin% an analo% sli#er= If t/is *in#o* is opene#! it *ill be refres/e# #urin% t/e simulation= 6 Alternati&e Re%isters Vie*er T/is comman# opens an alternati&e &ie*er *in#o* for %eneral purpose *or,in% an# I9O re%isters

t/at can be resiBe#= 6 $ro%ram Memor E#itor T/is is access to AVR Simulator F"ASH pro%ram memor buffer e#itor= It is possible to manuall enter instruction opco#e b clic,in% on t/e #ispla line of t/e tar%et location= 6 EE$ROM Memor E#itor T/is opens AVR Simulator #ata EE$ROM memor 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 memor location can be c/an%e# b clic,in% on it= 6 Stac, SRAM Space Vie*er T/is comman# *ill open t/e &ie*er for stac, area of t/e internal #ata SRAM= If t/is *in#o* is opene#! it *ill be refres/e# #urin% t/e simulation= 6 Assembler T/is comman# starts inte%rate# assembler= Assembler source files can be e#ite# an# assemble# in t/e same %rap/ical en&ironment= Default e(tension is ASM= After t/e successful assembl 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 AVR pro%ram memor 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 1A.= For lar%er files t/e assembl process can ta,e some time! but t/ere are no limits in file siBe= Its limits are t/at onl =ORG! =EC+! =D)! =D7 an# =E'D assembler #irecti&es are supporte#= 6 Disassembler AVR Simulator IDE /as internal #isassembler t/at is starte# b t/is comman#= T/e #isassemblin% process is automaticall initiate# b openin% t/is *in#o*= T/e #isassembler *ill al*a s start from t/e reset &ector location= After t/e operation is complete# #isassembler *ill #ispla 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 memor can be %enerate# usin% internal assembler listin% file ;if it e(ists< or b internal #isassembler= It is possible to #efine up to 0A brea,points b 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 automaticall s*itc/ to Step ) Step mo#e */en reac/in% an of t/ese brea,points= T/e brea,points are mar,e# b re# circles! an# t/e current &alue of t/e $C re%ister is mar,e# b ello* arro*= T/ere is an option to ,eep t/e $C 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 ) 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 @ special brea,points can be #efine# to be simultaneousl acti&e= 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# b clic,in% on t/e "ED color fiel# an# t/e pin assi%nment can be c/an%e# b clic,in% on t/e label s/o*in% t/e current pin selection= 6 .e pa# Matri( T/is is anot/er simple simulation mo#ule for up to 3(3 ,e pa# matri(= T/e pin assi%nments can be c/an%e# b 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 $/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 #ispla t/e current absolute rotor position measure# in steps from t/e first *ell6#efine# rotor position= 6 I1C EE$ROM T/is comman# starts inte%rate# simulation mo#ule for e(ternal I1C EE$ROMs from 13C famil = 6 Har#*are +ART Simulation Interface T/is comman# opens interface for /ar#*are +ART simulator= 6 $C4s Serial $ort Terminal T/is is an inte%rate# tool t/at is in#epen#ent from t/e simulator= T/is terminal is connecte# to $C4s serial port an# can be use# for communication *it/ a real AVR #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 +ART Simulation Interface T/is comman# opens interface for soft*are +ART simulator= It is a serial #e&ice t/at can communicate *it/ AVR microcontroller runnin% soft*are implemente# +ART routines ;SERI'! SERI'I'V! SERO+T an# SERO+TI'V statements< usin% real6time serial communication simulate# on R> an# T> pins= 6 Oscilloscope T/is is a &er 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 #ispla 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 $ull6up 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# #ut c cles= Suitable animation *ill s/o* t/e current p/ase of eac/ pulse %eneration= 6 56Se%ment "ED Displa s $anel T/is inte%rate# simulation tool enables user to #efine connection *it/ up to four 56se%ment "ED #ispla s= T/e connection #efinition inclu#es pin assi%nments for all #ispla se%ments an# one enable line to control #ispla selection */en more t/an one #ispla is use# *it/ parallel connection of se%ments 6 multiple(in%= Acti&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 #ispla s an# .eep "ast Displa option to simulate slo* e e response effect for pro%rams t/at use multiple(in% #ispla s= 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# b e(ternal #e&ice in t/e form Application'ame=ObDect'ame in or#er to establis/ connection *it/ it= E(ternal client9ser&er applications *ill be starte# an# terminate# automaticall *it/ AVR 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/ Variables 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 memor locations of interest #urin% t/e simulation= T/is feature is useful for memor 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= Variables from t/e *atc/ list can be easil remo&e# *it/ t/e Delete Variable comman#! so t/e list can contain &ariables of special interest onl = Ot/er comman#s an# options inclu#e: C/an%e Variable Value ;can be also starte# b a sin%le6clic, on t/e &ariable from t/e list<! Displa HE> Values! Confirm Delete= : Options menu 6 Select Microcontroller T/is comman# is use# to c/an%e t/e AVR microcontroller mo#el selection for t/e simulation= It *ill reset t/e application to t/e initial state= 6 C/an%e Cloc, Fre8uenc T/is comman# allo*s user to c/an%e t/e fre8uenc 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# b a number of statements in )ASIC compiler t/at use some form of timin% routines ;7aitMs! 7ait+s! Serin! Serout! ===<= T/e #efault &alue is 3 MHB= 6 Sa&e $ositions 7it/ t/is option selecte#! t/e positions of t/e *in#o*s on t/e screen *ill be remembere#= 6 "ist I9O Re%isters First Selectin% t/is option *ill result in in&erte# #ispla or#er of t/e %eneral purpose *or,in% an# I9O re%isters list= 6 Sa&e Al*a s On Top 7it/ t/is option selecte#! t/e Al*a s On Top settin% for all of t/e *in#o*s *it/ t/is feature *ill be remembere#=

6 Auto Start Options 7it/ t/is utilit 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 Reset Simulation Statistics T/is comman# *ill set to Bero cloc, c cles 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 EE$ROM 7rite Time T/is comman# is use# to c/an%e t/e number of microsecon#s t/at *ill be use# for t/e EE$ROM *rite inter&al #urin% t/e simulation= T/e #efault &alue is E3AA microsecon#s= 6 C/an%e A9D Con&ersion Time T/is comman# is use# to c/an%e t/e number of microsecon#s t/at *ill be use# for t/e A9D con&ersion time #urin% t/e simulation= T/e #efault &alue is 1@ microsecon#s= 6 C/an%e +ART Transmit9Recei&e Time T/is comman# is use# to c/an%e t/e number of microsecon#s t/at *ill be use# for t/e +ART transmit9recei&e time b internal /ar#*are +ART simulator= T/e realistic &alue #epen#s on t/e #efine# bau# rate= T/e #efault &alue is 0AAA microsecon#s= 6 C/an%e F"ASH9EE$ROM +npro%ramme# Value T/is comman# is use# to c/an%e t/e unpro%ramme# bit &alues for F"ASH pro%ram memor an# #ata EE$ROM memor from 0 to A! an# &ice &ersa from A to 0= If unpro%ramme# bit &alue is 0 t/en unpro%ramme# F"ASH location an# unpro%ramme# EE$ROM location *ill contain /e( &alue FF= If unpro%ramme# bit &alue is A t/en all unpro%ramme# memor *ill be fille# *it/ Beros= 6 Compact Microcontroller Vie* If t/is option is turne# on Microcontroller Vie* *in#o*s *ill be #ispla e# in more compact form= 6 Infinite "oop Stops Simulation C/ec,in% t/is option *ill force t/e simulator to automaticall stop t/e simulation */en an infinite loop is encountere#= 6 )asic $ro%ram Trac,in% Currentl 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 #ispla e# an# *ill re8uire user response to be close#= 6 $reser&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 Vie* *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 Volta%e for Analo% Inputs +se t/is option if ou prefer to see &olta%e &alue ;A=AAV6@=AAV< instea# of ra* analo% &alue ;A60A1E< for analo% input states in Microcontroller Vie* *in#o*s= 6 Continuous Analo% Input Sli#er +p#ate If t/is option is enable# t/en t/e analo% input &alues *ill be continuousl up#ate# *it/ scrollin% of t/e analo% input sli#er in t/e Microcontroller Vie* *in#o*= Ot/er*ise! t/e up#ate *ill occur on t/e closin% of analo% sli#er pop6up onl = 6 C/an%e +ltimate Rate Refres/ 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#erabl = T/e #efault &alue is @AAms= 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 #ispla 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 #ispla e# /elp

file= Ri%/t6clic, on t/e na&i%ation panel *ill s/o* popup menu *it/ S/o* All Subtopics an# Hi#e All Subtopics comman#s= Sin%le6clic, on t/e item from t/e na&i%ation panel *ill mo&e focus on t/e #ispla panel to t/e appropriate position= Double6clic, on t/e topic item *ill s/o*9/i#e its subtopics= T/e #ispla panel s/o*s t/e content of t/e loa#e# /elp file= Ri%/t6clic, *ill #ispla popup menu containin% &arious options an# comman#s inclu#in%: Cop ! Cop RTF! Cop HTM"! $rint! Font Increase! Font Decrease! Font Reset! Al*a s 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# #ispla panels is mo&eable an# its position *ill also be sa&e# after t/e &ie*er is close#= 6 )ASIC Compiler Reference Manual )ASIC Compiler Reference Manual *ill be #ispl e# in t/e /elp &ie*er= 6 E(ternal Mo#ules Manual E(ternal Mo#ules Manual *ill be #ispl e# 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#= Version lo% file *ill be #ispla e# after t/e response from t/e *eb site /as been recei&e#= 6 )u% Report 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# b soft*are ;s stem report<= 6 About T/is comman# *ill #ispla t/e basic information about t/e soft*are pac,a%e= 6 Vie* "icense Information T/is comman# *ill #ispla t/e information about t/e installe# license for t/e soft*are= Info button *ill #ispla information about t/e a##6on mo#ules enable# b t/e license= : Special notes 6 S$M instruction is not simulate# in t/e current release 6 7atc/#o% Timer is not simulate# ;7DR instruction is e(ecute# as 'O$< 6 $o*er6#o*n Mo#e is not simulate# ;S"EE$ instruction *ill stop t/e simulation< : T/e list of simulate# perip/erals 6 Di%ital I9O 6 Data EE$ROM Memor 6 Interrupts 6 E(ternal Interrupts I'TA! I'T0 6 A9D Con&erter Mo#ule 6 Analo% Comparator Mo#ule 6 +SART Mo#ule

You might also like