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

Back to Subject List

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


 
#29385 - RE: measuring low pulses from an IR demodula


erik malund wrote:
-------------------------------
I would like to add that for that to work, you need the input connected to an EX interrupt as well set to trigger when the timer stop counting and in that ISR you read the time.

Using an interrupt to read the timer is not always a requirement to use this method. It depends on what the rest of your program is doing: if you're waiting around for a pulse sequence before taking some action or your program is looping faster than the width of the shortest pulse you can poll the INTx pin to spot the high->low transition. It doesn't matter that you don't see the transition straight away provided that you do react to it before the next pulse arrives. The count remains static while the INTx pin is low. If, however, you can't guarantee the cycle time of your program or you can't wait around for pulses then using an ISR to read the counter on the falling edge of INTx is probably the right way to go.

By the way, I'm making the assumption that the gap between pulses is at least as wide as the shortest pulse.

List of 14 messages in thread
TopicAuthorDate
measuring low pulses from an IR demodula            01/01/70 00:00      
RE: measuring low pulses from an IR demodula            01/01/70 00:00      
RE: measuring low pulses from an IR demodula            01/01/70 00:00      
RE: measuring low pulses from an IR demodula            01/01/70 00:00      
RE: measuring low pulses from an IR demodula            01/01/70 00:00      
RE: measuring low pulses from an IR demodula            01/01/70 00:00      
RE: measuring low pulses from an IR demodula            01/01/70 00:00      
RE: measuring low pulses from an IR demodula            01/01/70 00:00      
RE: measuring low pulses from an IR demo            01/01/70 00:00      
RE: measuring low pulses from an IR demo            01/01/70 00:00      
RC5: Philips or Sony? - Charles            01/01/70 00:00      
RE: measuring low pulses from an IR demodula            01/01/70 00:00      
RE: measuring low pulses from an IR demodula            01/01/70 00:00      
RE: measuring low pulses from an IR demodula            01/01/70 00:00      

Back to Subject List