3-4
DSPD56362EVM Upgrade Manual
MOTOROLA
68HC11 SOURCE CODE DESCIPTION
MODE SCREENS
3.4
MODE SCREENS
Each screen is defined by the current mode as well as the next mode associated with each of the four
switches. These modes are stored in the array
tableModes
. The example below shows the format
of the mode screen:
tableModes[ ] =
{
{CURRENT_MODE,
{NXT_MODE_S2, NXT_MODE_S3, NXT_MODE_S4, NXT_MODE_S5},
“Text Line” 1,
“Action_S2 Action_S3 Action_S4 Action_S5”},
}
In the example below,
BOOT_MODE
is the first screen that is displayed when the DSP is reset.
Decoding is started when “
Go
” is selected by pressing switch S2. When S2 is pressed, the new mode
is
DEC_MODE
which displays the decoder type. Pressing switch S3, S4, or S5 does not initiate any
action, thus
NO_MODE
is the next mode.
tableModes[ ] =
{
{BOOT_MODE,
{DEC_MODE, NO_MODE, NO_MODE, NO_MODE},
“EVM56362”,
“Go”},
}
F
re
e
sc
a
le
S
e
m
ic
o
n
d
u
c
to
r,
I
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
n
c
.
..