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

Back to Subject List

Thread Closed: Became flame-war

???
02/06/05 18:48
Read: times


 
#86662 - I think you got it....
Responding to: ???'s previous message
The 8051 architecture supports level and transition activated interrupts on the /INT0 and /INT1 pins. But do keep in mind that the logic behind the transition detected interrupts does not directly clock the interrupt request on the falling edge of the /INT0 or /INT1 pins. The interrupt request is set active IF the processor internal logic sees the /INTx pin high in one machine cycle and then low in the next machine cycle!!

This means that even in transition detection interrupt mode that pulses on the interrupt inputs that are narrower then one machine cycle are likely to be missed.

You have two choices to deal with this:

A) Select a microcontroller that has a clocking frequency and divider ratio (i.e. 12 clocker versus 6, 4, 3, 2, or 1X clocker chips) that has a machine cycle time that is on the order of less than half the time of the narrowest pulse time you want to detect on the /INTx pin.

B) Install an external edge triggered flip-flop that clocks on the edge of your input signal to get true edge detection. Connect the output of the flip-flop to the processor /INTx line in such manner that the clocked flip-flop asserts a low level on the /INTx pin. Then also connect another port pin output to the flip-flop PRESET or CLEAR pin as appropriate. This port pin is used in the /INTx interrupt service routine to clear out the interrupt request in the external flip-flop and arm it for the next edge clock. This approach will respond to any edge that has a pulse wide enough to clock the flip-flop. Beware that even noise spikes in the sub-nanosecond range can clock fast flip-flops so this approach demands care in the hardware design to ensure that you do not get stray unwanted interrupts due to noise and glitches.

Michael Karas


List of 52 messages in thread
TopicAuthorDate
Ignoring Interrupts            01/01/70 00:00      
   I think you got it....            01/01/70 00:00      
      true, not to the point and about books            01/01/70 00:00      
   Yes but no but..            01/01/70 00:00      
      Being Dazzled....            01/01/70 00:00      
      Book Sales            01/01/70 00:00      
         Ignoring interrupts            01/01/70 00:00      
            Ignoring Interrupts            01/01/70 00:00      
               Level trig interrupts            01/01/70 00:00      
                  re: Level trig interrupts            01/01/70 00:00      
                  High Reliability Systems.....            01/01/70 00:00      
                  Cogent Explanation            01/01/70 00:00      
                     poor design and            01/01/70 00:00      
                     The Obvious one            01/01/70 00:00      
                        what's in the name            01/01/70 00:00      
                        Another Design Issue            01/01/70 00:00      
                           a maintenance nightmare            01/01/70 00:00      
                              Maintenance Heaven            01/01/70 00:00      
                                 reality            01/01/70 00:00      
                                    reality            01/01/70 00:00      
                                       huh?            01/01/70 00:00      
                                          Responding to Interrupts            01/01/70 00:00      
                                             nope            01/01/70 00:00      
                                                Yup            01/01/70 00:00      
                                                   theory and practice            01/01/70 00:00      
                                                   read trhe bible            01/01/70 00:00      
                                                      Read carefully            01/01/70 00:00      
                                                         now you lose me            01/01/70 00:00      
                                                            Back on Track            01/01/70 00:00      
                                                               of course            01/01/70 00:00      
                                                                  Absolutely.            01/01/70 00:00      
                                 nope            01/01/70 00:00      
                                    do not get me wrong            01/01/70 00:00      
                                       Real Time vs Fast            01/01/70 00:00      
                                          not very fast            01/01/70 00:00      
                                             Quite Fast Actually            01/01/70 00:00      
                                                why not call a spade a spade            01/01/70 00:00      
                                                   coming to think of it            01/01/70 00:00      
                                                   Why say Spade when you mean Shovel            01/01/70 00:00      
                                    Timing a Task            01/01/70 00:00      
                                       there is cause you WILL miss one            01/01/70 00:00      
                                          Politeness            01/01/70 00:00      
                                             what is impolite about a fact            01/01/70 00:00      
                                                Offensive            01/01/70 00:00      
                                                   not you, the word            01/01/70 00:00      
                        re: the obvious one            01/01/70 00:00      
                        It seemed to be a trend            01/01/70 00:00      
                           seem to            01/01/70 00:00      
               re:            01/01/70 00:00      
   Pity..            01/01/70 00:00      
      that would indicate doubt            01/01/70 00:00      
         Peer Review            01/01/70 00:00      

Back to Subject List