Hardware Reference
In-Depth Information
Figure 5.35
■
Dialog for configuring Terminal setting
When using the terminal window for the first time, the user needs to perform the appro-
priate configuration. The user should press the
Tools
menu and select
Environment Options
to bring out the dialog as shown in Figure 5.35. The baud rate should be set to the same as the
demo board (9600 for D-Bug12 monitor). The choices for the flow control and ASCII Transfer
Protocol should be set to
None.
D
OWNLOADING
THE
P
ROGRAM
FOR
E
XECUTION
The terminal environment needs to only be configured once. The ICC12 IDE will save the
setting for future use. Before the PC can communicate (via the ICC12 terminal window) with
the D-Bug12 monitor on the demo board, the user should click on the
Open Com Port
button.
Clicking on the
Open Com Port
button requests the PC to configure the selected COM port
(COM 1 in Figure 5.35) to operate with the same setting as that of the demo board.
The user can then press the
Enter
key to bring up the D-Bug12 monitor prompt as shown in
Figure 5.36. To download a program file onto the demo board for execution, type the command
Load
and then press the
Enter
key. After this, the user can use the mouse to browse the direc-
tory to select the appropriate
.s19
(
icctutor.s19
in this example) to be downloaded.
Clicking on the
Open
button in Figure 5.36 will cause Windows to transfer the selected file
into the main memory from the hard disk. Clicking on the
Download!
button in Figure 5.36
will start the download operation. After the icctutor.s19 file is downloaded, the ICC12 IDE
will make a sound and the screen will change to that in Figure 5.37. Due to a bug in ICC12, the
completion of the file download will not bring up the D-Bug12 monitor prompt.
To bring back the D-Bug12 monitor prompt, press the
Reset
button on the demo board. To
execute the downloaded program, type
g 1500
and then press the
Enter
key. To display the value
of the result variable, type the
md 1000
command. The screen will change to that shown in
Figure 5.38 after the previous commands are entered. The contents of the memory location at
$1000 and $1001 are $012C (5 300
10
) and are correct.
Search WWH ::
Custom Search