![NXP Semiconductors LPC43Sxx Скачать руководство пользователя страница 32](http://html1.mh-extra.com/html/nxp-semiconductors/lpc43sxx/lpc43sxx_user-manual_1721827032.webp)
UM10503
All information provided in this document is subject to legal disclaimers.
© NXP B.V. 2015. All rights reserved.
User manual
Rev. 2.1 — 10 December 2015
32 of 1441
NXP Semiconductors
UM10503
Chapter 2: LPC43xx/LPC43Sxx Multi-Core configuration and
Small data transfers can be performed by the single 32-bit data read, CMD_RD_ID, and
write, CMD_WR_ID, commands. These commands use a 3-Byte addressing scheme to
support an argument space of 212 = 4096 32-bit words. Large data transfers can be more
efficiently handled using pointers.
Also higher level interfaces using API calls will typically use indirect, pointer based, reads
and writes.
When multiple tasks are running concurrently the ID is used to distinguish commands and
messages belonging to a certain task. A global command parser should be used to the
kick off commands to the tasks running on the ARM Cortex-M0.
The same holds true for the ARM Cortex-M4 side, a global message parser channels
back messages to the task dispatchers running on the ARM Cortex-M4 side.
Table 6.
Command list
Command
Bit mask
Description
CMD_RD_ID
0xPPP0.TTTT
read 32-bit WORD with argument ID=0xPPP
from the task with ID = 0xTTTT
CMD_WR_ID
0xPPP1.TTTT, WORD
write 32-bit WORD with argument ID=0xPPP to
the task with ID = 0xTTTT
Table 7.
Message list
Message
Bit mask
Description
MSG_SRV_ID
0xSS00.TTTT
ARM Cortex-M0 request servicing for the task
with ID = 0xTTTT. The service type is coded in
bytes SS. The meaning of SS is proprietary per
task. SS=0x00 means the task has finished.
MSG_RD_ID
0xPPP1.TTTT, VALUE
ARM Cortex-M0 responds with VALUE to a read
of WORD with argument ID=0xPPP* from the
task with ID = 0xTTTT.
MSG_RD_STS_ID 0xPPPR.TTTT
ARM Cortex-M0 response to a read of WORD
with argument ID=0xPPP* from the task with ID
= 0xTTTT fails. Cause of the failure is coded in
R; R = 2...4
2 = invalid argument
3 = reserved
4 = reserved
MSG_WR_STS_ID 0xPPPW.TTTT.
ARM Cortex-M0 response to a write with
argument ID=0xPPP* from the task with ID =
0xTTTT. Response is coded in W; W = 5...7
5 = write was successful
6 = write failed
7 = reserved
Table 8.
Command responses
Command
Possible responses
Description
CMD_RD_ID
MSG_RD_ID, VALUE
read acknowledged
MSG_RD_STS_ID
read failed
CMD_WR, WORD
MSG_WR_STS_ID
write is acknowledged as a success or failure