CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    Dec 2002
    Location
    Birmingham UK
    Posts
    83

    2 Question about Robotics and C++

    hi guy's first of all i like to thanks all of you who help me in my c++ exam I got a Disction ,


    I am currently working on my hobby project which is mainly building robots

    my first question is

    1) can i program PIC16 please visted www.microchip.com
    using C or C++( state which one please) if so what are the libraries that i need to use.


    2) I have a handheld Pocket PC 2002 can i use C/ C++ on this device ie can i program or write application for this device if so what do i need
    Waheed Rafiq

    www.waheedrafiq.com


    MCP x 2 , Network+.CNNA

  2. #2
    Join Date
    Jun 2002
    Location
    Germany
    Posts
    1,557

    if(Microcontrollers + C/C++ == OK) do_it();

    WDQ,

    You can definitely program PIC microcontrollers with C/C++. Unfortunately, my experience is mainly with other µC families.

    You might want to find a suitable microcontroller and then look for a compiler. One of the best ways to get started with real-time control software is to invest in a starter kit for a µC. The starter kit will come with a board, download software and demo-versions of various compilers all wrapped up in an easy to use form.

    Try to invest in a starter kit if your budget will allow this. You will not need any libraries for getting started in real-time control software. The hardest thing is jmp _main and then toggling a port. With that in the bag you're up and running.

    It might be an interesting experience to really write hardware-near software. For me it is a rich career.

    We really liked these books:

    http://www.amazon.com/exec/obidos/tg...books&n=507846

    http://www.amazon.com/exec/obidos/tg...glance&s=books

    Good luck.

    Chris.
    You're gonna go blind staring into that box all day.

  3. #3
    Join Date
    Dec 2002
    Location
    Birmingham UK
    Posts
    83
    thank you for your reply
    Waheed Rafiq

    www.waheedrafiq.com


    MCP x 2 , Network+.CNNA

  4. #4
    Join Date
    Jun 2002
    Location
    Germany
    Posts
    1,557

    More information...

    WDQ,

    You might be wondering: Hey, what is a starter kit and how expensive is one?

    I would like to provide you with some additional information.

    Here is a link to a starter kit for a new generation of Zilog Z8 Flash µC. I will probably get one of these for benchmarking this new architecture. The price is moderate (about $50) and it seems to be very well assembled with a full version compiler.

    http://www.microcontroller.com/Direc...iew.asp?did=32

    In addition, I wanted to suggest that you might look into the µC architecture known as 8051, still one of the most popular 8-bit architectures worldwide. There is a nice free C-compiler called sdcc.

    http://sdcc.sourceforge.net/

    Happy development.
    Sincerely, Chris.

    You're gonna go blind staring into that box all day.

  5. #5
    Join Date
    Feb 2003
    Location
    Bilbao
    Posts
    513
    Of course you can use C (I suppose C++ also, but I really don´t know), to program your PICS.

    However, you will need a proper cross-compiler to do it. I used the one from CCS and gave me good results... If you don´t want to expend some money on that, perhaps you can check if there is a version of gcc cross compiler for PICs.

    About the Pocket PC... Which OS are you using? If you are using Windows CE, there is a version of the Visual Studio for embedded systems with which you can use embedded Visual C++ and embedded Visual Basic.
    Caronte
    Si tiene solución... ¿por qué te preocupas?
    Si no tiene solución... ¿por qué te preocupas?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured