rar

Several example programs of proteus simulation ARM

  • 2013-09-22
  • 440.79KB
  • Points it Requires : 2

* Function: Delay buzzer activation. * Description: Use external 11.0592MHz crystal oscillator, do not use PLL, ********************************************************************************/ #include \"config.h\" /**************************************************************************** * Name: DelayNS() * Function: Long software delay * Input parameter: dly delay parameter, the larger the value, the longer the delay * Output parameter: None *********************************************************************************/ void DelayNS(uint32 dly) { uint32 i; for(; dly>0; dly--) for(i=0; i<500; i++); } /******************************************************************************** * Name: main() * Function: Send the string \"Hello World!\" to the serial port UART0 *********************************************************************************/ int main(void) { IODIR=0x00000001; IOCLR=0x00000001; while(1) { DelayNS(500); IOSET=0x00000001; DelayNS(500); IOCLR=0x00000001; } }

unfold

You Might Like

Uploader
lamaba
 

Recommended ContentMore

Popular Components

Just Take a LookMore

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号
×