im making a multiplexer of two 7seg.. in proteus, a delay of 1, displays gud and nearly invisible to the eyes..but in actual, its blinking..the switching of the 2 displays is quite slow.. can anyone suggest me what to do to solve this? making the switching of the 2 7seg, nearly invisible? thank you!!
I found this piece of code elsewhere on this forum.
Write a small routine to call this routine 300 times and you've got 30 seconds ... roughly
I believe this is for a 4mhz clock, if you're running a different speed you'll need to alter your looping code accordingly
Code:
delay3: movlw 0x2d ;around 0.1 second or a bit less
movwf d1
movlw 0xe7
movwf d2
movlw 0x01
movwf d3
delay_0: decfsz d1, f
goto dd2
decfsz d2, f
dd2: goto dd3
decfsz d3, f
dd3: goto delay_0
return
yes, it would seem that the code I posted had been generated by Piclist app. Nice one Wond3rboy ! I tend to frequent Piclist but I've never seen that app, we learn something everyday, so even if Daredavel doesn't come back for the assistance he asked for (he's not been yet) it's helped me ! it's nice to write code to do a job but why re-invent the wheel, if there's an app there to make the code use it I say !
Incidentally, talking of code generators, I've got this site bookmarked in my browser, it's very nice if you haven't seen it yet, it can generate all types of routines.