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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
03/08/05 05:56
Read: times


 
Msg Score: +1
 +1 Good Answer/Helpful
#89247 - infinite loop
Responding to: ???'s previous message
your code is an infinte loop. which is what is required.
but you code is being executed like this

0x000:
reset to main

main to 0xfff and then back to 0x000

with the interrupt being seviced when ever the timer overflows.

what you need to do is have an

trick:
sjmp trick

or

sjmp $ (depending on assembler) at the end of the main before end.

this will also result in an infinte loop but won't be as an address foldback, which is what is happening now.







List of 4 messages in thread
TopicAuthorDate
Software-Based Real Time Clock problem.            01/01/70 00:00      
   infinite loop            01/01/70 00:00      
      the above is wrong due to language            01/01/70 00:00      
      Thank you.            01/01/70 00:00      

Back to Subject List