您好,欢迎访问三七文档
当前位置:首页 > IT计算机/网络 > C/C++资料 > STC12C5A60S2精确软件延时程序
#includeSTC12.h//STC12C5A60S222.0184Mhz精确延时voiddelay_10us(unsignedcharn){unsignedchari,j;for(j=0;jn;j++)for(i=0;i25;i++);}voiddelay_1ms(unsignedintn){unsignedinti,j,k;for(k=0;kn;k++)for(j=0;j78;j++)for(i=0;i25;i++);}voiddelay_10ms(unsignedintn){unsignedinti,j,k;for(k=0;kn;k++)for(j=0;j760;j++)for(i=0;i25;i++);}voiddelay_100ms(unsignedintn){unsignedinti,j,k;for(k=0;kn;k++)for(j=0;j760;j++)for(i=0;i252;i++);}
本文标题:STC12C5A60S2精确软件延时程序
链接地址:https://www.777doc.com/doc-7028617 .html