STM32F103C8T6 Bare-Metal Hardware Foundation
Power Domain
A 5 V micro-USB conncetor feeds the MIC5219-3. produces a clean 3.3 V rail. A green indicator LED confirms the rail is alive.
USB 5 V ──► LDO 3.3 V ──► VDD, VDDA
└──► LED (330 Ω → GND)
Clock Tree
The MCU can boot from three sources:
HSI – internal 8 MHz RC, ±1 %
HSE – external 8 MHz crystal, ±20 ppm
PLL – mul ...
Posted on Fri, 28 Aug 2026 16:05:50 +0000 by vtolbert
C++ Code Timing: Using std::chrono, time, and clock
Three common approaches exist for measuring code execution time in C++: the high-resolution chrono library, the traditional time() function, and the clock() function.
High-Resolution Timing with std::chrono
C++11’s chrono library offers precise measurement of elapsed wall-clock time. A typical pattern is:
#include <chrono>
#include <io ...
Posted on Fri, 12 Jun 2026 18:21:41 +0000 by perrij3