R
Rufus
Curt, My memory of the 8255 is slightly different (sorry if this has been resolved, I'm a little behind in my mail): The 8255 does starts up with all pins as inputs. This high-impedence state coupled with pull-up resistors will be detected as inactive outputs as long as the system design considers outputs as active low. The problem arises at the moment you change the I/O direction of a port. You are not allowed to change the state of the output latches prior to setting the direction. And those output latches were set to zero on power up. Therefore, you have to set the direction and immediately AFTER set the outputs to all 1's. This leaves a glitchy microsecond-or-so turn on of all those outputs. Yuck. This is not usually a problem when activating indicator lights or solenoids or relays or motors. In fact, if you have a typical set of solid states relays connected to the real world, they might even absorb the glitch. It's been a long time since I worried about propagation time. If they are connected to another computer, or a motor controller, or communication line or any other device that can detect that short pulse, you could have a problem. Rufus _______________________________________________ LinuxPLC mailing list [email protected] http://linuxplc.org/mailman/listinfo/linuxplc