Programming 12F683 in QBASIC


Closed Thread
Results 1 to 18 of 18

Hybrid View

  1. #1
    Join Date
    Oct 2009
    Location
    Utah, USA
    Posts
    427


    Did you find this post helpful? Yes | No

    Smile Re: Programming 12F683 in QBASIC

    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.
    Dwight
    These PIC's are like intricate puzzles just waiting for one to discover their secrets and MASTER their capabilities.

  2. #2
    Join Date
    Dec 2010
    Posts
    409


    Did you find this post helpful? Yes | No

    Default Re: Programming 12F683 in QBASIC

    FYI - QBASIC is a relatively high level language compiled (or interpreted depending on the version) to run on DOS or Windows PCs. It was written by Microsoft, and discontinued many years ago when they moved to Visual Basic. I don't think there was ever a version that compiled for PIC.

  3. #3
    Join Date
    Jan 2013
    Posts
    64


    Did you find this post helpful? Yes | No

    Default Re: Programming 12F683 in QBASIC

    Hi Charlie,

    As I said I learnt basic basic, soon after it came out, and have continued ever since. I've considered learning other programs, but it was hard enough to do one time, so I didn't. I've made processing equipment, automatic vehicles, and lots small stuff, and still find it amazing to have flashing lights, once I get something working. Today I have almost finished programming a remote heater start-up switch so I can warm the vehicle up, 10 mins before getting in. I compile with picsimulatoreide, and burn with pickchip2. Simple, headachy, but fun!

    Cheers, Camerart.

  4. #4
    Join Date
    Dec 2010
    Posts
    409


    Did you find this post helpful? Yes | No

    Default Re: Programming 12F683 in QBASIC

    Glad you've had some successes. What you may not realize is that there are dozens of versions of BASIC targeting many different processing platforms, and many different versions even for the same platform. I can name a half dozen versions for PIC alone, not to mention a few for Android, and several for Windows. Saying you use BASIC is a little like saying you speak human.

    You are currently posting on a forum dedicated to only one of those flavors - apparently not the one you are using. A major advantage of this particular version of BASIC is a large group of users that help each other, as you are discovering. Many of the other versions also have helpful communities if you can find them. Unfortunately, other than very general things, you are not likely to get much specific help for your environment from the folks here. But welcome - there are lots of great ideas here, even if there won't be specific help. And who knows... you might even find a reason to "convert" :-)

  5. #5
    Join Date
    Jan 2013
    Posts
    64


    Did you find this post helpful? Yes | No

    Default Re: Programming 12F683 in QBASIC

    Hi Charlie,

    I did kind of realize that there are more versions of basic. I'm just glad I learnt 'QBASIC' when, and in the way I did or I would never have learnt any. I need to go into all sorts of efforts, to learn. At present I 'need' tolearn MORSE, and it's quite a challenge, for me anyway. I'm getting there.

    Cheers, Camerart. UK



    Quote Originally Posted by Charlie View Post
    Glad you've had some successes. What you may not realize is that there are dozens of versions of BASIC targeting many different processing platforms, and many different versions even for the same platform. I can name a half dozen versions for PIC alone, not to mention a few for Android, and several for Windows. Saying you use BASIC is a little like saying you speak human.

    You are currently posting on a forum dedicated to only one of those flavors - apparently not the one you are using. A major advantage of this particular version of BASIC is a large group of users that help each other, as you are discovering. Many of the other versions also have helpful communities if you can find them. Unfortunately, other than very general things, you are not likely to get much specific help for your environment from the folks here. But welcome - there are lots of great ideas here, even if there won't be specific help. And who knows... you might even find a reason to "convert" :-)

  6. #6
    Join Date
    Jan 2013
    Posts
    64


    Did you find this post helpful? Yes | No

    Default Re: Programming 12F683 in QBASIC

    SORRY!!!

    I have been informed that: I first learnt SPECTRUM BASIC,then QBASIC and now I'm using PICBASIC to program my PIC chips. It is confusing, at least for us oldies

    Cheers, Camerart.

  7. #7
    Join Date
    Dec 2010
    Posts
    409


    Did you find this post helpful? Yes | No

    Default Re: Programming 12F683 in QBASIC

    Getting closer... now which version of PICBASIC? Look for an *ABOUT* button.

  8. #8
    Join Date
    Jan 2013
    Posts
    64


    Did you find this post helpful? Yes | No

    Default Re: Programming 12F683 in QBASIC

    Hi Hecler,

    I thought I had already replied, but perhaps not. Here is a link to the kind of Basic I am using: http://www.qbasic.com/

    Cheers, Camerart.


    Quote Originally Posted by Heckler View Post
    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.

Similar Threads

  1. first program 12f683
    By sparkness in forum mel PIC BASIC Pro
    Replies: 15
    Last Post: - 4th January 2014, 16:07
  2. 12f683 help!!!! L@@K!!!
    By thm ov3rkill in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 2nd December 2008, 22:46
  3. 12F683 Programmer
    By Red_Stafford in forum Schematics
    Replies: 9
    Last Post: - 2nd October 2008, 21:44
  4. Replies: 2
    Last Post: - 23rd July 2006, 08:16
  5. 12F683 Startup
    By GregK in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 19th March 2005, 00:25

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts