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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
07/28/03 18:03
Read: times


 
#51607 - RE: Led Timer Setting Clock values xx and yy
Responding to: ???'s previous message
Ralph,

>Also I had help with program I am now trying to use
>by George MacCayev one of our non registered members.
I am not "non registered members", I am program monster
but I was scare stiff your questions(:-).

To be serious, do you want me to do your job instead of you? I gave you the main idea how to do a big delay. Just make small subroutine with fixed delay, say, 100 ms. Then call it 10 times you'll got 1 sec. Let's say it will be another subroutine. Then call it 60 times. That's all!

OK, one and only hint to get 100 ms

oneten: mov r1,#180 ;556.6us*180~100ms
del1: mov r0,0 ;2MC*256+1MC=556.6us
del0: djnz r0,del0 ;2MC=12/11.05902=1.0850871us
djnz r1,del1

Hope it helps a bit.

Cheerio,
George


List of 5 messages in thread
TopicAuthorDate
Led Timer Setting Clock values xx and yy            01/01/70 00:00      
   RE: Led Timer Setting Clock values xx and yy            01/01/70 00:00      
      RE: Led Timer Setting Clock values xx and yy            01/01/70 00:00      
         RE: Led Timer Setting Clock values xx and yy            01/01/70 00:00      
            RE: Led Timer Setting Clock values xx and yy            01/01/70 00:00      

Back to Subject List