Latest News Items: FreeRTOS V8 released - FAT file system released - Tick suppression demo'ed SAM4L, RX100 & STM32L
 Real time embedded FreeRTOS RSS feed 
Real time embedded FreeRTOS mailing list 
Quick Start Supported MCUs Books & Kits Visualisation Ecosystem Training Contact & Support




Last site update Jan 14 2014

The AVR Context
[RTOS Implementation Building Blocks]

A context switch requires the entire execution context to be saved. On the AVR microcontroller the context consists of:
  • 32 general purpose processor registers. The gcc development tools assume register R1 is set to zero.
  • Status register. The value of the status register affects instruction execution, and must be be preserved across context switches.
  • Program counter. Upon resumption, a task must continue execution from the instruction that was about to be executed immediately prior to its suspension.
  • The two stack pointer registers.

    AVRContext.gif


Next: RTOS Implementation - Saving The Context



[ Back to the top ]    [ About FreeRTOS ]    [ Sitemap ]    [ ]




Copyright (C) 2004-2010 Richard Barry. Copyright (C) 2010-2013 Real Time Engineers Ltd.
Any and all data, files, source code, html content and documentation included in the FreeRTOSTM distribution or available on this site are the exclusive property of Real Time Engineers Ltd.. See the files license.txt (included in the distribution) and this copyright notice for more information. FreeRTOSTM and FreeRTOS.orgTM are trade marks of Real Time Engineers Ltd.