How can I learn C programming?

Discussion in 'Embedded Systems and Microcontrollers' started by mockingbird7070, Jan 27, 2014.

  1. mockingbird7070

    Thread Starter New Member

    Jan 27, 2014
    how can i start with embedded c programming.?
  2. tshuck

    Well-Known Member

    Oct 18, 2012
    By starting a new thread and asking there...

    Also by using Google...
  3. sirch2

    Well-Known Member

    Jan 21, 2013
    Pick a MCU that has a C based programming environment (most do, look for a free one) and get stuck in.
  4. Arm_n_Legs

    Active Member

    Mar 7, 2007
  5. t06afre

    AAC Fanatic!

    May 11, 2009
    The best way to learn it. Is by using it. Allow your self some learning curve. Are you taking or plan to take some course. Or is it just for hobbyist purpose
  6. spinnaker

    AAC Fanatic!

    Oct 29, 2009
    I have always learned best by selecting a project to complete.
  7. ErnieM

    AAC Fanatic!

    Apr 24, 2011
    Development boards that can be used with a C compiler are ubiquitous. What I am unaware of is a set that also included an "Introduction to C" section.

    The best I could offer is the PICkit III (3 not 2) debug express kit. It is about $70, for that you get a programmer/debugger, a tested board, and a set of lessons to learn how to do all the basics using that board.

    You can download the compiler and the lessons for free. Here's the lessons to start you off:

    Lesson Document

    Lesson files
  8. Brownout

    Well-Known Member

    Jan 10, 2012
    I would start learning C programming on a computer then transfering those skills to a UC. You can get a free copy of Microsoft Visual C++ Express and use it to write andn debug C console programs. Of course, there are other free C compilers also. If you're using Linux, you get a gcc compiler with your distro.

    Before I started using microcontrollers, I used my desktop and parallel port to do I/O. I found that programming UC I/O was very similar. If you want to do this, you'll need an older computer with a parallel port and you'll need to install a free driver to gain access to your port. There is also some USB to parallel adaptors. I have one by FTDI, but never got it to work properly.

    PS +1 on the PICKIT 3 and debug express. This is the one I used to learn on.
    Last edited: Jan 29, 2014
  9. russian


    Sep 1, 2012
    I think this is the best advice here. I agree that you should separate "learning C" from "struggling with an MC using C" and start in the warm and cozy universe of desktops, with the console and printf available to you right away.