Hi, I just completed a course on 8085 microprocessor.
Now i want to start learning 8051. Is the background of 8085 enough for 8051 or do i need to learn more before starting 8051? Also which is the best book to start with ? what tools/software/hardwares do i need ? and where do i start
from? Please guide me...
If u want to compile programs for the microprocessor only ie which runs under 8085 and 8051 use c .But if u want to compile programs which runs under windows and microprocessors use watcom c compiler it has ide compiles and program's with same compiler its is free.
You need to start with the so-called "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
You will also have to read the Datasheet for the specific chip(s) you intend to use.
And there's a Tutorial here: www.8052.com/tutorial.phtml
And books about the 8051 here: http://www.keil.com/books/8051books.asp www.8052.com/books.phtml
You will, of course, have to read the Manuals for the tools you choose - for Keil, see: http://www.keil.com/support/man_c51.htm
For getting started with the Keil tools, see: http://www.keil.com/support/man/docs/uv3/uv3_ex_hello.htm
"If u want to compile programs for the microprocessor only ie which runs under 8085 and 8051 use c"
For code to run on multiple targets (eg, 8085 and 8051) is is necessary to use a so-called "portable" language like 'C', but it is certainly not sufficient.
Making portable code requires careful design, and a thorough understanding of all the target architectures and the different tool sets.
"But if u want to compile programs which runs under windows..."
Free tools are also available from CodeGear (formerly Borland), Microsoft, GNU - and probably others...
camve,
thanks for your good answer. i will now look at c and watcom.
As explained, Watcom will be of no use for the 8051!
carve,
i see watcom and i like llook.you know is there a 8051 class for the watcom?
doe it work with
You cannot use the Watcom C compiler to produce output that runs on a '51.
You can write a 8051.c file or library for watcom.
I think you can search on m*crosoft and find example code.
The Watcom Manuals are here: www.openwatcom.com/.../Manuals
The Getting Started guide is here: www.openwatcom.org/.../c_readme.pdf
It says:
"Watcom C/C++ is a professional, optimizing, multi-platform C and C++ compiler with a comprehensive suite of development tools for developing and debugging both 16-bit and 32-bit applications for DOS, extended DOS, Novell NLMs, 16-bit OS/2, 32-bit OS/2, Windows 3.x, Windows 95/98/Me, Win32s, and Windows NT/2000/XP (Win32)."
So the answer to your question is, as previously stated: No, it does not support the 8051!
The Getting Started guide also says:
"You should read the entire contents of this booklet, as it contains information on new programs and modifications that have been made since the previous release."
"You can write a 8051.c file or library for watcom."
You can write it, but it will not run on an 8051!
The Watcom compiler is not a Keil product - so this is not the place to discuss it!
Of course, being open-Source, it is supported by "The Community" - here:
www.openwatcom.com/.../Resources
thank for your help.but i look at example and cannot find.
where is a a link?
carve ?????????????????
a) camve manras is not a 'bot that will auto-respond as soon as you post anything. This is a forum. Never expect people to answer just because you want them to.
b) camve manras claims that Watcom can be used for 8051 procesors. However, it is quite unlikely that there are any ongoing freeware work building a new backend to the Watcom compiler. As a long-time owner of the Watcom compiler (the original commercial version) I know that the Watcom compiler supports just about any x86 platform. The 8051 processor is not part of the x86 platform. You can't just add a plugin to a compilar to make it support a different processor architecture. Adding a new back-end to a compiler is a huge job. gcc is one of the few compilers out there that does support a multitude of processors, and if you look at the code you will notice how hard work that is!
Don't confuse Watcom (the compiler) with a number of available IDE. An IDE can be loosely coupled with compilers, which for example mean that the Code::Blocks IDE has support for a huge number of different compilers. A number of IDE allows the addition of a plugin to support a new compiler.
Dude, There is no link because what you want to do is not possible. Comprende (probably misspelled...) ??????
not possible. not possible. not possible.
Read the wise responses!