Embedded C Language: Cohesion and Coupling

1 Principles Low coupling refers to making modules as independent as possible. While it is impossible for modules to have no connections, the interfaces between modules should be minimal and simple. Thus, high cohesion from the internal characteristics of each module in the entire program, and low coupling from the relationships between various modules in … Read more

Oscilloscope Settings for Power Ripple Testing: Why Choose 20MHz Bandwidth and AC Coupling?

In the process of power supply design and debugging, ripple testing is a critical step in assessing power quality. Many engineers set their oscilloscopes to a bandwidth limit of 20MHz and AC coupling mode during ripple testing. This is not a random choice, but rather based on profound technical considerations. This article will delve into … Read more

Modular Programming Concepts in Embedded C

Modular Programming Concepts in Embedded C

Modular Programming Concepts Modular programming is a programming method that breaks down a program into independent, reusable modules. Each module implements a specific function, and modules interact through clearly defined interfaces. This concept helps improve the maintainability, readability, and scalability of the code. Preprocessing, Compilation, Assembly, Linking Preprocessing: Processes preprocessor directives in the source code, … Read more

Oscilloscope: DC Coupling for DC Measurements, AC Coupling for AC Measurements?

Oscilloscope: DC Coupling for DC Measurements, AC Coupling for AC Measurements?

1. Core Differences Between DC Coupling and AC Coupling 1. DC Coupling Operating Principle: The signal (including both DC and AC components) is directly input to the oscilloscope without filtering. Characteristics: Completely retains the DC offset of the signal (such as static voltage) and AC fluctuations (such as ripple). Displays absolute voltage values (e.g., 5V … Read more