How much of C do you have to know before..?

<p>I'm learning C on my own time. I'm going at a pretty fast pace, but I'm highlighting most of the important things or at least, what I think is important. I struggle with most of the back of the chapter exercises mainly because I'm going through it really fast and most of the time, I have to end up looking at the solutions.</p>

<p>How much of C do you have to know before you start programming microcontrollers for basic circuits needs such as controlling the elements in a circuit, motors, etc... Not too advanced programming stuff, but stuff that requires programming.</p>

<p>I'm like 3/4 of the way through the book and I can see where some of this would apply, but if I were given a microcontroller and told to program it so it would behave a certain way, I wouldn't even know where to start.</p>

<p>C Programming Language, Kernighan and Ritchie. Go through Chapter 6 on structures. You probably don’t need anything after that. You definitely want to understand control, functions, pointers, arrays and structures so that you can organize your code. You need to understand pointers so that you can assign the absolute memory locations to them and write specific locations.</p>

<p>dont microcontrollers use their own assembly code?</p>

<p>BTW is C your first language? if so then my hint is instead of looking at the syntax, study more on how pointers/if statements/logic/switch/memory allocation work.</p>

<p>After you got the foundation the syntax would be easy…</p>