1 Introduction
Microcontroller (or microcontroller) technology has penetrated into all aspects of life and is widely used in home appliances, communications, testing and other fields. Therefore, this technology is actively affecting people's lives. Here is a test system design based on MSP430 microcontroller. MSP430 series microcontrollers are ultra-low power mixed signal controllers produced by TI. Its flexible clock source selection can maximize battery life. It has a rich set of peripheral modules integrated inside. Different models of this series of microcontrollers are targeted at different application fields.
2 System Design
2.1 Introduction to Storage Test Principle
Storage test technology is a new test method that began in the 1970s. Storage test is a dynamic test technology that places a micro data acquisition and storage tester in the body of the test object under the condition that there is no impact on the test object or the impact is within the allowable range, completes the rapid acquisition and memory of information on site in real time, recovers the recorder afterwards, and processes and reproduces the test information by computer.
2.2 System Working Principle
Figure 1 is a principle block diagram of the test system based on the MSP430 series microcontroller. The test system has a programmable setting function. The trigger signal starts the microcontroller to enter the sampling state and samples the A/D converter data at a certain sampling frequency. The sampling frequency is determined by the timer inside the microcontroller. The sampled data is converted to digital through the 12-bit A/D converter inside the microcontroller and then stored in the memory. When the test system is recovered, it can communicate directly with the computer through the RS232 serial port and store the data in the computer for subsequent processing. When designing the system, factors such as design requirements, performance of the devices used, electromagnetic compatibility, system stability, operability, and work reliability should be fully considered.
3 System Hardware Design
The system hardware design mainly includes sensors, analog adapter circuits, MSP430 microcontroller acquisition, storage units, and interface units. The signal from the sensor enters the A/D converter inside the microcontroller after the analog adapter circuit for conversion, and then the conversion result is stored in the memory by the I/O port of the microcontroller. The serial asynchronous RS232 communication interface is used to read the data. After the test is completed, the data communication, display, processing and other functions are completed through the computer. The power management part is controlled by the microcontroller to supply power to the memory and analog circuit, which can extend the battery life. The use of the A/D converter inside the microcontroller not only reduces the complexity of the system design, but also improves the reliability of the system, thereby avoiding the complexity of the interface design and reducing the PCB board area.
The system and the computer use RS232 serial asynchronous communication. The system uses MAX232 devices to realize the conversion of the microcontroller and computer interface, in which a 0.1μF capacitor is connected to its pins C1+, C1-, C2+, C2-, V+ and V- respectively to achieve charging to meet the corresponding charging pump requirements. Pins T1OUT, T1IN, R1OUT and R1IN are the output and input pins for RS232 conversion transmission and reception, respectively, which can realize the conversion between the TTL level of the microcontroller and the interface level of the host computer. In order to reduce the interference at the input end, a 0.1 μF capacitor is also required to be connected to the power input pin of the device to achieve filtering. MAX232 uses a power supply voltage of 0.3 to 6 V; the levels on the pins R1IN and T1OUT that interface with the computer are ±30 V and ±15 V respectively, and the levels on the pins T1IN and R1OUT that interface with the microcontroller are -0.3 V~ (Vcc is -0.3 V) and 0.3 V~ (Vcc is +0.3 V) respectively. The microcontroller is powered by 3.3 V, so the power supply voltage Vcc of MAX232 is 3.3 V. As shown in Figure 2.
4 System software design
Software design is also an important part of test system design. The general process of software design is: clarify the software design task; divide the program modules according to function and draw a flow chart; select the programming language and program; debug the program. [page]
State design is the process of determining the state organization structure of the storage test system according to the motion law of the object under test. It is the key to realize functional design, the basis of hardware design, and an effective means to establish a basic storage test system. State design can make the design idea clearly run through the design and debugging, and can simplify the originally complex design process to varying degrees.
System state transition: After the system is powered on, the microcontroller is in the state of knowing, waiting for the sampling start signal. At this time, the system is in an ultra-low power state, consuming only about 1μA of current. After the trigger signal arrives, the system starts cyclic sampling. After the sampling is completed and the memory is full of data, it stops sampling and enters the low-power waiting reading state. In the waiting reading state, the reading port is connected. When the I/O port of the microcontroller receives the rising edge sent by the computer, it starts to send data to the computer, that is, first read the data from the memory to the microcontroller, and then send it to the computer by the serial port of the microcontroller. After the sending is completed, it enters the low-power state again. Figure 3 is a system state diagram.
5 Test results
The system test experiment is a 1 Hz sine wave given by the signal generator. After the data acquisition is completed, the reading is shown in Figure 4. The system fully realizes the triggering and sampling process. Figure 4 is a single-channel test waveform obtained through the experiment. The output is completely consistent with the given input signal, which fully demonstrates that this solution is feasible.
6 Conclusion
The test system is designed with MSP430 series microcontrollers, and the 12-bit A/D converter provided inside the MSP430 series microcontrollers is used for data acquisition. This method greatly simplifies the circuit design and can achieve higher accuracy in the measurement results. In addition, due to the ultra-low power design of the MSP430 series microcontrollers, the test system has the characteristics of small size, low power consumption, strong anti-interference ability, and no leads.
Previous article:Design and implementation of in-system programming for general single-chip microcomputer based on serial port
Next article:Research on Photoelectric Detection Based on Single Chip Microcomputer
Recommended ReadingLatest update time:2024-11-16 20:32
- Popular Resources
- Popular amplifiers
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- 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
- 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!
- 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
- New real-time microcontroller system from Texas Instruments enables smarter processing in automotive and industrial applications
- Looking for a solution that can achieve high-speed USB communication with Android phones
- [NXP Rapid IoT Review] + A dazzling first experience
- What kind of long distance wireless transmission equipment is there?
- 【Tuya BK7231N】In-depth analysis of sample code
- The sipeed team will provide developers with free MAXI development boards
- CircuitPython-enabled electronic cat (MeowMeow)
- Research on Several Issues of Portable Image Acquisition System Based on ARM and FPGA
- Please give me some advice!
- Analysis of the switch input circuit composed of four diodes
- Analysis of common problems in TMS320C2000 projects?