Circuit diagram:
Minimum system components:
MCU, reset circuit, crystal oscillator (clock) circuit, power supply
Pins used by the minimum system:
1. Main power pin
VCC: Power input, connected to 5V power supply, pin 40
GND: Ground wire, pin 20
2. External crystal oscillator pins (two pins) generally have no direction
XTAL1: Crystal oscillator input terminal of the on-chip circuit
XTAL2: Crystal oscillator output terminal of the on-chip circuit
The function of the capacitor is to filter out the high-frequency signal of the crystal oscillator to make the crystal oscillator work more stably.
3. Reset pin
RST: Reset pin (high level reset) T = RC
When the power is first turned on, the pin is at a high level (no less than two clock cycles), the microcontroller automatically resets, and executes the program from scratch.
1 state cycle = 2 oscillation cycles; 1 machine cycle = 6 state cycles; 1-4 machine cycles = 1 instruction cycle
Oscillation period = 1/fosc = 1/12MHZ = 0.0833us
4. Other functions
EA: memory selection pin, select internal memory when connected to 5V, select external memory when low level
The MCS-51 series MCU has a total of 128 bytes of RAM, with an address range of 00H~7FH
ROM 4K bytes, address range 0-0FFFH
Previous article:Notes 01 of "8051 MCU C Language Innovation Tutorial"
Next article:init_mempool()
- 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
- Microchip Accelerates Real-Time Edge AI Deployment with NVIDIA Holoscan Platform
- Microchip Accelerates Real-Time Edge AI Deployment with NVIDIA Holoscan Platform
- Melexis launches ultra-low power automotive contactless micro-power switch chip
- Melexis launches ultra-low power automotive contactless micro-power switch chip
- Molex leverages SAP solutions to drive smart supply chain collaboration
- Pickering Launches New Future-Proof PXIe Single-Slot Controller for High-Performance Test and Measurement Applications
- Apple faces class action lawsuit from 40 million UK iCloud users, faces $27.6 billion in claims
- Apple faces class action lawsuit from 40 million UK iCloud users, faces $27.6 billion in claims
- The US asked TSMC to restrict the export of high-end chips, and the Ministry of Commerce responded
- The US asked TSMC to restrict the export of high-end chips, and the Ministry of Commerce responded
- Why do we need to add DAC to the front end of the crystal oscillator?
- Microcontroller delay calculation, for example, the maximum delay time of a 12M crystal oscillator is 2^16=65536 μs, where does this 16 come from...
- Getting Started with Modelsim
- Maintenance method of 18650 lithium battery pack
- Use LGSR-WIFI serial port transparent transmission module as a remote external network online debugging tool to share
- Several considerations for DSP hardware design
- LTspice simulation tutorial——xutong
- How to choose crystal oscillator capacitor for RTC and microcontroller?
- [Exploration of RTOS and Linux controller cycloneDDS communication and encryption protection] Material unpacking STM32F7508-DK+ESP32 S3
- FIFO Experience