Mikro Elektronika Basic and PBP


Results 1 to 6 of 6

Threaded View

  1. #1
    Join Date
    Jun 2011
    Location
    Indian Harbour Nova Scotia
    Posts
    108

    Default Mikro Elektronika Basic and PBP

    I started with PicBasic Pro (PBP) with a Lab X1 development system. Did a bunch of work with it and loved it. Then I discovered MikroElektronica development board, the EasyPicV7. Wow! Lots of neat stuff and a great development system. Lots of support, good tech support and help files and they make a number of "click boards" (like Arduino "shields") to really wet your appetite. I then bought their Basic Compiler which is good in a lot of ways but not as good as PBP in others. For example, one of the things I do most is write to LCDs in all my projects. PBP lets you configure the LCD with 6 commands, Mikro requires about 12. That's for initialization. To write to the LCD, PBP allows multiple statements on a line, eg lcdout $FE,$80, "Reset Ok". In Mikro Basic: lcd_cmd (_lcd_clear), then lcd_out (1,1, txt1), where txt 1 was your previously defined string. Oh, the string has to be declared as well, so if it contains 10 characters, you have to declare it as 10. If you use 11 characters, your text will NOT display and you won't get an error. Very rigid. I tried to get Mikro Basic to display variable values, which requires another command, whereas with PBP, you can add it to the same string (as in the example I gave).

    The Button command works the same way. Easy in PBP, hard in MikroBasic. The way Mikro Basic handles interrupts is all convoluted and complicated and doesn't seem to work the way I think interrupts work. Yet, in PBP, it's all very, very intuitive and works EXACTLY like I expect it to work.

    I was in the middle of converting code from PBP into MikroBasic so I could use the V7 board, but it just isn't worth the time, because of all the required structure and syntax, not to mention double the amount of code.

    If you are a former C programmer and like the structure and strict rules of programming, go with MikroBasic but be prepared to write twice as much code.

    Bottom line: PBP rocks! It is a super compiler. And you get a book too.
    Last edited by queenidog; - 22nd May 2013 at 21:52. Reason: general grammar edit

Similar Threads

  1. Replies: 3
    Last Post: - 5th September 2014, 06:20
  2. Moving from Basic Stamp and MIKROE basic to PicBasic PRO
    By CuriousOne in forum mel PIC BASIC Pro
    Replies: 40
    Last Post: - 6th March 2013, 05:27
  3. Indexer not indexing...a basic PBP problem??
    By jellis00 in forum General
    Replies: 8
    Last Post: - 24th March 2009, 16:53
  4. pbp pro versus oshon or bascom basic
    By Pedro Santos in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 3rd September 2006, 00:49
  5. Replies: 5
    Last Post: - 17th January 2006, 19:26

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