• Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

PIC programming using BASIC?

Status
Not open for further replies.

jinshinn

New Member
I would like to program a PIC16F84, is it better to use assembly language or BASIC or maybe other popular languages?
 

kinjalgp

Active Member
For smaller code and faster speed, assembly language is the best. But if you want the project to be designed in a couple of days, use any of the high level languages. I prefer C because of its advantages over basic like pointers and other things which are quite helpful when you have limited RAM.
 

smpl9

New Member
XCSB is a structured PIC BASIC. It generates machine code which is directly executable on the 16F84. It allows you to create user functions and understands pointers (like C). It is in ALPHA at the moment so its usefulness to you will be limited, however it does generate decent code for 8, 16 and 32 bit integer and floating point operations (together with an assembler listing) so it should help you convert complex expressions into machine code. XCSB is at http://www.xcprod.com/titan/XCSB

If you don't want to go that route you could also look at http://www.xcprod.com/titan/web_demo.html here you will find an online demo of the XCSAM assembler. You can type high level expressions into the web page and they get converted to optimised executable assembler for you.

8)
 

lavenatti

Member
Mbasic and PicBasic compilers are pretty good. PicBasic covers all the PICs, but if you are just interested in the 16F84 either will be fine.
 
Status
Not open for further replies.

Latest threads

EE World Online Articles

Loading
Top