專注電子技術(shù)學(xué)習(xí)與研究
當(dāng)前位置:單片機(jī)教程網(wǎng) >> MCU設(shè)計實例 >> 瀏覽文章

51單片機(jī)C語言us級的精確延時

作者:huqin   來源:本站原創(chuàng)   點擊數(shù):  更新時間:2013年11月14日   【字體:

us級的精確延時延時,非要要匯編嗎?否。請看下面例子:
void delay1(unsigned char i)
{
while(--i);
}

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

關(guān)閉窗口

相關(guān)文章