We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
i need examples for learning
Look in the examples subdirectory where you installed your compiler.
"Look in the examples subdirectory"
Clearly you haven't read any of the documentation if you had to be told that. So, once you find the examples, how will you know what to do with them?
Therefore, the first thing you need to do is read the uVision Getting Started guide, and work through the example projects in it. This will give you a proper introductions to the tools, how they work, and how to use them - rather than just jumping-in blindly at the deep-end!
You need to read the following documents - commonly referred to as "the bible" for the 8051:
Chapter 1 - 80C51 Family Architecture: www.nxp.com/.../80C51_FAM_ARCH_1.pdf
Chapter 2 - 80C51 Family Programmer's Guide and Instruction Set: www.nxp.com/.../80C51_FAM_PROG_GUIDE_1.pdf
Chapter 3 - 80C51 Family Hardware Description: www.nxp.com/.../80C51_FAM_HARDWARE_1.pdf
Are you also a newbie to 'C' programming in general? If so, you'll also need a good 'C' textbook.
Here are some other introductory & reference materials: http://www.keil.com/books/8051books.asp www.8052.com/books.phtml www.8052.com/tutorial.phtml
learning by "studying examples" is just about the worst method there is.
You will end up with bugs in code you do not understand (= bugs you can not resolve) and worse.
The only 'value' from an example I can think of is that after you have written your own code and tried to debug it, sometimes an 'example' can show a thing you have missed.
Erik