duongtv618 / tinyrtxmc51

A tiny RTOS for mc51 MCU

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

tinyrtxmc51

A tiny rtos feature for at89c51

The at89c51 has a internal RAM of 128 bytes from address 0x00 to 0x7f, each task takes at least 15 bytes to operate so the minimun stack size should be 0x20. Because the iram is tiny so i can only perform such simple task like print some preset string through uart, blink port 3 and increase port2 continuous. With this set-up there is no more iram.


After update spinlock, the program iram space for task is reduce so that i cant bring more feature like semaphor or signal to this project. Timer is on development.

Specs

MCU : AT89C51
iRAM : 128 bytes
Flash : 4KB
I use edsim51 for this project

Compiler

SDCC

Build

I use make on debian to build this project
In terminal run:

make

This will generate a file main.hex in debug foler

About

A tiny RTOS for mc51 MCU


Languages

Language:C 94.4%Language:Makefile 5.6%