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

单片机继电器

于 2022-08-09 发布 文件大小:69.66 MB
0 95
下载积分: 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 个回复

  • gaodengshuxueMATLAB
    matlab语言解高等数学中的各种问题,并附有各个例题的程序。(matlab language of higher mathematics in the solution of various problems, with various examples of the procedures.)
    2008-07-25 14:56:39下载
    积分:1
  • directxtextures0.1
    directxtextures0.1.win32 program.
    2017-01-25 21:01:17下载
    积分:1
  • C#语言和SQLServer数据库技术-1487319415363
    说明:  北大青鸟课件accp8,C#语言和SQLServer数据库技术(Beijing University Bluebird Courseware Acp8, C# Language and SQL Server Database Technology)
    2020-06-25 18:00:01下载
    积分:1
  • tesseract-3.00.win32
    验证码识别,很好用,能识别中文!速度非常快!非常好用!(auth,It can auth chinese,very quick)
    2010-11-23 16:25:50下载
    积分:1
  • Adaboost
    Adaboost检测代码,读取字典检测人脸等(Adaboost detection codes)
    2013-01-16 15:27:14下载
    积分:1
  • samsung
    SAMSUNG伪指令,由香港艾美斯科技有限公司提供的。(SAMSUNG directive, provided by the Hong Kong Science and Technology Co., Amy Adams.)
    2015-03-25 15:04:23下载
    积分:1
  • TStat_Control
    cfx子程序,基于该子程序,用户能够方便的将子程序与CFX进行连接,解决CFX接口问题。(CFX subroutine, based on the subroutine, the user can convenient to connect subroutine provided with CFX, provided to solve CFX interface problem )
    2020-09-24 21:27:49下载
    积分:1
  • csharp_2011_04_c#报时小程序1.0.0
    一个简单的报时小程序,可以自定义设置您的报时模式以及提醒方式。 可以自定义每隔多少分钟循环提醒。。。。 报时方式: 自整点时刻起每隔x分钟提醒 或者 自现在时刻起每隔x分钟提醒 提醒方式: 例如选择“语音”报时或者“消息框”报时。(A simple small time program, you can customize the set of your timekeeping mode, as well as reminders. You can customize the circular reminder every many minutes.... Tell the way: every hour from X minutes to remind, or from now on every X minutes to remind remind: for example, select "voice", "timekeeping" or "message box" timekeeping.)
    2017-07-02 23:48:01下载
    积分:1
  • ADC
    LPC1768 ADC接口配置,有详细代码和注释,可以直接编译,推荐适应keil(LPC1768 adc test demo)
    2019-05-14 00:54:01下载
    积分:1
  • CAN_RX
    ads1.6源码 can bus总线接受端源码包(ads1.6 source can bus bus receiving end source package)
    2011-08-31 21:47:27下载
    积分:1
  • 696516资源总数
  • 106658会员总数
  • 16今日下载