|
EDA365欢迎您登录!
您需要 登录 才可以下载或查看,没有帐号?注册
x
利用51单片机的Timer定时滴答时钟,做出了一个小型的操作系统,可直接移植。
/ i7 x, N+ ?% A4 W6 m. l单片机源程序如下:1 u0 c5 x. W Z& [4 [
- /***************2015-09-19 Link&Creat Copyright*************************
- 文 件 名:main.c
- 描 述:主函数
- 编 写 者:yanhuan
- 编写日期:2015-09-19
- 修改记录:无
- keil版本:V9.00
- ***********************************************************************/
- #include "Usart.h"
- #include "Timer.h"
- #include "LED.h"
- #include "RTC.h"
- #include "LCD5110.h"
- #include "delay.h"
- #include "KEY.h"
- int main()
- {
- OSInit();
- RTC_Init();
- LCD_Init();
- Usart_Init(); //9600bps
- KeyInit();
- Led_Init();
- while(1)
- {
- Usart_Process();
- LCD_Fresh();
- }
- }
- # t' _) B8 G. B u: G k
5 g, \" y# m0 O5 t4 Z. g9 W[color=rgb(51, 102, 153) !important]复制代码
. X$ Q7 k. { u. H, l |
; ?3 x$ a2 ^; ?( A/ r& t |
|