Blog

Arduino Delay function

May 10th 2018

So a while back I was debugging some code and found the processor stuck in a while loop.  I had a simple time out system in the code, like:to=1000; //wait up to 1 second while(!flag && t … read more

Atmel Register Synchronization bits

May 10th 2018

For some of the peripherals in the Atmel Cortex processors, like the SAMD21 and SAMD20 there are some configuration registers that require synchronization.  Specifically these peripherals can run … read more

How good is the firmware?

May 5th 2018

When organizations can not answer how good the firmware needs to be they will often ask how good is the firmware?  How many bugs are in the firmware?  What is the quality of the firmware?So … read more

When is firmware good enough?

May 5th 2018

The question came up recently about when is firmware good enough to ship a product? This can be a difficult question but ultimately boils down to your product's tolerance for failures. For exampl … read more

Registers Bit Fields

May 1st 2018

So I was writing a interrupt driven UART driver and found that my receiver interrupts were being turned off.  Thanks to the wonderful GNU MCU Eclipse plugin, https://gnu-mcu-eclipse.github.i … read more