Feeding analog voltages to digital microcontroller inputs already got us some interesting effects, but what about leaving an input pin entirely disconnected? All of a sudden microcontrollers become sensitive to the weather outside, and the clothes we wear—or any other source of electrostatic. The easy way to deal with this is to always ensure that […]
While digital inputs on microcontrollers are meant to be fed digital input signals, what will actually happen if we feed them a real world input voltage? And what is a Schmitt Trigger, and what is it good for anyway?
Reading basic digital input with a microcontroller is fairly straightforward—at least as long as you really keep things simple and don’t do some of the advanced stuff following in the next few episodes.
Following up on the previous episode (BIVBlog #46: Bitwise Operators in C (not only) for Microcontrollers) I explain ways to minimize the pain involved with the bitwise operators in C. While none of the shown approaches are perfect, and some are plain counterproductive, there are ways to keep your code easy to understand, modify, debug […]
While bitwise operators are a core feature of the C language for anyone doing low level programming, people who know C mostly from application development sometimes struggle to come to grips with them. This quick primer explains some idioms commonly seen with microcontrollers as well as any other low level C programming.
Part of the fun of playing around with microcontrollers is the actual building of electronic gadgets. The good news is it takes less skills, tools and money to actually get things done than what you need for a full-blown general purpose electronics lab.
As useful as the various pre-made evaluation target boards were to get our microcontroller development toolchain up and running, they are starting to become a burden. Dropping them now, and dealing with everything they have taken care of for ourselves so far, makes a lot of sense in the long run: It gives us more […]
As useful as Makefiles are, a lot of people are mortally afraid of them. Admittedly, their syntax is somewhat quirky, and not knowing in advance in what exact order during execution may seem somewhat disconcerting, but they are an invaluable tool not only in multi-file projects but also whenever you want to compile programs in […]
With the programmer hard- and software taken care of in the previous episode, the last components missing are the compiler suites for the various platforms. Once we’ve taken a look at the GCC variants for the Atmel AVR and Texas Instruments MSP430 and the SDCC for the Microchip PIC families of microcontrollers, our set of […]
In this third episode of the microcontroller tutorial I show how to use the microcontroller programmer hardware and software to install new software on the various microcontrollers.