3.2.2 Crystal Circuit<br>The crystal circuit uses quartz crystal, and C3 is a quartz crystal capacitor. The larger the crystal capacitor, the faster the reaction speed of its single-chip machine, so the crystal-vibration circuit is called the heart of the microcontroller. When the reaction speed of the crystal circuit is slow, its anti-jamming ability is strong, and its anti-jamming ability is weak when the reaction speed is fast, so the faster the reaction speed is better. The crystal circuit is a reliable, stable and high precision oscillator. The circuit can be externaled to obtain high-precision sine AC, thus forming sine wave oscillations. When a microcontroller works a single controller at a time, it can execute multiple instructions. XTAL1 and XTAL2 are connected to both ends of the quartz capacitor, the capacitor C1 connects xTAL1, the capacitor C2 connects XTAL2 and is grounded, the two capacitors add up to the load capacitor, as shown in the following figure.<br><br>Figure 3.2 Crystal circuit<br>3.2.3 Program Download Circuit<br>The first step of a microcontroller is to write to the program, and the TTL level is used for the microcontroller. The TXD and RXD ports are TTL levels, so the microcontroller converts the input TTL signal into rs232 signal for download or the output RS232 signal into TTL signal transmission.<br>Better proximity to the use of the factory, so the design is adopted. The first adopts a serial interface, connects with the computer system, and the second uses the MAX232 as a transit station function to connect with the microcontroller. The MAX232 is a two-set receiver and drive. Unlike the RS232, the system that provides the electrical signal is converted via the MAX232 chip and transmitted to a microcontroller, and the RS232 can also be converted into the electrical signal required by an external system. The program download circuit is shown in the figure.
正在翻译中..