搜索: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为要写的 数据字节*///------------------------------------------------ ...
下载 23
·
查看 1174
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 ...
下载 155
·
查看 1100
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  pwm=0; char  pwmr=0; char  scw=0;/ ...
下载 3
·
查看 181
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() {  j=0; i=0;     TMOD=0X01; TH0=( ...
下载 1
·
查看 635
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 ...
下载 170
·
查看 1123
https://www.eeworm.com/dl/503/37090.html C/C++语言编程

基于单片机的简单电子琴(源代码)

简单电子琴的51单片机程序 #include<reg51.h>       //包含51单片机寄存器定义的头文件 sbit P14=P1^4;     //将P14位定义为P1.4引脚 sbit P15=P1^5;          //将P15位定义为 ...
下载 183
·
查看 1192
https://www.eeworm.com/dl/513041.html 技术资料

基于8051+Proteus仿真案例

基础程序设计 01 闪烁的LED  /*  名称闪烁的LED   说明LED按设定的时间间隔闪烁 */  #include<reg51.h>  #define uchar unsigned char  #define uint unsigned int  sbit LED=P1^0;  //延时  void DelayMS(uint x)  {   uchar ...
下载 2
·
查看 74
https://www.eeworm.com/dl/513042.html 技术资料

51单片机C语言程序设计Proteus仿真实训

基础程序设计 01 闪烁的LED  /*  名称闪烁的LED   说明LED按设定的时间间隔闪烁  */  #include<reg51.h>  #define uchar unsigned char  #define uint unsigned int  sbit LED=P1^0;  //延时  void DelayMS(uint x) {   uc ...
下载 2
·
查看 52
https://www.eeworm.com/dl/515933.html 源码

12345

/****************temic*********t5557***********************************/    #include   <at892051.h>     #include   <string.h>    #include   <intrins.h>     #include   <stdio.h>     #define    uchar ...
下载 1
·
查看 174
https://www.eeworm.com/dl/516025.html 笔记

一个按键控制的 10 级变速跑马灯试验

在本课中,我们要用一个按键来实现跑马灯的 10 级调速。这又会涉及到键的去抖的问 题。  本课的试验结果是,每按一次按键,跑马速度就降低一级,共 10 级。  这里我们又增加了一个变量 speedlever,来保存当前的速度档次。  在按键里的处理中,多了当前档次的延时值的设置。  请 ...
下载 1
·
查看 99