I'm learning to write code for AT89C51 microcontroller. I have this habit of learning by examples. Can someone please help me get some complete projects as to how to wire up the hardware and write code for the uController in a step by step manner? Please Help.
1. switch the led to on/of (better use 8 led so you can use each pin in 1 port) using your microcontroller
2. use the interrupt to control the led (the led will run automaticly)
3. use timer to control the speed of your led
4. try using LCD (there's a nice tutorial at http://www.8052.com)
That's it about the i/o. Most of my project using I/O so i decided to make a good basic, after that you can try the serial and maybe some motor using PWM
Can you please guide me in this regard please? I don't know where to start and where to start... Please Help...
Added after 4 minutes:
I mean... is there any site where you are taught how to write code for real time projects... that is...why you are writing that line or explain the problem first in an algorithmic fashion and then solve the problem...
First maybe you need the tutorial....
Go to http://www.8052.com there's a good tutorial how to coding there.
I suggest you to use AT89S52 that include timer2 and ISP so you can program it easily using serial/parallel port.
There's a lot of schematics and program to burn your mcs. Currently i'm using this: **broken link removed**
hi ALL
i strongly recommend a book called: Embedded C by Michael J. Pont
it is so easy and suitable for beginners specialy who have a little experience in c programming. it fulled by examples.( from turn on led to creat your own operating system)
it use the 8051 µc and the ke*il software.
it is great for beginners.
here is its link:
the book from which i have learned is "the 8051 microcontroller by kenneth j ayala.
I would like to suggest u to learn things in C or basic rather then asm, but first start with asm that ill give u good hold. for C u can use keil, sdcc, etc
i suggest you to use C language rather than asm. Because it's easier to learn. If you want to learn uC 8051, i think you can make digital clock. In the digital clock you will learn how to use I/O PORT in 8051, timer interupt and C-language. It's the basic project that you can make. You can use keil-C for it.