Keil RTX51 Manual page 46

Table of Contents

Advertisement

46
DS51 RTX_EX1 INIT(RTX_EX1.INI)
The
screen; loads the appropriate IOF driver file; initializes watchpoints for the variables
counter0
As each task gets to execute, you will see the corresponding counter increase. The coun-
ter variables are displayed in the watch window at the top of the screen.
Enter
INCLUDE DBG_TINY.INC
at the DS51 command prompt. This will load an include file that allows you to display
status information of the tasks. You may need to increase the size of the exe window us-
ing
ALT+U
Once the include file is loaded, press
defined in this program.
+------------------------------------------------------------------------+
¦ Task ID
¦----------+-------+---------+------------------+--------+-------+-------¦
¦
¦
¦
+------------------------------------------------------------------------+
6
directive loads an initialization file that configures the DS51
INIT(RTX_EX1.INI)
,
, and
counter1
counter2
to halt execution of RTX_EX1, then type
CTRL+C
so all of the task information is displayed.
¦ Start ¦ State
0
¦ 000EH ¦ TIMEOUT ¦
1
¦ 0023H ¦ RUNNING ¦
2
¦ 002EH ¦ TIMEOUT ¦
; and finally starts execution of RTX_EX1.
to display status information for the three tasks
F3
¦ Wait for Event
¦ Signal ¦ Timer ¦ Stack ¦
¦
¦
¦
Application Examples
0
¦
217 ¦
20H ¦
0
¦
217 ¦
2FH ¦
0
¦
217 ¦
F0H ¦

Advertisement

Table of Contents
loading

Table of Contents