1. Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.
    Dismiss Notice

PIC programming using BASIC?

Discussion in 'Microcontrollers' started by jinshinn, Jan 15, 2003.

  1. jinshinn

    jinshinn New Member

    Joined:
    Jan 15, 2003
    Messages:
    1
    Likes:
    0
    I would like to program a PIC16F84, is it better to use assembly language or BASIC or maybe other popular languages?
     
  2. kinjalgp

    kinjalgp Active Member

    Joined:
    Oct 28, 2002
    Messages:
    1,851
    Likes:
    3
    Location:
    INDIA/USA
    For smaller code and faster speed, assembly language is the best. But if you want the project to be designed in a couple of days, use any of the high level languages. I prefer C because of its advantages over basic like pointers and other things which are quite helpful when you have limited RAM.
     
  3. smpl9

    smpl9 New Member

    Joined:
    Jan 30, 2003
    Messages:
    2
    Likes:
    0
    XCSB is a structured PIC BASIC. It generates machine code which is directly executable on the 16F84. It allows you to create user functions and understands pointers (like C). It is in ALPHA at the moment so its usefulness to you will be limited, however it does generate decent code for 8, 16 and 32 bit integer and floating point operations (together with an assembler listing) so it should help you convert complex expressions into machine code. XCSB is at http://www.xcprod.com/titan/XCSB

    If you don't want to go that route you could also look at http://www.xcprod.com/titan/web_demo.html here you will find an online demo of the XCSAM assembler. You can type high level expressions into the web page and they get converted to optimised executable assembler for you.

    8)
     
  4. dave

    Dave New Member

    Joined:
    Jan 12, 1997
    Messages:
    -
    Likes:
    0


     
  5. lavenatti

    lavenatti Member

    Joined:
    Feb 12, 2003
    Messages:
    273
    Likes:
    0
    Location:
    Peoples Republic of NJ

    Mbasic and PicBasic compilers are pretty good. PicBasic covers all the PICs, but if you are just interested in the 16F84 either will be fine.
     
  6. kian2003

    kian2003 New Member

    Joined:
    Sep 17, 2008
    Messages:
    18
    Likes:
    0
    pic Basic learn

    you can find manul and compiler in Basic it's very easy to use just one or two month
    it compile all pic like 12c 16f 18f dsp30f and etc
    http://www.mikroe.com/
    like this:
    View attachment compilers_ide.pdf
     
  7. blueroomelectronics

    blueroomelectronics Well-Known Member

    Joined:
    Jan 21, 2007
    Messages:
    12,536
    Likes:
    170
    Location:
    Toronto, Canada
    The original thread is from 2003, I wonder if the OP is still looking...
     
  8. csaba911

    csaba911 Member

    Joined:
    Jul 2, 2003
    Messages:
    242
    Likes:
    2
    Location:
    Canada
    Ohh and
    Code (text):

    [LIST]
    [*]Last Activity: 16th January 2003 06:40 AM
    [*]Join Date: 16th January 2003
    [/LIST]
     
    :)
     

Share This Page