If EA = 1; is added before the statement TI = 1;, the following warning will appear:
* error 65: access violation at C:0x0023: no 'execute/read' permission
This warning means that the program has run away.
Just put the statement EA = 1; before TI = 1; or put it somewhere else. The error will disappear and the sp value will be normal. See the picture for details.
Other possible reasons for the program running away:
https://blog.csdn.net/wacflp/article/details/67637506
Previous article:MCS-51 MCU external pins and bus interface
Next article:51 MCU learning knowledge points
- 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
- CGD and Qorvo to jointly revolutionize motor control solutions
- CGD and Qorvo to jointly revolutionize motor control solutions
- Keysight Technologies FieldFox handheld analyzer with VDI spread spectrum module to achieve millimeter wave analysis function
- Infineon's PASCO2V15 XENSIV PAS CO2 5V Sensor Now Available at Mouser for Accurate CO2 Level Measurement
- Advanced gameplay, Harting takes your PCB board connection to a new level!
- Advanced gameplay, Harting takes your PCB board connection to a new level!
- A new chapter in Great Wall Motors R&D: solid-state battery technology leads the future
- Naxin Micro provides full-scenario GaN driver IC solutions
- Interpreting Huawei’s new solid-state battery patent, will it challenge CATL in 2030?
- Are pure electric/plug-in hybrid vehicles going crazy? A Chinese company has launched the world's first -40℃ dischargeable hybrid battery that is not afraid of cold
- Fudan Micro FM33xx full series offline burner firmware & host computer
- Award-winning live broadcast: Application of NXP LPC553x in dual motor control is in progress!
- Gaoyun GW1NR-9 FPGA uses video frame buffer and the error "in hclk tree must have constraint" appears
- [NXP Rapid IoT Review] NO1. First experience with NXP Rapid LoT development kit
- MSP430F6638 MCU interrupt, clock and low power consumption
- How to draw this circuit in dxp
- Raspberry Pi PICO and Firefly Jar
- Today is 520. As boys majoring in science and engineering, how do you surprise your significant other?
- A batch of new Bluetooth speakers are sent for free, and you only need to pay the ten yuan shipping fee
- BearPi HM Nano Introduction