Oscilloscope device based on STM32 chip control
By using an STM32-based oscilloscope device, combined with a high-frequency main controller and multi-functional interfaces, a low-cost, high-performance, and diversified oscilloscope function is achieved. This solves the problems of limited functionality of traditional microcontroller development boards and the high cost of professional oscilloscopes, providing an affordable and multi-functional oscilloscope solution.
Patent Information
- Application Number
- CN202520244699.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-17
- Publication Date
- 2025-12-02
- Estimated Expiration
- 2035-02-17
AI Technical Summary
Traditional microcontroller development boards have simple structures and limited functions, making it difficult to meet the needs. Professional oscilloscopes are expensive, and there is a lack of an economical and versatile oscilloscope device.
An oscilloscope device based on the STM32 chip is used, including a main controller, an ADC analog-to-digital converter, an RTC clock external crystal oscillator circuit, an LCD display circuit, and a power supply circuit. By utilizing the high frequency and multi-functional interface of the STM32 chip, combined with capacitor and resistor design, multi-channel signal acquisition and stable power supply are achieved, supporting high-resolution display and real-time waveform display.
It achieves a low-cost, high-performance oscilloscope device with diverse functions, reduced power consumption, improved user experience and system stability, and supports expansion capabilities, making it suitable for learning, teaching and simple applications.
Smart Images

Figure CN223624307U_ABST
Abstract
Description
Technical Field
[0001] This utility model relates to an oscilloscope device based on STM32 chip control, belonging to the field of microcontroller development technology. Background Technology
[0002] An oscilloscope is a widely used electronic measuring instrument, primarily used to observe and analyze the waveform of electrical signals as they change over time. An oscilloscope uses a narrow beam of high-speed electrons to strike a screen coated with a fluorescent material, producing a tiny spot of light. Under the influence of the signal being measured, the electron beam acts like the tip of a pen, tracing the instantaneous change curve of the signal on the screen.
[0003] With the development of modern technology, microcontrollers are becoming increasingly relevant to experimental research. In the process of learning and practicing microcontrollers, it has been found that traditional microcontroller development boards have a simple structure and can only perform a single function, which is difficult to meet the needs. Professional oscilloscopes are too expensive, so a simple waveform display system is very necessary. Utility Model Content
[0004] The purpose of this invention is to provide an oscilloscope device based on STM32 chip control to solve the problems mentioned in the background art.
[0005] To solve the above-mentioned technical problems, the technical solution adopted by this utility model is as follows:
[0006] An oscilloscope device based on STM32 chip control includes: a main controller, multiple ADC analog-to-digital converters, an external RTC clock crystal oscillator circuit, an LCD display circuit, a program download circuit, and a power supply circuit; the main controller is electrically connected to the LCD display circuit, and the input terminal of the main controller is connected to the program download circuit. The ADC analog-to-digital converters are integrated inside the main controller. The power supply circuit is used to power the oscilloscope device, and the external RTC clock crystal oscillator circuit is connected to the internal pins of the main controller.
[0007] The above technical solution utilizes the ARM Cortex-M4 32-bit RISC core. The STM32 chip operates at a frequency of up to 180MHz. The Cortex-M4 core employs single-precision floating-point units, supporting all ARM single-precision data processing instructions and data types. It can implement a full set of DSP instructions and provides a memory protection unit, thereby improving application security.
[0008] A further improvement of this utility model is that: the main controller is a chip with its own peripheral interface LTDC; the number of ADC analog-to-digital converters is set to 12, and the ADC analog-to-digital converters are used to process analog signals.
[0009] The above technical solution supports a resolution of up to 16 bits, and each ADC has multiple external channels and internal channels.
[0010] A further improvement of this utility model's technical solution is that the power supply circuit includes a power supply unit, a voltage regulator, capacitors C80, C81, C82, and C83, a resistor R1, a red LED R2, and a ground wire GND. The power supply unit is connected to the IN pin of the voltage regulator, and capacitors C80 and C82 are connected in parallel and grounded. The SHDN and GND pins of the voltage regulator are grounded, the BP pin is connected in series with capacitor C84 and grounded, the OUT pin outputs voltage, and one end of capacitors C81 and C83 is connected in parallel and grounded, while the other end is connected to the branch of resistor R1 and red LED D1 connected in series.
[0011] Using the above technical solution, capacitors C80 and C82 are used for power supply filtering to remove high-frequency and low-frequency noise. The anode of the red LED D1 is connected to R1, and the cathode is grounded. D1 illuminates when current flows through it. The power supply circuit ensures that the chip can operate stably and reliably. At the same time, the design of this power supply circuit also considers power consumption and efficiency, enabling the entire system to meet performance requirements while minimizing energy consumption.
[0012] A further improvement of this utility model's technical solution is that: the LCD display circuit includes resistors R88, R87, and R37, a second power supply, and a connector; connector pins 39 and 40 are connected to the first power supply, connector pins 37 and 38 are connected to the second power supply, connector pins 5, 36, 41, and 42 are grounded, connector pins 3, 4, 6, and 8-35 are internally connected to the main controller, connector pin 7 is connected to resistor R37, connector pin 2 is connected in series with resistors R87 and R44, connector pin 1 is connected in series with resistors R88 and R45, and the circuit formed by connecting resistors R37, R87, and R44 in series is connected in parallel with the circuit formed by connecting resistors R88 and R45 in series, and then connected to the second power supply.
[0013] Using the above technical solution, the LCD display circuit employs a 5-inch non-touchscreen design. The integration of the LCD display circuit significantly simplifies system design and improves display quality and user experience. The circuit formed by series connection of resistors R37, R87, and R44, and the circuit formed by series connection of resistors R88 and R45, are connected in parallel and then connected to power supply two. This resistor voltage divider circuit design can be used to adjust the power supply voltage or signal level of the LCD display to adapt to different display needs and performance requirements.
[0014] A further improvement of this utility model's technical solution is that the program download circuit includes: a microcontroller; the microcontroller's RST pin is connected to the NRST reset pin, the microcontroller's TCK pin and TMS pin are internally connected to the main controller, the microcontroller's GND pin is grounded, and the microcontroller's NC pin is connected to power supply two.
[0015] In the above technical solution, the RST pin of the microcontroller is connected to the NRST reset pin. This connection ensures that the microcontroller can be reliably reset when needed, thereby improving the reliability and stability of the circuit.
[0016] A further improvement of this utility model is that the external crystal oscillator circuit for the RTC clock includes: a crystal oscillator, capacitor C29, and capacitor C30; capacitor C29 and capacitor C30 are connected in parallel with one end grounded; the other end is connected to the internal pins PC14 and PC15 of the main controller, one end of the crystal oscillator is connected to capacitor C29, and the other end is connected to capacitor C30.
[0017] Using the above technical solution, the crystal oscillator can generate a stable and accurate clock signal. The crystal oscillator is the foundation for the normal operation of the microcontroller, used to synchronize internal operations and control timing. Capacitors C29 and C30 are connected in parallel across the crystal oscillator, serving to stabilize the frequency and initiate oscillation.
[0018] A further improvement of this utility model's technical solution is that the program download circuit also includes a DAP download emulator. The emulator's RST pin is connected to the main controller's NRST pin, the emulator's TCK pin is connected to the main controller's PA14 pin, the emulator's GND pin is connected to the main controller's GND pin, the emulator's TMS pin is connected to the main controller's PA13 pin, the downloader's NC pin is connected to the main controller's power supply pin 2, and the program download circuit is connected to the main controller's PA13, PA14, and NRST pins.
[0019] Using the above technical solution, the connection between the RST pin and the NRST pin of the main controller allows the emulator to reset the main controller when needed, thus facilitating debugging and program reloading. The TCK pin is connected to the PA14 pin of the main controller, and the TCK pin provides the basic clock signal to drive the TAP operation. This connection ensures that the emulator can accurately control the test process of the main controller.
[0020] A further improvement of this utility model is that the external crystal oscillator circuit of the RTC clock is also connected to power supply two, which is used to supply power to the external crystal oscillator circuit of the RTC clock.
[0021] By adopting the above technical solution, the external stable power supply provides a continuous power supply to the external crystal oscillator circuit of the RTC clock, avoiding clock signal distortion or failure caused by power fluctuations or instability. This helps to improve the reliability and stability of the RTC clock in various application scenarios.
[0022] A further improvement of this utility model is that the LCD display circuit also includes: the DISP pin is connected to a pull-up power supply, other control lines are controlled by programming to operate the output level, and data signal lines R0-R7, G0-G7, and B0-B7 are used to display waveforms.
[0023] By using the above-mentioned technical solution of 0-R7, G0-G7, and B0-B7 as data signal lines, rich color information can be transmitted, ensuring that the LCD display can present clear and delicate images. By programming and controlling the level of these signal lines, display parameters such as color and brightness can be precisely adjusted, thereby further improving display quality.
[0024] A further improvement of this utility model is that the main controller transmits data to the LCD display circuit via the ADC analog-to-digital converter, displays the acquired waveform, and displays the time on the LCD.
[0025] By adopting the above technical solution, users can directly see the acquired waveform and time information through the LCD display circuit without the need for additional data reading devices or software, which improves the user-friendliness and interactivity of the system.
[0026] Due to the adoption of the above technical solution, the technological progress achieved by this utility model compared to the prior art is as follows:
[0027] 1. This utility model provides an oscilloscope device based on an STM32 chip. The analog signal level input from the I / O port is precisely converted into a digital signal through the ADC section of the main controller. This digital signal is then efficiently transmitted to a 5-inch display screen and displayed in real time. Simultaneously, the main controller also displays the current time information provided by the RTC module, ensuring the user can always keep track of the accurate time. In practical applications, each circuit module can be precisely controlled through flexible programming to meet diverse functional requirements. Furthermore, the system possesses strong expandability, effectively enabling intelligent control of other external devices and supporting further development and innovation, providing a solid foundation for building more complex and intelligent systems.
[0028] 2. This utility model provides an oscilloscope device controlled by an STM32 chip. Compared to commercial oscilloscopes on the market, the STM32 chip-controlled oscilloscope device can significantly reduce costs, making it an economical choice for learning, teaching, or simple applications. STM32-based oscilloscope devices are typically small in size, easy to carry, and convenient to use in different working environments. The STM32 chip has powerful processing capabilities, enabling real-time processing of acquired signal data and rapid updates of waveforms on the display screen, helping users to understand the circuit's operating status in a timely manner. Attached Figure Description
[0029] The present invention will be further described below with reference to the accompanying drawings.
[0030] Figure 1 This is an overall structural diagram of the oscilloscope device based on STM32 chip control according to this utility model;
[0031] Figure 2 This is a schematic diagram of the main controller of this utility model;
[0032] Figure 3 This is a schematic diagram of the 5V to 3.3V power supply circuit of this utility model;
[0033] Figure 4 This is a schematic diagram of the LCD display circuit of this utility model;
[0034] Figure 5 This is a schematic diagram of the program download circuit of this utility model;
[0035] Figure 6 This is a schematic diagram of the external crystal oscillator circuit for the RTC clock of this utility model. Detailed Implementation
[0036] The present invention will be further described in detail below with reference to embodiments:
[0037] Example 1
[0038] like Figure 1 As shown, this utility model provides an oscilloscope device based on STM32 chip control, including: a main controller, multiple ADC analog-to-digital converters, an external RTC clock crystal oscillator circuit, an LCD display circuit, a program download circuit, and a power supply circuit; the main controller is electrically connected to the LCD display circuit, the main controller is connected to the input terminal of the program download circuit, the ADC analog-to-digital converters are integrated inside the main controller, the power supply circuit is used to power the oscilloscope device, and the external RTC clock crystal oscillator circuit is connected to the internal pins of the main controller.
[0039] In this embodiment, based on the ARM Cortex-M4 32-bit RISC core, the STM32 chip operates at a frequency of up to 180MHz. The Cortex-M4 core uses single-precision floating-point units, supports all ARM single-precision data processing instructions and data types, can implement a full set of DSP instructions, and provides a memory protection unit, thereby improving the security of the application. The STM32 chip also provides various communication interfaces and peripheral devices, which helps in storing data and programs. The ADC analog-to-digital converter is integrated inside the main controller, which greatly simplifies the oscilloscope's hardware design, reduces the number of external components, and thus reduces cost and complexity. The main controller communicates with the control signal output and input terminals through data connections, efficiently processing the digital signals received from the ADC and transmitting them to the LCD display circuit for display. This direct connection method reduces data transmission latency and loss, improving the oscilloscope's real-time performance and accuracy.
[0040] like Figure 2 As shown, the main controller uses the STM32F429IGT6 chip. The STM32F429IGT6 chip has a built-in LTDC peripheral interface for driving the RGB LCD display. The chip has 12 built-in ADC analog-to-digital converters for processing various analog signals.
[0041] In this embodiment, the ADC (Analog-to-Digital Converter) supports a resolution of up to 16 bits, enabling the presentation of clear and smooth images and videos. Each ADC has multiple channels, allowing for the simultaneous acquisition of multiple analog signals. This multi-channel acquisition capability enables the STM32F429IGT6 to monitor multiple sensors or signal sources simultaneously, improving the system's real-time performance and reliability.
[0042] like Figure 3 As shown, the power supply circuit includes power supply one, a voltage regulator, capacitors C80, C81, C82, and C83, resistor R1, red LED R2, and ground wire GND. Power supply one is connected to the IN pin of the voltage regulator, and capacitors C80 and C82 are connected in parallel and grounded. The SHDN and GND pins of the voltage regulator are grounded, the BP pin is connected in series with capacitor C84 and grounded, and the OUT pin outputs the voltage. One end of capacitors C81 and C83 is connected in parallel and grounded, while the other end is connected to the branch of resistor R1 and red LED D1 connected in series.
[0043] In this embodiment, the power supply is 5V. The anode of the red LED D1 is connected to R1, and the cathode is grounded. D1 illuminates when current flows through it. The power supply circuit ensures that the chip can operate stably and reliably. At the same time, the design of this power supply circuit also considers power consumption and efficiency, enabling the entire system to meet performance requirements while minimizing energy consumption.
[0044] A voltage regulator converts an unstable input voltage into a stable output voltage. When the input voltage is too high or too low, the regulator automatically adjusts the output voltage to prevent circuit damage. Furthermore, grounding the SHDN pin enables or disables the regulator, providing additional protection.
[0045] Capacitors C80 and C82 are used for power supply filtering, removing high-frequency and low-frequency noise. They are connected in parallel to ground; this design helps reduce power supply ripple and noise, further improving output voltage stability. Capacitors can store charge and release it when needed, thus smoothing power supply voltage fluctuations.
[0046] Resistor R1 plays a current-limiting protection role in the circuit. It can limit the current passing through the LED and prevent the LED from being damaged due to excessive current.
[0047] like Figure 4 As shown, the LCD display circuit includes resistors R88, R87, and R37, a second power supply, and a connector. Connector pins 39 and 40 are connected to the first power supply, pins 37 and 38 are connected to the second power supply, pins 5, 36, 41, and 42 are grounded, pins 3, 4, 6, and 8-35 are connected to the main controller internally, pin 7 is connected to resistor R37, pin 2 is connected in series with resistors R87 and R44, pin 1 is connected in series with resistors R88 and R45, and the circuit formed by the series connection of resistors R37, R87, and R44 is connected in parallel with the circuit formed by the series connection of resistors R88 and R45, and then connected to the second power supply.
[0048] In this embodiment, power supply one is 5V and power supply two is 3.3V. The integration of the LCD display circuit greatly simplifies the system design and improves the display quality and user experience.
[0049] Dual power supplies are achieved by connecting to power supply one via connector pins 39 and 40, and to power supply two via pins 37 and 38. This design improves power redundancy and stability; even if one power supply fails, the other can continue to supply power, ensuring the normal operation of the LCD display circuit. Connector pins 3, 4, 6, and 8-35 connect to the main controller internally, ensuring close communication and data transmission between the LCD display circuit and the main controller. This facilitates high-speed, accurate data transmission, thereby optimizing the LCD display's display effect and response time.
[0050] The circuit consisting of resistors R37, R87, and R44 connected in series, and resistors R88 and R45 connected in series, are connected in parallel and then connected to power supply two. This resistor voltage divider circuit design can be used to adjust the power supply voltage or signal level of the LCD display to adapt to different display needs and performance requirements.
[0051] like Figure 5 As shown, the program download circuit includes: a microcontroller and a ground wire. The RST pin of the microcontroller is connected to the NRST reset pin, the TCK pin and TMS pin of the microcontroller are connected to the internal main controller, the GND pin of the microcontroller is grounded, and the NC pin of the microcontroller is connected to power supply two.
[0052] In this embodiment, the microcontroller's RST pin is connected to the NRST reset pin. This connection ensures that the microcontroller can reliably reset when needed, thereby improving the circuit's reliability and stability. The microcontroller's TCK and TMS pins are internally connected to the main controller. These two pins are part of the JTAG interface, used for microcontroller debugging and programming. Through the JTAG interface, developers can access the microcontroller's internal registers, memory, and executable code for debugging, programming, and troubleshooting. This connection allows developers to easily debug and program the microcontroller through the main controller, improving development efficiency.
[0053] like Figure 6 As shown, the external crystal oscillator circuit includes: a crystal oscillator, capacitor C29, capacitor C30, and a ground wire. Capacitors C29 and C30 are connected in parallel, with one end grounded and the other end connected to pins PC14 and PC15 inside the main controller. One end of the crystal oscillator is connected to capacitor C29, and the other end is connected to capacitor C30.
[0054] In this embodiment, the crystal oscillator generates a stable and accurate clock signal. The crystal oscillator is fundamental to the normal operation of the microcontroller, used to synchronize internal operations and control timing. Capacitors C29 and C30 are connected in parallel across the crystal oscillator, serving to stabilize the frequency and initiate oscillation. Capacitors store charge and release it when needed, thus helping the crystal oscillator maintain a stable oscillation frequency. This connection method helps reduce frequency drift and phase noise of the crystal oscillator, improving the stability and accuracy of the clock signal.
[0055] A stable clock signal is crucial for the performance of digital circuits. An accurate clock signal provided by an external crystal oscillator ensures precise synchronization of the internal operations of microcontrollers or other digital circuits, thereby improving the overall performance and stability of the system.
[0056] The program download circuit also includes a DAP download emulator. The emulator's RST pin is connected to the main controller's NRST pin, the emulator's TCK pin is connected to the main controller's PA14 pin, the emulator's GND pin is connected to the main controller's GND pin, the emulator's TMS pin is connected to the main controller's PA13 pin, the downloader's NC pin is connected to the main controller's power supply pin 2, and the program download circuit is connected to the main controller's PA13, PA14, and NRST pins.
[0057] In this embodiment, the RST pin is connected to the NRST pin of the main controller, allowing the emulator to reset the main controller when needed, facilitating debugging and program reloading. The TCK pin is connected to the PA14 pin of the main controller; the TCK pin provides the basic clock signal driving the TAP pin operation, ensuring that the emulator can accurately control the test process of the main controller. The GND pin is connected to the GND pin of the main controller; a common ground connection is crucial for ensuring signal integrity and reducing noise interference, providing a stable reference point for more accurate signal transmission. The TMS pin is connected to the PA13 pin of the main controller; the TMS pin controls the transitions of the TAP pin state machine, allowing the emulator to guide the main controller to switch between different test states. The NC pin is off when the circuit is not powered; when connected to the main controller's power supply, it acts as an additional safety mechanism to prevent accidental operation when the power supply is not properly connected.
[0058] The RTC clock external crystal oscillator circuit is also connected to an external stable power supply, which is used to power the RTC clock external crystal oscillator circuit.
[0059] In this embodiment, an external stable power supply provides a continuous power supply to the external crystal oscillator circuit of the RTC clock, avoiding clock signal distortion or failure caused by power fluctuations or instability. This helps to improve the reliability and stability of the RTC clock in various application scenarios.
[0060] The LCD display circuit also includes: the DISP pin is connected to a pull-up power supply, other control lines are controlled by programming to operate the output level, and data signal lines R0-R7, G0-G7, and B0-B7 are used to display waveforms.
[0061] In this embodiment, 0-R7, G0-G7, and B0-B7 serve as data signal lines, capable of transmitting rich color information to ensure the LCD display can present clear and detailed images. By programming and controlling the levels of these signal lines, parameters such as display color and brightness can be precisely adjusted, thereby further improving display quality. Through programming control of display parameters and functions, an energy-saving mode can be implemented, reducing the power consumption of the LCD display circuit. When display is not required, power consumption can be reduced by turning off the DISP pin or other control lines, extending the device's lifespan.
[0062] The ADC signal acquisition line is led out from the main controller. After the ADC analog-to-digital conversion, the main controller transmits the data to the LCD display circuit to display the acquired waveform and the time on the LCD.
[0063] In this embodiment, the user can directly see the acquired waveform and time information through the LCD display circuit without the need for additional data reading devices or software, which improves the user-friendliness and interactivity of the system.
[0064] The working principle of this STM32 chip-based oscilloscope device will be explained in detail below.
[0065] like Figure 1-6 As shown, the STM32-controlled oscilloscope device acquires analog signals through an ADC (Analog-to-Digital Converter) integrated within the main controller, converts them into digital signals, and then the main controller processes these data and drives an RGB LCD screen to display the waveforms in real time via the LTDC (Low-Temperature Diode) peripheral interface. Simultaneously, an external crystal oscillator circuit provides a stable and accurate clock signal to ensure accurate time recording, while the power supply circuit powers the entire device. Furthermore, a program download circuit supports downloading programs to the main controller via a microcontroller or DAP (Digital Apparatus) emulator, facilitating device debugging and upgrades. The entire device interacts with the LCD display circuit and external devices through the control signal input / output terminals of the main controller, thereby completing the waveform acquisition, processing, and display functions.
[0066] The present invention has been described in detail above. However, modifications or improvements can be made to it, which will be obvious to those skilled in the art. Therefore, any modifications or improvements that do not depart from the spirit of the present invention are within the protection scope of the present invention.
Claims
1. An oscilloscope device based on STM32 chip control, comprising: The device comprises a main controller, multiple ADC analog-to-digital converters, an external RTC clock crystal oscillator circuit, an LCD display circuit, a program download circuit, and a power supply circuit; characterized in that: the main controller is electrically connected to the LCD display circuit, the main controller is connected to the input terminal of the program download circuit, the ADC analog-to-digital converters are integrated inside the main controller, the power supply circuit is used to power the oscilloscope device, and the external RTC clock crystal oscillator circuit is electrically connected to the main controller.
2. The oscilloscope device based on STM32 chip control according to claim 1, characterized in that: The main controller is a chip, which is equipped with an external interface LTDC; the number of ADC analog-to-digital converters is set to 12, and the ADC analog-to-digital converters are used to process analog signals.
3. The oscilloscope device based on STM32 chip control according to claim 1, characterized in that: The power supply circuit includes a power supply unit, a voltage regulator, capacitors C80, C81, C82, and C83, a resistor R1, a red LED R2, and a ground wire GND. The power supply unit is connected to the IN pin of the voltage regulator, and capacitors C80 and C82 are connected in parallel and grounded. The SHDN and GND pins of the voltage regulator are grounded, the BP pin is connected in series with capacitor C84 and grounded, the OUT pin outputs the voltage, and capacitors C81 and C83 are connected in parallel, with one end grounded and the other end connected to the branch of resistor R1 and red LED D1 connected in series.
4. The oscilloscope device based on STM32 chip control according to claim 3, characterized in that: The LCD display circuit includes resistors R88, R87, and R37, a second power supply, and a connector. Pins 39 and 40 of the connector are connected to the first power supply, pins 37 and 38 of the connector are connected to the second power supply, pins 5, 36, 41, and 42 of the connector are grounded, pins 3, 4, 6, and 8-35 of the connector are internally connected to the main controller, pin 7 of the connector is connected to resistor R37, pin 2 of the connector is connected in series with resistors R87 and R44, pin 1 of the connector is connected in series with resistors R88 and R45, and the circuit formed by the series connection of resistors R37, R87, and R44 is connected in parallel with the circuit formed by the series connection of resistors R88 and R45, and then connected to the second power supply.
5. An oscilloscope device based on STM32 chip control according to claim 4, characterized in that: The external crystal oscillator circuit for the RTC clock is connected to the second power supply, which is used to supply power to the external crystal oscillator circuit for the RTC clock.
6. An oscilloscope device based on STM32 chip control according to claim 4, characterized in that: The LCD display circuit also includes: the DISP pin is connected to a pull-up power supply, other control lines are controlled by programming to operate the output level, and data signal lines R0-R7, G0-G7, and B0-B7 are used to display waveforms.
7. An oscilloscope device based on STM32 chip control according to claim 4, characterized in that: The program download circuit includes: a microcontroller; the RST pin of the microcontroller is connected to the NRST reset pin, the TCK pin and TMS pin of the microcontroller are internally connected to the main controller, the GND pin of the microcontroller is grounded, and the NC pin of the microcontroller is connected to the power supply.
8. An oscilloscope device based on STM32 chip control according to claim 7, characterized in that: The program download circuit also includes a DAP download emulator. The RST pin of the DAP download emulator is connected to the NRST pin of the main controller. The TCK pin of the DAP download emulator is connected to the PA14 pin of the main controller. The GND pin of the DAP download emulator is connected to the GND pin of the main controller. The TMS pin of the DAP download emulator is connected to the PA13 pin of the main controller. The NC pin of the DAP download emulator is connected to the power supply pin 2 of the main controller. The program download circuit is connected to the PA13, PA14 and NRST pins of the main controller.
9. An oscilloscope device based on STM32 chip control according to claim 1, characterized in that: The external crystal oscillator circuit for the RTC clock includes: a crystal oscillator, capacitor C29, and capacitor C30; capacitor C29 and capacitor C30 are connected in parallel with one end grounded; the other end is connected to pins PC14 and PC15 of the main controller. One end of the crystal oscillator is connected to capacitor C29, and the other end is connected to capacitor C30.
10. An oscilloscope device based on STM32 chip control according to claim 1, characterized in that: The main controller transmits data to the LCD display circuit via the ADC analog-to-digital converter, displays the acquired waveform, and shows the time on the LCD.