PicBasic Pro Demo


Closed Thread
Results 1 to 7 of 7
  1. #1
    Join Date
    Aug 2009
    Location
    Colorado, USA
    Posts
    10

    Default PicBasic Pro Demo

    Novice Pic and Basic user. Installed MPlab 8.33 and Pro Demo to decide if I want to learn or go to C. Using Pickit2 programmer and PF16F690. On demo board wrote:

    Mainloop: High Portc.0
    Pause 1000
    Low Portc.0
    GOTO mainloop
    end

    Expected LED pin 0 to blink but just stayed on. Played with just using HIGH Portc.0 command to set pin high and then pause, then High Portc.1, Pause, etc. to get all Pickit2 demo board lights to flash and success. Now wonder if Pro Demo recognizes Low command ...

    So two questions .. where can I get list of commands Pro demo supports and what does forum members prefer Basic or "C" for Pic controllers. Retired so $250 for PRO or for "C", to old to learn both and not rich enough to experiment with both.

    Thanks for any reply and real novice so bear with me. My wife cannot figure out why I want to blink LED lights in basement .. and sometimes I wonder ...

  2. #2
    Join Date
    Aug 2006
    Location
    Look, behind you.
    Posts
    2,818


    Did you find this post helpful? Yes | No

    Default

    Hi nbrucew,
    Yeah we have all made that mistake. You turn the light on for 1 second and then you turn it off and loop right? how long is it off, 1 µ second or so ? See, it comes back on before your eye detects it is off, add a pause after turning it off and see if things work better. Welcome to the forum!
    Addendum: You have a bunch of ANALOG stuff you need to turn off too . . . ANSEL, ADCON CMCON0 . . .
    EDIT: I am guessing you bought Chuck's book, a PICKit2 and demo board . . . Yes ?
    Last edited by Archangel; - 22nd August 2009 at 02:58.
    If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
    .
    Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
    .
    There simply is no "Happy Spam" If you do it you will disappear from this forum.

  3. #3
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    I think Pic Basic Pro is the best out there. Worth the extra money in the long run.

    The demo is the same as the full version as far as the commands go, I think.
    At the bottom of this page you can find the manual.
    http://www.melabs.com/resources/index.htm#Manuals

    Sounds like you are going to need to build a neat gizmo for the wife to win her over
    Dave
    Always wear safety glasses while programming.

  4. #4
    Join Date
    Dec 2005
    Posts
    1,073


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by nbrucew View Post
    Retired so $250 for PRO or for "C", to old to learn both and not rich enough to experiment with both.
    While I prefer PBP you might want to look at mikroelectronika which offers Basic, C, Pascal for PIC, dsPIC and Atmel AVR and is free as long as your compiled programs are under 2K in size.

  5. #5
    Join Date
    Aug 2009
    Posts
    7


    Did you find this post helpful? Yes | No

    Default Another Newbie Question

    Just bought the LABX-1 Board, PicBasic Pro and Melabs U2
    Using a 16F877a
    Here is my program

    clear
    adcon1 = 7
    mainloop:
    high portd.0
    Pause 500
    low portd.0
    pause 500
    goto mainloop
    end

    The compiler says that it is compiled successfully and then it loads into the X-1 without error, but it won't run! Nothing happens when I load it into the board/chip. Yes, I have checked to be sure that the polarity of the led bar graph and the JP2 jumper are correct. I have even tried it using low portd.0 just for giggles, and that doesn't work either. I've tested the programmer and the board/chip using the board test program (in hex) supplied with the programmer and it runs fine, making the leds blink, lcd display, etc.

    I've read and reread the book but can't find what I'm doing wrong. Sorry to come with such a basic question. My head hurts from banging it in the wall.
    Thanks

  6. #6
    Join Date
    Dec 2005
    Posts
    1,073


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by mackrackit View Post
    Sounds like you are going to need to build a neat gizmo for the wife to win her over
    And if that doesn't work, build a neat gizmo to replace the wife

  7. #7
    Join Date
    Aug 2009
    Location
    Colorado, USA
    Posts
    10


    Did you find this post helpful? Yes | No

    Default Thanks for help

    Just wanted to say Thanks for all replies. Got all to work. Forgot to set
    pins to digital output. Still a lot to learn.

    Thanks .. plan on going with PicBasic Pro .. demo seems fairly easy to work with.

Similar Threads

  1. Conversion from picbasic pro to hex for mplab
    By pr2don in forum Forum Requests
    Replies: 5
    Last Post: - 10th October 2010, 20:53
  2. Picbasic Pro Demo assembly errors
    By mikeRho in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 2nd January 2008, 07:41
  3. How to configure SPI in PICBASIC PRO?
    By moogle in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 15th April 2007, 19:31
  4. Question for all that use MELABS PICBASIC PRO
    By oskuro in forum Off Topic
    Replies: 2
    Last Post: - 24th March 2005, 18:15
  5. PicBasic Pro & PicBasic syntax different
    By Billyc in forum General
    Replies: 5
    Last Post: - 16th April 2004, 22:19

Members who have read this thread : 1

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