
To run and debug the program, select
Debug
Go
. Rowley will download the code onto the MAXQ622, with
the progress displayed in the output window at the bottom. Once done, a disassembly window will appear on
the left and a yellow arrow will point to the start of code, since Rowley also automatically places a breakpoint
at the start of main. To debug the code (Step Over, Step Into, Step Out, Next Statement, Go, Reset, etc.),
select Debug from the menu and select one of the debug functions. These can also be selected via the
shortcut buttons in the toolbar in the Disassembly window (
Figure 22a
) or on the far right corner of the main
toolbar (
Figure 22b
).
(a)
(b)
Figure 22. Shortcut buttons for debugging in Rowley. The top shows the buttons available in the “Disassembly”
window. The bottom shows the buttons available on the far right corner of the main toolbar.
To directly program the code onto the MAXQ622 (without debugging), first exit debug mode by selecting
Debug
Stop
. Then select
Target
Download DS8005_EK
.
Using MTK as a Terminal Emulator
The sample code sends data over the serial port to provide more details about what is going on. MTK provides
an easy-to-use terminal emulator (on Windows) for convenience. To use MTK as a terminal emulator, restart
MTK by closing it and reopening it. In the initial
Select device
dialog box (
Figure 23
), select
Dumb Terminal
,
and click
OK
.
Page 19 of 22