Thanks for invite me to this new world, i hope you guys can help me. Need to control a servo for a small project using pic. I purchased a programmer a few moths ago while studding assembler language.
Fortunately for me i came across to a youtube video of a guy using picbasic and i couldnít believe how this program reduces pages of code to just a few commands.
I downloaded the picbasic from one of the mirrors listed in here, but i appears with a red X when Iím starting the Mplab project wizard, can anyone please tell me what i am doing wrong?. Again i new to this.
Thanks a lot
Just grab the Proton Development Suite (PDS) picbasic compiler and use the IDE it comes with instead of using PBPro and MPLab. IMHO Proton is a much better compiler than PBP, and code is somewhat interchangeable, if not, very easy to convert. It has commands for controlling servos just as PBP has. Controlling servos is VERY easy with either complier though. I would also recommend using the PULSOUT command instead of the SERVO command, its a bit more flexible.
Also, PICBASIC is somewhat used to describe both compilers. If a project or piece of code you find on the web says its for PICBASIC it could be for either. The video you saw could very well be using the Proton compiler.
Also, it actually does not reduce pages of code to just a few lines comparing to assembler as you have used. The ASM generated is actually longer. It just reduces the amount of input needed by you by translating the BASIC code into ASM. It can be important to note this when you get more involved in PIC programming and want to make use of more critical timing applications and have to calculate execution times etc.