During FLASH programming, this pin is used to input programming pulses.
Normally, the ALE terminal outputs a positive pulse signal with a constant frequency period, which is 1/6 of the oscillator frequency. Therefore, it can be used as a pulse for external output or for timing purposes. However, it should be noted that whenever it is used as an external data storage, an ALE pulse will be skipped. If you want to disable the output of ALE, you can set it to 0 at the SFR8EH address. At this time, ALE will only work when executing MOVX, MOVC instructions. In addition, the pin is slightly pulled high. If the microprocessor is in the external execution state ALE is disabled, the setting is invalid.
When accessing external memory, ALE is used as the control signal to latch the lower 8-bit byte of the extended address. When accessing external data memory, ALE outputs a positive pulse at one-twelfth of the oscillation frequency. At the same time, this pin is also the programming pulse input terminal when programming EPROM.
But this pin has another very useful function that is often overlooked by many people, that is, when not accessing external data memory, ALE outputs a fixed positive pulse at one-sixth of the oscillation frequency. One machine cycle of 8051 = 6 state cycles = 12 oscillation cycles. If a 6MHz crystal oscillator is used, ALE will send a fixed positive pulse of 1MHz. Therefore, it can be used as an external clock or timing. If we apply this function to practice, it may simplify our design and reduce production costs.
The ALE pin becomes valid only when using the MOVX and MOVC instructions (these instructions use the address of external RAM or ROM. These instructions have a characteristic: the address and data appear at port P0 in a time-sharing manner). When using C to write a program, to make it valid, you can use the method of accessing the internal RAM address. For example: uVariable = * ((char *) 0x12C), give the content of the 0x12C address to the uVariable variable. The valid pins in this process are ALE and RD.
The signal generation of this signal line is realized by the MCU hardware circuit and cannot be controlled manually.In some MCUs with built-in TOM, the ALE signal output can be turned off to reduce EMI.
Previous article:51 MCU assembly interrupt program
Next article:51 MCU and 74HC164 static display interface
Recommended ReadingLatest update time:2024-11-16 16:00
- Popular Resources
- Popular amplifiers
- MCU C language programming and Proteus simulation technology (Xu Aijun)
- 100 Examples of Microcontroller C Language Applications (with CD-ROM, 3rd Edition) (Wang Huiliang, Wang Dongfeng, Dong Guanqiang)
- Fundamentals and Applications of Single Chip Microcomputers (Edited by Zhang Liguang and Chen Zhongxiao)
- Single chip microcomputer control technology (Li Shuping, Wang Yan, Zhu Yu, Zhang Xiaoyun)
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
- TI-PMLK Boost Experiment Board for TPS55340 and LM5122
- [SC8905 EVM Review] Get the Nanxin Power Board
- 【GD32450I-EVAL】SPI transceiver and touch chip XPT2046 driver and pen interrupt
- Reading Notes on Operational Amplifier Parameter Analysis and LTspice Application Simulation Part 2 - Error Estimation
- 【Beijing】Recruiting embedded (video direction) R&D engineers
- UART interface algorithm transplantation encryption chip debugging skills - communication debugging
- Free sharing video - introduction to common electronic components such as resistors, capacitors and inductors------------The key is free
- MicroPython adds lightsleep() functionality to STM32
- Have you watched "Avengers 4"?
- TI CC2540 USB CDC Serial Port driver installation failure reasons and solutions