I want to create a simple embedded system . The peculiarity of this is that I want to create my architecture using UML . Among the other diagrams that I use, I have a sequence diagram as shown in the figure below.

What I'm trying to portray here is that the sequence enclosed in the βLOOPβ snippet runs over and over again until there is an event.
An interrupt processing unit (ISR) in the right corner of the diagram is a block that runs asynchronously and generates the expected event.
The problem is that since the event can be generated at any time during the cycle, only once every time, for example, every 10 ms and sent to "Module 2", I do not know how this means.
If I just put the arrow with the arrows of the message from the βISRβ block into βModule 2β, I understand that this means that the message containing the event will be sent from βISRβ to βModule 2β as part of the loop, each time, when the loop executes, but that is not what I need. I need to depict the fact that a message from "ISR" to "Module 2" is sent only every X milliseconds or randomly in time (in case of a hardware interrupt).
Any suggestions?
source share