PDA

View Full Version : Assigning a variable to only a few pins?



Dayaks
- 27th August 2006, 15:04
I have a 12F683 and I was curious on how you would assign, let's say "x = pins 3,4,5".

Thanks

Acetronics2
- 27th August 2006, 15:32
I.e.

X.0 = GPIO.0
X.1 = GPIO.1
X.2 = GPIO.2
.
.
.

And so on ...

Alain

PS : small head ... mmmmmhhhh !!!

Dayaks
- 28th August 2006, 00:21
Ignore last port... I needed to define variables.. x = byte, ect. I assumed PBP did this automatically. Good ole' assumptions...