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

no-image

USBB17RX78K4-XXX

Manufacturer Part Number
USBB17RX78K4-XXX
Description
78K/4 series realtime OS
Manufacturer
NEC Electronics
Datasheet
4.2.10
[Function]
[Remarks]
[System call ID number]
[Parameter]
[Return parameter]
[Assembler format]
Sends a message.
Sends a message at the address pk_msg to a mail box indicated by mbxid. If a task exists that is waiting for
the message, the top address of the sent message is returned, and the task is placed in the READY state. In
this case, the message is not sent to the mail box.
If there is no task waiting for the message, the task issuing “snd_msg” is not placed in the WAIT state. This
system call only sends a message to a mail box, and execution of the task continues. In other words,
message transmission is carried out asynchronously.
The first 2 bytes of the transmitting message are used as the link area of the queue. Therefore, be sure to
store the message from the 3rd byte and onward.
snd_msg = 19
mbxid (Mailbox Identifier)
pk_msg (Message Packet)
E_OK
On issuing snd_msg
[Large model]
MOV
MOVW
MOV
MOVW
MOV
CALLT
C register = return parameter
On issuing isnd_msg
[Large model]
MOVG
MOVG
CALLT
C register = return parameter
snd_msg (Send Message to Mailbox)
isnd_msg (Send Message to Mailbox for Interrupt)
bnk0_b, #19
bnk0_up, #mbxid
bnk0_d, #mbxid
bnk0_vp, #pk_msg
bnk0_e, #pk_msg
[40H]
:
UUP, #mbxid
VVP, #pk_msg
[4CH]
:
CHAPTER 4
Mail box ID (Mailbox top address)
Transmission message top address
Normal termination
[Small model]
MOV
MOVW
MOVW
CALLT
C register = return parameter
[Small model]
MOVW
MOVW
CALLT
C register = return parameter
RX78K/IV SYSTEM CALL LIST
bnk0_b, #19
bnk0_vp, #pk_msg
[40H]
:
UP, #mbxid
VP, #pk_msg
[4CH]
:
bnk0_up, #mbxid
- 24 bits (large model)
- 24 bits (large model)
- 16 bits (small model)
- 16 bits (small model)
51

Related parts for USBB17RX78K4-XXX