-
一个最简单的多任务并行系统 51例程
前言想了很久,要不要写这篇文章?最后觉得对操作系统感兴趣的人还是很多,写吧.我不一定能造出玉,但我可以抛出砖.包括我在内的很多人都对51使用操作系统呈悲观态度,因为51的片上资源太少.但对于很多要求不高的系统来说,使用操作系统可以使代码变得更直观,易于维护,所以在51上仍有操作系统的生存机会.流行的uCos,Tiny51等,其实都不适合在2051这样的片子上用,占资源较多,唯有自已动手,以不变应万变,才能让51也有操作系统可用.这篇贴子的目的,是教会大家如何现场写一个OS,而不是给大家提供一个OS版本.提供的所有代码,也都是示例代码,所以不要因为它没什么功能就说LAJI之类的话.如果把功能写全了,一来估计你也不想看了,二来也失去灵活性没有价值了.下面的贴一个示例出来,可以清楚的看到,OS本身只有不到10行源代码,编译后的目标代码60字节,任务切换消耗为20个机器周期.相比之下,KEIL内嵌的TINY51目标代码为800字节,切换消耗100~700周期.唯一不足之处是,每个任务要占用掉十几字节的堆栈,所以任务数不能太多,用在128B内存的51里有点难度,但对于52来说问题不大.这套代码在36M主频的STC12C4052上实测,切换任务仅需2uS.
- 2023-05-03 10:15:03下载
- 积分:1
-
构建嵌入式Linux系统,是学习嵌入式Linux一本不错的书
构建嵌入式Linux系统,是学习嵌入式Linux一本不错的书-Build embedded Linux systems, embedded Linux is to learn from a good book
- 2022-08-09 03:45:20下载
- 积分:1
-
FLASH文件系统的源码,Flash memory is a nonvolatile memory, which allows the user
to e...
FLASH文件系统的源码,Flash memory is a nonvolatile memory, which allows the user
to electrically program (write) and erase information. The
exponential growth of flash memory has made this technology
an indispensable part of hundreds of millions of electronic
devices.
Flash memory has several significant differences with volatile
(RAM) memory and hard drive technologies which requires
unique software drivers and file systems. This paper provides
an overview of file systems for flash memory and focuses on
the unique software requirements of flash memory devices.
-FLASH file system source code, Flash memory is a nonvolatile memory, which allows the user to electrically program (write) and erase information. The exponential growth of flash memory has made this technology an indispensable part of hundreds of millions of electronic devices. Flash memory has several significant differences with volatile (RAM) memory and hard drive technologies which requires unique
- 2022-03-11 14:01:31下载
- 积分:1
-
国内还比较新的network processor的微代码开发,关于local memory的例子,用的uc语言,告诉你如何利用已有的宏和调用硬件资源。...
国内还比较新的network processor的微代码开发,关于local memory的例子,用的uc语言,告诉你如何利用已有的宏和调用硬件资源。-domestic still relatively new network of micro-processor code development, on the example of local memory, the uc language, tell you how to make use of the call-and hardware resources.
- 2022-01-26 02:02:36下载
- 积分:1
-
详细讲述了如何将UCOS II移植到ARM平台上,并给出了一个移植例程的源代码...
详细讲述了如何将UCOS II移植到ARM平台上,并给出了一个移植例程的源代码-Described in detail how to UCOS II ported to ARM platform, and gives the source code of a routine transplant
- 2023-08-13 19:50:02下载
- 积分:1
-
写了一个多
c语言写的一个多任务内核-wrote a multi-tasking kernel
- 2022-08-13 13:49:01下载
- 积分:1
-
PIC18F45K22的几个小程序
基于PIC18F45K22的几个小程序,主要程序有1,闪烁的LED(16MHz)
02 从左到右的流水灯
03 8只LED左右来回点亮
06 单只数码管循环显示0~9
07 8只数码管滚动显示单个数字
08 8只数码管动态显示多个不同字符
- 2022-03-19 02:39:52下载
- 积分:1
-
nds on the famous DSOrganize 2.8 latest source code. Is worth studying.
nds上大名鼎鼎的DSOrganize 2.8最新源代码。很值得研究。-nds on the famous DSOrganize 2.8 latest source code. Is worth studying.
- 2022-10-14 11:10:03下载
- 积分:1
-
该程序主要运用查询方式和中断方式两种方式进行键盘键值的获取,并显示在六个数码管上,显示的原则是最后按下的键值放在最低位的数码管上,其次的依次排列。...
该程序主要运用查询方式和中断方式两种方式进行键盘键值的获取,并显示在六个数码管上,显示的原则是最后按下的键值放在最低位的数码管上,其次的依次排列。-The main use of the program and the interruption of the way query in two ways to access the keyboard keys, and display in six digits, the principle is shown in the last key pressed on the lowest digital tube, followed by the sequence order.
- 2022-02-21 14:04:28下载
- 积分:1
-
AT91RM9200的红外数据
at91rm9200的红外驱动开发资料,IRDA源码-at91rm9200 infrared data-driven development, peripherals FOSS
- 2022-02-28 19:51:18下载
- 积分:1