| ??? 10/28/02 13:42 Read: times |
#31548 - RE: How to start , Please help |
Hi Sami Mahmoud,
I have just started down the 8051/2 path a little before you.I started off just by getting an LED to blink at 1Hz.This will build your confidence when it works.Next I used different delay loops to flash LED at different frequencies. I decided to control my LED with serial interface to a PC terminal program so that I can vary the on/off times via a menu.I then had to program timer interrupts so that the menu code did not interfere with the LED flash rate.The serial link to a PC is a great debug tool - you can insert messages in your code to determine where your code hangs if you have problems (I did). I am now working on LCD code to display LED on/off time.The LCD code worked after a little tuning with delay times between instruction writes on the LCD initialization code.LCD is not so difficult - data sheet from Sunplus for my LCD controller were very helpful. It is amazing what you can so with one LED!I have built up some very nice routines which I can use in future projects - a little robotics I hope. I too used the Keil uVision software using assembly lanuage.As a hobbyist I could not justify the money for the full Keil version and so I am using the Pinnacle 52 IDE as advertised on this website.It is really excellent value for your hard earned money and is a great interface to use. I am using the Philips P89C51RD2 supplied in a module from Phytec.You can get a lot of evaluation software from them and if you buy through 8052.com you can get discount I believe. Wish you good luck. Phil Bassett |



