翻译MCU relying only on a single chip is not able to finish the work, need to design an…
- User
翻译MCU relying only on a single chip is not able to finish the work, need to design an external circuit, single chip microcomputer system in the design, must be a minimum system circuit design, SCM smallest system includes a clock circuit and reset circuit[13], 51 series MCU internal have a timing control unit, it consists of timing control logic, OSC, oscillator, which is the heart of the controller, the OSC can provide clock pulse, the controller in the pin of MCU, has the XTAL1 and XTAL2 two pins, the external timing feedback loop between the two pins, OSC can self-excited oscillation,The timing feedback loop is composed of quartz crystal oscillator and capacitor. The pulse sequence generated by OSC oscillation is a major indicator of the performance of single chip microcomputer. As shown in Figure 4.1, a crystal oscillator is connected to the outside of the MCU to trigger the internal oscillation to realize the generation of clock signal.
- Assistant
仅依赖于单片芯片的MCU无法完成任务,需要设计外部电路。在单片微型计算机系统的设计中,必须采用最小系统电路设计,51系列MCU内部有一个定时控制单元,它由定时控制逻辑、OSC、振荡器组成,是控制器的核心。OSC可以提供时钟脉冲,在MCU的引脚中具有XTAL1和XTAL2两个引脚,两个引脚之间外部定时反馈环路,OSC可以自激振荡。定时反馈环路由石英晶体振荡器和电容器组成,OSC振荡产生的脉冲序列是单片微型计算机性能的重要指标。如图4.1所示,连接外部晶体振荡器,以触发内部振荡,实现时钟信号的产生。
- User
Is the role of reset circuit MCU initialization, when the program is running, or the system is dysfunctional, then need microcontroller reset, return to normal function[14] , general electric reset on the single-chip microcomputer can be realized, but more trouble, so the reset circuit, reset circuit design as shown in figure 4.2, microcontroller resetport to maintain two machine cycle of high level can realize the reset function.
- Assistant
复位电路的作用是MCU的初始化,当程序正在运行或系统失灵时,需要微控制器复位,以恢复正常功能[14]。通常单片机上都可以实现电气复位,但更为麻烦,因此复位电路的设计如图4.2所示,微控制器复位端口保持两个机器周期的高电平,即可实现复位功能。
- User
4.2 Design of interface circuit of temperature and humidity sensor
- Assistant
4.2 温湿度传感器接口电路设计
The temperature and humidity sensor is a commonly used sensor in many applications. In order to obtain the measurement data of the temperature and humidity sensor, a dedicated interface circuit is required. The design of the interface circuit is shown in Figure 4.3.
The temperature and humidity sensor used in this design is a DHT11 sensor, which is a digital signal output type sensor. The sensor communicates with the single-chip microcomputer through the single-wire serial communication protocol, and the data is transmitted in the form of a signal pulse train. The interface circuit mainly includes a pull-up resistor and a signal processing circuit.