??? 11/09/04 01:09 Read: times |
#80736 - Frequent updates Responding to: ???'s previous message |
Write the status to latches every 2 msec (this is the time DC relay + magnetic contactor can not turn on) so the latches were refreshed every 2 msec. Very true. You can say that again Ijaz. One of the reasons why I have machine I/O image updates inside a dedicated ISR at something like 5-10ms intervals. This effectively "smoothens" out the glitches and spikes and avoids upsetting the output stages. And all decisions of state changes are made based on debounced images of inputs pins rather than on the instantaneous state of the pins themselves. Raghu |