ESE101: Three Simple Steps to a Better Microcontroller

Last time, I introduced the microcontroller and its instructions, registers, and memory.

But I didn't talk about where instructions come from. Does the stork bring them? Or are they found in a cabbage patch? You won't believe the truth! (Yes you will.)

Read More

Embedded Software Engineering 101

Chris Svec writes the Embedded Software Engineering 101 column (aka ESE101), focused on how microcontrollers work. For projects, his posts use the TI MSP430 LaunchPad dev kits (specifically the MSP-EXP430F5529LP), though the concepts apply for all embedded platforms. Chris writes about microcontroller basicsmemoryinterrupts, and timers - and more!

Read More

Embedded Software Engineering 101: Microcontroller Basics

We’ll start our Embedded Software Engineering 101 journey with the humble microcontroller. The microcontroller (or microprocessor) is the fundamental building block of all computer systems, embedded or otherwise.

A microcontroller seems quite complicated, but it’s made up of three simple things: instructions, registers, and memory. Instructions are the things a microcontroller knows how to do. A simple microcontroller doesn’t know how to do much - it might only have 20 or 30 instructions. I’ll use the MSP430 microcontroller made by Texas Instruments later in this series, and it has only 27 instructions.

Read More

Embedded Software Engineering 101: Introduction

I’m starting a series to teach embedded software engineering. We’ll start with a description of a basic microcontroller. Once you understand how a microcontroller works we’ll build on that until you’ll understand how a moderately complex embedded system like a Fitbit or Nest works.

I’m calling it Embedded Software Engineering 101, and it starts this week right here on this blog.

Read on for more background and details.

Read More

Introducing the Toys

I'm writing a book about how to learn embedded software concepts by taking apart toys.  This is the first chapter. I hope you enjoy it.

***

I talk to many engineering friends who say they took apart their toys (and everything else). I was not like that. I didn’t know it was possible to take objects apart. I definitely didn’t know how much I could learn. I never imagined how fun it would be.

 

Read More

Cheating On Tests

Have you heard about the VW diesel emissions scandal? The software detects that the car is being tested for emissions and changes the engine to function more cleanly. When not being tested, the vehicles do not meet the US Environmental Protection Agency’s emission requirements.

I’m incensed at this. Oh, not because I own a VW (I don’t) or because I’m an environmentalist (I am). I’m angry because there is an embedded software engineer who wrote this code and allowed it to get released to production.

Read More