japanjot
Newbie level 4
hello frnds recently i have started programing for 8051, i am facing one problem, i am making led flasher with 6 diffrent patterns...all i wanted is to call them one by one by pressing one single switch
like
1st pres=pattern 1
2nd pres=pattern 2
3rd pres=pattern 3
4th pres=pattern 4
5th pres=pattern 5
6th pres=pattern 6
and if i press the button for more than 3 seconds all ports should go low ie the program or micro controller should stop.
and if i again press dat single button the program or the microcontroller should start
and the pattern which was last selected should be recalled from memory after the shutdown
the main thing is i can make patterns in c, and i have made my 6 patterns in c,all i can do is make 6 different programs and burn them one by one according to my need, but all i cant do is i cant make them call one by one by single button in one single program, and with dat button only switch on and off the program.
i m stuck on dis frm vry long time, m not able to find solution,would be glad if u all my genious frndz would guide me
thank you
like
1st pres=pattern 1
2nd pres=pattern 2
3rd pres=pattern 3
4th pres=pattern 4
5th pres=pattern 5
6th pres=pattern 6
and if i press the button for more than 3 seconds all ports should go low ie the program or micro controller should stop.
and if i again press dat single button the program or the microcontroller should start
and the pattern which was last selected should be recalled from memory after the shutdown
the main thing is i can make patterns in c, and i have made my 6 patterns in c,all i can do is make 6 different programs and burn them one by one according to my need, but all i cant do is i cant make them call one by one by single button in one single program, and with dat button only switch on and off the program.
i m stuck on dis frm vry long time, m not able to find solution,would be glad if u all my genious frndz would guide me
thank you