Overview
This 56-minute video tutorial from Digi-Key explores the critical concepts of interrupts, timers, and counters in Zephyr RTOS for embedded development. Discover how interrupts enable systems to respond instantly to events, learn to write efficient Interrupt Service Routines (ISRs), and understand time-sensitive operations implementation. Compare software-based timers using the kernel's internal clock with hardware-based counters offering microsecond precision. Master GPIO interrupt configuration for external events like button presses, including solutions for common challenges such as button debounce. Learn how workqueues allow deferring complex operations from ISRs to thread-based contexts, keeping interrupt handlers lightweight while maintaining system responsiveness. The tutorial includes practical demonstrations with code examples, supported by a GitHub repository and additional written explanations. Perfect for embedded developers working on IoT devices, motor control systems, or edge AI projects seeking to build efficient real-time applications with Zephyr RTOS.
Syllabus
0:00 Intro
0:46 Overview of Timers
1:36 Develop Timer Demo
6:49 Run Timer Demo
8:11 Overview of Zephyr Counters
9:36 ESP32 Interrupts and Counters
15:29 Overview ESP32 Interrupts and Counters in the Devicetree
23:16 Develop Counter Interrupt Demo
39:37 Run Counter Interrupt Demo
40:14 Overview of Pin Change Interrupts
43:03 Develop Pin Change Interrupt Demo
51:03 Run Pin Change Interrupt Demo
52:05 Challenge: Work Queues
55:06 Conclusion
Taught by
Digi-Key