Camerart,
Yeah, sorry, it is the TRISIO register that defines the In/Out direction of each pin on the 12f683 (again you MUST consult the datasheet as it is likely named something else on a different PIC). But there is a hardware limitation on GP3, that pin can NEVER act as an output, regardless of what is in that bit position of the TRISIO register.
So I am curious about this QBASIC that you are using for writing PIC programs.
Can you provide a link to it?
The PBP compiler that this forum supports is going to be VERY similar to any other "basic" language. With some minor differences that should be easy to learn.
It is a VERY powerful compiler and well supported.
The website for PBP is
http://melabs.com
It is a bit of an expense to purchase but well worth it
There are some world class sofware and hardware folks that hang around here, and are very willing to help (as long as the asker shows some amount of effort before asking.)
Most of the code examples that you will find on the PIC datasheets is going to be in assembly or machine code, not in a higher level language like basic.
good luck and keep asking questions.
Bookmarks