Quality RTOS & Embedded Software

  Real time embedded FreeRTOS RSS feed  

RTOS Context Switch – Step 2
[Detailed Example]

The RTOS tick interrupt occurs

The RTOS tick occurs just as TaskA is about to execute an LDI instruction. When the interrupt occurs the AVR microcontroller automatically places the current program counter (PC) onto the stack before jumping to the start of the RTOS tick ISR.


AtoB2.gif



Next: RTOS Implementation – Detailed Example Step 3


Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.