Hi,
I need help in writing this C Program
Circuit : LED are connected to P1.0 to P1.4 , a push button (push to on) Switch is connected to P1.7 When button is pressed first time, LED on P1.0 switches on, when switch is pressed again, LED on P1.0 switches off and then LED on P1.1 glows, same cycle repeats (P1.2, P1.3, P1.4 then again P1.0) whenever push button is pressed.
Thanks suds sudhirmt@gmail.com
I ditto what Per has stated.
Also you should look at what you selected. C251 is a different beast than the C51. They are not the same (different IS although it was downward compatible).
Please don't flood this forum with your class assignments, basic C questions, and basic C51 questions. This has little to do with Keil C or their compilers (only in the likely hood you are using Keil tools is it related). Do some of your own research, these are things YOU need to learn how to do, just like all the professionals here who do this for a living had to.
Stephen