Back to the beginning


Closed Thread
Results 1 to 40 of 49

Hybrid View

  1. #1


    Did you find this post helpful? Yes | No

    Default Re: Back to the beginning

    This is the problem. PBP3 just does not connect to IDE ???

    PBP3 outputs .pbp files. How the **** do you then import them into IDE.

    You state that PBP launches IDE - HOW ??

    I've tried asking melabs, but they are about as helpful as a chocolate fireguard to us newbies.

    I appreciate that these are simple questions to seasoned PIC programmers but us newbies need somewhere to start.

    I don't mean to be a pain but it's often difficult to ask the right question in the right topic.

    Does anyone know of a good tutorial just to exercise how the bits are supposed to work together.

    Once I can get a simple program into a PIC I can then progress.

    Most tutorials stop short. Yes they show you the basic programming, and then they jump to IDE. Can someone come up with a single tutorial that lights an LED ?

    I'm perfectly capable of writing PIC basic but I just cannot understand the process of getting it into the PIC.
    Last edited by AndyFreestone; - 4th April 2013 at 16:05.

  2. #2
    Join Date
    May 2007
    Posts
    604


    Did you find this post helpful? Yes | No

    Default Re: Back to the beginning

    Quote Originally Posted by AndyFreestone View Post
    ...I'm perfectly capable of writing PIC basic but I just cannot understand the process of getting it into the PIC.
    As Henrik explained (several times actually):

    You need to understand that PBP is a compiler, it compiles programs - that's it. It does not talk to ANY hardware what so ever.

    You use PBP to compile programs, the compiler than automatically launches the assembler (that's why you need MBLAB installed) and the outcome of the assembly process is a .hex file which is to be programmed into the PIC chip (can be one on the EasyPIC 7 or elsewhere, PBP does NOT know or care).

    If you want to program the PIC chip onboard the EasyPIC7 you need to use the programmer application supplied with the board (mikroProgSuite).
    Why pay for overpriced toys when you can have
    professional grade tools for FREE!!!

  3. #3


    Did you find this post helpful? Yes | No

    Default Re: Back to the beginning

    HOW.

    I am using MicroCodeSudio. It does not automatically launch IDE.

    All I get is .pbp files as previously explained.

    The the top of the window it says MicroCodeStudio - PICBASIC PRO

    I can press the compile button but where does the .hex file go.
    Last edited by AndyFreestone; - 4th April 2013 at 16:49.

  4. #4
    Join Date
    May 2007
    Posts
    604


    Did you find this post helpful? Yes | No

    Default Re: Back to the beginning

    Quote Originally Posted by AndyFreestone View Post
    Yet another hapless response - HOW.

    I am using MicroCodeSudio. It does not automatically launch IDE.
    All yours, Henrik. Have fun!!!
    Why pay for overpriced toys when you can have
    professional grade tools for FREE!!!

  5. #5
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,615


    Did you find this post helpful? Yes | No

    Default Re: Back to the beginning

    I am using MicroCodeSudio. It does not automatically launch IDE.
    Finally, we're getting somewhere..... First of all MicroCodeStudio IS the IDE.

    Select View->Compile and program options and make sure the correct path where PBP3 is installed is specified there. If not, click Find Automatically and let it search for it.

    Then Click the Compile in the toolbar. (The IDE (MicroCodeStudio) will now launch the compiler (PBP3) which will compile the program and the launch the assembler which will assemble the compiled program into a .hex file. That file will be in the same folder as you saved your source file/program. It's that .hex file you should program into the PIC.

    If you don't see the compile button click View->Toolbars and check and make sure that Compile and Program is enabled, the button should now appear.

    /Henrik.

    EDIT: I guess you've seen the install video that's on the MELABS site? If not, here it is.

  6. #6
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    3,172


    Did you find this post helpful? Yes | No

    Default Re: Back to the beginning

    Tell microcode studio where pbp compiler and mpasm resides.

    Type in your program, then click compile, then start whatever programming software came with your development board.

    That software will use the hex file from compile to program your pic.

    Robert

  7. #7


    Did you find this post helpful? Yes | No

    Default Re: Back to the beginning

    Well "Thank you Everyone". I know how frustrating it can be with newcomers. I've finally managed to get MikroBasic-Pro to generate a hex file and have managed to get my 18F45K22 to actually respond.

    I've got ONE HELLOVA way to go but I can now get started.

    I never managed to get PBP3 to generate code that the PIC would work with. I'd prefer to use PBP3 as its more like what I am used to. MikroBasic Pro is like learning Basic all over again.

    BUT, as they say, you can learn BASIC in ten minutes - MikroBasic-Pro might take a few days.

  8. #8


    Did you find this post helpful? Yes | No

    Default Re: Back to the beginning

    In the UK 18F45K22 for less than £2.00 GBP. How do MicroChip make any money? 12F609's are less than 45p each.

    I've just bought a bunch of PICs all brand new from RS-Components.

    2 x 12F509
    2 x 10F200
    5 x 12F629
    5 x 16F684
    5 x 16F506
    2 x 16F722
    2 x 18F45K22

    Total cost incl P&P less than £14.
    Last edited by AndyFreestone; - 7th April 2013 at 18:57.

  9. #9
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,615


    Did you find this post helpful? Yes | No

    Default Re: Back to the beginning

    Hi Andy,
    This is the problem. PBP3 just does not connect to IDE ???
    IDE stands for Integrated Development Environment. It's piece of software on the PC, basically a fancy text editor with some extra functions. MBLAB is an IDE and MicroCodeStudio is an IDE.
    The most common one for use with PBP is called MicroCodeStudio.

    PBP3 outputs .pbp files. How the **** do you then import them into IDE.
    No. If you're using MicroCodeStudio it saves your source files as .pbp files but these are just plain text file. Before you can get them into the PIC you need to compile it/them. This is where PBP3 comes in.

    Question: Are you, or are you not using MicroCodeStudio as the software in which you write your PBP programs? If not, what are you using?
    Before we've got that squared away it's hard to give proper advice because you can very well write your program in notepad and compile them from the command line.

    You state that PBP launches IDE - HOW ??
    I did NOT state the PBP launces IDE. I said that PBP launches the assembler automatically (as long as it's installed properly).
    PBP3 can be launched FROM the IDE but not the other way around, but again, before we know what IDE you're using it's hard to help.

    At the top of the window of the program you're using to enter your program, what does it say there?

    /Henrik.

  10. #10


    Did you find this post helpful? Yes | No

    Default Re: Back to the beginning

    I'm starting to believe that the demo version will only allow you to save .mbas files which to you and me are as good as .txt files and can only be used by mikroBASIC.

  11. #11
    Join Date
    May 2007
    Posts
    604


    Did you find this post helpful? Yes | No

    Default Re: Back to the beginning

    Quote Originally Posted by AndyFreestone View Post
    I'm starting to believe that the demo version will only allow you to save .mbas files which to you and me are as good as .txt files and can only be used by mikroBASIC.
    The demo version saves .hex files. The limitation of the demo is generated code size (2K words, no time or other limitations, etc).
    Why pay for overpriced toys when you can have
    professional grade tools for FREE!!!

  12. #12


    Did you find this post helpful? Yes | No

    Default Re: Back to the beginning

    Yeh I know.

    I would have preferred PBP3 as the BASIC is far closer to the BASIC that I am familiar with but the interface with the EasyPIC v7 is just impossible to fathom out at my level of current knowledge.


    I've also got a PIKIT3 but Gawd only knows how to connect that to the EasyPIC - I'm going to be putting that on E-Bay later.

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


    Did you find this post helpful? Yes | No

    Default Re: Back to the beginning

    Quote Originally Posted by AndyFreestone View Post
    I've also got a PIKIT3 but Gawd only knows how to connect that to the EasyPIC -
    Microchip P/N : AC 164110 ... for less than 10 bucks !

    ...
    ************************************************** ***********************
    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 " !!!
    *****************************************

Similar Threads

  1. Beginning USB How to/Whats needed to use it.
    By wdmagic in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 11th April 2013, 21:11
  2. Missing chars at beginning of LCD display
    By jimbostlawrence in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 20th November 2009, 00:13
  3. 12F629 beginning
    By Davidpower in forum mel PIC BASIC Pro
    Replies: 11
    Last Post: - 1st October 2007, 22:37
  4. Program returns to beginning at interupt
    By BGreen in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 25th April 2005, 11:20

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