Discussion in "General help Guidance and Discussion" started by    rohitsuresh    Feb 5, 2010.
Fri Feb 05 2010, 01:31 PM
#1
Hi Friends,

Firstly I would like to thank Ajay Sir for bringing out this wonderful website. Also would like to thank Seniors like ExperimenterUK sir and Dave Sir for helping me out with my questions.

I have just found out that there are many newbies like me, interested in learning embedded systems.I got addicted to this when I was doing my college project(currently continuing the same). But I had no clue of Embedded Systems when I started. That's when i found this website. Now, I am proud to say that my project is 90% complete, and every bit was coded by myself. No plagiarism.

Read this carefully to avoid obstacles in your path.

>> Choosing the Heart:

For newbies who have little or no experience in Embedded System, I suggest you go for the 8051 Micro controller. The reason, why I am suggesting this, is even though there is 8085, ARM,,PIC etc, the 8051 is a complete and easy to learn integrated package. It has a small memory but it can pack a powerful punch(beginner's perspective) when it comes to coding.
Also it is very economically priced...

Use the 40 pin package of 8051 so that you have plenty of ports to work with. Use the 20 package only if your sure of how many ports you need.

>>Understanding the 8051:

Now, since you have decided to use the 8051, we must figure out how it really works. If you have the patience and dedication, I advice you to learn 8051 from a book written by MAZIDI.It is exhaustive and may be boring for lazy people. For them, I have another alternative.

If you are a lazy person like me, I suggest getting the book "Embedded C by Michael J Pont" Around Rs 300.00 .If you cant find one, mail me.I have a few extra books that i ordered. No.. Don't download it. BUY IT, because it comes with a CD with many examples and a copy of KEIL uVision Demo ( Explained Later). In this book, they have covered exactly all that you need to know in order to program an 8051. You can learn about the entire 8051 and start coding after 11 pages of the book. Also, when you are doing the project you may need to verify 3-4 different pages at the same time impossible on the PDF.

>> C Language or Assembly?

For beginners there is always a dilemma on whether to code using C or Assembly. Tell you what. IF you don't know assembly at the tip of your fingers. AVOID IT. You need to understand register's and flags properly for coding in assembly language. So what should you use? Even a small glitch like leaving some value in an unknown registry can bring you down to your knees.

Obviously use Embedded C. You know what the good news is? The book " Michael J Pont" is again the best book for learning 8051 Programming in Embedded C.Many people get scared when they hear the word C. But trust me friends, learning Embedded C not only allows you to avoid small errors that happens in the case of assembly but also allows portability among various processors.

By portability, this is what I mean. Assume that you have finished programming in 8051. Now you want to implement the same in PIC. Just change a few parameters here and there and voila! your C code will now work with PIC too. But frankly, try all this after you have mastered 8051.

In short, avoid Assembly language if you are a beginner. Take pains to learn C instead. You won't regret it.

>>Which first? Hardware or Software:

Don't buy any component's unless you exactly know what you require. Many newbies buy out all the components in the first place out of enthusiasm and then realize that many of them don't match or are not required. This is one of the major mistakes I have done.

Learn Embedded C and try out the small example programs.Change the values and see the reaction of the the Ports and Pins.Some of you may have the circuit diagram from some source. Don't trust it unless you see the simulation working in front of your eyes.

Don't even buy breadboards for trying to burn an example code to 8051 and to check whether it works. The Software Proteus(Explained Later) is the answer.

In short, avoid hardware unless you have finished your C code and have simulated it in Proteus (Explained Later).

>>Where do i do the coding?
Now you have decided to do start learning how to code. For starter's use KEIL uVision3 for learning how to code. It is a very expensive but an advanced software. Get your hands on one from somewhere.

If your luck has run out in finding the software. Don't worry.You can download a demo version from the net or from the CD you have received along with "Embedded C by Michael Pont".

I know asking you to learn a software all of a sudden is a painful and boring experience.
But don't worry. The software is a piece of cake. Check out the tutorial http://www.8051projects.net/keil-c-programming-tutorial/

There is also a video tutorial
http://www.8051projects.net/keil-microvision/

Also go through the example programs in the book for you to get an idea.

>>I have written a code.Where do i run it without hardware?

Sound's Impossible? Well it is very much possible. Get a software called Proteus 7 Professional. It is a playground for Embedded Guys. Here you can test your code on the components without worrying of the risk of a short circuit or a fire!!!

In this software you can drag-drop all the components , wire them up, load your code which you wrote in KEIL and see whether it is working properly.

I will write a tutorial on Proteus shortly and request Ajay Sir to post it in the tutorial section. You can even experiment with different circuits and guess what, if it doesn't work, you don't loose a rupee!!

>>I am not sure whether my code will launch the rocket:

Yes, the first step in letting yourself know that you are learning something is when you ask doubts. That's why all of us are here in this website.

If in doubt of anything, post your doubt in this site along with all the information you can provide on the code. There are many professionals like Ajay Sir , Dave Sir , Experimenter UK sir to help you out.

In the beginning i had a doubt ( which is obvious to me now) on how to initialize a port pin . Seniors like Dave Sir and of course Ajay Sir answered to my doubts.

But before asking a doubt make a honest effort to find a solution.

>>Connecting the eyes,ears and mouth to the 8051:

There are many components like motor, LCD that can be connected to the 8051. Obviously we are not born with the knowledge on these components. Follow the excellent tutorials in http://www.8051projects.net/microcontroller-tutorials/

>>General rule of thumb to be followed

-- Keep the code short,crisp and sweet. You have only 4K(you can connect external memory. But remember, you are a newbie!)
-- Use Functions for the codes that need to be repeated often
-- Learn about the peripherals you use (LCD,Motor) before you start creating codes for them
--Buy a programmer after you have finished coding for your project. Don't attempt to build one if you are not good at soldering. It is around Rs 1300.00



That's all for now.... All the best!!!

To be continued..



P.S. Post a reply if you like this thread


[ Edited Mon Feb 08 2010, 02:22 PM ]
 kirangowle like this.
Sun Feb 07 2010, 06:22 PM
#2
I am making this thread a sticky thread it will remain on the top in topic list
Thanks for creating a nice topic for newbies
 rohitsuresh like this.
Wed Feb 24 2010, 11:50 PM
#3
I like your thread! Very nice

 rohitsuresh like this.
Thu Feb 25 2010, 04:41 AM
#4
very nice very good thread for newbies, but here is some criticism from me ---

i am not agree with this part ">> Choosing the Heart:" because the 8051 family is quite old. instead of using 8051, i think one should start with avr or pic. when i started with avr, i found it more easy to learn than 8051. also these microcontrollers provide features like better speed, adc, easy to develop hardware, etc.

i know that new 8051 are high on speed and memory but again 8051 platform is loosing popularity (not in india because one can buy same old college projects easly. else where projects are done only with avr or pic (sometime with arm also).

please correct me if i am wrong.


[ Edited Thu Feb 25 2010, 04:44 AM ]
Thu Feb 25 2010, 05:09 AM
#5
Gr8 effort man.I have also learned almost all me embedded from this website.All ppl here are very helpful.
 rohitsuresh like this.
Thu Feb 25 2010, 08:19 AM
#6


very nice very good thread for newbies, but here is some criticism from me ---

i am not agree with this part ">> Choosing the Heart:" because the 8051 family is quite old. instead of using 8051, i think one should start with avr or pic. when i started with avr, i found it more easy to learn than 8051. also these microcontrollers provide features like better speed, adc, easy to develop hardware, etc.

i know that new 8051 are high on speed and memory but again 8051 platform is loosing popularity (not in india because one can buy same old college projects easly. else where projects are done only with avr or pic (sometime with arm also).

please correct me if i am wrong.

rahuljin



AVR is also a good option. But prefer 8051 because of its popularity and cheap cost. Programmers are also available.
Tue Mar 16 2010, 10:10 AM
#7
Hi,

I am newbie. I would like to say hi.
Mon May 24 2010, 05:09 PM
#8
hi.....,
im a newbie n i like ur thread very much as its both informative n encouraging for ppl like me .....but i do hav a question why choose 8051 over 8052..or both can be used by newbies like me?.....coz right now im using an atmel 89s52 n was told dat its an 8052 microcontroller (hope i got dat serial number correct).???


[ Edited Mon May 24 2010, 05:15 PM ]
Mon May 24 2010, 07:29 PM
#9
Well 8051/8052 both are from same family MCS51 (8051 family). only difference is in features. if you wan to know more about it, download their datasheets.

if you want to start new then get philips P89V51RD2, its also an 8052 based architecture with lot of features and does not require any special hardware.

Get Social

Information

Powered by e107 Forum System

Conversation

Sun Dec 08 2019, 04:50 PM
Marti Ogrady
Take advantage of this great service today:
Thu Nov 21 2019, 12:30 PM
raj2555
how to interface 8051 microcontroller with NRF24L01+ module
ExperimenterUK
Sat Oct 12 2019, 10:23 PM
Log in.. then post your code in the 8051 forum
Sat Oct 12 2019, 10:18 AM
Bhadra Sajikumar
i am doing a countdown timer with 8051 for my project, unfortunately our professor had to take a leave of absence before he could teach us most of it.. can someone explain the .asm code of it for me?
Mon Sep 23 2019, 07:37 AM
Nathaniel
I am doing a project for my schools wireless security system with cameras,sensors and spot lights using 8051 micro controller, could you help me out with the design and its source code.
Wed Sep 18 2019, 08:48 PM
Caryn Kover
Thank you for your time,
ExperimenterUK
Mon Aug 05 2019, 07:09 PM
@Ismail ..post in forum, give details
Mon Aug 05 2019, 04:33 PM
Ismail balghmi
Hello. Please I won't download
ExperimenterUK
Wed Jul 24 2019, 12:47 AM
@BUSTER123 Please post in the forum
Tue Jul 23 2019, 06:13 PM
BUSTER123
hello! newbie here. i am kind of a guy who hates using ready - made existing libraries, so this helped a lot as i was trying to control and write to a character lcd display. however, i can't figure out how to set the cursor position. for example, i want to set it to the 5th column in the first row, so position 5. so according to the table, i am sending 10000101 on the 8 data lines of the lcd (register select pulled low). the cursor does not move there however. and i cant move the cursor left or right too. is it something wrong that i am doing? thank you.

Downloads

Comments

nabiha_anaya
Sun Dec 08 2019, 09:16 AM
ananyagupta
Tue Dec 03 2019, 07:53 AM
wells
Mon Nov 25 2019, 08:25 PM
auwal
Tue Nov 19 2019, 03:13 PM
ANKITPATEL
Mon Nov 18 2019, 11:00 AM
Casmir
Wed Nov 13 2019, 06:25 AM
DeepakBGattani
Mon Nov 11 2019, 01:31 PM
Jeanbusatta
Sun Nov 10 2019, 04:42 AM

Online

Guests: 42, Members: 0 ...

most ever online: 182184
(Members: , Guests: 182184) on 06 Aug 2010: 05:37 AM

Members: 38108
Newest member: nabiha_anaya
Forum Activity
ilylily07 Avatar
Posted By ilylily07
Sun Dec 08 2019, 01:24 PM
Hi .im humbly ask for your advice as i wrongly pur...
nabiha_anaya Avatar
Posted By nabiha_anaya
Sun Dec 08 2019, 09:19 AM
My teacher assign me a project on "voice control h...
ExperimenterUK Avatar
Posted By ExperimenterUK
Fri Nov 29 2019, 04:24 AM
" Is it possible to interface a fingerprint scanne...
ilylily07 Avatar
Posted By ilylily07
Thu Nov 28 2019, 03:50 PM
You will not find any code for an 8051 as no one w...
ExperimenterUK Avatar
Posted By ExperimenterUK
Tue Nov 26 2019, 05:44 PM
You will not find any code for an 8051 as no one w...
ilylily07 Avatar
Posted By ilylily07
Tue Nov 26 2019, 04:13 AM
I tracked down a OV7670 data sheet.The OV7670 puts...
ExperimenterUK Avatar
Posted By ExperimenterUK
Tue Nov 26 2019, 12:08 AM
I tracked down a OV7670 data sheet.The OV7670 puts...
ilylily07 Avatar
Posted By ilylily07
Mon Nov 25 2019, 04:38 PM
The 8051 has too little memory to do anything us...
ExperimenterUK Avatar
Posted By ExperimenterUK
Tue Nov 19 2019, 10:44 PM
The 8051 has too little memory to do anything us...
ilylily07 Avatar
Posted By ilylily07
Mon Nov 18 2019, 09:54 AM
0v7670 camera interfacing with stc 8051.using asse...