PDA

View Full Version : Multiple Variables - Pins



GatorGuy
- 31st January 2010, 09:37
I would like to make one variable an alias for more then one pin. So far I have not been able to make it work. Here is an example of what I have tried. There are more but this gives the idea. What am I doing wrong, or is it possible? Array?



s1 var porta.1 & porta.2

MR2010
- 1st February 2010, 01:08
I would like to make one variable an alias for more then one pin. So far I have not been able to make it work. Here is an example of what I have tried. There are more but this gives the idea. What am I doing wrong, or is it possible? Array?



s1 var porta.1 & porta.2


if you wnna drive pins EX: portb output and input this will helps u


S_1 VAR PORTB

S_1 = %00000001
S_1 = %XXXXXXXX
' so on ... do what you want


hope this will helps you