In part 1 and part 2 we covered what interrupts are and how to write safe ISRs. Now we tackle one of the most useful and widely used interrupt sources in embedded systems: hardware timers. Timer interrupts are the backbone of almost every real embedded application — from blinking an LED at an exact frequency, […]
Writing Your First ISR — Rules, Pitfalls, and the volatile Keyword
In Part 1 we established what interrupts are and why they exist. Now it is time to write actual interrupt service routines (ISRs) and learn the rules that keep them working correctly. This is where many beginners run into mysterious bugs — code that works fine until an interrupt fires, then behaves unpredictably. Almost always, […]
What Are Interrupts and Why Do They Exist?
This is first part of an intended series about interrupts. If you are just starting out with microcontrollers or microprocessors, you have probably written a simple program that turns an LED on and off, reads a button, or sends some text over a serial port. These programs usually follow a straight line: do this, then […]
RETI Instructions
If you spend enough time writing interrupt service routines in low-level embedded code, one tiny instruction shows up again and again: RETI. On paper it looks simple. It means RETurn from Interrupt. In practice, though, that small instruction exposes deep architectural differences between microcontroller families. On some CPUs RETI is a real instruction with distinct […]
Atomic Sensor Frames: Sending 9-Axis Data with Minimal Skew over Serial
If you have ever worked with inertial measurement units or any other multi-axis sensor, you have probably run into a subtle but important problem: how do you ensure that all nine axis values you read and transmit actually belong to the same moment in time? Let’s see.
Thank you, Mouser and Texas Instruments !
Mailbag today. Guess my surprise when I found this in my mailbox: It’s always nice to receive snail mail. Paper mail. Envelopes, magazines and newspapers. That’s why I try to subscribe to receive printed editions of all magazines of interest for me. Some time ago I signed a promo email from Texas Instruments in cooperation […]
AVRISP mkII
Until recently I have extensively used my MacBook, AVRDude and USBTiny for my μController projects: Now I got myself a proper tool, the AVRISP markII, mostly because I wanted to use AVRStudio 6.0 features: Key features: Programs both flash and EEPROM Supports fuses and lock bit programming Upgradeable for future device support Supports target voltages from […]
Texas Instruments SmartRF Studio Update 1.7.1
SmartRF™ Studio is a Windows application that can be used to evaluate and configure Low Power RF-ICs from Texas Instruments.
RFM12B Command Calculator for Mac
Inspired by this project for RFMB12 and needing a similar one for my Mac, I started to build one myself: Next – a version for iPad. Stay tuned. 😉
Breakout board for RFM12B prototypes
Today I started to complete the design of the RF12B Breakout Board for various prototyping.