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:
Here is a diagram for a regular 16F84:
Pics with more than 8 have ports...to divide the pins into a managable set.
Proud Member Of .com