Hi, could you recommend me an embedded C book or course?, a time ago I read a book about C but was not oriented to embedded (I work with microcontrollers)
Hi, could you recommend me an embedded C book or course?, a time ago I read a book about C but was not oriented to embedded (I work with microcontrollers)
My colleague and I wrote an online book about C coding for microcontrollers: embeetle.com/
I looked at your link but I didn't spot anything with special relevance to micro controllers - did I miss something ?
MK
It is specifically written for microcontrollers. Some chapters focus on the language itself, other chapters dive into how that applies on microcontrollers.
Please give an actual example of "other chapters dive into how that applies on microcontrollers" - I couldn't find any tutorial material that discusses embedded or micro controller programming in C.
The kind of thing I would expect is, for example, an explanation of how you force an 8 bit read of a hardware register that supports 8 or 16 bit reads with different behaviour.
But I couldn't find anything other than a very generalised C "manual" and a lot of lists of processors and boards.
There isn't an index - but I couldn't find an explanation of the volatile keyword in the section on variables.
MK
The index can be found if you scroll down on this page:
https://embeetle.com/#embedded-dev/c-tutorial
Here are sections that are specifically aimed at microcontrollers:
Variables => RAM Memory (see https://embeetle.com/#embedded-dev/c-tutorial/variables)
Structures => Bit Fields (see https://embeetle.com/#embedded-dev/c-tutorial/structures/bit-fields , also discusses the volatile keyword)
Unions => Use Case: SFR Register Mapping (see https://embeetle.com/#embedded-dev/c-tutorial/unions)
You're right that the course material is more focused on the C language itself. Nevertheless, it's still aimed at microcontrollers.
The index can be found if you scroll down on this page:
https://embeetle.com/#embedded-dev/c-tutorial
Here are sections that are specifically aimed at microcontrollers:
Variables => RAM Memory (see https://embeetle.com/#embedded-dev/c-tutorial/variables)
Structures => Bit Fields (see https://embeetle.com/#embedded-dev/c-tutorial/structures/bit-fields , also discusses the volatile keyword)
Unions => Use Case: SFR Register Mapping (see https://embeetle.com/#embedded-dev/c-tutorial/unions)
You're right that the course material is more focused on the C language itself. Nevertheless, it's still aimed at microcontrollers.