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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
08/15/06 04:36
Read: times


 
#122242 - Interrupt
Responding to: ???'s previous message
Do you really need to use an interrupt in this case? Is the microcontroller busy doing something else?

Couldnt you just keep checking the port pin till it senses a high, or low? Then start your timer and turn on output or turn on output first before starting the timer.

Then you could keep checking overflow bit, then you can turn off output and loop back to beginning.

If the micro is busy then an interrupt is the right choice.
In which case this all the above can be done in the interrupt routine.

I am in no way an expert on this and I hope others will correct my way of thinking but it makes sense to me.

Regards

James Krushlucki

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