Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

c++ for microcontrollers.

Status
Not open for further replies.

Amin Khorsandi

Member level 2
Member level 2
Joined
Oct 12, 2013
Messages
45
Helped
5
Reputation
10
Reaction score
5
Trophy points
8
Visit site
Activity points
293
hello everybody.
I want to start learning c++ programming for microcontrollers. but I don't know enough about it.
should I learn it from a general source like turbu c++ or from a special source like GNU?
are they different from each other in different compilers?

I'm using atmel studio and I would be happy if you have any recommendation for this compiler.

thanks
 

Well, first learn the C++ in general, once you learn you are done, the embedded C or C++ is not different from normal C/C++ just few keywords and way to interact directly with peripheral etc. I suggest starting from a simple book like Yashwant Kanetkar's Let us C++ or a complete reference. Practice C++ using visual studio express (its free compiler) in pointers and other concepts. Once familiar, move on to make C++ project.
As far as compiler is concerned, the compiler user guide will explain if C++ is supported and what constructs, keywords are additionally required. The compiler for microchip is xc8, xc16 for 8 and 16 bit MCU. As far as i know they do have C++ support in both compilers.
 
thank you very much .

just one more question:
is it possible to have other methods like:
Polymorphism
Signal Handling
Multithreading

?
 

Polymorphism if the language supports it, e.g. C++
Signal Handling: microcontrollers usually have perherperals such as ADCs and DACs which support acquisition and output of analogue signals and DSP processor have hardware to support FFTs etc
Multithreading : even a low cost processor can run a simple real time operating system using timer interrupts to schedule tasks - more powerful systems can run sophisicated RTOS
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top