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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
08/18/06 21:30
Read: times


 
#122600 - Posting Code and Idea
Responding to: ???'s previous message
For posting formatted code, please refer to this: http://www.8052.com/users/jonled/noob.pdf


The way I see it you need to:

in main
configure interrupt for edge detection

in interrupt
look at flag and do either condition 1 or 2

condition 1): set interrupt for timer overflow, set port on, start timer, set or clear flag and return

condition 2): turn port off, reconfigure interrupt for edge detect, set or clear flag and return


Jon


List of 31 messages in thread
TopicAuthorDate
Interupt question......            01/01/70 00:00      
   quick answer..            01/01/70 00:00      
   Noise            01/01/70 00:00      
   Perplexed......            01/01/70 00:00      
   Interrupt            01/01/70 00:00      
      does not matter            01/01/70 00:00      
         Attack            01/01/70 00:00      
            You did ask for it            01/01/70 00:00      
         Interruptifobia            01/01/70 00:00      
            There's not always a performance penalty            01/01/70 00:00      
               there is always an exception            01/01/70 00:00      
                  the controller task            01/01/70 00:00      
   very busy processor......            01/01/70 00:00      
      most likely it is not            01/01/70 00:00      
         PLC ?            01/01/70 00:00      
            since forever            01/01/70 00:00      
   Definatly a PLC....            01/01/70 00:00      
      a link            01/01/70 00:00      
      The application may be a PLC, but the chip is not            01/01/70 00:00      
         I do not think that is what David does            01/01/70 00:00      
   code......            01/01/70 00:00      
   Sorry......            01/01/70 00:00      
      Just post            01/01/70 00:00      
         code post.....            01/01/70 00:00      
            Posting Code and Idea            01/01/70 00:00      
            Where are ....            01/01/70 00:00      
   Ok back on this interupt routine            01/01/70 00:00      
      put an inverter on the pin            01/01/70 00:00      
   ZERO CROSS DETECTOR....            01/01/70 00:00      
      Saif, please and a note            01/01/70 00:00      
         actually...            01/01/70 00:00      

Back to Subject List