• 大小: 7.11MB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2023-09-25
  • 语言: 其他
  • 标签: pulse  sensor  

资源简介

pulse sensor独有资料 脉搏传感器 51,阿德诺等等单片机代码

资源截图

代码片段和文件信息

/******************************************************************************/
/*  Name:  LCD12864(St7920/St7921)+超声波测距模块+STC89C52                    */
/*  HC-SR04 超声波测距模块 DEMO 程序       */
/*  晶振:11.0592M                                                            */   
/*  taobao店铺:http://shop58246706.taobao.com   */
/*  接线:模块TRIG接 P1.2  ECH0 接P1.1   */
/******************************************************************************/
    #include   
#include   
////引脚定义
//    sbit     RX    =  P1 ^ 1;
//    sbit     TX    =  P1 ^ 2;
//    sbit     CS    =  P3 ^ 3; //片选 高电平有效 单片LCD使用时可固定高电平
//    sbit     SID   =  P3 ^ 4; //数据
//    sbit     SCLK  =  P3 ^ 5; //时钟

//Function Definition 函数声明 
void Delay(int num);
void Init_DS18B20(void);
unsigned char ReadOneChar(void);
void WriteOneChar(unsigned char dat);
unsigned int ReadTemperature(void);
void clock_out(unsigned char dd);
unsigned char clock_in(void);
unsigned char read_clock(unsigned char ord);
void write_clock(unsigned char ord unsigned char dd);
void Disp(void);
void id_case1_key(void);
void id_case2_key(void);
void Set_time(unsigned char selbit sel_1);
void Timer0_Init(void);
void Init_1302(void);
void Set_Bell(unsigned char sel bit sel_1);
void Bell(void);
//12864
void Write_char(bit start unsigned char ddata);
void Send_byte(unsigned char bbyte);
void Delaynms(unsigned int di);
void Lcd_init(void);
void Disp_img(unsigned char *img);
void LCD_Write_string(unsigned char Xunsigned char Yunsigned char *s);
void LCD_set_xy( unsigned char x unsigned char y );
unsigned char code num[]={“0123456789 :.-“};
unsigned char code waves[]={“超声波测距系统“};
unsigned char code znwk[] ={“智能微控工作室“};
unsigned char code CM[] =  {“M“};
unsigned int  time=0;
         long S=0;
         bit  flag =0;
unsigned char disbuff[4]    ={ 0000};

/******************************************************************************/


/******************************************************************************/
void Write_char(bit start unsigned char ddata) //写指令或数据
{
unsigned char start_dataHdataLdata;
   if(start==0) 
start_data=0xf8;  //写指令
    else    
     start_data=0xfa;  //写数据
  
   Hdata=ddata&0xf0;   //取高四位
   Ldata=(ddata<<4)&0xf0;  //取低四位
   Send_byte(start_data);   //发送起始信号
   Delaynms(5); //延时是必须的
   Send_byte(Hdata);       //发送高四位
   Delaynms(1);  //延时是必须的
   Send_byte(Ldata);   //发送低四位
   Delaynms(1);  //延时是必须的
}

/******************************************************************************/
void Send_byte(unsigned char bbyte) //发送一个字节
{
unsigned char i;
  for(i=0;i<8;i++)
    {
    SID=bbyte&0x80; //取出最高位
  SCLK=1;
    SCLK=0;
    bbyte<<=1; //左移
    }  
}

/******************************************************************************/
void Delaynms(unsigned int di) //延时
{
unsigned int dadb;
  for(da=0;da    for(db=0;db<10;db++);

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件     113630  2014-12-16 14:08  pulse sensor独有资料\51板程序\pulsesensor_STC12C5A\51最小系统V2.0原理图.pdf

     文件    2875727  2014-12-16 14:08  pulse sensor独有资料\51板程序\pulsesensor_STC12C5A\CEPARK 51最小系统V2.0用户手册.pdf

     文件       7194  2015-04-16 21:08  pulse sensor独有资料\51板程序\pulsesensor_STC12C5A\pulsesensor_STC12C5A _LCD12864\pulsesensor_STC12C5A\chaoshengbo.c

     文件       4729  2014-12-16 14:08  pulse sensor独有资料\51板程序\pulsesensor_STC12C5A\pulsesensor_STC12C5A _LCD12864\pulsesensor_STC12C5A\LCD12864.c

     文件        565  2015-04-17 16:19  pulse sensor独有资料\51板程序\pulsesensor_STC12C5A\pulsesensor_STC12C5A _LCD12864\pulsesensor_STC12C5A\LCD12864.h

     文件       9052  2015-04-15 19:05  pulse sensor独有资料\51板程序\pulsesensor_STC12C5A\pulsesensor_STC12C5A _LCD12864\pulsesensor_STC12C5A\LCD12864.LST

     文件       8371  2015-04-15 19:05  pulse sensor独有资料\51板程序\pulsesensor_STC12C5A\pulsesensor_STC12C5A _LCD12864\pulsesensor_STC12C5A\LCD12864.OBJ

     文件         38  2015-04-15 19:05  pulse sensor独有资料\51板程序\pulsesensor_STC12C5A\pulsesensor_STC12C5A _LCD12864\pulsesensor_STC12C5A\LCD12864.__i

     文件      10736  2015-04-16 21:08  pulse sensor独有资料\51板程序\pulsesensor_STC12C5A\pulsesensor_STC12C5A _LCD12864\pulsesensor_STC12C5A\main.c

     文件      17196  2015-04-15 19:06  pulse sensor独有资料\51板程序\pulsesensor_STC12C5A\pulsesensor_STC12C5A _LCD12864\pulsesensor_STC12C5A\main.LST

     文件      15907  2015-04-15 19:06  pulse sensor独有资料\51板程序\pulsesensor_STC12C5A\pulsesensor_STC12C5A _LCD12864\pulsesensor_STC12C5A\main.OBJ

     文件        481  2014-12-16 14:08  pulse sensor独有资料\51板程序\pulsesensor_STC12C5A\pulsesensor_STC12C5A _LCD12864\pulsesensor_STC12C5A\pulsesensor_STC12C5A.build_log.htm

     文件       8562  2015-04-15 19:05  pulse sensor独有资料\51板程序\pulsesensor_STC12C5A\pulsesensor_STC12C5A _LCD12864\pulsesensor_STC12C5A\pulsesensor_STC12C5A.hex

     文件         89  2015-04-15 19:05  pulse sensor独有资料\51板程序\pulsesensor_STC12C5A\pulsesensor_STC12C5A _LCD12864\pulsesensor_STC12C5A\pulsesensor_STC12C5A.lnp

     文件      24865  2015-04-15 19:05  pulse sensor独有资料\51板程序\pulsesensor_STC12C5A\pulsesensor_STC12C5A _LCD12864\pulsesensor_STC12C5A\pulsesensor_STC12C5A.M51

     文件        285  2015-04-17 16:44  pulse sensor独有资料\51板程序\pulsesensor_STC12C5A\pulsesensor_STC12C5A _LCD12864\pulsesensor_STC12C5A\pulsesensor_STC12C5A.plg

     文件      72393  2014-12-16 14:08  pulse sensor独有资料\51板程序\pulsesensor_STC12C5A\pulsesensor_STC12C5A _LCD12864\pulsesensor_STC12C5A\pulsesensor_STC12C5A.uvgui.anning

     文件      72174  2014-12-16 14:08  pulse sensor独有资料\51板程序\pulsesensor_STC12C5A\pulsesensor_STC12C5A _LCD12864\pulsesensor_STC12C5A\pulsesensor_STC12C5A.uvgui.anning865

     文件      72391  2014-12-16 14:08  pulse sensor独有资料\51板程序\pulsesensor_STC12C5A\pulsesensor_STC12C5A _LCD12864\pulsesensor_STC12C5A\pulsesensor_STC12C5A.uvgui_anning.bak

     文件      72180  2014-12-16 14:08  pulse sensor独有资料\51板程序\pulsesensor_STC12C5A\pulsesensor_STC12C5A _LCD12864\pulsesensor_STC12C5A\pulsesensor_STC12C5A.uvgui_anning865.bak

     文件      59201  2015-04-17 16:44  pulse sensor独有资料\51板程序\pulsesensor_STC12C5A\pulsesensor_STC12C5A _LCD12864\pulsesensor_STC12C5A\pulsesensor_STC12C5A.uvopt

     文件      13593  2015-04-16 21:08  pulse sensor独有资料\51板程序\pulsesensor_STC12C5A\pulsesensor_STC12C5A _LCD12864\pulsesensor_STC12C5A\pulsesensor_STC12C5A.uvproj

     文件      59197  2015-04-16 21:08  pulse sensor独有资料\51板程序\pulsesensor_STC12C5A\pulsesensor_STC12C5A _LCD12864\pulsesensor_STC12C5A\pulsesensor_STC12C5A_uvopt.bak

     文件      13982  2014-12-16 14:08  pulse sensor独有资料\51板程序\pulsesensor_STC12C5A\pulsesensor_STC12C5A _LCD12864\pulsesensor_STC12C5A\pulsesensor_STC12C5A_uvproj.bak

     文件       6376  2014-12-16 14:08  pulse sensor独有资料\51板程序\pulsesensor_STC12C5A\pulsesensor_STC12C5A _LCD12864\pulsesensor_STC12C5A\STARTUP.A51

     文件      14048  2015-04-15 19:05  pulse sensor独有资料\51板程序\pulsesensor_STC12C5A\pulsesensor_STC12C5A _LCD12864\pulsesensor_STC12C5A\STARTUP.LST

     文件        749  2015-04-15 19:05  pulse sensor独有资料\51板程序\pulsesensor_STC12C5A\pulsesensor_STC12C5A _LCD12864\pulsesensor_STC12C5A\STARTUP.OBJ

     文件      17735  2014-12-16 14:08  pulse sensor独有资料\51板程序\pulsesensor_STC12C5A\pulsesensor_STC12C5A _LCD12864\pulsesensor_STC12C5A\STC12C5A60S2.h

     文件       4547  2014-12-16 14:08  pulse sensor独有资料\51板程序\pulsesensor_STC12C5A\pulsesensor_STC12C5A_LCD1602\pulsesensor_STC12C5A\LCD1602.c

     文件        568  2014-12-16 14:08  pulse sensor独有资料\51板程序\pulsesensor_STC12C5A\pulsesensor_STC12C5A_LCD1602\pulsesensor_STC12C5A\LCD1602.h

............此处省略66个文件信息

评论

共有 条评论