Sunteți pe pagina 1din 8

UnoArduSimV2.

x Quick Help

Code Pane

Lab Bench Pane

Variables Pane

Toolbar fly-over Hints Status Bar


Code Pane: Edit/View:

To open at a specific line, double-click on that line n the Code Pane or use
FileàEdit/View (and it opens at the last highlighted line)

Tab-indentation will be automatically done if that preference is chosen from


ConfigureàPreferences – you can also single or double-size the Tab width.

Step or Run using , , , or . To Halt at a specific program line ,


first click to highlight that line, and then click RunTo . To Halt when a
specific variable is written to, first click on it to highlight it, and then click
RunTill .

Jump between functions by clicking anywhere, then use PgDn and PgUp
(or and ).
Add or delete tabs to a group of lines using right-arrow or TAB, and left-
Set search text with , and then jump to that text using and arrow (after first selecting a group of 2 or more consecutive lines).

Move between '#include' files using . To add an item (after the caret) from the right-hand list of Built-ins,
double click on it .

Preferences: Find (use ctrl-F), Find/Replace (use ctrl-H), UnDo (ctrl-Z), ReDo (ctrl-Y)
.
Compile and leave open (ctrl-R), or Accept (ctrl-U) or Save (ctrl-S) to close.
ConfigureàPreferences
to set, save ,and load user
choices. Find a brace's matching brace-pair partner by double-clicking on it – both
braces, plus all text between, become highlighted (as in the image above).
Alternate language(s) set
by the user locale, and by a
two-letter code on the very Use ctrl-PgDn and ctrl-PgUp to jump to next (or previous) empty-line break.
first line of the
myArduPrefs.txt
Preferences file
Variables Pane: Lab Bench Pane and the 'Uno':

Click on (+) to expand, or on (-) to collapse arrays and objects.


Left-click on any pin to create (or add to) Pin Digital WaveForms:

PgDn and PgUp (or and ) allow you to quickly jump


between variables.

Use the VarRefresh menu to control update frequency when executing.

Double-click on any variable to track its value during execution, or to change


it to a new value in the middle of (halted) program execution:

Right-click on any pin to create a Pin Analog WaveForm window:

Or single-click to highlight any variable (or object-member, or array-element)


, then use RunTill to advance execution up to the next write-access to that
variable or location.
To ZOOM IN and ZOOM OUT use the mouse wheel, or shortcuts CTRL-up-
arrow and CTRL-down-arrow.
Shift Register Slave ( 'SRSLV')
Lab Bench Pane 'I/O' Devices

Set numbers and types of each using Configureà 'I/O' Devices . Set pins
using a 2-digit value from 00 to 19 (or A0-A5). A simple shift-register device.

Edge transitions on CLK will trigger shifting.


'Serial' Monitor ( 'SERIAL')
Type one or more characters in the upper ('TX chars') SS* low,drives MSB onto Dout.
edit box and hit Return.

Double-click to open a larger window for TX and RX


characters.
SPI Slave ( 'SPISLV')

A mode-Configurable SPI slave device


Software 'Serial' ( 'SFTSER') ('MODE0','MODE1','MODE2',or 'MODE3')

Type one or more characters in the upper ('TX chars') Double-click to open a larger window to set/view hex
edit box and hit Return. 'DATA' and 'Recv' bytes.

Double-click to open a larger window for TX and RX SS* low,drives MSB onto MISO.
characters.

Two-Wire I2C Slave ( 'I2CSLV')

SD Disk Drive ( 'SD_DRV')


A slave-mode-only I2C device.
A small 8-Mbyte SD disk driven from SPI signals, and
mirrored in an 'SD' subdirectory in the loaded Double-click to open a larger window to set/view
program's directory (which will be created if absent) hex 'Send' and 'Recv' bytes

Double-click to open a larger window to see


Directories, Files, and content

CS* low to activate.


Stepper Motor ( 'STEPR)'
One-Shot ( '1SHOT')
A digital one-shot. Produces a pulse of chosen Accepts control signals on either 2 or 4 pins. 'Steps'
polarity on 'Out' after a specified delay from either a must be a multiple of 4.
rising or a falling triggering edge seen on its Trg input.
Once triggered, it will ignore subsequent trigger edges Use '#include <Stepper.h>'.
until the pulse on 'Out' has been fully completed.
To emulate gear reduction by N in your program , use a
'Pulse' and 'Delay' values (if suffixed with an 'S'). will modulo-N counter to determine when to actually call
be scaled from the toolbar 'I/O_____S' slider 'Stepper.step()'
DC Motor ( 'MOTOR') Piezoelectric Speaker ( 'PIEZO')

Accepts PWM signals on Pwm pin, level signal on Dir,


and outputs 8 highs and 8 lows per wheel revolution "Listen" to signals on any chosen 'Uno' pin.
on Enc.

Full speed is approximately 2 revs per second.

Push Button ( 'PUSH)'

A normally-open momentary push-button to +5V or ground

Servo Motor ( 'SERVO')

Accepts pulsed control signals on specified pin. A normally-open latching push-button to +5V or ground
Can be modified to become contunuous-rotation by (depress "latch" button too get this mode).
checking the lower left check-box
You can close the push-button by clicking it. or by pressing
any keyboard key – contact bouncing will only be produced if
you use the space-bar key.

Slide Switch Resistor ( 'R=1K')


Digital Pulser ( 'PULSER')

Generates digital waveform signals on specified pin. A 1 k-Ohm pull-up to +5V OR a 1 k-Ohm pull-down to
ground.
Minimum period is 50 microseconds, minimum pulse
width 10 microseconds. Both values (if suffixed with
an 'S'). will be scaled from the toolbar 'I/O_____S'
slider Coloured LED ( 'LED')

Choose positive-going pulses (0 to 5V) or negative-


going pulses (5V to 0V). R,Y,G, or B LED connected between any chosen 'Uno' pin
and either ground or +5V.

Analog Function Generator ( 'FUNCGEN')


Analog Slider
Generates analog waveform signals on specified pin.

Minimum 'Period' is 100 microseconds, scaled from the A slider-controlled potentiometer. 0-5V to drive any
toolbar 'I/O_____S' slider (if suffixed with an 'S'). chosen 'Uno' pin.

Sinusoidal, triangular, or sawtooth waveforms.


Menus

File: Find :

Load INO or PDE Allows the user to choose a program file having Find Next Function/Var Jump to the next Function in the Code
the selected extension. The program is Pane (if it has the active focus), or to
Prog the next variable in the Variables Pane
immediately parsed
(if instead it has the active focus).
Edit/View Opens the loaded program for viewing/editing.
Find Previous Jump to the previous Function in the
Function/Var Code Pane (if it has the active focus),
Save Save the edited program contents back to the or to the previous variable in the
original program file. Variables Pane (if instead it has the
active focus).
Save As Save the edited program contents under a
different file name. Set Search Text (ctrl- Activate toolbar Find edit box to define
F) your next-to-be-searched-for text..
Next (#include) Advances the Code Pane to display the next
'#include' file Find Next Text Jump to the next Text occurrence in the
Code Pane (if it has the active focus),
or to the next Text occurrence in the
Previous Returns the Code Pane display to the previous Variables Pane (if instead it has the
file active focus).

Exit Exits UnoArduSim. Find Previous Text Jump to the previous Text occurrence
in the Code Pane (if it has the active
focus), or to the previous Text
occurrence in the Variables Pane (if
instead it has the active focus).

Configure:

'I/O' Devices Choose desired number of each type of device


(8 large, and 16 small, 'I/O' devices are allowed)

Preferences Choose automatic indentation, font typeface,


optional larger type size, expert syntax, keyword
logical operators, enforcing array bounds,
showing download, 'Uno' board version, and
TWI buffer length
Execute: Options:

Step Into (F4) Steps execution forward by one Step Over Structors/Operators Fly right through constructors,
instruction, or into a called function. destructors, and operator
overload function during any
Step Over (F5) Steps execution forward by one stepping (i.e. it will not stop inside
instruction, or by one complete function these functions).
call.
Register-Allocation Modelling Assign function locals to free
Step Out Of (F6) Advances execution by just enough to ATmega registers instead of to
leave the current function. the stack..

Run To (F7) Runs the program, halting at the desired Added loop() Delay Add 1 miilisecond. (by default) to
program line -- you must first click to each call to loop()(in case user
highlight a desired program line before has not added any delays
using Run To. anywhere)

Run Till (F8) Runs the program, halting when the Error on Uninitialized Flag as a Parse error anywhere
highlighted Variables Pane variable your program attempts to use a
location is next written to (click to variable without having first
highlight a desired item before using initialized its value.
RunTill).
Show Program Download Show program download to the
Run (F9) Runs the program. 'Uno' board (with attendant
delay).
Halt (F10) Halts program execution (and freezes
time). Allow Nested Interrupts Allow re-enabling using
'interrupts.()' from inside a user
Reset Resets the program (all value-variables interrupt service routine.
are reset to value 0, and all pointer
variables are reset to 0x0000).

Animate Automatically steps consecutive


Configure menu commands:
program lines with added artificial delay
and highlighting of the current code line.
'I/O' Devices Choose desired number of each type
Slow Motion Slows time by a factor of 10. of device (8 large, and 16 small, 'I/O'
devices are allowed)
Preferences Choose automatic indentation, font
typeface, optional larger type size,
expert syntax, keyword logical
operators, enforcing array bounds,
showing download, tab size
multiplier, 'Uno' board version, TWI
buffer length
VarRefresh: Windows:

Allow Auto (-) Collapse Allow UnoArduSIm to collapse displayed 'Serial' Monitor Add a serial IO device (if none) and pull up
expanded arrays/structs/objects when a larger 'Serial' monitor TX/RX text window.
falling behind real-time.

Minimal Only refresh the variables Pane display 4 Restore All Restore all minimized child windows.
times per second.

HighLight Updates Highlight the last-changed variable value


(can cause slowdown). Pin Digital Waveforms Restore a minimized Pin Digital Waveforms
window.

Pin Analog Waveform Restore a minimized Pin Analog Waveform


window.

Help menu commands:

Quick Help File Opens the UnoArduSim_QuickHelp PDF


file.

Full Help File Opens the UnoArduSim_FullHelp PDF file.

Bug Fixes View significant bug fixes since the


previous release..

Changes/Improvements View significant changes and


improvements since the previous release.

About Displays version, copyright

S-ar putea să vă placă și