A single-chip microcomputer is a very large-scale integrated circuit, which contains tens of thousands of transistors or field-effect transistors. Therefore, in order for the single-chip microcomputer to operate normally, it is necessary to provide energy for it, that is, to supply power to the transistors or field-effect transistors in the chip so that they can work in the corresponding state.
The PIC16F84 single-chip microcomputer requires a 5V power supply (the actual working voltage is 4.0V to 6.0V). Therefore, the simplest way is to use three 1.5V batteries in series to supply power, or to use rectification and voltage stabilization, as shown in Figure 1. Figure 1-a shows three batteries in series, which can obtain a voltage of about 4.5V; Figure 1-b shows four batteries in series, and a silicon diode is used to reduce the voltage, and the actual output voltage is about 5.4V. Figure 1-c shows that after rectification (the rectifier is not shown in the figure), the AC power of the mains is converted into a DC voltage of 7V to 20V, and then stabilized by the integrated voltage regulator 7805 to obtain a stable +5V voltage. Figure 1-d is similar to Figure 1-c, but instead of an integrated voltage regulator, a cheap voltage regulator diode is used to stabilize the voltage. PIC16F84 consumes only 1mA of power (low clock consumes less power). If PIC is to drive light-emitting diodes (LEDs) or other high-current devices, the microcontroller power supply must also power such devices. Therefore, the circuit in Figure 1-d uses a Zener diode to stabilize the voltage. It cannot drive devices such as LEDs. This should be noted.
In Figure 1, all four power supply circuits require a capacitor of 0.1μF to be connected between pin {14} (V+) of the PIC16F84 microcontroller and the ground. Moreover, this capacitor should be installed close to the microcontroller to filter out the ripple of the power supply and prevent the PIC and adjacent components from being disturbed by noise. It should be emphasized here that this capacitor must be installed no matter how "pure" the power supply is.
Note: In addition to pin {14} (V+ or VDD) of the PIC16F84 microcontroller being directly connected to the power supply, pin 4 (MCLR - reset input pin) is usually also connected to the power supply V+ through a 10kΩ resistor. MCLR is active at low level. If it is grounded, the PIC will be reset and the RAM will be cleared. If the power-on is slow, the PIC may be in an uncertain state. At this time, a normally open reset button should be installed between MCLR and ground.
Like any microprocessor, the operation of PIC16F84 is rhythmic, so a beat generator - clock is needed to control the running speed of the CPU and step through various operations. The maximum clock speed of 16F84-04P becomes 4MHz. Reducing the clock frequency can save energy and slow down the execution speed of PIC. When the clock frequency is 30kHz, it only consumes 0.1mA.
The most commonly used clock circuit of PIC microcontroller is shown in Figure 2. Figure 2-a is a direct input of external clock, that is, the clock signal is generated by an external oscillator circuit. Figure 2-b uses the internal clock circuit of PIC, and then connects the components that determine the clock frequency from the outside, namely resistor R and capacitor C. The figure shows three resistors with different resistance values. When used with a 100pF capacitor, they can generate three different clock frequencies of 1.5MHz, 600kHz or 100kHz. Figure 2-c still uses the PIC microcontroller's internal oscillator circuit, but is connected to an external quartz crystal, thus generating a more accurate and stable clock signal. However, quartz crystals are usually more expensive than resistors and capacitors. If crystals commonly used in televisions (such as 3.58MHz crystals) are used, the price is still relatively low.
Reference address:PIC 8-bit microcontroller power supply and clock
The PIC16F84 single-chip microcomputer requires a 5V power supply (the actual working voltage is 4.0V to 6.0V). Therefore, the simplest way is to use three 1.5V batteries in series to supply power, or to use rectification and voltage stabilization, as shown in Figure 1. Figure 1-a shows three batteries in series, which can obtain a voltage of about 4.5V; Figure 1-b shows four batteries in series, and a silicon diode is used to reduce the voltage, and the actual output voltage is about 5.4V. Figure 1-c shows that after rectification (the rectifier is not shown in the figure), the AC power of the mains is converted into a DC voltage of 7V to 20V, and then stabilized by the integrated voltage regulator 7805 to obtain a stable +5V voltage. Figure 1-d is similar to Figure 1-c, but instead of an integrated voltage regulator, a cheap voltage regulator diode is used to stabilize the voltage. PIC16F84 consumes only 1mA of power (low clock consumes less power). If PIC is to drive light-emitting diodes (LEDs) or other high-current devices, the microcontroller power supply must also power such devices. Therefore, the circuit in Figure 1-d uses a Zener diode to stabilize the voltage. It cannot drive devices such as LEDs. This should be noted.
In Figure 1, all four power supply circuits require a capacitor of 0.1μF to be connected between pin {14} (V+) of the PIC16F84 microcontroller and the ground. Moreover, this capacitor should be installed close to the microcontroller to filter out the ripple of the power supply and prevent the PIC and adjacent components from being disturbed by noise. It should be emphasized here that this capacitor must be installed no matter how "pure" the power supply is.
Note: In addition to pin {14} (V+ or VDD) of the PIC16F84 microcontroller being directly connected to the power supply, pin 4 (MCLR - reset input pin) is usually also connected to the power supply V+ through a 10kΩ resistor. MCLR is active at low level. If it is grounded, the PIC will be reset and the RAM will be cleared. If the power-on is slow, the PIC may be in an uncertain state. At this time, a normally open reset button should be installed between MCLR and ground.
Like any microprocessor, the operation of PIC16F84 is rhythmic, so a beat generator - clock is needed to control the running speed of the CPU and step through various operations. The maximum clock speed of 16F84-04P becomes 4MHz. Reducing the clock frequency can save energy and slow down the execution speed of PIC. When the clock frequency is 30kHz, it only consumes 0.1mA.
The most commonly used clock circuit of PIC microcontroller is shown in Figure 2. Figure 2-a is a direct input of external clock, that is, the clock signal is generated by an external oscillator circuit. Figure 2-b uses the internal clock circuit of PIC, and then connects the components that determine the clock frequency from the outside, namely resistor R and capacitor C. The figure shows three resistors with different resistance values. When used with a 100pF capacitor, they can generate three different clock frequencies of 1.5MHz, 600kHz or 100kHz. Figure 2-c still uses the PIC microcontroller's internal oscillator circuit, but is connected to an external quartz crystal, thus generating a more accurate and stable clock signal. However, quartz crystals are usually more expensive than resistors and capacitors. If crystals commonly used in televisions (such as 3.58MHz crystals) are used, the price is still relatively low.
Previous article:Internal hardware resources of PIC microcontroller 16F84
Next article:Oscillator Configuration Method of PIC Series Microcontroller
- Popular Resources
- Popular amplifiers
Latest Microcontroller Articles
He Limin Column
Microcontroller and Embedded Systems Bible
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
MoreSelected Circuit Diagrams
MorePopular Articles
- 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
MoreDaily News
- 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!
- Rambus Launches Industry's First HBM 4 Controller IP: What Are the Technical Details Behind It?
- 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
Guess you like
- RF Circuit Engineering Design
- What is the role of the pull-up resistor? How to choose the value of the pull-up resistor
- How to obtain additional information of Pingtouge scenario-based Bluetooth MESH
- I have encountered a problem with the iTOP4418 development board. Is there any big guy who can help me?
- FLASH cannot be downloaded
- [GD32E231 DIY Contest] 3. Timer + button (supports long press and short press) + LED
- Harbin in my eyes in 2020
- How to distinguish live wire, neutral wire and ground wire? Is it reliable to distinguish them by color?
- Anxinke NB-IoT module evaluation - sending messages using MQTT
- [Repost] Share some tips on replacing ICs to make PCB circuit design more perfect