流水灯include<>char data_group[]={0x7e0xbd0xdb0xe70xdb0xbd0x7e}unsigned int avoid delay(unsigned int time){int ijfor(i=timei>0i--){for(j=100j>0j--)}}void move_mid_side(void) {int mfor(m=0m<7m){P1=data_gr
#
include <reg51.h>include <intrins.h>unsigned char data digitunsigned char data indexunsigned char data buf[16]unsigned char code table[11]={0xc00xf90xa40xb00x990x920x820xf80x800x900xff}unsigned int
include<reg52.h>include<intrins.h>include<stdio.h>include1602.hincludemath.hdefine uchar unsigned chardefine uint unsigned intuchar KeyVuchar Y=0长度uchar K=0 错误标示uchar Z=0扫描位uchar S=0 结束标志uchar A
P0口控制先奇数亮再偶数亮循环三次一个灯上下循环三次两个分别从两边往中间流动三次再从中间往两边流动三次不过这个程序实现的 应该是这样的? 先奇数亮再偶数亮循环三次一个灯上下循环三次两个分别从两边往中间流动再从中间往两边流动(延时0.1s)include< reg52.h>include< intrins.h>define uint unsigned intdefine uchar unsig
计数器MCS-51定时器计数器的逻辑结构GATED7(一) 定时计数器的工作方式寄存器(TMOD 89H )13位定时器计数器由TL0低五位和TH0高八位组成TL0低八位和TH0高八位分别位8位定时器计数器 定时器计数器的工作方式选择及控制定时器/计数器T0工作方式0的逻辑结构 定时器计数器的工作方式及工作原理11.1 方式0 当GATE=0时只要TR0为1TL0及TH0组
关于单片机驱动数码管流水灯蜂鸣器的程序include<>unsigned char table[]={0x3f0x060x5b0x4f0x660x6d0x7d0x070x7f0x6f}sbit clk=P20sbit AB=P21sbit SG=P25sbit SS=P24sbit SB=P23sbit SQ=P22sbit L1=P27延时调用函数 void Delay() { u
51单片机简易计算器程序:include <reg51.h>include <math.h>define uchar unsigned chardefine uint unsigned int---------定义引脚--------------------bit clr=0bit ok=0bit xiaoshu=0bit jiego=0bit first_1=1bit first_2=1s
include<reg52.h>define uint unsigned intdefine uchar unsigned charsbit dula=P26sbit wela=P27sbit key1=P34uchar code table[]={0xc00xf90xa40xb00x990x920x820xf80x800x900x880x830xc60xa10x860x8e0xff}uch
include<>sbit fengming=P30蜂鸣器控制unsigned char code sm[]={ 0xC00 0xF91 0xA42 0xB03 0x994 0x925 0x826 0xF87 0x808 0x909共阳数码管字行
违法有害信息,请在下方选择原因提交举报