Month: July 2020

SPI Week

This is the week I’m determined to cover the SPI interface. In the process of testing I uncovered an error in the ATmega4809 documentation. The documentation states for the IF Receive Complete Interrupt Flag, “IF is cleared by hardware when executing the corresponding interrupt vector.” This is not true. The flag must be manually cleared …

Timer/Counter Wins

I performed surgery on the Arduino Library. Yes, it is a risky task. I had to modify five source files, but the changes are conditionally compiled. I had previously added another “board” that is the Arduino Nano Every with a 20MHz clock so I could easily select it. Now I’ve gotten rid of the ATMEGA328 …

Timer/Counter Woes

The Arduino Nano Every does its best to mimic the operation of the Arduino Nano even to the point of making it difficult to obtain the best performance of the part. I’ve just been pulling my hairs over this and how they handled the Timer/Counters. The ATmega4809 has two types of Timer/Counters, “A” and “B”. …