Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
11/08/09 17:38
Modified:
  11/08/09 17:42

Read: times


 
#170574 - You can try this..
Responding to: ???'s previous message
start:	
back:	
	call	display
	call	pip_pip
	call	delay1ms
	inc 	digit1
	inc 	digit2
	inc 	digit3
	inc 	digit4
; Code inserted here....(note the added 0's in the look up table
        mov     a,digit1              ; Check if last digit is shifted out
        cjne    a,#0, start           ; if not then move on
        mov digit1,#0           ; if last digit is shifted, then re-init numbers
        mov digit2,#1 
        mov digit3,#2 
        mov digit4,#3
	jmp 	start           ; ....and move on
; Code inserted till here....

....
....
....	
lookup:
        db      3fh,06h,5bh,4fh,66h,6dh,7dh,07h     ;0,1,2,3,4,5,6,7,8
        db      7fh,6fh,48h,43h,0c6h,61h,44h,4eh   ;9,a,b,c,d,e,f
        db      0,0,0,0,0,0,0


 


I have not checked the other sections of your code; I am expecting that: that part of your code is working fine; but you can try this, it might help.

P.N.: I am expecting my client to come to my office, and he is late...so I had to kill time..another 15 minutes to kill...So I thought maybe this will do some good to this guy....

Edit: My client is not coming...so I going home at last...11:10pm....bye


List of 23 messages in thread
TopicAuthorDate
moving display....            01/01/70 00:00      
   What do *you* think?            01/01/70 00:00      
   Have you written the code?            01/01/70 00:00      
      Understanding your own code is a minimum requirement            01/01/70 00:00      
   what you show is not code            01/01/70 00:00      
   No way to help...            01/01/70 00:00      
      Probably broken output code            01/01/70 00:00      
         Code suggestions for 7segment moving display            01/01/70 00:00      
   You can try this..            01/01/70 00:00      
   NO reply in 4 days.!! Where are you Vijay?            01/01/70 00:00      
      That feature is broken            01/01/70 00:00      
         I would like to, but...            01/01/70 00:00      
         ... and it wouldn't harm anyone to pause the thread            01/01/70 00:00      
            Did you miss the point?            01/01/70 00:00      
               NO, I didn't ... but ...            01/01/70 00:00      
                  jumps in promptly to show how clever they are,            01/01/70 00:00      
      Typical of this poster            01/01/70 00:00      
      O/P has concluded that he has to do it himself            01/01/70 00:00      
         Haha! Do you really think this?            01/01/70 00:00      
            Probably a bit of both?            01/01/70 00:00      
               Yes, most probably both reasons            01/01/70 00:00      
               "Top 5 ways to motivate engineers"            01/01/70 00:00      
            It's only fun the first time!            01/01/70 00:00      

Back to Subject List