File: README

package info (click to toggle)
simulavr 1.0.0%2Bgit20160221.e53413b-1
  • links: PTS
  • area: main
  • in suites: buster
  • size: 5,748 kB
  • sloc: cpp: 35,491; python: 6,991; ansic: 3,567; makefile: 1,072; sh: 653; asm: 414; tcl: 320
file content (39 lines) | stat: -rw-r--r-- 1,036 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#
#  $Id$
#

In that actual directory we have two checks:

make do

and 

make dogdb

do:
Executing "make do" starts a simple gui and enables the user to enter
analog values (0.0 .. 5.0) in the input fields. After entering a new
analog value in ain0 or ain1, you must press the update button!  

At this point, the output of the analog comparator will be used to
determine the output state of the "->B0" field.   "->B0" displays
the start of the Port B 0 pin.  Its value is determined by the
following logic

if ain0 >  ain1  B0 = H(igh)
if ain0 == ain1  B0 = L(ow)
if ain0 <  ain1  B0 = L(ow)

dogdb:
starts also the ddd graphical interface to avr-gdb which will then
connected to simulavr. After the gui from ddd is available and all
files loaded the avr program can be started with the "cont" button.
The breakpoint inside main stops the program flow and you can step/next
to the programm. The gui.tcl enables you to give new analog values to
the ain0 and ain1 pins so you can observe the comparator action as
described above.