RLScott
Joined: 10 Jul 2007 Posts: 465
|
|
Posted: Mon Jul 30, 2007 6:39 pm |
|
|
| PCM programmer wrote: | Typically, noise such as ringing is going to occur on the transistions.
The #INT_RB interrupts occur on any edge. If there is ringing on
the transitions, then putting a delay at the start of the isr will give
enough time for the noise to go away... |
If the shaft is rotating in only one direction, that may be true. But if the shaft is in the process of reversing direction it is possible to get many transitions arbitrarily close together and it has nothing to do with noise, yet it can be handled properly without any delays.
Robert Scott
Real-Time Specialties
Ypsilanti, Michigan |
|