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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
04/03/03 01:47
Read: times


 
#42798 - RE: using only one timer for 400Hz & 20sec
Responding to: ???'s previous message
1. You should move your main routine after all interrupt vectors. Put it after 0100h.

2. Never loop inside an ISR, use looping in your main. Otherwise you will have stack overflow problem.

3. You check DPH and DPL, but I cannot see where you increase or decrease these two values.

4. Try not to use DPH and DPL for looping, you need it to access external memory, try to use a memory location or a register set.

5. Remember to put reti on all other unused interrupt vector.

6. Did you tried to write a LED blinking routine using timer interrupt? If not, I think you should do it first.

Good Luck.
Lawrence


List of 12 messages in thread
TopicAuthorDate
400hz square wave upto 20 seconds            01/01/70 00:00      
   RE: 400hz square wave upto 20 seconds            01/01/70 00:00      
   RE: 400hz square wave upto 20 seconds            01/01/70 00:00      
      iam not asking any one to design            01/01/70 00:00      
         RE: iam not asking any one to design            01/01/70 00:00      
   RE: 400hz square wave upto 20 seconds            01/01/70 00:00      
   RE: 400hz square wave upto 20 seconds            01/01/70 00:00      
   RE: 400hz square wave upto 20 seconds            01/01/70 00:00      
   RE: 400hz square wave upto 20 seconds            01/01/70 00:00      
      RE: 400hz square wave upto 20 seconds            01/01/70 00:00      
         using only one timer for 400Hz & 20sec            01/01/70 00:00      
            RE: using only one timer for 400Hz & 20sec            01/01/70 00:00      

Back to Subject List