自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(19)
  • 收藏
  • 关注

原创 显示

#include //包含头文件,一般情况不需要改动,头文件包含特殊功能寄存器的定义#include sbit RS = P2^4;   //定义端口 sbit RW = P2^5;sbit EN = P2^6; #define RS_CLR RS=0 #define RS_SET RS=1 #define RW_CLR RW=0 #define RW_

2017-01-24 09:01:27 333

原创 动态管

#include void delay(unsigned char cnt); unsigned char code LedChar[]={0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f,0x77,0x7c,0x39,0x5e,0x79,0x71};unsigned char code LedBuff[]={0xFE,0xFD

2017-01-23 08:56:24 353

原创 数码管

#include //sbit Led1 = P0^0;sbit Latch_seg = P2^0;sbit Latch_bit = P2^1; void delay(unsigned char cnt); /*unsigned char code LedChar[16]={   0xC0,0xF9,0xA4,0xB0,0x99,0x92,0x82,0xF8,0

2017-01-23 08:49:06 256

原创 定时器

#include #define DataPort P0sbit Latch_seg = P2^2;sbit Latch_bit = P2^3;//char bit1[8] = {0xfe,0xfd,0xfb,0xf7,0xef,0xdf,0xbf,0x7f} ;char seg_code[] ={0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x

2017-01-21 08:55:02 196

原创 2

unsigned char sec;void Delay(unsigned int t);void main(){    unsigned char i;TMOD = 0x01;TH0 = 0x3c;TL0 = 0xb0;EA = 1;ET0 = 1;TR0 = 1;sec = 0;while(1){   DataPort = Seq

2017-01-20 21:21:20 293

原创 1

#include//void delay(unsigned char i);unsigned char code LED[10]={0xc0,0xf9,0xa4,0xb0,0x99,0x92,0x82,0xf8,0x80,0x90};void main(){   int i=1;   P2=0xff,P0=0xff;    while(1)    { i

2017-01-19 21:02:14 210

原创 抢答器

#include//void delay(unsigned char i);unsigned char code LED[10]={0xc0,0xf9,0xa4,0xb0,0x99,0x92,0x82,0xf8,0x80,0x90};void main(){   int i=1;   P2=0xff,P0=0xff;    while(1)    { i

2017-01-18 21:31:33 680

原创 1 13

今天科目二终于过了,特别开心,也是在学校的最后一天晚上了,马上就要开启补课模式了,希望自己这个阶段的单片机能学得很棒喽。加油

2017-01-13 23:23:41 313

原创 sheme

#include #include #include #include #include #include #include #include #include  #define PERM S_IRUSR|S_IWUSR/* 共享内存 */ int main(int argc,char **argv) { int shmid; cha

2017-01-12 22:08:59 517

原创 signal test

#include #include #include #include  void myfunc(int sign){    if(sign == SIGINT)    {        printf("hello world!\n");    }    if(sign == SIGQUIT)    {        printf("exit!\

2017-01-11 23:07:45 872

原创 shm

/*****************************************************copyright (C), 2014-2015, Lighting Studio. Co.,     Ltd. File name:Author:Jerey_Jobs    Version:0.1    Date: Description:Funcion List:

2017-01-10 21:50:30 296

原创 nei'rong

静态库的创建   gcc -c 源文件。c  ar rcs 静态库名(lib.a) 目标文件1 2  3使用   gcc -o file flie.c -L. -lname 动态库的创建   gcc -shared -0FPIC -o 库名.so 源文件.c使用   gcc 源文件.c ./库名.so -o 可执行文件名

2017-01-09 22:16:26 440

转载 makefile

一个软件工程通常会包含几十上百个文件,如果每次编译都通过命令行手动编译往往会很麻烦而且效率低下。    在Windows平台上的VC、VB等都有一个工程(Project)的概念。一旦建立了一个工程,这些开发平台会自动地维护其中的各种文件,从而可以很高效地完成编译工作。    幸运的是,在Linux中同样有一个功能强大、使用方便的工程管理工具,这就是make。 使用make工具,首先要编

2017-01-07 22:27:42 246

转载 嵌入式

以应用为中心、以计算机技术为基础,软硬件可裁剪,应用系统对功能、可靠性、成本、体积、功耗和应用环境有特殊要求的专用计算机系统。是将应用程序、操作系统和计算机硬件集成在一起的系统(技术角度)嵌入式系统是设计完成复杂功能的硬件和软件,并使其紧密耦合在一起的计算机系统(系统角度)微机学会定义嵌入式系统是以嵌入式应用为目的的计算机系统。可分为系统级、板级、片级    系统级:各种类型的

2017-01-06 22:49:57 563

转载 命令

名称:cat   使用权限:所有使用者   使用方式:cat [-AbeEnstTuv] [--help] [--version] fileName  说明:把档案串连接后传到基本输出(萤幕或加 > fileName 到另一个档案)   参数: -n 或 --number由 1开始对所有输出的行数编号 -b 或 --number-nonblank和 -n

2017-01-05 22:26:43 114

原创 cal_stack

#define MAX 100 struct operand{    int data[MAX];    int top;}; struct operator_ch{    int top;    char data[MAX];};  typedef struct operand OPND;typedef struct operato

2017-01-04 22:29:28 268

转载 cal.stack

#define MAX 100 struct operand{    int data[MAX];    int top;}; struct operator_ch{    int top;    char data[MAX];};  typedef struct operand OPND;typedef struct operato

2017-01-03 21:31:28 247

转载 tui

copyright (C), 2014-2015, Lighting Studio. Co.,     Ltd. File name:Author:Jerey_Jobs    Version:0.1    Date: Description:Funcion List: *****************************************************/

2017-01-02 22:27:04 410

原创 stack

copyright (C), 2014-2015, Lighting Studio. Co.,     Ltd. File name:Author:Jerey_Jobs    Version:0.1    Date: Description:Funcion List: *****************************************************/

2017-01-01 21:49:49 221

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除