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

no-image

USBB17RX78K4-XXX

Manufacturer Part Number
USBB17RX78K4-XXX
Description
78K/4 series realtime OS
Manufacturer
NEC Electronics
Datasheet
4.1.8 wai_tsk (Wait for Wakeup Task)
38
[Function]
[Remarks]
[System call ID number]
[Parameter]
[Return parameter]
[Assembler format]
[C format]
Places a task in the WAIT state for a fixed amount of time.
Places the task itself in the WAIT state for a fixed amount of time from the RUN state. This WAIT state can
be released issuing the system call “wup_tsk (iwup_tsk)” or “ret_wup” to this task, or when the amount of time
specified by tmout has elapsed. If the value of tmout is 0, immediate return is executed, and E_TMOUT is
returned as the return parameter. If tmout is 0 and the number of wake-up request counts is 1 or more, E_OK
is returned (and the wake-up request count is updated).
When this system call is used, the vector address of the timer to be used must be set. For the timer to be
used, refer to 5.1 Hardware Used.
wai_tsk = 7
tmout (Timeout)
E_OK
E_TMOUT
[Large/Small model]
MOV
MOVW
CALLT
C register = return parameter
ret = wai_tsk (tmout);
unsigned short
Wait time = Set interrupt time
bnk0_b, #7
[40H]
:
bnk0_vp, #tmout
tmout;
CHAPTER 4
´
TMOUT value
Normal termination
Time out specification
Elapsed time
RX78K/IV SYSTEM CALL LIST
- 16 bits

Related parts for USBB17RX78K4-XXX