you can use the same code for different pics, you need to compile it for the right pic..
Thats wrong... the.0 defines the pin, then 1 would make it an output/high..
and GPIO is a general purpose in put output pin, but you need to speicfiy with port
you would have to use PORTB or PORTA
thanks
PORTB.1 HIGH is right
hope this helps, and i may be wrong :Z
No, that is only for chips that have more than 8 pins. If it has 8 or less pins GPIO.0, GPIO.1, GPIO.2, GPIO.3, GPIO.4, GPIO.5, are all the input/output pins that it can have. u can't use port a/b on a pic chip that has 8 or less pins.
Here is a diagram for a regular 12F683:
![](https://acidmods.com/forum/proxy.php?request=http%3A%2F%2Fdbodnar.com%2FPICs%2Fimages%2Fpins_12f683.JPG&hash=69ad511ba37e2014d638062d11d6bc28c9c40656)
Here is a diagram for a regular 16F84:
![](https://acidmods.com/forum/proxy.php?request=http%3A%2F%2Fwww.ke4nyv.com%2F16f84diagram.jpg&hash=6a730191b68d9c829550b62344f5b1aab7a19b0f)
Pics with more than 8 have ports...to divide the pins into a managable set.
Proud Member Of
.com