新聞中心

EEPW首頁 > 嵌入式系統(tǒng) > 設(shè)計應(yīng)用 > 51單片機C語言us級的精確延時

51單片機C語言us級的精確延時

作者: 時間:2016-11-30 來源:網(wǎng)絡(luò) 收藏
us級精確延時延時,非要要匯編嗎?否。請看下面例子:

void delay1(unsigned char i)
{
while(--i);
}

本文引用地址:http://2s4d.com/article/201611/324008.htm

i  delay time/us
1  5
2  7
3  9
...



評論


技術(shù)專區(qū)

關(guān)閉