PIC series microcontrollers can work in different oscillator modes. Users can choose one of the following four oscillation modes according to the needs of their system design. The oscillation frequency range is between DC and 20/25MHz.
Users can choose one of the four oscillation modes shown in Table 1 according to different application scenarios (this selection is also required when using a PIC programmer) to obtain the best performance-price ratio. Among them, the LP oscillator mode can reduce system power consumption, and the RC oscillator mode can save costs.
When creating a PIC source program, its oscillator mode is determined by bits D1 and D0 of the configuration register CONFIG, as shown in Table 2.
1. Internal crystal oscillator/ceramic oscillator
In the three modes of LP, XT and HS, a quartz crystal or ceramic resonator needs to be connected to both ends of the microcontroller pins OSC1/CLKIN and OSC2/CLKOUT. As shown in Figure 1, only in the HS mode is it necessary to add a resistor Rs (100Ω < Rs < 1kΩ) to the oscillation circuit.
2. External clock source or external crystal oscillator
In the three oscillator modes of LP, XT and HS, various PIC series microcontroller chips can use either the internal oscillator or the external input clock source or external crystal oscillator. If an external clock source or external crystal oscillator is used, the external oscillator output can be connected to the OSC1/CLKIN pin of the chip, and the OSC2/CLKOUT pin can be open. Figure 2 shows the form of an external clock source, and the external crystal independent oscillator is similar to Figure 2.
3. External RC Oscillator
RC oscillators are mainly used in situations where time accuracy requirements are not too high.
The RC oscillator is a series resistor and capacitor connected to the OSC1/CLKIN pin, as shown in Figure 3. The manufacturer recommends that the resistor Rext value be between 5kΩ and 100kΩ. When Rext is less than 2.2kΩ, the oscillator may become unstable or stop oscillating; when Rext is greater than 1MΩ, the oscillator is susceptible to interference. The oscillation frequency fosc generated by the RC oscillator is divided by the internal 4-divider circuit and then output from OSC2/CLKOUT as a fosc/4 oscillation signal. This signal can be used as a test or synchronization signal for other logic circuits.
Previous article:Design of AD conversion using PIC microcontroller
Next article:Design of Multi-channel AD Switching Program for PIC Microcontroller
- Popular Resources
- Popular amplifiers
- Naxin Micro and Xinxian jointly launched the NS800RT series of real-time control MCUs
- How to learn embedded systems based on ARM platform
- Summary of jffs2_scan_eraseblock issues
- Application of SPCOMM Control in Serial Communication of Delphi7.0
- Using TComm component to realize serial communication in Delphi environment
- Bar chart code for embedded development practices
- Embedded Development Learning (10)
- Embedded Development Learning (8)
- Embedded Development Learning (6)
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- Intel promotes AI with multi-dimensional efforts in technology, application, and ecology
- ChinaJoy Qualcomm Snapdragon Theme Pavilion takes you to experience the new changes in digital entertainment in the 5G era
- Infineon's latest generation IGBT technology platform enables precise control of speed and position
- Two test methods for LED lighting life
- Don't Let Lightning Induced Surges Scare You
- Application of brushless motor controller ML4425/4426
- Easy identification of LED power supply quality
- World's first integrated photovoltaic solar system completed in Israel
- Sliding window mean filter for avr microcontroller AD conversion
- What does call mean in the detailed explanation of ABB robot programming instructions?
- "Cross-chip" quantum entanglement helps build more powerful quantum computing capabilities
- Ultrasound patch can continuously and noninvasively monitor blood pressure
- Ultrasound patch can continuously and noninvasively monitor blood pressure
- Europe's three largest chip giants re-examine their supply chains
- Europe's three largest chip giants re-examine their supply chains
- Breaking through the intelligent competition, Changan Automobile opens the "God's perspective"
- The world's first fully digital chassis, looking forward to the debut of the U7 PHEV and EV versions
- Design of automotive LIN communication simulator based on Renesas MCU
- When will solid-state batteries become popular?
- Adding solid-state batteries, CATL wants to continue to be the "King of Ning"
- Thank you, Moderator! I will ask Moderator for advice (6)
- Collected actual circuit diagrams (communication circuits)
- Development data of National Technology N32G455
- What is IoT
- Experience the whole process of replacing the screen protector for Nokia 8800
- [SC8905 EVM Review] + Found an error in the User Guide
- Goodbye 2019, Hello 2020+Summarize the past and look forward to the future
- [RVB2601 Creative Application Development] User Experience 09 -- YoC Event
- V850E/Dx3: Next-generation 32-bit automotive instrument cluster microcontroller family
- What communication technology is needed for the interactive transmission of RFID information?