搜索:sbit
找到约 66 项符合「sbit」的查询结果
结果 66
按分类筛选
https://www.eeworm.com/dl/841701.html
技术资料
基于51+ADC0832+LCD1602+仿真图四位电压显示测试
/说明:调用VR2时,ADC0832将模拟电压转换为数字电压并显示在LCD1602上//********************************#include<reg51.h>#include<intrins.h>#define uchar unsigned char#define uint unsigned int#define delay4us(){nop_();_nop_():nop_();_nop_;}//********************************//ADC引 ...
https://www.eeworm.com/dl/502/31505.html
单片机编程
微型打印机的C语言源程序
微型打印机的C语言源程序:微型打印机的C51源程序#define uchar unsigned char#define uint unsigned int#include <reg52.h>#include <stdio.h>#include <absacc.h>#include <math.h>#include <string.h>#include <ctype.h>#include <stdlib.h>#define PIN XBYTE[0x8000]#define POUT XBYTE[0x9000]sbi ...
https://www.eeworm.com/dl/502/26293.html
单片机编程
80C51特殊功能寄存器地址表
/*---------&nbsp;8051内核特殊功能寄存器&nbsp;-------------*/
sfr&nbsp;ACC&nbsp;=&nbsp;0xE0;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //累加器
sfr&nbsp;B&nbsp;=&nbsp;0xF0;&nbsp; //B&nbsp;寄存器
sfr&nbsp;PSW&nbsp;&nbsp;&nbsp;&nbsp;=&nbsp;0xD0;&nbsp;& ...
https://www.eeworm.com/dl/847436.html
技术资料
C51_点亮第一个LED
#include "reg52.h" sbit led=P0^0; void main(){ while(1) { led=1; } }
https://www.eeworm.com/dl/550/37624.html
开发工具
温湿度传感器 sht11 仿真程序下载
温湿度传感器 sht11 仿真程序
sbit&nbsp;out =P3^0;&nbsp;//加热口
&nbsp;//sbit&nbsp;input =P1^1;//检测口
&nbsp;//sbit&nbsp;speek =P2^0;//报警
&nbsp;sbit&nbsp;clo =P3^7;//时钟
&nbsp;sbit&nbsp;ST =P3^5;//开始
&nbsp;sbit&nbsp;EOC =P3^6;//成功信号
&nbsp;sbit&nbsp;gwei =P3^4;/ ...
https://www.eeworm.com/dl/524/42489.html
仿真技术
温湿度传感器 sht11 仿真程序下载
温湿度传感器 sht11 仿真程序
sbit&nbsp;out =P3^0;&nbsp;//加热口
&nbsp;//sbit&nbsp;input =P1^1;//检测口
&nbsp;//sbit&nbsp;speek =P2^0;//报警
&nbsp;sbit&nbsp;clo =P3^7;//时钟
&nbsp;sbit&nbsp;ST =P3^5;//开始
&nbsp;sbit&nbsp;EOC =P3^6;//成功信号
&nbsp;sbit&nbsp;gwei =P3^4;/ ...
https://www.eeworm.com/dl/512574.html
源码
1602数字时钟
# include < reg52.h >
# include < 24C02.h>
# define uint unsigned int
# define uchar unsigned char
&nbsp;
sbit rs = P3^5; &nbsp;//定义lcd1602的rs端
sbit lcden = P3^4;//定义lcd1602的lcden端口
sbit s1 = P3^0;//定义功能键s1
sbit s2 = P3^1;//定义功能键s2
...
https://www.eeworm.com/dl/502/31244.html
单片机编程
可编程自动控制控制跑马灯
这一颗,我们学习如何让跑马灯自动按照我们预定的顺序进行。这种控制在工控场合经常用到。这个程序里,我们预先定义了一个变化的顺序speedcode,每跑一圈灯就根据预定设置的表格数据来决定下一圈的跑马速度。这样我们就实现了按照预定的顺序自动变化运行。请看代码:--------------------------------- ...
https://www.eeworm.com/dl/502/31446.html
单片机编程
DS1302+AT89S52+LED时钟程序(C语言源代码+
#include<reg51.h>/*************************ds1302与at89s52引脚连接********************/sbit T_RST=P3^5; sbit T_CLK=P3^6;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; sbit T_IO=P3^7;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ...
https://www.eeworm.com/dl/502/29134.html
单片机编程
51单片机实现的RS485通讯程序
#ifndef __485_C__
#define __485_C__
#include
#include
#define unsigned char uchar
#define unsigned int uint
/* 通信命令 */
#define __ACTIVE_ 0x01 // 主机询问从机是否存在
#define __GETDATA_ 0x02 // 主机发送读设备请求
#define __OK_ 0x03 // ...