This post was last edited by 骑IC看MCU on 2019-12-18 13:45
This content is originally created by EEWORLD forum user Qi IC Kan MCU . If you want to reprint or use it for commercial purposes, you must obtain the author's consent and indicate the source
Preface: I am very lucky to be able to enter the semiconductor industry, which is full of future and opportunities, and at the same time have a deep exposure to TI 's MCU product MSP430 . Next, I will use a series of articles to describe the performance, advantages, information and usage of MSP430 products.
First, let me introduce TI , a company that integrates high technology and innovation. It was founded in 1930. At the beginning, it was a geological exploration company that used seismic signal processing technology to explore for crude oil. In 1951 , it was officially renamed Texas Instruments . From making the first transistor, to inventing the integrated circuit, to the later DLP technology, digital processor DSP products, ultra-low power MCU MSP430 products, OMAP processors, TI has always innovatively launched products that can influence the world and maintained a leading position in the semiconductor industry. Currently, TI is the world's largest analog semiconductor manufacturer. The company mainly has two businesses: Analog and EP , both of which are in the leading position in the industry.
1. Introduction to MSP430
The MSP430 product was born in 1990 and has a history of 29 years. It has long been highly competitive in the embedded industry with its ultra-low power consumption advantage. Currently, MSP430 products are mainly divided into two types according to storage materials: Flash type and FRAM type.
At present, most MCUs on the market use Flash technology. TI is the only manufacturer that uses FRAM technology to make MCUs . MSP430 has become the only MCU on the market that uses FRAM technology . FRAM has the advantages of high speed and long life of RAM, and also has the non-volatile characteristics of Flash , EEPROM , etc. Compared with Flash , FRAM has the following advantages:
- FRAM can realize single-byte reading and writing, and does not need to be erased before writing data . Flash needs to use chip erasure or even page erasure, and needs to be erased in advance before writing new data.
- The read and write life of FRAM can reach 10 13 times ( 10 trillion times), while the life of Flash is 10 5 times.
- FRAM has low power consumption for reading and writing, but erasing Flash requires a higher voltage, which results in greater power consumption.
- FRAM has fast reading and writing speeds. It takes only 0.00015ms on average to write 1 Byte of data , while Flash takes 0.05ms . EEPROM is even slower, at around 5ms .
Based on these advantages of FRAM , it is more suitable for MSP430, which pursues ultra-low power consumption . In 2012 , the first MCU MSP430FR5739 with FRAM process was launched, and FRAM officially entered the MCU field. With the high performance and ultra-low power consumption of FRAM , subsequent MSP430 products with FRAM process were launched one after another, and currently there are FR2xx/FR4xx, FR5xx/FR6xx series.
The main advantage of MSP430 products is ultra-low power consumption. In order to minimize power consumption while meeting customer needs, MSP430 has multiple modes: LPM0 , LPM2 , LPM3 , LPM4 , LPM3.5 , LPM4.5 . In the LPM4.5 mode with the lowest power consumption, the MCU power consumption is even lowered to 34nA . At the same time, the development of MSP430 focuses on differentiation, integrating various peripherals for various application scenarios of embedded products, such as integrated LCD modules, USB modules, capacitive touch modules, intelligent analog modules, ultrasonic modules, RF modules, wireless communication modules, etc. Users can make reasonable selections according to their needs to reduce the product development cycle and the difficulty of hardware design.
2. Introduction to MSP430 product performance
- Running speed: 8MHz – 25MHz , most MCUs run at a maximum of 16MHz , some products in the F5xxx series of Flash process can run at 25MHz , and FR2355 , FR2353 , FR2155 , FR2153 in FRAM process can run at 24MHz .
- Machine word length: 16 bits.
- Memory: RAM: 0.125KB – 66KB , Flash/FRAM : 0.5KB – 512KB .
- Manufacturing process: Flash and FRAM , MSP430FRxx series all use FRAM process, other series all use Flash process.
- Internal resources: clock CS , timer Timer , SPI/I2C/UART , ADC (up to 24 bits), DAC , watchdog WDT , CRC check, LCD controller, DMA , RTC clock, USB module, MPY32 hardware multiplier, AES accelerator, on-chip memory FRAM/Flash.
- Special Resources:
- CapTIvate module for smart touch : high sensitivity, strong anti-interference ability, GUI programming, simple circuit and stable product.
- USS module for meter products : high-precision flow algorithm, internally integrated ultrasonic emission and sensing module, internally integrated high-performance conditioning circuit, providing GUI programming, simple circuit and stable product.
- SAC (Smart Analog Combination) module for consumer electronics : It integrates multiple levels of high-performance operational amplifiers internally, and can realize free combination and cross-level operational amplifiers through software programming, reducing peripheral analog circuits and increasing system stability.
- RF wireless module for wireless transmission : CC430Fxx series, integrated with CCxx core, one MCU can achieve 1GHz wireless communication, stable signal and simple circuit.
- NFC module for RFID : RF430 series, integrated NFC module, compliant with ISO/IEC 14443B standard, rich reference designs and anti-collision algorithms.
- Package: TSSOP , LQFP , QFN , BGA , etc.
- Supply voltage: 3.3V . Supports 1.8V I/O port ( F52xx series) and 5V I/O port ( F51xx series).
3. MSP430 Software Development Tools
- Code Composer Studio(CCS)
The development software officially provided by TI supports all TI embedded products. The current version has been updated to 9.2.0 . It integrates tools such as Energytrace to facilitate debugging and program downloading. The software interface is as follows:
Software download website: (It is recommended to download a newer version, such as 9.0.1 , but do not download the latest version, as there may be some minor bugs )
http://software-dl.ti.com/ccs/esd/documents/ccs_downloads.html
Select the appropriate version to download and install. After CCS V7 , the software is open to users and no license is required .
IAR is a company that specializes in designing development software for embedded products. It designs its own compiler, so its compilation speed is faster than other development software. However, the number of small function plug-ins integrated internally may be less than CCS . The screenshot of the software interface is as follows:
Software download website: (You can only try it for 30 days without cracking it , and not all functions can be used.)
https://www.iar.com/iar-embedded-workbench/#!?architecture=MSP430
Another less famous development software, free, does not need to be cracked, few people use it in China, so there is less information. The software information and download address are as follows:
http://www.ti.com/tool/ENERGIA?keyMatch=%E2%80%A2ENERGIA&tisearch=Search-EN-everything&usecase=part-number
4. MSP430 Hardware Platform
MSP-FET supports all MSP430 product downloads, and supports two download modes: JTAG and SBW . At the same time, the board integrates a USB to TTL circuit to achieve serial communication between PC and MCU . Specific information website:
http://www.ti.com/tool/MSP-FET?keyMatch=MSP-FET&tisearch=Search-EN-everything&usecase=part-number
The driver is a universal driver, plug and play. If the driver installation fails, you can install it manually. The official driver download website is:
www.ti.com/MSPdrivers
- Hardware platform: Lanuchpad and breadboard
MSP430 products have an official hardware development platform, including Lanuchpad and experimental circuit boards. The following figure shows Lanuchpad , which integrates Ez-FET and can be directly connected to a computer for program download and debugging, making it easy to use. The kidnappers have a corresponding Lanuchpad for each chip , and there will be this type of learning experimental circuit board for each series of characteristic products. If you want to test other chips, you can use the Target-Board format.
Target-Board has different hardware circuit boards for different packages. The following picture shows a TSSOP-20 package, which can be used to test multiple chips with the same package:
For more Lanuchpad information, please refer to:
http://www.ti.com/sitesearch/docs/universalsearch.tsp?searchTerm=MSP-EXP430#q=MSP-EXP430&t=everything&linkId=1
For more Target-Board information, please refer to:
http://www.ti.com/lit/ug/slau278ae/slau278ae.pdf
5. MSP430 program routine:
Website: https://dev.ti.com/
It provides routines for each module of all TI EPs , and supports UniFlash online download, erase program, online CCS , GUI programming, board compatibility detection and other functions. This is an extremely useful website with a rich content of programs, including those for assembly and C language, those that directly operate registers, and those that call library functions. There are also rich program descriptions and API function descriptions.
The URL interface is as follows:
- Code Example below from TI official website
The programs of some products or designed experimental circuit boards will be located below the official website of the corresponding TI products, and will include some important routines and hardware design materials. TI is very selfless. Basically, all hardware designs and software designs are open source code or hardware design materials. Special ones will also open lib files for download for all users to use.
TI MSP430 official website:
http://www.ti.com/microcontrollers/msp430-ultra-low-power-mcus/overview.html