Algorithms

Race condition in reading RTC timekeeping registers

Most of you must have used a Real Time Clock (RTC) at some point. RTCs are small ICs that have a separate battery backup and allow you to keep track of time. Typical place where you can expect to see an RTC in action is your computer. They are used...

Jul 11, 2015

Implementing Circular/Ring Buffer in Embedded C

Embedded software often involves state machines, circular buffers and queues. In this article will give you an overview of the data structure and walks you through the steps involved in implementing circular/ring buffers in low memory devices. For those of you who don’t know what a circular buffer is, it...

May 16, 2014