Go Back  Xtreme Visual Basic Talk > Legacy Visual Basic (VB 4/5/6) > General > programming microcontroller (PIC16F877) using VB6?

Thread Tools Display Modes
Old 06-25-2006, 07:03 AM
cool_brainmint's Avatar
cool_brainmint cool_brainmint is offline
Join Date: Apr 2004
Location: Manila, Philippines
Posts: 73
Default programming microcontroller (PIC16F877) using VB6?

just an inquiry, because we're going to start using microcontroller this semester and i'm just curious if i could easily program a PIC16F877 using VB6, because based on what's on the net, it would be easy if I use BASIC programming language, and also from what i've read, Visual Basic is a descendant of that language.. so I just want to hear from those who knows how to program microcontrollers using VB6, if using VB6 is alright?

because if that so, i don't need to look for a BASIC compiler and study another programming language..
I just want to say... uhm... well... kinda... yah something like that... okay that's it!
Reply With Quote
Old 06-25-2006, 01:23 PM
passel's Avatar
passel passel is offline
Sinecure Expert

Super Moderator
* Guru *
Join Date: Jun 2003
Location: Upstate New York, usa
Posts: 7,980

You need to use a compiler that is written for that Risc instruction set, if not for that particular processor.

Visual Basic can't exist without its runtime libraries, and the whole thing depends on running under Windows pretty much.
There Is An Island Of Opportunity In The Middle of Every Difficulty.
Miss That, Though, And You're Pretty Much Doomed.
Reply With Quote
Old 06-25-2006, 01:41 PM
webbone's Avatar
webbone webbone is offline
Hydrogen Powered

* Expert *
Join Date: Jul 2003
Location: Sacramento, CA
Posts: 6,090

What you may have read about on the web is something known as the "BASIC Stamp" - it is a PIC processor with a micro sized BASIC interpreter - very limited indeed! And the PIC16F877 is NOT one of the version available AFAIK (I have used them in designs at work before).

TO work with a PIC you'll either need to learn assembly (always a good thing but not everyone clicks with that the way some of us do) or C (there are several C compilers for the PIC families, and I'd suggest the CCS compiler as best for someone starting out who isn't going to learn assembly and dig into the hardware aspects of microcontrollers as they provide lots of library functions to help abstract things for you - www.ccsinfo.com).

As someone who designs embedded hardware and writes code (in assembly and C) for a living, I'd really suggest getting one of the Microchip demo boards- comes with free tools, documentation, and a boot loader so you don't even need a programmer! You could learn the ins and outs of microcontrollers and assembly all at the same time and you will be MUCH better off for having done so, even if you eventually only code in C.
"With the appearance of the AddressOf operator, an entire industry has developed among authors illustrating how to do previously impossible tasks using Visual Basic. Another industry is rapidly developing among consultants helping users who have gotten into trouble attempting these tasks." -Dan Appleman
Reply With Quote

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..