Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Categories > Micro Controllers


Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc.

Reply
 
LinkBack Thread Tools Display Modes
Old 2nd January 2004, 11:59 PM   (permalink)
Default C++ PIC programming

Hewwo. I heard that you can use C++ to write programs for PICMicrocontrollers. Is this true and can anybody lead the leopard to a place where I may get some further info on this subject? Thankies very much. The leopard purrrrs and swishes his long furry tail.
Velvet Leopard is offline  
Old 3rd January 2004, 12:11 AM   (permalink)
Default

http://www.picant.com/c2cpp/cpp.html

Personnally i don't like it. The generated code is way to wastefull. If i rewrite a program in assembler to do the same it sometimes is 5 times smaller
Exo is offline  
Old 3rd January 2004, 12:58 AM   (permalink)
Default Thank you, Exo.

Hi there. That is interesting about the assembler being smaller than C++. I do not know assembler and I am learning C++ for other reasons. Do you know of where I can find resources for learning and using assemblers? I would love to use and program these PICs as efficiently as I can. I thank you for your reply.
Velvet Leopard is offline  
Old 3rd January 2004, 09:50 AM   (permalink)
Default Re: Thank you, Exo.

Quote:
Originally Posted by Velvet Leopard
Hi there. That is interesting about the assembler being smaller than C++. I do not know assembler and I am learning C++ for other reasons. Do you know of where I can find resources for learning and using assemblers? I would love to use and program these PICs as efficiently as I can. I thank you for your reply.
A 14 bit PIC only has 35 instructions (it's a RISC processor), so there's not many to learn.

The best way is probably to study existing code, which is basically what my PIC tutorials do, have a look at http://www.winpicprog.co.uk. Your first port of call for anything PIC should probably be the PICLIST - there's tons of code and help at http://www.piclist.com.
Nigel Goodwin is offline  
Reply

Bookmarks

Thread Tools
Display Modes





All times are GMT. The time now is 04:00 AM.


Electronic Circuits  |  Learning Electronics
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.

eXTReMe Tracker