EFX-TEK

TEK Talk => Programming Techniques => Topic started by: dgme on January 18, 2012, 01:52:50 PM

Title: # vs PIN#
Post by: dgme on January 18, 2012, 01:52:50 PM
What is the difference between setting an I/O definition to a # vs PIN#?  The Prop-1 template code uses

SYMBOL  Sio             = 7                     ' SETUP = out; no ULN
SYMBOL  Trigger         = PIN6                  ' SETUP = DN

so why is one 7 and the other is PIN6?  I have a solenoid on pin 2 so I wrote SYMBOL Solenoid = PIN2 but it wasn't right.  I changed it to Solenoid = 2 and that works.  Can someone explain whats going on here?
Title: Re: # vs PIN#
Post by: JonnyMac on January 18, 2012, 02:03:07 PM
This thread explains it: http://www.efx-tek.com/php/smf/index.php?topic=1773.0

The X versus PINX thing is one of the trickiest aspects of the Prop-1, especially for those that do not have -- and really don't want to acquire -- and embedded programming background.
Title: Re: # vs PIN#
Post by: dgme on January 18, 2012, 02:40:37 PM
Oh shoot, I missed a sticky.  I need to search better.  Thank you for the quick reply; I think I get it now.