Beruflich Dokumente
Kultur Dokumente
This
guide
will
walk
you
through
how
to
setup
a
basic
graph
in
Code
Composer
Studio
5.
The
first
step
will
be
to
add
a
break
point
where
your
memory
that
you
would
like
to
observe
is
being
updated.
Once
the
break
point
has
been
added
right
click
on
it
and
select
Breakpoint
Properties.
Once
in
the
properties
you
will
want
to
go
the
Debugger
Response
and
change
its
Action
property
to
Refresh
all
Windows.
This
makes
it
so
your
graph
will
always
update
when
data
is
being
written
to
its
memory
location.
Next you will need to add the graph, go to Tools > Graph > Single Time.
Next,
set
your
graph
properties.
Acquisition
Buffer
Size
=
The
Acquisition
Buffer
Size
determines
the
size
of
the
buffer
CCS
uses
to
sample
your
values.
Dsp
Data
Type
=
16
bit
unsigned
integer
(this
is
what
the
ADC
is
sending
us).
Q_Value
=
is
used
to
normalize
values
on
your
y-
axis.
If
left
at
0,
they
will
show
the
actual
values.
If,
for
our
case,
this
is
changed
to
16,
then
it
will
normalize
our
data,
and
1
on
the
y-axis
will
correspond
to
the
maximum
ADC
value,
65536
(or
0hFFFF).
Sampling
Rate
=
The
rate
at
which
you
are
sampling
with
your
ADC.
o Note:
Depending
on
your
signal/code
implementation,
you
may
have
to
adjust
the
Sampling
Rate.
Start
Address
=
location
at
which
you
begin
to
store
your
read
in
values.
Time
Display
Unit
=
at
the
bottom
under
Display
Properties
can
also
be
changed
if
desired/needed.
For
our
purposes,
leaving
it
as
sample
should
be
fine.
On
the
right
hand
side
shows
a
completed
graph
showing
a
sine
wave
being
saved
into
memory.