Giter VIP home page Giter VIP logo

embedded-system-learning-roadmap's Introduction

Roadmap for learning Embedded System (ES)

1. The Holy C (C programming language, from zero to hero)

Motivation

  • C data types, variable, struct, type casting (char, unsigned, signed, long, double, โ€ฆ)
  • Bit wise operations (AND, OR, XOR, Bit shift)
  • Function
  • POINTER (Pointer arithmetic, Array)
  • Static and Dynamic memory allocation/deallocation (Heap Segmentation, Stack Overflow)
  • Memory structure (Heap, Stack, Text segment, ...)
  • Code design (Header files, Macros)
  • Algorithm and Data structure

Books are pretty good source for learning C/C++ from scratch. C++

2. Embedded C (Nothing but C, except few things)

Depends on what microcontroller you're using

  • Build tools
  • Preprocessor (Macros)
  • Memory layout

I have no available source for these topics. You shoud go into source code or search on internet for that. Sorry :(

3. Basics of electronics

You really need to be careful with electricity to avoid damaging your devices

Look for "why short circuit is dangerous"

  • Voltage, Current, Ohms law
  • Usage of basic passive elements (Resistor, Capacitor, Inductor)
  • Usage of basic active elements (Transistors)

YouTube is a very good teacher.

4. Preparing your development environment

AVR MCUs (microcontroller unit) are fairly simple and has affordable price.

Microchip Studio - IDE for writing, building and programming AVR MCUs

Here's my training combo for AVR Atmega32 MCU.

  • USBasp programmer (also known as khazama) elec.mn
  • Development board (makes life easier) elec.mn
  • AVR Atmega32A - 8 bit MCU Datasheet

mcu-combo

Examples

I'm planning to add some basic example code for programming Atmega32 MCU with circuit diagram. So stay tuned!

5. Dive deeper into MCUs

Almost all MCUs have these peripherals and features, but the implementation is different. So you need something like this. When it comes to programming embedded devices, the reference manual becomes our best friend. There are already a plenty of learning resources on the internet. You just need to search for the specific topic.

  • CPU (Arithmetic logic unit, General purpose registers, SRAM, Program counter)
  • Memory (FLASH memory, EEPROM)
  • Registers
  • GPIO (General Purpose Input Output)
  • ADC (Analog to Digital Converter)
  • DAC (Digital to Analog Converter)
  • Timer (clock)
  • Interrupt

6. Communication

An embedded system really is a system of microchips or MCUs talking to each other and performing some action/computation. Especially the MCUs have a lot of these communication features built in. For example:

  • UART (Universal asynchronous receiver-transmitter)
  • SPI (Serial Peripheral Interface)
  • IIC (Inter-Integrated Circuit) also called I2C

7. Embedded OS (free-RTOS)

Yes. MCUs can have OS (Operating System) like free-RTOS. But unlike Windows or MacOS, the free-RTOS is a light weight open-source OS designed for Embedded devices. These are the topics you would face in learning Embedded OS.

  • Thread (Task)
  • Semaphore (Thread safe, Resource lock)
  • Scheduler (Kernel)

8. Memory management

Just don't use dynamic memory allocation. Joke!
If I said this to some devs. They would k*ll me. Yes dynamic memory allocation is necessary. But the main problem of memory management is DYNAMIC memory allocation. You need to be careful about your memory usage. Specially in embedded world. We have so little space for storing the '\n' a.k.a the NULL character. So you need to collect your garbage by yourself. :)

So that's it for now. This is my road map for learning Embedded system the HARD WAY for beginners.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.