STC89Cxx microcontroller 1ms and 10us software delay reference code

Publisher:TranquilOasisLatest update time:2022-04-21 Source: eefocusKeywords:STC89Cxx Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

//1ms

void Delay1ms() //@11.0592MHz

{

unsigned char i, j;

 

_nop_();

i = 2;

j = 199;

do

{

while (--j);

} while (--i);

}

//10us

void Delay10us() //@11.0592MHz

{

unsigned char i;

 

i = 2;

while (--i);

}


Keywords:STC89Cxx Reference address:STC89Cxx microcontroller 1ms and 10us software delay reference code

Previous article:A brief description of the _nop_() function
Next article:STC51 from entry to mastery (assembly) ~~~ Lecture 8: Serial communication technology

Latest Microcontroller Articles
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号