Application of MSP430 microcontroller in test system

Publisher:sjp5035022Latest update time:2011-12-09 Keywords:MSP430 Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

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.

Keywords:MSP430 Reference address:Application of MSP430 microcontroller in test system

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

msp430G2553 clock selection and frequency division program
The clock selection and frequency division procedures of the msp430G2553 microcontroller are as follows: #include "msp430G2553.h" #define unchar unsigned char #define uint unsigned int uint Fre;   int main( void ) {   // Stop watchdog timer to prevent time out reset   WDTCTL = WDTPW + WDTHOLD;   BCSCTL2 |=SELM_1+D
[Microcontroller]
Microcontroller manages power sequencing and control
    With the rapid popularity of dual-voltage architectures and multiprocessor boards, even simple applications may require several processor voltage rails. Since each processor has its own power-up and power-down requirements, power rail sequencing and control becomes a complex task. The challenge for the power supp
[Microcontroller]
Microcontroller manages power sequencing and control
Design of WSN node based on MSP430 and NRF2401
0 Introduction Wireless sensor network (WSN) is a self-organizing network, which consists of a large number of low-cost, resource-limited sensor node devices, and the nodes work together to achieve a specific task. Due to the characteristics of easy expansion, self-organization, distributed structure and real-time pe
[Industrial Control]
Design of WSN node based on MSP430 and NRF2401
The Making of MSP430 Encryption Fuse Burner
introduction  The MSP430 series microcontroller is a 16-bit ultra-low power microcontroller launched by Texas Instruments (TI). It can operate at 1.8~3.6V voltage and 1MHz frequency, and the power consumption is 0.1~400μA. In terms of operation speed, the MSP430 series microcontroller can achieve a 125ns instruction c
[Microcontroller]
The Making of MSP430 Encryption Fuse Burner
MSP430 Learning Notes
1.        Base types supported by MSP430 In the C language of MSP430, three base types are supported, namely decimal (no prefix or suffix), octal (add prefix "0") and hexadecimal (add prefix "0x"). What makes the craftsman depressed is that the compiler does not support binary writing! ? This makes the craftsman who
[Microcontroller]
Ultra-low power electronic thermometer solution based on MSP430F
  1 Component Selection   The temperature sensor of this system can be a thermistor. In the measurement range of 10 to 30°C, the resistance of this device varies greatly with temperature, the circuit is simple, the power consumption is low, the installation size is small, and the price is also low. However, the accura
[Microcontroller]
Ultra-low power electronic thermometer solution based on MSP430F
Design of multifunctional test instrument based on MSP430F149
With the development of society and the popularization of electronic instruments, the original large-volume, high-power-consumption and single-function instruments have gradually developed into handheld low-power multi-purpose instruments. TI is a leader in the design and manufacture of low-power chips. This product is
[Microcontroller]
Methods to Improve the Flash Erasing Life of MSP430G MCU
In embedded design, many application designs need to use EEPROM to store non-volatile data. Due to cost reasons, some microcontrollers do not have EEPROM integrated inside the chip. The MSP430G series processors are low-cost 16-bit processors launched by TI. There is no EEPROM in the MSP430G series microcontrollers. I
[Microcontroller]
Methods to Improve the Flash Erasing Life of MSP430G MCU
Latest Microcontroller Articles
  • Download from the Internet--ARM Getting Started Notes
    A brief introduction: From today on, the ARM notebook of the rookie is open, and it can be regarded as a place to store these notes. Why publish it? Maybe you are interested in it. In fact, the reason for these notes is ...
  • Learn ARM development(22)
    Turning off and on interrupts Interrupts are an efficient dialogue mechanism, but sometimes you don't want to interrupt the program while it is running. For example, when you are printing something, the program suddenly interrupts and another ...
  • Learn ARM development(21)
    First, declare the task pointer, because it will be used later. Task pointer volatile TASK_TCB* volatile g_pCurrentTask = NULL;volatile TASK_TCB* vol ...
  • Learn ARM development(20)
    With the previous Tick interrupt, the basic task switching conditions are ready. However, this "easterly" is also difficult to understand. Only through continuous practice can we understand it. ...
  • Learn ARM development(19)
    After many days of hard work, I finally got the interrupt working. But in order to allow RTOS to use timer interrupts, what kind of interrupts can be implemented in S3C44B0? There are two methods in S3C44B0. ...
  • Learn ARM development(14)
  • Learn ARM development(15)
  • Learn ARM development(16)
  • Learn ARM development(17)
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号