hamid9543
Active Member
Offline
Posts: 124
Thank You
-Given: 80
-Receive: 7
|
|
« on: January 20, 2007, 08:19:30 08:19 » |
|
hi what compailer is profesional and beter.and why? picbasicpro or mikrobasicthanks for your guide
|
|
|
Logged
|
|
|
|
bluex
Junior Member
Offline
Posts: 83
Thank You
-Given: 10
-Receive: 39
|
|
« Reply #1 on: January 20, 2007, 11:40:41 11:40 » |
|
I think that it depends of what you are doing. - Pic Basic Pro : is a very good compiler, very good generated asm code, very stable and bug free. If you want to create reliable programs it's the choice. The problem with it is that it's becoming old, no floating point support (without doing acrobaties), no procedural programming (only Gosubs and Gotos), and all the variables are globals ... for very long programs, it can become a night mare. The Ide (MicroCode studio provided by Mecanics) is one of the best dev environment for PIC. - MikroBasic has a nice IDE, and is procedural. The fact that it's procedural makes it very suitable for writing reusable libraries witch can be very useful for companies working in electronics business. You can even sold libraries. It has all modern language constructs, and suports Floating points manipulation. The problem is that the generated code is somewhat ugly and not optimized. The big problem, I think, is that the compiler, at version 5.xx is still very buggy. The problem with MikroE is that, instead of doing only ONE compiler CORRECTLY, they try to do compilers for every mcu in every language. They also try to make Pascal and C and Basic compiler the same way. and I think that this is an error. I hope that they will try to stop creating more features and modifications on their compilers and to try to stabilise them, because stability and reliability is more important than multiplicity of features in industrial work. if they stabilise them, they may become some of the best tools on the market. The big difference between MikroE and PicBasicPro is the fact that the fisrt is Procedural and the second Flat !!! Flat programming suits very well code generation for PIC mcu's because of their architecture (I know what I'm saying because I'm a compiler writer). Procedural programming is very useful for structuring and reusing code, but the generated code is difficultly better that Flat one (C language is a special case because of it's special grammar). The other difference is that of price, sincerely Pic Basic is not sufficient, you have to buy Pic basic Pro witch cost about 260 Euro. MikroElektronika offer MikroBasic for about 120 euro and I encourage every body to BUY instead of stole them, because this helps their companies to make them evolving. Another choice of a good compiler is Proton basic sold also by Mecanics. The three compilers support ICD either Microchip one or proprietary one, MikroBasic supports only MikroElektronika ICD proprietary one, witch is a very limiting beacuse you can not use it with MPLab (and then it's simulator). Finally You have another choice, SWordfish basic compiler, witch works only on Pic 18Fxx series, but it's the best structure basic I have seen. http://www.sfcompiler.co.uk/swordfish/ Best regards
|
|
|
Logged
|
|
|
|
bluex
Junior Member
Offline
Posts: 83
Thank You
-Given: 10
-Receive: 39
|
|
« Reply #2 on: January 22, 2007, 08:48:14 20:48 » |
|
Basic is easy, and you can take (PicBasic+MicroCode Studio) or MikroBasic from MikroElektronica. If you have about 120$ I think that the easies way is to buy the MikroElektronika EasyPic3 or EasyPic4. It has all peripherals intergartes and an on board Programmer. It has also a lot of goodies like 7 segments displays and Leds, Push Buttons, and a specially a Max232 with all its dedicates circuitery for RS232 communication with PC. This dev board will save you a lot of soldering/desoldering work, and let you concentrate on learning Basic language. MikroBasic has also a lot of examples and sample programs for this board. I think that the price is very low compared to what you get. You can also use this board with Pic Basic and MicroCode studio witch can be interfaced with the Mikroelektronika PicFlash to let you program directly your pic on board. And if you use MicroCode studio, you can also compile yous PicBasic programs to use ICD witch is controlled via an RS232 line. But be careful !!! Basic is easy on PC, it's considered as an easy langage because it hides all the complexities of PC peripheral and OS programming. On micro controllers, however, it hides SOME of the complexity (with cost of large code size), but it does not hide all the complexity, so some low level knowledge of the target microcontroller is still necessary (for example to set the clock speed, to access ports via dedicated registers, especially TRIS registers for indicating direction of pins ... and so on. So using Basic does not mean that your life will be very very easy in microcontrollers world. You still have to work hard. Once you have acquired sufficient knowledge with one language on PIC you can switch to any other langage. If you use mikroBasic it will be very easy to switch to mikroPascal or mikroC because the only differenc is language, all the libraries are shared between the compilers produced by MikroE. Best regards PS. PicBasic+MicrocodeStudio can be downloaded for free from MeLabs web site http://www.melabs.comMikroBasic can be downloaded for free from mikroElektronika web site http://www.mikroe.com these are demo versions but they works FULLY, the only limitation is in code size of 2K, witch is very very sufficient for a begginer, I remember that I learned PIC programming on PIC16C84 with only 1K of flash size, and I'm very amazed with the fact that most begginers (even on this forum) complain from the limitations of 2K. I think that limitation of code size is a good thing that let you learn to build optimised programs. When you will be sufficiently pro, I think that buying full version of the compiler (only 120 euro for MikroBasic) is not so expensive. Best regards
|
|
|
Logged
|
|
|
|
mrnitigon
Guest
|
|
« Reply #3 on: January 08, 2008, 05:49:59 05:49 » |
|
hi in the same command complier with mikro basic and picbasic what have smaller file
|
|
|
Logged
|
|
|
|
videoton
Guest
|
|
« Reply #4 on: January 08, 2008, 10:39:24 22:39 » |
|
it's the same file i think
|
|
|
Logged
|
|
|
|
mrnitigon
Guest
|
|
« Reply #5 on: January 09, 2008, 10:19:24 10:19 » |
|
you know between proton and picbasic it same
|
|
|
Logged
|
|
|
|
Bepo
Newbie
Offline
Posts: 13
Thank You
-Given: 64
-Receive: 25
|
|
« Reply #6 on: January 09, 2008, 05:41:55 17:41 » |
|
I would also add one thing that is very important for a beginner: Mikroelektronika has a forum where one can find a lot of help. Pic Basic forum is almost useless.
Bye Bepo
|
|
|
Logged
|
|
|
|
koky
Active Member
Offline
Posts: 180
Thank You
-Given: 149
-Receive: 157
|
|
« Reply #7 on: January 09, 2008, 10:06:35 22:06 » |
|
i the time that you spend to learn basic, you can learn assembler, is bug free, my opinion is that if you must debugger an high level language software, the error cause can be duoble , error in the software or error in the compiler, in the last case is very hard to find. In assember you can contruct your subfunction and use it as "include" in other software, when you have make your basic subroutine (mathematical, serial, pwm, etc) also the assembler is easy and very short and transparent. I have buyed original CSS, MikroC, PicBasicPro, but i have make more than 800 industrial application in pure assembler
|
|
|
Logged
|
|
|
|
Bepo
Newbie
Offline
Posts: 13
Thank You
-Given: 64
-Receive: 25
|
|
« Reply #8 on: January 26, 2008, 12:42:08 00:42 » |
|
Koky, I agree with you for your considerations about assembler, but also other things must be considered. Much time ago I used assembler because it was my job. I am speaking about old micros, like Z80, 8085 and so on. Now my job changed, I no longer write software, and I have to consider electronics only as an hobby. Now I am using Mikroelektronika compilers, and returning to assembler is impossible. I have two young children, a wife an so on..... I have only some time during the evening to dedicate to electronics. My whole life wouldn't be enough to write in assembler all the libraries provided with these compilers. Every tool has its own application, no rule is valid for everybody, in my opinion assembler is good for professionals, but for hobbysts I believe an high level language is more suitable. Bye Bepo
|
|
|
Logged
|
|
|
|
gem1144aaa
Junior Member
Offline
Posts: 88
Thank You
-Given: 134
-Receive: 27
|
|
« Reply #9 on: February 13, 2008, 05:51:05 17:51 » |
|
you know between proton and picbasic it same
sorry its not the same pic basic libraries are less but its instructions are easier to be understood pic Mikro basic libraries are much more and much complicated an sophisticated but better for sophisticated designs especially those containing protocols
|
|
|
Logged
|
|
|
|
secret_user
Guest
|
|
« Reply #10 on: February 17, 2008, 10:17:47 10:17 » |
|
i prefer picbasic though. Its good
|
|
|
Logged
|
|
|
|
Shinta
Newbie
Offline
Posts: 21
Thank You
-Given: 20
-Receive: 3
|
|
« Reply #11 on: February 19, 2008, 09:51:42 21:51 » |
|
For me.... MikroBasic es better for all the libraries. and the sintax is very similar to the original Basic language
|
|
|
Logged
|
|
|
|
Mike G
Guest
|
|
« Reply #12 on: February 26, 2008, 05:55:05 17:55 » |
|
I prefer picbasic. I first used mikrobasic but i think that picbasic is easier to use. just my 2 cents
|
|
|
Logged
|
|
|
|
kalpakchiev
Active Member
Offline
Posts: 137
Thank You
-Given: 34
-Receive: 68
|
|
« Reply #13 on: February 27, 2008, 12:28:33 12:28 » |
|
I prefer PicBasic, but I do not know well Microbasic
|
|
|
Logged
|
A known mistake is better than an unknown truth.
|
|
|
RoninMBV
Newbie
Offline
Posts: 22
Thank You
-Given: 2
-Receive: 6
|
|
« Reply #14 on: February 27, 2008, 04:37:04 16:37 » |
|
I think the Mikrobasic is easy to learn ....lots of library at hand, very good forum and the only minus I noticed is the compiled code size a little bigger.....but at the end of the day is the best!!
|
|
|
Logged
|
|
|
|
mcglacy
Newbie
Offline
Posts: 7
Thank You
-Given: 1
-Receive: 0
|
|
« Reply #15 on: March 23, 2008, 03:12:12 15:12 » |
|
I go for mikrobasic because of featured library and function, but it is easy to make program in PICBASIC.
|
|
|
Logged
|
|
|
|
max_buddy
Guest
|
|
« Reply #16 on: March 24, 2008, 01:54:35 13:54 » |
|
it would be great if you'd get the procedural programming of mikrobasic with the simple instructions of picbasic. for example say you want to test for an rpm signal presence on a pin. with picbasic you can use a single command, count, or interrupts. with mikrobasic you'll have to code a lot to get the this working. also mikro is a bit buggy.
|
|
|
Logged
|
|
|
|
iguana
Guest
|
|
« Reply #17 on: March 24, 2008, 05:41:21 17:41 » |
|
I have been testing SF and I must say I'm impressed. Not only can you write complex procedural code but you can write very flat Proton Pbro style.
It will even let you use labels
I'm sure if you placed every lib you have into one file and just included that every time you would not need to keep including a load of separate files.
Device = 18F452 Clock = 20
Include "everylib.bas"
Kind of defeats the point of the language but it works
I also see they now have a Fat32 Lib WoW
|
|
|
Logged
|
|
|
|
krumper88
Newbie
Offline
Posts: 15
Thank You
-Given: 133
-Receive: 1
|
|
« Reply #18 on: April 11, 2008, 08:19:00 20:19 » |
|
While I've not tryied PBPro yet, I have to agree Mikro is a bit buggy at times.
|
|
|
Logged
|
|
|
|
nerone2007
Guest
|
|
« Reply #19 on: April 25, 2008, 09:29:15 21:29 » |
|
i prefer picbasic pro with MPLAB IDE, it's very easier to use
|
|
|
Logged
|
|
|
|
antico2
Newbie
Offline
Posts: 16
Thank You
-Given: 10
-Receive: 2
|
|
« Reply #20 on: April 30, 2008, 09:11:56 09:11 » |
|
Hi,
it's a very interesting matter the choice between PicBasic or MikroBasic.
There's someone that can give manuals of the two languages so first to decide what's take I can see the differences ?
Thank you
|
|
|
Logged
|
|
|
|
k6233
Inactive
Offline
Posts: 4
Thank You
-Given: 1
-Receive: 0
|
|
« Reply #21 on: May 02, 2008, 08:43:03 20:43 » |
|
I prefer PicBasic, but I do not know well mikrobasic. Probably mikrobasic is more simple for people that work in informatic ambient as visual basic etc..-
Bye Bye Marco
|
|
|
Logged
|
|
|
|
mmladenovic
Newbie
Offline
Posts: 18
Thank You
-Given: 3
-Receive: 3
|
|
« Reply #22 on: May 02, 2008, 08:45:49 20:45 » |
|
Mikrobasic
|
|
|
Logged
|
|
|
|
HiDux
Guest
|
|
« Reply #23 on: May 04, 2008, 12:25:35 12:25 » |
|
In MikroElektronica functions sin and cos do not work.
|
|
|
Logged
|
|
|
|
tanoshi
Guest
|
|
« Reply #24 on: May 14, 2008, 04:14:27 04:14 » |
|
i choose Picbasic because it can work with ICD2
|
|
|
Logged
|
|
|
|
|