The SAMD21 microcontroller in the more recent Arduino board designs had a clock/calendar built-in. It’s one of the operating modes of the Real-Time Counter. There are counter fields fields for seconds, minutes, hours, (optional AM/PM), days, months, and years. However the year field is only 6 bits, allowing for only 64 years starting at a …
I’ve neglected blogging because I really don’t have any progress to show. I’ve been dealing with sketchy and possibly wrong documentation so have been tediously testing out each feature figuring out exactly what is needed and what is not needed to get things to work. The net result should be that the next book (on …
A friend of mine, David Sparks, is using a SAMD based board (a Seeedstudio XIAO) to be a real time clock. You can see his project here: https://github.com/IowaDave/SAMD21-RTC-Clock. The SAMD has a Real Time Counter which can be configured as a Real Time Clock (RTC=RTC!) eliminating the need for a second component. However when run …
The SAMD21 has 7 clock sources. Each clock source can drive one or more of the nine Generic Clock Generators. The generic clock generators have a programmable clock divider, and each of the 37 peripheral clocks can be fed from one of the clock generators. This is a somewhat formidable mess. The Arduino boards that …
I’ve touted the Arduino Nano Every and the Arduino Nano 33 IoT as the two best buys in the Arduino lineup, and that they should be preferred when appropriate to the application. But why are these such good deals? First, they are both in the “Nano” form factor. This smaller board is less expensive to …
As I’ve been going far inside the SAMD21 Arduino boards, I’ve realized the main distinction of the ARM-core SAMD21 compared to the AVR architecture ATMega microcontrollers, and indeed to other microcontrollers I’ve used in the past. The ARM-core microcontrollers are actually a two part design. There is the ARM designed processor core, and the vendor …
Like most of the AVR-based Arduino boards, there is a bootloader program resident on the SAMD boards (Arduino Zero, Arduino Nano 33 IoT, and the Arduino MKR series) to handle the loading of programs (AKA “Scripts”) via the USB-serial port. This program can erase and write into the Flash ROM in the microcontroller, and start …
Catchy title, and the answer is certainly “yes” because of generally better price/performance and that people like newer designs. But let’s back off a little. Currently the lowest price genuine Arduino (not clone) board is the Arduino Nano Every. It’s less than half the price of the traditional Arduino Uno, and can replace the Uno …
While one usually thinks “ATmega328” when presented with “Arduino”, and that microcontroller does represent the highest volume of boards, more models use the SAMD21G18 microcontroller than any other. That’s 11 of 23 different Arduino boards. So having finished the 37 Sensors book, and taken some time off for other things, I am back to writing. …
I’ve previously shown that the SAMD21 is slower than the ATMega328P when accessing GPIO ports, however it does have a major advantage performing arithmetic. There’s quite an advantage to a 32-bit processor over an 8-bit processor. I was also interested in seeing the performance impact of using floating point, which is done in software on …