Рет қаралды 188
In this video, I showcase a system where LEDs indicate the active state of Interrupt Service Routines (ISRs) for two sensors, with a focus on handling SPI data overflow. The demonstration is intentionally slowed down to clearly illustrate the principles of ISR detachment and reattachment, as well as the overflow handling process. When a sensor's ISR is triggered, its corresponding LED turns on, indicating that the ISR is detached and the sensor data is being processed. The system efficiently manages data overflow by processing and clearing excess data before reattaching the ISR. Once the ISR work is completed and reattached, the LED turns off. This visualization helps in understanding the flow of ISR handling and data overflow management in real-time embedded systems.
Overview
- The system uses FreeRTOS for task management
- Two jumpers are used to simulate the SPI ISRs, connected to an ESP32 microcontroller
- LEDs are connected to GPIO pins to visually represent the ISR state
- Real-time processing of sensor data, , including overflow handling
- Visual indication of ISR attachment and detachment through LED states