SPRUIM2H May 2020 – October 2023 AM2431 , AM2432 , AM2434 , AM6411 , AM6412 , AM6421 , AM6422 , AM6441 , AM6442
An interrupt request allows the user of the mailbox to be notified when a message is received or when the message queue is not full. There is one interrupt per user.
Table 7-6 lists the event flags, and their mask, that can cause module interrupts.
Non-Maskable Event Flag(1) | Maskable Event Flag | Event Mask Bit | Event Unmask Bit | Description |
---|---|---|---|---|
MAILBOX_IRQ_STATUS_RAW_j[0+y*2] NEWMSGSTATUSMBy | MAILBOX_IRQ_STATUS_CLR_j[0+y*2] NEWMSG_STATUSMBy | MAILBOX_IRQ_ENABLE_CLR_j[0+y*2] NEWMSG_STATUSMBy | MAILBOX_IRQ_ENABLE_SET_j[0+y*2] NEWMSG_STATUSMBy | Mailbox y receives a new message. |
MAILBOX_IRQ_STATUS_RAW_j[1+y*2] NOTFULLSTATUSMBy | MAILBOX_IRQ_STATUS_CLR_j[1+y*2] NOTFULLSTATUSMBy | MAILBOX_IRQ_ENABLE_CLR_j[1+y*2] NOTFULLSTATUSMBy | MAILBOX_IRQ_ENABLE_SET_j[1+y*2] NOTFULLSTATUSMBy | Mailbox y message queue is not full. |
Once an event generating the interrupt request has been processed by the software, it must be cleared by writing a logical 1 in the corresponding bit of the MAILBOX_IRQ_STATUS_CLR_j register.
Writing a logical 1 in a bit of the MAILBOX_IRQ_STATUS_CLR_j register will also clear to 0 the corresponding bit in the appropriate MAILBOX_IRQ_STATUS_RAW_j register.
An event can generate an interrupt request when a logical 1 is written to the corresponding unmask bit in the MAILBOX_IRQ_ENABLE_SET_j register. Events are reported in the appropriate MAILBOX_IRQ_STATUS_CLR_j and MAILBOX_IRQ_STATUS_RAW_j registers.
An event stops generating interrupt requests when a logical 1 is written to the corresponding mask bit in the MAILBOX_IRQ_ENABLE_CLR_j register. Events are only reported in the appropriate MAILBOX_IRQ_STATUS_RAW_j register.
In case of the MAILBOX_IRQ_STATUS_RAW_j register, the event is reported in the corresponding bit even if the interrupt request generation is disabled for this event.