Versuchen GOLD - Frei
Understanding MCU Timing
Circuit Cellar
|December 2025
What Actually Happens Inside That Chip?
What happens between your source code and the low-level machine code in your MCU is not usually obvious. In this article, Stuart investigates that disconnect.
Most of the time when we work with an MCU, we design the hardware, write and debug the software, and then we're done. Long ago, when I started out in this industry, it wasn't uncommon to use assembly language. I wrote assembly code for both MCU and DSP designs. But it didn't take long for languages like C and C++ to replace assembly. Higher level languages provide a lot of benefits: type checking, memory management, simpler code, code that's easier to maintain, and at least some abstraction from the underlying hardware. There are C and C++ compilers for most MCUs, both free tools from the manufacturers and commercially available tools. But one thing you give up with a higher-level language is a connection between the source code and the related timing.
When I was in college, many years ago, I took about every programming course available, including COBOL (that tells you how far back that was, assuming you're old enough to even know what COBOL was). We were programming on an IBM 360 mainframe computer, and I discovered there was a compiler switch that would show you the underlying assembly code generated by the compiler. The printout (no interactive terminals, at least not for this class) would show you the line of COBOL code and then the underlying assembler statements. COBOL provides a high level of abstraction, so a single COBOL statement can produce many lines of assembly code. I turned in an assignment that way; what would have been a single page of COBOL statements was many pages of assembly code. The grader gave me 100 on the assignment but added a note: “Don’t ever do this again.” At that age, I thought it was humorous. The grader obviously did not.
Diese Geschichte stammt aus der December 2025-Ausgabe von Circuit Cellar.
Abonnieren Sie Magzter GOLD, um auf Tausende kuratierter Premium-Geschichten und über 9.000 Zeitschriften und Zeitungen zuzugreifen.
Sie sind bereits Abonnent? Anmelden
WEITERE GESCHICHTEN VON Circuit Cellar
Circuit Cellar
Saelig Introduces Economical AIM-TTI ATG1005 5MHz Function Generator
Saelig Co., Inc. announces the AIM-TTI ATG1005 Touchscreen Function Generator, which uses advanced Direct Digital Synthesis (DDS) technology to deliver high-quality, low-distortion Sine, Square, and Pulse waveforms to 5MHz, and triangle waveforms to 500kHz.
1 mins
January 2026
Circuit Cellar
The Future of Edge AI Ultra-Low Power Edge AI
The Case for Intelligence at the Source
3 mins
January 2026
Circuit Cellar
IR Images Come to Your Cellphone
In this article Brian uses a Melexis MLX90640 IR camera module coupled to an ESP32 controller. He streams the image data to a web browser running on a cell phone, tablet, or computer, eliminating the need for a dedicated color LCD. Together, this makes for a very low-price IR camera.
20 mins
January 2026
Circuit Cellar
STMicroelectronics' Intelligent Power Switch Automatically Adjusts to Handle Inrush Current
STMicroelectronics' IPS1050LQ low-side switch IC provides flexible overcurrent protection, including a static mode with fixed, programmable current limit and a dynamic mode that safely handles high inrush current.
1 min
January 2026
Circuit Cellar
Nordic Semiconductor Unveils nRF54LV10A - Breakthrough Low-Voltage Bluetooth LE SOC for Next-Gen Healthcare Wearables
Nordic Semiconductor, a global leader in low-power wireless connectivity solutions, launches the nRF54LV10A SoC, setting a new benchmark for integration, performance, and battery life in the smallest medical devices.
2 mins
January 2026
Circuit Cellar
SemiQ Expands 1200V Gen3 SiC MOSFET Line with Launch of 7.4, 14.5, and 34m2 SOT-227 Modules
SemiQ Inc, a designer, developer, and global supplier of superior silicon carbide (SiC) solutions for ultra-efficient, high- performance, and high-voltage applications, has expanded its family of 1200V Gen3 SiC MOSFETs, launching five SOT- 227 modules that offer RDSon values of 7.4, 14.5, and 34mΩ.
1 min
January 2026
Circuit Cellar
Datasheet: Power Quality Monitoring Watching the Peaks and Valleys
Systems for Monitoring Power Quality for Homes and Industry
2 mins
January 2026
Circuit Cellar
Build a Miniature Greenhouse for Hydroponic and Potted Plants
Automated Monitoring with a Raspberry Pi 4B
10 mins
January 2026
Circuit Cellar
The Pulse of Innovation 600
The Rise of Wearable Technology
18 mins
January 2026
Circuit Cellar
Build a Smart Energy Meter to Track Home Power Use
Using an ESP32 Dev Kit and PZEM-004T Energy Sensor Module
12 mins
January 2026
Listen
Translate
Change font size
