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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
09/12/02 16:03
Read: times


 
#29085 - RE: Question about software RTC tutorial
Sorry about the confusion, Alex.

If you aren't using other interrupts then, yes, the interrupt code from one interrupt can occupy the space for the other interrupt vectors. No, this is not good programming practice. If the code doesn't fit in the 8 bytes you have available, you should execute an AJMP or LJMP from the interrupt vector (000Bh or wherever) to wherever your real code is.

In the RTC example I didn't follow this good programming practice since I wanted to make the example as simple as possible to understand. While an LJMP to the real interrupt code is better programming practice, it would make the tutorial that much more confusing for someone just trying to understand the concepts. Especially since the RTC is the entire program in the example someone just trying to understand the concept of RTC could wonder, "Why in the world is he jumping over there?"

That said, I see my attempt to make things simpler may have actually raised more questions, so perhaps I'll need to rewrite some of the tutorial accordingly.

Regards,
Craig Steiner


List of 7 messages in thread
TopicAuthorDate
Question about software RTC tutorial            01/01/70 00:00      
RE: Question about software RTC tutorial            01/01/70 00:00      
RE: Question about software RTC tutorial            01/01/70 00:00      
RE: Question about software RTC tutorial            01/01/70 00:00      
RE: Question about software RTC tutorial            01/01/70 00:00      
RE: Question about software RTC tutorial            01/01/70 00:00      
alarm clock            01/01/70 00:00      

Back to Subject List