View Single Post
  #4   Spotlight this post!  
Unread 13-02-2007, 09:56
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Remote Reset/Prog through DigOut/Relay

There is no "neutral" on a digital I/O pin. As an output, it will be either ground (logic 0) or +5 (logic 1). Each pin has a resistor to +5, so even if nothing is conneted, it will be pulled high (logic 1) if it's set to be an input.

We of course set the output to 1 as part of the program initialization. I don't remember whether we do it before or after it is configured as an output. The PROG signal must be grounded for a certain time before it actually takes effect, so a very brief moment when the digital output is low doesn't hurt.