Fujitsu FR60 Hardware Manual page 544

32-bit microcontroller mb91301 series
Hide thumbs Also See for FR60:
Table of Contents

Advertisement

CHAPTER 20 REAL-TIME OS EMBEDDED MB91302A-010 USER'S GUIDE
❍ Task definition tab
Register user tasks. Start registration in order from ID number 1. Even though the number of
user tasks for the actual system is less than 64, be sure to register 64 tasks. At this time, set the
startup priority levels, stack, and initial state of unused user tasks using D'32 (minimum priority
level), H'60 (minimum stack value acceptable), and DORMANT (idle state), respectively, not to
start these empty user tasks.
Table 20.6-4 Setup with the Advanced Task Definition Window
Item
1 Name
2 Entry (T)
3 Startup priority level (P)
4 Stack (S)
5 Initial situation (A)
6 Start code (C)
7 ID number (I)
8 Extensive information (O) Free
9 Time out (M)
Even for an unused user task, write a vacant source code in C source code and compile it along
with other user tasks to be used for the system. The following is an example of empty source
code concerning unused task.
This development example assumes the following with regard to user tasks.
$ Number of tasks
$Stack size
$ Initial situation
$ Startup prioritized
This development example requires the following settings with the task definition tab of
Configurator.
task ID1 to ID30
task ID31 to ID40 Stack (S)
task ID41 to ID50 Stack (S)
task ID51 to ID64 Stack (S)
524
Set value
Free
Set freely
The user task name can be set freely.
Free
The entry of a user task with boo(){---} in C source code is _boo.
Free
Register unused user tasks with a priority level of 32.
Free
H'60 is used to set unused user tasks.
Free
Set unused user tasks first to DORMANT.
Free
Set freely
D'1 to D'64
Be sure to set 1 to 64 in ascending order.
Set freely
Use
Set "Use"
50
0x1000 (per task)
task ID1 to ID40
task ID41 to ID50
task ID1 to ID30
task ID31 to ID50
Stack (S)
Initial situation (P)
Startup prioritized (A) -> D'1
Initial situation (P)
Startup prioritized (A) -> D'2
Initial situation (P)
Startup prioritized (A) -> D'2
Initial situation (P)
Startup prioritized (A) -> D'2 (minimum priority level)
Remarks
void boo(void){}
-> READY
-> DORMANT
-> 1
-> 2
-> H'1000
-> READY
-> H'1000
-> READY
->
-> H'1000
-> DORMANT
->
-> H'60 (minimum stack)
-> DORMANT (idle state)
Define blank task

Advertisement

Table of Contents
loading

Table of Contents