1. The big-endian mode
means that the high byte of the data is stored in the low address of the memory,
and the low byte of the data is stored in the high address of the memory.
This storage mode is a bit similar to treating the data as a string sequence:
the address increases from small to large, and the data is placed from high to low;
this is consistent with our reading habits.
For example,
declare a 32-bit variable
with high address 0-7 bits
|/ 8-15 bits |
/ 16-23 bits
and low address 24-31 bits.
2. The little-endian mode
means that the high byte of the data is stored in the high address of the memory,
and the low byte of the data is stored in the low address of the memory.
This storage mode effectively combines the high and low addresses with the weight of the data bits.
The high address part has a high weight, and the low address part has a low weight.
For example,
declare a 32-bit variable
with low address 0-7 bits
|/ 8-15 bits
|/ 16-23 bits
and high address 24-31 bits.
The storage mode of STM32 microcontroller is little endian mode
Previous article:Analysis of STM32 big-endian and small-endian order and stack and its growth direction
Next article:About the stack alignment problem in ARM system
- Popular Resources
- Popular amplifiers
- Learn ARM development(16)
- Learn ARM development(17)
- Learn ARM development(18)
- Embedded system debugging simulation tool
- A small question that has been bothering me recently has finally been solved~~
- Learn ARM development (1)
- Learn ARM development (2)
- Learn ARM development (4)
- Learn ARM development (6)
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- LED chemical incompatibility test to see which chemicals LEDs can be used with
- Application of ARM9 hardware coprocessor on WinCE embedded motherboard
- What are the key points for selecting rotor flowmeter?
- LM317 high power charger circuit
- A brief analysis of Embest's application and development of embedded medical devices
- Single-phase RC protection circuit
- stm32 PVD programmable voltage monitor
- Introduction and measurement of edge trigger and level trigger of 51 single chip microcomputer
- Improved design of Linux system software shell protection technology
- What to do if the ABB robot protection device stops
- Analysis of the application of several common contact parts in high-voltage connectors of new energy vehicles
- Wiring harness durability test and contact voltage drop test method
- From probes to power supplies, Tektronix is leading the way in comprehensive innovation in power electronics testing
- From probes to power supplies, Tektronix is leading the way in comprehensive innovation in power electronics testing
- Sn-doped CuO nanostructure-based ethanol gas sensor for real-time drunk driving detection in vehicles
- Design considerations for automotive battery wiring harness
- Do you know all the various motors commonly used in automotive electronics?
- What are the functions of the Internet of Vehicles? What are the uses and benefits of the Internet of Vehicles?
- Power Inverter - A critical safety system for electric vehicles
- Analysis of the information security mechanism of AUTOSAR, the automotive embedded software framework
- PWM input capture, problem of selecting trigger source
- 4.2V to 50V
- Introduction to RF Gain Blocks for Radio Range and Reliability
- How to choose pliers, terminals, wires, and heat shrink tubing for DuPont cables?
- Talk about the "obstacles" on the road to power supply upgrade
- How to do switch detection in TWS headset design
- FAQ|Littelfuse Live: How to improve the safety and reliability of smart building electronic equipment in the era of the Internet of Things
- How to measure the output ripple of a single-phase inverter with an oscilloscope
- No color difference splicing screen
- Analysis of optimization methods for overcrowded solder joints in PCB design