Moving from Basic Stamp and MIKROE basic to PicBasic PRO


Closed Thread
Results 1 to 40 of 41

Hybrid View

  1. #1
    Join Date
    May 2007
    Posts
    604


    Did you find this post helpful? Yes | No

    Default Re: Moving from Basic Stamp and MIKROE basic to PicBasic PRO

    Quote Originally Posted by TinkersALotV2 View Post
    It is curious to see how one ping pongs across the different boards and how the story unfolds differently in different places.
    ... and quite entertaining.
    Why pay for overpriced toys when you can have
    professional grade tools for FREE!!!

  2. #2
    Join Date
    Feb 2013
    Posts
    1,157


    Did you find this post helpful? Yes | No

    Default Re: Moving from Basic Stamp and MIKROE basic to PicBasic PRO

    Yes, I specially re-used same nickname on 3 different forums, to make tracking easier.

    So far, parallax one being the best one


    p.s. I got code compiled and running.

  3. #3


    Did you find this post helpful? Yes | No

    Default Re: Moving from Basic Stamp and MIKROE basic to PicBasic PRO

    Quote Originally Posted by CuriousOne View Post
    p.s. I got code compiled and running.
    that sounds like solid progress. congratulations.

  4. #4
    Join Date
    Feb 2013
    Posts
    1,157


    Did you find this post helpful? Yes | No

    Default Re: Moving from Basic Stamp and MIKROE basic to PicBasic PRO

    Yes, strangely that happened with mikroe basic, not with picbasic

  5. #5
    Join Date
    Feb 2013
    Posts
    1,157


    Did you find this post helpful? Yes | No

    Default Re: Moving from Basic Stamp and MIKROE basic to PicBasic PRO

    But still, MIKROE guys are really nature error. IDE is full of bugs. A little example:

    I started up IDE. By default, it opens last saved project. Ok, I close it.

    Now I started new project, write some code and compile. Everything is OK.

    Now I opened some previously saved project, make some changes, compile and want to flash. BUT, the flasher will flash the .hex image from the new project which I started when launching IDE. And to flash the current active program image, I have, EACH TIME, MANUALLY PROVIDE flasher with the correct hex file.

    Is not this silly?

  6. #6
    Join Date
    Feb 2013
    Posts
    1,157


    Did you find this post helpful? Yes | No

    Default Re: Moving from Basic Stamp and MIKROE basic to PicBasic PRO

    Another bug: "clean up project folder" does not works. While it says "files were deleted", actually, no file being deleted. Also GLCD font creator can't save the file. It says it saved, but no file being saved.

  7. #7
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,653


    Did you find this post helpful? Yes | No

    Default Re: Moving from Basic Stamp and MIKROE basic to PicBasic PRO

    Hi, Curious one

    Here is not the place to complain about another product you have difficulties with ...

    I saw You were on MkB forum @ 10.15 ( French hour ... ) , so you were on the right place THERE to complain .

    Your posts there show once more you didn't had opened neither the Pic Datasheet nor the IDE Manual or Help file ...


    Once more it's no use to complain your IDE doesn't work by itself ... just make the effort to learn your lesson !!!

    said gently ... this kind of thread has NO INTEREST for PicBasicPro Forumers ... as the fault is totally yours.

    Learn your lessons and you will be allowed to criticize AFTER lesson learned

    Alain
    Last edited by Acetronics2; - 1st March 2013 at 10:26.
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

  8. #8
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,624


    Did you find this post helpful? Yes | No

    Default Re: Moving from Basic Stamp and MIKROE basic to PicBasic PRO

    Hi,
    I didn't have a 16F628A only a non A-version but I don't think the differences matters here (they are covered in Appendix C of the datasheet).
    First take a look at the schematic:

    Name:  16F628-setup.JPG
Views: 2980
Size:  27.3 KB

    With the above setup I wrote a short program, no more no less than:
    Code:
    Main:
      Toggle PortB.0
      Pause 250
    Goto Main
    I programmed the PIC and the LED blinked at 2Hz - it really can't get easier than that IMO and it certainly isn't harder than on a BasicStamp. It works because I built the hardware to match the default setup, ie using an external 4MHz x-tal.

    Next thing I did was open up the .info file for the device and copied the default configuration from where it says The PBP default configuration for the PIC16F628 is: and pasted that into my program. I then read thru the available options and decided that I want to use the internal oscillator without feeding the clock out and use internal MCLR so I changed my program to:
    Code:
    #CONFIG
        __config _INTRC_OSC_NOCLKOUT & _WDT_ON & _PWRTE_ON & _MCLRE_OFF & _LVP_OFF & _CP_OFF
    #ENDCONFIG
    
    Main:
      Toggle PortB.0
      Pause 250
    Goto Main
    I removed the pullup on MCLR and the x-tal, programmed the PIC and the LED blinked with a frequency of 2Hz - as expected. All I have on the breadboard is a bypass cap, a 16F628, a resistor and a LED.

    /Henrik.

Similar Threads

  1. Pic Basic pro code Compiling help!
    By JeromyJones in forum mel PIC BASIC
    Replies: 3
    Last Post: - 20th February 2013, 14:14
  2. Yet another SERIN2 problem - Conversion from Basic Stamp
    By Fanias in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 24th October 2012, 08:08
  3. PicBasic Pro to Basic Stamp conversion?
    By Kirk Fraser in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 17th March 2011, 07:49
  4. Basic Stamp BS2 replacement?
    By tenaja in forum Schematics
    Replies: 5
    Last Post: - 17th November 2009, 18:27
  5. Basic Question about PICBASIC
    By zonkwilliams in forum General
    Replies: 1
    Last Post: - 10th March 2005, 22:55

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