Quality RTOS & Embedded Software

 Real time embedded FreeRTOS RSS feed 
Real time embedded FreeRTOS mailing list 
Quick Start Supported MCUs PDF Books Trace Tools Ecosystem TCP & FAT Training


XRAM on 8051

Posted by Nobody/Anonymous on December 22, 2004
Very much pleased to see u r FREERTOS . Very much interesting to learn. ok In the port 8051 u r using Xram for context switch. ,Can i use internal instead of external ram. How to find what r the registers involved for context swiching for particular device and particular compiler. how to find out writing sample program for that device and compiler pl give example and to learn things

RE: XRAM on 8051

Posted by Richard on December 22, 2004
The stack for a task uses the internal RAM when the task is executing. This is dictated by the architecture of the device, but is also good as the internal RAM can be accessed much faster than the external.

However, the internal RAM is much to small to hold the context of all the tasks, so the context of all the tasks that are not currently executing has to be in XRAM. A context switch therefore has to save from internal to XRAM, then copy from XRAM to internal.

As far as finding out which registers are required to be saved and restored - the internal architecture of any device has to be learned from the device datasheets. This will describe all the registers. This together with examining your chosen compilers output will allow you to ascertain which registers are used when, and which form part of the context. Generally all general purpose registers should be saved.


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

Copyright (C) 2004-2010 Richard Barry. Copyright (C) 2010-2016 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.

Latest News:

FreeRTOS V9.0.0 is now available for download.

Free TCP/IP and file system demos for the RTOS

Sponsored Links

⇓ Now With No Code Size Limit! ⇓
⇑ Free Download Without Registering ⇑

FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

Renesas Electronics Gold Alliance RTOS Partner.jpg

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers

Atmel RTOS partner supporting ARM Cortex-M3 and AVR32 microcontrollers

STMicro RTOS partner supporting ARM7, ARM Cortex-M3, ARM Cortex-M4 and ARM Cortex-M0

Xilinx Microblaze and Zynq partner

Silicon Labs low power RTOS partner

Altera RTOS partner for Nios II and Cortex-A9 SoC

Freescale Alliance RTOS Member supporting ARM and ColdFire microcontrollers

Infineon ARM Cortex-M microcontrollers

Texas Instruments MCU Developer Network RTOS partner for ARM and MSP430 microcontrollers

Cypress RTOS partner supporting ARM Cortex-M3

Fujitsu RTOS partner supporting ARM Cortex-M3 and FM3

Microsemi (previously Actel) RTOS partner supporting ARM Cortex-M3

Atollic Partner

IAR Partner

Keil ARM Partner

Embedded Artists