delay.c
来自「用KEILC写的单片机典型C51编程」· C语言 代码 · 共 37 行
C
37 行
#include<reg51.h>
#include<define.h>
#include<global.h>
#include<initial.h>
#include<delay.h>
#include<led.h>
#include<input.h>
#include<beep.h>
#include<key.h>
#include<music.h>
/**
void DelayX1ms(word count)
{
word i,j;
for(i=0;i<count;i++)
for(j=0;j<120;j++);
} */
void DelayX10ms(word count)
{
word i,j,k;
for(i=0;i<count;i++)
for(j=0;j<10;j++)
for(k=0;k<120;k++);
}
/*
void DelayX50us(word count)
{
word i,j;
for(i=0;i<count;i++)
for(j=0;j<6;j++);
}
**/
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?