Electronics c++ programable microcontroller.

Discussion in 'Modding' started by foxx, 28 Jun 2005.

  1. foxx

    foxx What's a Dremel?

    Joined:
    5 Sep 2004
    Posts:
    785
    Likes Received:
    0
    Is there a mc. that is cheap and reprogramable like a pic but you program it with c++. For enyone who cares its becuase I am learning/learned c++ and dont want to learn another programing language...or maybey I could make one with c++...nah, so is there something like what I asked. :D
     
  2. TheAnimus

    TheAnimus Banned

    Joined:
    25 Dec 2003
    Posts:
    3,214
    Likes Received:
    8
    erm, you could use a C compiler. Theres rarely a need for oo paradigm on a low end micro.

    C compilers are avaiable for PIC & Atmel & pretty much every other one on under the sun.

    the fact is on very low end uC's (like <$6 cost) C gets in the way, and a RISC asm is the best by far.
     
  3. nick01

    nick01 What's a Dremel?

    Joined:
    6 Nov 2004
    Posts:
    598
    Likes Received:
    0
    You won't find one. c++ needs to be compiled and linked, not interpreted. There are a few c++ interpreters around like http://www.softintegration.com/, but they have huge overhead and won't run on a PIC. They are mainly for troubleshooting and debugging.

    Don't worry about learning another language. Compiler and linker do all the work for you. You will have to learn how to use them though.
     
  4. iamnafets

    iamnafets What's a Dremel?

    Joined:
    24 Feb 2005
    Posts:
    112
    Likes Received:
    0
    What exactly are you trying to do? If you're just wanting to learn, why not try to pick up ASM, it's a great learning experience? If you've got a project, I'm sure we/me/someone could help you out, since most projects are trivial or impossible to code on a microcontroller. Where are you headed?
     
  5. kbn

    kbn What's a Dremel?

    Joined:
    17 Mar 2004
    Posts:
    603
    Likes Received:
    0
  6. foxx

    foxx What's a Dremel?

    Joined:
    5 Sep 2004
    Posts:
    785
    Likes Received:
    0
    Wait...I think one of us is not understanding (prob. me) but you can program a pic in c and compile it so the pic understands it like with a pc? then wtf is this other programing language that they want you to learn. And curently I am not on a project, its for futor referance. :D
     
  7. djengiz

    djengiz Pointless.

    Joined:
    16 Aug 2002
    Posts:
    1,129
    Likes Received:
    0
    You can use a lot of programming languages for programming a pic. ASM (assembler) C or C++ just abstracts from machine language (zero's and ones).

    Here is how it works. You program your program and then you compile it. The compilation will generate libraries or objects. The linker then links all these objects or libraries to an executable. You then download the executable to your pic.

    I would recommend you use C for programming a pic you don't need C++. You can use C++ but you'll make it extra difficult for yourself.

    Good luck!
     
  8. foxx

    foxx What's a Dremel?

    Joined:
    5 Sep 2004
    Posts:
    785
    Likes Received:
    0
    Cool, I didnt know you could program a pic with c/c++. Thanks, at least someone understood my question :clap: .
     

Share This Page