Proteus and Keil uversion3 are online successfully.

Source: Internet
Author: User

Today, Proteus and Keil uversion3 are online successfully.Program, Drew a simple circuit on Proteus and ran it to see the effect. Indulge in it ~

Below are the programs I wrote in Keil.

 

 Code 
# Include < Reg52.h >
# Include < Intrins. h >
# Define Uint unsigned int
# Define Uchar unsigned char
Uchar temp;
Sbit beep = P2 ^ 1 ;
Void Delay ( Uint );
Void Main ()
{
Temp = 0xfe ;
P1 = Temp;
BEEP = 0 ;
While ( 1 )
{
Temp = _ Crol _ (temp, 1 );
Delay ( 600 );
P1 = Temp;
Delay ( 600 );
}
}
Void Delay ( Uint Z)
{
Uint X, Y;
For (X = Z; x > 0 ; X -- )
For (Y = 70 ; Y > 0 ; Y -- );
}

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.