USBB17RX78K4-XXX NEC Electronics, USBB17RX78K4-XXX Datasheet - Page 35

no-image

USBB17RX78K4-XXX

Manufacturer Part Number
USBB17RX78K4-XXX
Description
78K/4 series realtime OS
Manufacturer
NEC Electronics
Datasheet
3.2.2 Control blocks
(1) Task control block (TCB)
(2) Event flag (EVT)
(3) Semaphore (SEM)
(4) Mail box (MBOX)
(5) Memory pool (MPL)
(6) Cyclic handler control block (HCB)
26
This control block is used by RX78K/IV to manage tasks. One control block of this type is assigned to each task.
One TCB is 10 bytes long with the large model, and 8 bytes long with the small model.
An event flag is a block that manages events that are used to synchronize tasks or make tasks wait.
One event flag is 4 bytes long with the large model, and 2 bytes long with the small model.
A semaphore is a resource management block that is used to synchronize or mutually exclude tasks.
One semaphore is 4 bytes long with the large model, and 2 bytes long with the small model.
A mail box is a control block that manages message communication between tasks.
One mail box is 4 bytes long with the large model, and 2 bytes long with the small model.
The memory pool manages free memory blocks. Normally, memory blocks are used as message areas. When
use it as a message area, be sure to set the size of one memory block to a multiple of 2. Even in cases other
than messages, it is possible to secure only the portion of the memory blocks required for the relevant purpose.
The size of the memory pool is the total of the free block management area and the memory blocks.
The size of the free block management area is 4 bytes long with the large model, and 2 bytes long with the small
model.
Cyclic handler control blocks are used by RX78K/IV to manage cyclic handlers. One cyclic handler is given one
control block. The size of each cyclic handler control block is 10 bytes long with the large model, and 8 bytes
long with the small model.
* If two or more tasks are waiting when the event flag is set, all the WAIT tasks enter the READY state.
However, if a task exists that has issued “cwai _ flg” and has entered the WAIT state, the flag is cleared after
that task has been released from the WAIT state. After that, task state transitions do not take place.
CHAPTER 3
RX78K/IV BASIC OPERATIONS AND CONTROL BLOCKS

Related parts for USBB17RX78K4-XXX