登录
首页 » c » 单片机继电器

单片机继电器

于 2022-08-09 发布 文件大小:69.66 MB
0 91
下载积分: 2 下载次数: 1

代码说明:

/******************************************************************/ /*      继电器实验      * /*              * /*  连接方法:P2.7接JP5的K1(按钮接口)                  P1.4接J2                  * /* 按下P2.7 继电器P1.4动作            * /******************************************************************/ #include   //51的端口和各特殊寄存器定义在此文件中 sbit RELAY = P1^4;    //定义继电器对应单片机管脚 sbit K1    = P2^7;    //定义按钮对应单片机管脚 /********************************************************* 主函数 * **********************************************************/ main() {   if (!K1) RELAY = 0;

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • road
    利用分治的思想,并使用C语言,解决树上路径问题,求权值最小的边(Use the idea of ​ ​ partition, and use the C language, problem solving tree path, find the smallest edge weights)
    2013-09-29 11:04:23下载
    积分:1
  • shiyan3.3
    使用MSP430及ccs平台编写的温度采样(Temperature sampling)
    2020-06-24 11:20:02下载
    积分:1
  • 毕业设计智能温控(加风扇)
    采用STC89C52编程 DS18B20温度传感器 LCD1602液晶显示 AT24C08掉电记忆存储设定温度控制值 当温度超过设定值时单片机启动风扇进行降温
    2022-03-10 19:27:01下载
    积分:1
  • zmodem
    基于AT91M40800的zmodem代码(Based on the zmodem code AT91M40800)
    2020-10-04 21:17:40下载
    积分:1
  • 基于NLM的图像三维去噪算法
    基于NLM的图像三维去噪算法!!!!基于NLM的图像三维去噪算法!!!!基于NLM的图像三维去噪算法!!!!基于NLM的图像三维去噪算法!!!!基于NLM的图像三维去噪算法!!!!基于NLM的图像三维去噪算法!!!!基于NLM的图像三维去噪算法!!!!基于NLM的图像三维去噪算法!!!!基于NLM的图像三维去噪算法!!!!基于NLM的图像三维去噪算法!!!!基于NLM的图像三维去噪算法!!!!基于NLM的图像三维去噪算法!!!!基于NLM的图像三维去噪算法!!!!
    2022-10-24 23:00:02下载
    积分:1
  • chuan
    单片机串口通信程序能和利用232串口计算机通信(Single-chip serial communication program and computer communications)
    2012-04-21 21:10:09下载
    积分:1
  • whcommands.tar
    这是linux登陆时候的一小程序,主要功能实现了用户登陆时,只能执行我们定义的一些命令.其他对用户不可见.(This is the time of landing a small program, the main function of user landing, they can only enforce our definition of order. Other users can see.)
    2005-07-11 22:47:12下载
    积分:1
  • PMSM_soft_50Hz_new
    完整的永磁同步电机矢量控制程序,带软启动,DAC输出,SCI,EPWM,ADC...(A complete vector control program for permanent magnet synchronous motor, with soft start, DAC output, SCI, EPWM, ADC...)
    2017-12-05 17:29:44下载
    积分:1
  • yourself writing a small program to achieve the keyboard input capabilities, inc...
    自己写的一个小程序,实现了键盘输入功能,包括数字,符号,英文和中文输入,模拟掌上电脑PDA的键盘功能,在VC下实现。-yourself writing a small program to achieve the keyboard input capabilities, including digital, signs, in English and Chinese input, analog handheld PDA computer keyboard functions, under the VC.
    2022-05-18 10:46:54下载
    积分:1
  • DS18B20
    stm32 实现温度测量功能,外接温度传感器,实现实时测量并且在LCD实时显示(stm32 temperature measurement functions, external temperature sensor, real-time measurement and real-time display on LCD)
    2014-05-25 14:43:44下载
    积分:1
  • 696516资源总数
  • 106442会员总数
  • 11今日下载