標(biāo)題: 單片機(jī)延時(shí)程序分享 [打印本頁(yè)]

作者: sunsen2015    時(shí)間: 2015-10-25 01:21
標(biāo)題: 單片機(jī)延時(shí)程序分享
Delay.c
#include "delay.h"
void delay(uint z)
{      uint x,y;
    for(x=z;x>0;x--)
      for(y=114;y>0;y--);   
}
void delay_ds18b20(uint time)
{ uint  i,j;
        for(i=0;i<time;i++)
              for(j=0;j<1;j++);
}


作者: 騰飛的龍    時(shí)間: 2015-10-25 13:35
晶振是多大的,用在什么型號(hào)單片機(jī)上?延時(shí)多長(zhǎng)?都要注釋明白。




歡迎光臨 (http://www.torrancerestoration.com/bbs/) Powered by Discuz! X3.1