51 Single chip microcomputer introduction and the use of Keil

Source: Internet
Author: User

Keil software Download

Keil Uvision4 and Registration machine http://www.liangchan.net/soft/softdown.asp?softid=5688

Separate registration Machine http://www.newasp.net/soft/77176.html

Registered

Keil registry entry for the License Manager entry for the File menu

Copy the CID number to the keygen, multiple generate several times, input window, must appear similar to ' Expires 2020 ' words

Set up a project and debug to test if the registration is successful (2K program limit for de-emulation)

Test code

#include"Reg51.h"#include"stdio.h"voidMain () {Charvar_a; Tmod=0X20; SCON=0X52; TH1=0xf3; TL1=0xf3; TR1=1;
printf ("Input Number:"); scanf ("%c",&var_a); printf ("\nthe number you input is:%c", var_a);
while(1);}

Debug order

Rebuild compile, check error-free

Enter Debug (CTRL+F5), bring up Urat #1/call Stack/command

Run (F5), in Urat #1窗口中观察串口输出或输入

If there is a while (1) loop at the end of the program can stop

Exit Debug and press Ctrl+f5 once

Related toolbars

Command Windows-Prompt for run information, only show file path if no problem

Disassembly Windows-per line C and corresponding assembly

Symbols Windows-View of all program variables (address and type)

Call Stack Windows-view of custom variables

Watch Windows-Specify variable view

Memory Windows-Specify address view

Serial Windows-Serial port View/input

Analysis Windows-seems to be time series

Trace Windows

System Viewer Windows

Toolbox

  

  

51 Single chip microcomputer introduction and the use of Keil

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.