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

单片机继电器

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

  • Matiral-
    适用于原料车间,原料混合配料过程的监控和管理,能引导和规范配料过程,并用数据库存储配方,方便查询统计。(Suitable for workshop materials, raw material mixing ingredients monitoring and management processes, to guide and regulate the batching process and use the to store recipes, easy access statistics.)
    2016-06-17 16:58:47下载
    积分:1
  • main
    通过改进的遗传算法来求解复杂的非线性方程组(Through the improved genetic algorithm to solve complex nonlinear equations)
    2013-09-27 21:03:22下载
    积分:1
  • MultiLineTextEditor
    此示例演示了如何实现一个多行文本编辑器。包中包含控件代码和应用程序。(This example demonstrates how to implement a multi-line text editor. Package contains the control code and applications.)
    2013-08-29 23:17:30下载
    积分:1
  • ACO-Path-planning-
    基于蚁群算法的路径规划,包括二维路径和三维路径,非常实用,无BUG,注释详细(Path planning, ant colony algorithm, including 2D and 3D path planning path,)
    2015-04-16 17:13:03下载
    积分:1
  • mabExpress_src
    任意数学表达式计算的源码及测试软件 (Calculation of arbitrary mathematical expression of the source code and test software)
    2009-04-12 22:26:39下载
    积分:1
  • gkgosvj
    蓝牙编解码代码,开源代码,资源非常不好找(Bluetooth codec code, open source code, resources are very difficult to find)
    2019-01-01 00:03:49下载
    积分:1
  • URLProtocol
    safari调用第三方APP demo 可以直接调试成功 供新手参考 (safari called third-party APP demo success can be directly debug reference for the novice)
    2013-12-10 15:36:35下载
    积分:1
  • OpenGL相机漫游
    Opengl的相机漫游,界面中包含有边界的平台,以及在其上的五十个随机布置的圆球,还有中心处一个自动旋转的圆环;用户可以控制wsad以及上下左右来控制镜头的位置和方向,上下左右会与wsad之间因为实现的方法不同,有明显卡顿对比;
    2022-04-22 22:52:36下载
    积分:1
  • 一个GEDCOM读者项目,一些有用的功能
    这是一个控制台应用程序,文档是源代码的注释。
    2022-08-20 13:56:23下载
    积分:1
  • clark-and-park
    本代码是CLARK和PARK变换的m文件和simulink模型,即从三相坐标变换到两相坐标的变换。(This code is CLARK and the PARK transform of the m file and the Simulink model, namely from the three-phase to two-phase coordinate transformation of coordinate transformation.)
    2014-09-03 10:55:22下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载