The 51 microcontroller is a chip with n registers inside and n pins on the outside. Since there are many types of 51 microcontroller series, the specific number of registers and pins depends on the specific model. Generally speaking, when making products, the principle is to use enough.
The microcontroller is a digital device, so its pins have only two states, namely high and low levels. For a 5V microcontroller, the high level is 5V and the low level is 0V; for a 3.3V microcontroller, the high level is 3.3V and the low level is 0V. Flat is 0V. That is, the high-level voltage is equal to the power supply voltage. Some microcontrollers integrate a DAC function, that is, a digital-to-analog converter, a module that converts digital quantities into analog quantities. The DAC output pin of a microcontroller with a DAC function can output any voltage value between 0 and the power supply voltage. Some microcontrollers have an integrated ADC function that can convert any voltage value between 0 and the power supply voltage connected to the pin into a digital quantity and store it in the internal register of the microcontroller.
The microcontroller relies on the changes in its own pin level to control the work of the chips around it to form a product. So Ration said, no matter what microcontroller, as long as you learn to control the level of its pins, you have learned half of it. For example, a microcontroller controls the conduction and cutoff of a transistor through the high and low pins. The microcontroller and the EEPROM data storage chip at24c16 form a permanent power-off data storage system that does not lose data.
The single-chip microcomputer controls the transistor conduction by using the high and low level changes of the pin. The single-chip computer controls the at24c16 data storage, which is also realized by using the high and low level changes of the pin. It just uses the at24c16 communication protocol.
The microcontroller controls external chips and generally uses specific communication protocols. Serial protocols include I2C, SPI, UART, etc., and parallel protocols include 8-bit, 16-bit, etc. Don't be intimidated by these technical terms, they are actually quite simple.
Previous article:Design based on HX711 digital display weighing instrument
Next article:Design of intelligent traffic lights based on real-time operating system RTX51 and AT89C52 microcontroller
- 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
- 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
- Brief Analysis of Automotive Ethernet Test Content and Test Methods
- How haptic technology can enhance driving safety
- Let’s talk about the “Three Musketeers” of radar in autonomous driving
- Why software-defined vehicles transform cars from tools into living spaces
- How Lucid is overtaking Tesla with smaller motors
- Wi-Fi 8 specification is on the way: 2.4/5/6GHz triple-band operation
- Wi-Fi 8 specification is on the way: 2.4/5/6GHz triple-band operation
- Request information
- If you don’t know much about LDO, please take this information!
- Can anyone understand and help me with the PDF of the digital-analog chip WM8766?
- How to get the most out of your low noise amplifier solution?
- How should the output uo of this transistor circuit be calculated?
- 【CH579M-R1】+Serial communication and music playback of MP3 module
- Providing antenna flexibility and high performance for mid-range and high-end smartphones
- Answer questions to win JD.com cards | "Portfolio of ON Semiconductor and Avnet IoT Innovation Design Competition"
- Pre-registration for the September 23rd live broadcast with prizes | Nexperia’s efficient ESD solutions for connected car applications
- What is this resistor for?