We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
org 0h start: mov p1,#00000000b mov r0,#9d binaryy: mov a,p1 inc a mov p1,a djnz r0,binaryy mov p1,#00000001b mov p2,#00000000b neww: mov r0,#9d second: mov a,p2 inc a mov p2,a djnz r0,second inc p1 ; sjmp neww end
I want to make counter using two seven segments , i need here, that when p1 will be incremented in the third last line of the program, p2 should be zero simultaneously, how to do these two things together?
Spend some time learning programming basics.
Spend some time learning specifics of 8051 assembler.
Maybe some of these will help:
http://www.keil.com/books/
www.8052mcu.com/tutorial