搜索:sbit
找到约 66 项符合「sbit」的查询结果
结果 66
按分类筛选
https://www.eeworm.com/dl/502/31459.html
单片机编程
24c16读写驱动程序
24c16读写驱动程序,//=-------------------------------------------------------------------------------/*模块调用:读数据:read(unsigned int address)写数据:write(unsigned int address,unsigned char dd)   dd为要写的 数据字节*///------------------------------------------------ ...
https://www.eeworm.com/dl/502/31503.html
单片机编程
RD系列微型打印机打印实例
C51控制并口打印机实例:/* 沈阳新荣达电子 *//* 2004-12-7 */#include <reg52.h>#define uchar unsigned char#define uint unsigned int#define data_8 P0sbit BUSY = P1^2; //打印机 BUSY 接P1.2sbit STB = P1^0; //打印机 STB 接P1.0void print(uchar j) //打印子程序{ uchar i;while(BUSY){}; //BU ...
https://www.eeworm.com/dl/512142.html
嵌入式综合
调光C程序
/*#include<reg52.h>
#define uint unsigned int
#define uchar unsigned char
#define uchar unsigned char
sbit K1=P3^4;
sbit K2=P3^5;
sbit ledr=P1^0;
sbit ledg=P1^1;
sbit ledb=P1^2;
bit LEDDirection=0;//LED控制方向0:渐亮1:渐灭
char &nbsp;pwm=0;
char &nbsp;pwmr=0;
char &nbsp;scw=0;/ ...
https://www.eeworm.com/dl/509595.html
单片机编程
用定时器以间隔500MS在6位数码管上依次显示0、1、 2、3….C、D、E、F,重复。
#include<reg51.h>
#define uchar unsigned char
#define uint unsigned int
uint i,j;
sbit dula=P2^6;
sbit wela=P2^7;
uchar code table[]={0x3f,0x06,0x5b,0x4f,0x66,0x6d,
0x7d,0x07,0x7f,0x6f,0x77,0x7c,
0x39,0x5e,0x79,0x71};
void main()
{&nbsp;
j=0;
i=0;
&nbsp; &nbsp; TMOD=0X01;
TH0=( ...
https://www.eeworm.com/dl/648/460437.html
单片机开发
W29C040(512K FLASH)读写程序2007-09-10 11:16很是激动
W29C040(512K FLASH)读写程序2007-09-10 11:16很是激动,去年用AT89S52捣弄了半年也没搞定,这次换成C8051f040,也不知道是天见我可怜还是狗运,终于把数据写进去了。想当时到处找的程序都没用,郁闷非常,这次走运成功,拿出来晒晒太阳(虽然也是该的别人的程序,但是好歹能用)。
/*W29C040(512K FL ...
https://www.eeworm.com/dl/503/37090.html
C/C++语言编程
基于单片机的简单电子琴(源代码)
简单电子琴的51单片机程序
#include<reg51.h>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//包含51单片机寄存器定义的头文件
sbit&nbsp;P14=P1^4; &nbsp;&nbsp;&nbsp;&nbsp;//将P14位定义为P1.4引脚
sbit&nbsp;P15=P1^5;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//将P15位定义为 ...
https://www.eeworm.com/dl/513041.html
技术资料
基于8051+Proteus仿真案例
基础程序设计 01 闪烁的LED&nbsp;
/* &nbsp;名称闪烁的LED&nbsp;
&nbsp;说明LED按设定的时间间隔闪烁
*/&nbsp;
#include<reg51.h>&nbsp;
#define uchar unsigned char&nbsp;
#define uint unsigned int&nbsp;
sbit LED=P1^0;&nbsp;
//延时&nbsp;
void DelayMS(uint x) &nbsp;{&nbsp;
&nbsp;uchar ...
https://www.eeworm.com/dl/513042.html
技术资料
51单片机C语言程序设计Proteus仿真实训
基础程序设计 01 闪烁的LED&nbsp;
/* &nbsp;名称闪烁的LED&nbsp;
&nbsp;说明LED按设定的时间间隔闪烁&nbsp;
*/&nbsp;
#include<reg51.h>&nbsp;
#define uchar unsigned char&nbsp;
#define uint unsigned int&nbsp;
sbit LED=P1^0;&nbsp;
//延时&nbsp;
void DelayMS(uint x)&nbsp;{&nbsp;
&nbsp;uc ...
https://www.eeworm.com/dl/515933.html
源码
12345
/****************temic*********t5557***********************************/ &nbsp;&nbsp;
#include &nbsp; <at892051.h> &nbsp; &nbsp;
#include &nbsp; <string.h> &nbsp;&nbsp;
#include &nbsp; <intrins.h> &nbsp; &nbsp;
#include &nbsp; <stdio.h> &nbsp; &nbsp;
#define &nbsp; &nbsp;uchar ...
https://www.eeworm.com/dl/516025.html
笔记
一个按键控制的 10 级变速跑马灯试验
在本课中,我们要用一个按键来实现跑马灯的 10 级调速。这又会涉及到键的去抖的问
题。&nbsp;
本课的试验结果是,每按一次按键,跑马速度就降低一级,共 10 级。&nbsp;
这里我们又增加了一个变量 speedlever,来保存当前的速度档次。&nbsp;
在按键里的处理中,多了当前档次的延时值的设置。&nbsp;
请 ...