![NXP Semiconductors LPC43Sxx Скачать руководство пользователя страница 29](http://html1.mh-extra.com/html/nxp-semiconductors/lpc43sxx/lpc43sxx_user-manual_1721827029.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
29 of 1441
NXP Semiconductors
UM10503
Chapter 2: LPC43xx/LPC43Sxx Multi-Core configuration and
2.4.1 Hardware
Instead of dedicated hardware, the IPC uses existing hardware components. The buffers
in shared memory can use any of the available SRAM. The buffer pointers are maintained
in software. The interrupts are captured in the processor’s NVIC and cleared in the CREG
block (see
and
2.4.2 Interrupt handling
A CPU cores raises an interrupt to the other CPU core or cores using the TXEV
instruction. If both CPU have been set to respond to the same interrupt then the software
architecture should include means to differentiate messages for different CPU's, for
example the command in the command buffer could contain information for which CPU
the command is intended.
The ARM Cortex-M4 and ARM Cortex-M0 trigger interrupts to each other via CREG
registers M4TXEVENT, M0SUBTXEVENT,and M0APPTXEVENT (see
). The M4-to-M0 and M0-to-M4 interrupts use the
SendEvent instruction (SEV) to raise the signal TXEV. This signal is captured by CREG. It
should be cleared by the interrupt handler of the receiving core.
2.4.3 M0SUB access
M0SUB connects via a bridge to the main AHB matrix. This bridge introduces an access
latency when crossing from the M0sub domain to the main matrix domain. The bridge
uses a write buffer to minimize latency; write accesses should be used when possible.
Fig 7.
Dual-core block diagram
= M0 subsystem
= M4 subsystem
= shared
RAM
MSG_BUFFER
Cortex M4
(Master)
Cortex M0
(Slave)
Read
Pointer
Write
Pointer
Write
Pointer
Read
Pointer
RAM
CMD_BUFFER
Interrupt
Interrupt
AHB