View Single Post
  #2   Spotlight this post!  
Unread 16-04-2006, 10:16
Kevin Sevcik's Avatar
Kevin Sevcik Kevin Sevcik is online now
(Insert witty comment here)
FRC #0057 (The Leopards)
Team Role: Mentor
 
Join Date: Jun 2001
Rookie Year: 1998
Location: Houston, Texas
Posts: 3,623
Kevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond repute
Send a message via AIM to Kevin Sevcik Send a message via Yahoo to Kevin Sevcik
Re: Question about relays: update frequency

The master processor has no control at all over the relays. If you'll look in ifi_aliases.h, you'll see that the relays are all aliased off pins on the user processor. So the relays get updated literally the instant* you set them to something in your code. So if relay1_fwd is 1 before your loop, and you set it to 0, and then set it back to 1 again, you'll actually be getting a veeeery short pulse from 0 to 1 on the output pin. This is almost certainly negligible and won't affect anything, but it will be there. Plus you're wasting valuable processor cycles clearing variables. Why, back in my day our user processor was a monkey with a calculator and.....

*actually an instant plus a few nanoseconds of propagation delay.
__________________
The difficult we do today; the impossible we do tomorrow. Miracles by appointment only.

Lone Star Regional Troubleshooter