After half a day of debugging the magnet phone program, the debugging progress was slow due to some reasons, and the problem was not discovered in time:
1. Keil MDK version problem. When using C8051 debugger for debugging, a window will pop up saying that the simulation mode is set and the code size can only be less than 2K. However, it can be downloaded and burned using download.
Finally I found out that it was the version I chose when I was harmonizing. At first I thought that version 4.6 was too advanced. In fact, it was because when I used the cracking program, I changed the default standard to professional. It may be a cracking problem. After all, it is a professional version, how can it be that easy? Sin, sin.
2. When performing type conversion, pay attention to the big-endian mode of Keil C51. Keil's endian mode is big-endian mode, that is, the high byte is stored in the low address, and the low byte is stored in the high address. So when converting int/long type to char type or storing it in some place and reading it from it and saving it to a variable, you should take this into consideration.
Previous article:DHT21 temperature and humidity sensor use
Next article:AT89S51 Pin Functions
Recommended ReadingLatest update time:2024-11-16 14:57
- Popular Resources
- Popular amplifiers
- 西门子S7-12001500 PLC SCL语言编程从入门到精通 (北岛李工)
- Siemens Motion Control Technology and Engineering Applications (Tongxue, edited by Wu Xiaojun)
- How to read electrical control circuit diagrams (Classic best-selling books on electronics and electrical engineering) (Zheng Fengyi)
- MCU C language programming and Proteus simulation technology (Xu Aijun)
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- Innolux's intelligent steer-by-wire solution makes cars smarter and safer
- 8051 MCU - Parity Check
- How to efficiently balance the sensitivity of tactile sensing interfaces
- What should I do if the servo motor shakes? What causes the servo motor to shake quickly?
- 【Brushless Motor】Analysis of three-phase BLDC motor and sharing of two popular development boards
- Midea Industrial Technology's subsidiaries Clou Electronics and Hekang New Energy jointly appeared at the Munich Battery Energy Storage Exhibition and Solar Energy Exhibition
- Guoxin Sichen | Application of ferroelectric memory PB85RS2MC in power battery management, with a capacity of 2M
- Analysis of common faults of frequency converter
- In a head-on competition with Qualcomm, what kind of cockpit products has Intel come up with?
- Dalian Rongke's all-vanadium liquid flow battery energy storage equipment industrialization project has entered the sprint stage before production
- Allegro MicroSystems Introduces Advanced Magnetic and Inductive Position Sensing Solutions at Electronica 2024
- Car key in the left hand, liveness detection radar in the right hand, UWB is imperative for cars!
- After a decade of rapid development, domestic CIS has entered the market
- Aegis Dagger Battery + Thor EM-i Super Hybrid, Geely New Energy has thrown out two "king bombs"
- A brief discussion on functional safety - fault, error, and failure
- In the smart car 2.0 cycle, these core industry chains are facing major opportunities!
- The United States and Japan are developing new batteries. CATL faces challenges? How should China's new energy battery industry respond?
- Murata launches high-precision 6-axis inertial sensor for automobiles
- Ford patents pre-charge alarm to help save costs and respond to emergencies
- New real-time microcontroller system from Texas Instruments enables smarter processing in automotive and industrial applications
- Analysis of the problem of unstable signal and no output when connected to power on of wireless pressure sensor
- SinlinxA33 Development Board Linux Interrupt Programming 4-Final Code (1)
- Production of msp430g2553 emulator download line
- EEWORLD University Hall ---- Computer Vision Course Tsinghua University Wang Mingzhe
-
EEWORLD University Hall----Live Replay:
takes you to learn about ADI's digital health biosensor series - Switching power supply using microcontroller for loop control
- [Recruitment] Shenzhen foreign companies are urgently recruiting RF antenna engineers, looking forward to your joining
- No more confusion! A guide to choosing a cordless vacuum cleaner
- [Raspberry Pi 3B+ Review] GCC Compiles HelloWorld & Lighting Program
- 【Evaluation of EVAL-M3-TS6-665PN development board】——by landeng1986