Falling in love with C language: storage of integers and floating point types in memory (base conversion, original code, complement, complement and big and small endian)

Author: Ah Hui is extraordinary What do you think: Life is dull, but running is windy Column: Falling in love with C language Drawing tool: draw.io(Free and open source drawing website) If you think the article is helpful to you, please like, follow, and collect to support the blogger. If there are any deficiencies, please […]

Peripheral advanced timer complementary output with dead zone control experiment

Introduction to complementary output with dead zone control, H bridge, channel introduction In this section, we will learn to use the complementary output with dead zone control function of the advanced timer. Friends who are new to this knowledge may ask: What is complementary output? And with dead zone control? What? Let me tell you […]

[Integer data and floating point data] How are they stored in memory? Understanding of original code, inverse code and complement code

Article directory Preface 1. Introduction to data types 2. Storage of integers in memory 2.1 Original code, complement code, complement code 2.2 Little-endian storage and big-endian storage 2.3 Signed data and unsigned data 2.4 Exercise: Determine whether the storage mode of the current machine is big endian or little endian? 3. Reading of integer data […]

STM32F334 series and G474 series HRTIMCubeMax configuration explanation and four-way complementary full bridge

Foreword The main purpose of this article is to introduce the related use and configuration process of HRTIM. Compared with ordinary TIM, the most significant feature of HRTIM is that it can multiply the frequency to a maximum of 32 times. For example, F334 can reach 4.68GHZ and G474 can reach 5.44GHZ. This allows the […]

Bits obey orders: The generation process of complement codes and the storage of integers in computers

Article directory refer to environment statement Eight-bit binary adder Octal value Original code concept Positive and negative numbers and zero Operations with positive and negative numbers reverse code concept a step far complement concept the only zero Addition Advantages and Disadvantages of Complement Code advantage Simplify arithmetic operations Identify positivity and negativity at a glance […]

Memory storage | How to store integer in memory | Original code one’s complement | Big and small endian

Storage of integers in memory There are three representation forms of integers in binary: original code, complement code, and complement code. Positive integer: original code, complement code and complement code are the same Negative integer: original code, complement code, complement code need to be calculated Integers are stored in memory as two’s complement binary sequences. […]

The complement of the original code? Plastic surgery? IEEE 754? Done in one article! –Storage of data in memory (related to group planning)

义艨ic:Personal homepage Everyone may have started school or went to work again. I wish everyone all the best in study and work~ Let’s take a look at this blog~ Article directory Foreword Introduction to variable types Type classification Type size Storage of integers in data Original code, inverse code, complement code Character type Integer promotion […]

Fuzzy complementary judgment matrix: a powerful tool for multi-attribute decision-making and Matlab practice

Fuzzy complementary judgment matrix: a powerful tool for multi-attribute decision-making and Matlab practice Introduction In the real world, we often need to make multi-attribute decisions, and these decisions usually involve various uncertainties and ambiguities. To address these challenges, multi-attribute decision-making methods emerged. This article will conduct an in-depth study of a multi-attribute decision-making method, that […]