PandaTec Project's profile

States, Events and Interruptions

States, Events and Interruptions
In the realm of computer systems and software engineering, it's crucial to grasp fundamental concepts like states, events, and interrupts. These terms are pivotal for understanding the behavior and operation of computational systems and other complex systems.


- States: Refers to the conditions or situations in which a system, process, or entity can be found at any given time. States can represent different configurations, moods, or levels of operation.

- Events: Are incidents or occurrences that happen within a system or environment at a specific point in time. Events can trigger actions, state changes, or initiate processes within a system.

- Interrupts: Are signals indicating the need to halt the normal flow of execution of a program or process to handle an urgent situation or perform a high-priority task. Interrupts can originate from external devices, such as hardware or software, and require a swift response to ensure proper system operation.

In this experiment with the help or arduino some simulations and a practical exercise was made to give some inside on this concepts.


Using Tinkercad, we aimed to illustrate the distinction between events and states within a digital environment. Utilizing simulated hardware, the exercise involved programming a simple circuit where a push button and a switch were employed. When the button was pressed, it triggered an event, signaling a specific action within the system, such as illuminating an LED. This action exemplified an event-driven behavior, where a discrete occurrence prompted a response. Conversely, the switch represented a state, as its position denoted a particular condition of the system—either LEFT or RIGHT. By toggling the switch.
To illustrate a case involving interruptions, a mini prototype was created. It featured an LED initially turned on. When the button was pressed, an interruption was triggered, causing the LED to display the SOS distress signal in Morse code.
States, Events and Interruptions
Published:

States, Events and Interruptions

Published:

Creative Fields