The following is the LED pull-up resistor test I have done
Test conditions:
VCC=4.96V, φ3 green LED.
The anode of the diode is connected to VCC, and the cathode is grounded through RL.
No larger resistance test was performed because the internal resistance of my multimeter voltage range is 10M.
RL VLED VRL Current Brightness
----------------------------
1K 1.93V 3.03V 3mA Very bright5K
1.82V 3.14V 0.6mA Relatively bright100K
1.66V 3.30V 33uA Slightly bright3.3M
1.51V 3.45V 1.0uA Not bright10M
1.42V 3.45V 0.3uA Not bright
----------------------------
From the above tests, it can be seen that even when the light-emitting diode has a very small current, the voltage drop of the LED is very obvious. This is also in line with the characteristic curve of the light-emitting diode.
Therefore, if the internal resistance of the next stage driven by the light-emitting diode is relatively small (less than 10M), then its output must be around 3V.
Of course, if the pre-stage driver circuit used has an internal pull-up (such as the 100uA pull-up in PCF8574T, P1 or P2, P3 port of 51, etc.), it is another matter. So I said that if it is used in this way, it is best to connect a 10K resistor in parallel.
The output drive of the single-chip microcomputer is divided into two modes: high-level drive and low-level drive. The so-called high-level drive is the driving ability when the port outputs a high level, and the so-called low-level drive is the driving ability when the port outputs a low level. When the single-chip microcomputer outputs a high level, its driving ability is actually driven by the pull-up resistor of the *port. The actual test shows that the pull-up resistor of the 51 single-chip microcomputer is about 330K, that is to say, if the *high-level drive is used, it is essentially the *330K pull-up resistor that provides current. Of course, the current is very small, so small that it is difficult for the light-emitting diode to light up. If you want to ensure that the LED light-emitting diode emits light normally, you must An external pull-up resistor of about 1K is fine if it is just one LED, but if there are 10 or 20 LEDs, you will need to connect 10 or 20 1K pull-up resistors. Connecting the resistors themselves is fine, but the problem is that after connecting the pull-up resistors, whenever the port becomes a low level 0, 10 or 20 pull-up resistors will be turned on uselessly. Assuming that the current of each resistor is 5mA, 20 resistors are 100mA, which will cause a serious drop in power supply efficiency, resulting in heat and increased ripple, which will cause the microcontroller to work unstable. Therefore, few people use high-level direct drive LEDs. High-level drive LEDs are actually common cathode. Low-level drive is different. When the port is at a low level of 0, the switch tube inside the port is turned on, which can drive a driving current of up to more than 30 mA, and can directly drive loads such as LEDs. When the port is at a low level of 0, although the internal pull-up resistor also consumes current, since the internal pull-up resistor is very large, 330K, the current consumption is extremely small, which basically does not affect the power efficiency and does not cause a large amount of useless consumption. Therefore, the 51 single-chip microcomputer cannot use a high level to directly drive the LED light-emitting tube, but can only use the ground level to directly drive the LED, that is, it can only use a common anode digital tube, but cannot directly use a common cathode digital tube.
Previous article:Design of fuzzy control system for growing selenium melon in greenhouse
Next article:I2C bus driver (C51 language source program)
Recommended ReadingLatest update time:2024-11-16 14:31
- Popular Resources
- Popular amplifiers
- Wireless Sensor Network Technology and Applications (Edited by Mou Si, Yin Hong, and Su Xing)
- Modern Electronic Technology Training Course (Edited by Yao Youfeng)
- Modern arc welding power supply and its control
- Small AC Servo Motor Control Circuit Design (by Masaru Ishijima; translated by Xue Liang and Zhu Jianjun, by Masaru Ishijima, Xue Liang, and Zhu Jianjun)
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
- The difference between bit rate, baud rate and data transmission rate
- *** error 65: access violation at 0x1F0004E8 : no 'read' permission
- MSP430
- STLM20DD9F Analog Temperature Sensor Data
- IoT introductory example based on MQTT message communication: realizing Wi-Fi remote temperature and humidity collection, control and network clock
- I have some spare time, welcome to taste
- Why can't I find any errors in multisim simulation and why can't I run it to get any results?
- Share: Questions about bq25895 Vbus input
- EEWORLD University - Motor Enlightenment Series Tutorials
- Visual operation makes sound more intuitive