Texas Instruments MSP430 User Manual
Texas Instruments MSP430 User Manual

Texas Instruments MSP430 User Manual

Microcontroller serial programming adapter
Hide thumbs Also See for MSP430:

Advertisement

MSP430™ Microcontroller Serial Programming Adapter
This document describes how to use the MSP430™ Microcontroller Serial Programming Adapter
(MSP430-PRGS430). Instructions include how to install the software and hardware for the programmer
and how to use the programmer to read to and write from MSP MCUs.
1
1.1
1.2
.....................................................................................................................
2
2.1
2.2
2.3
2.4
....................................................................................................................
3
3.1
.................................................................................................................
3.2
3.3
3.4
3.5
3.6
3.7
4
4.1
4.2
..................................................................................................................
5
1
2
3
4
5
6
7
.....................................................................................................................
8
9
10
11
12
13
14
Intel-Hex Object Format
15
16
SLAU048I - August 2000 - Revised October 2018
Submit Documentation Feedback
Contents
.......................................................................................................
..............................................................................................
.............................................................................................
..........................................................................................
.......................................................................................
......................................................................................................
...............................................................................
.........................................................................................................
..........................................................................................
................................................................................................
List of Figures
.....................................................................................................
...............................................................................................
............................................................................................
.........................................................................................
..................................................................................................
...............................................................................
...............................................................................................
.................................................................................
.............................................................................................
...................................................................................................
........................................................................................................
........................................................................................................
Copyright © 2000-2018, Texas Instruments Incorporated
SLAU048I - August 2000 - Revised October 2018
..............................................
..................................................................
.............................................................
..................................................................
.......................................................................
..................................................
MSP430™ Microcontroller Serial Programming Adapter
User's Guide
........................
.....................................
.....................................
3
3
3
5
5
6
11
14
26
26
26
27
29
29
30
31
32
32
33
33
3
4
5
6
9
9
9
9
27
27
29
30
31
32
34
35
1

Advertisement

Table of Contents
loading

Summary of Contents for Texas Instruments MSP430

  • Page 1: Table Of Contents

    MSP430™ Microcontroller Serial Programming Adapter This document describes how to use the MSP430™ Microcontroller Serial Programming Adapter (MSP430-PRGS430). Instructions include how to install the software and hardware for the programmer and how to use the programmer to read to and write from MSP MCUs.
  • Page 2 Target Connector Signal Functions ..................Programming Adapter Signal Levels Trademarks MSP430 is a trademark of Texas Instruments. All other trademarks are the property of their respective owners. MSP430™ Microcontroller Serial Programming Adapter SLAU048I – August 2000 – Revised October 2018 Submit Documentation Feedback Copyright ©...
  • Page 3: Installation And Setup

    LED does not illuminate and the power supply is properly connected, check the F1 fuse on the programming adapter printed-wire board (PWB). 4. Connect the MSP430 MCUs, in a socket or on a PWB, to the programming adapter through the 14-pin cable.
  • Page 4: Serial Programming Adapter

    Installation and Setup www.ti.com Figure 2. Serial Programming Adapter MSP430™ Microcontroller Serial Programming Adapter SLAU048I – August 2000 – Revised October 2018 Submit Documentation Feedback Copyright © 2000–2018, Texas Instruments Incorporated...
  • Page 5: Operation

    Operation www.ti.com Operation This section describes the programming procedure for MSP430 MCUs and the error messages you may encounter during the procedure. Software and Hardware Layers of the PRGS430 Environment Figure 3 shows the layers of the environment and the communication options.
  • Page 6: Programming Msp430 Devices With The Gui

    To program the MSP430 MCUs: 1. Click the Program Device icon during the installation-selected program group (default: ADT430). The MSP430 programmer dialog box appears. The status line at the bottom of the window shows the actual or the most recent activity (see Figure 4).
  • Page 7: Msp430 Function Buttons And Descriptions

    Description of the MSP-PRGS430 GUI To program an MSP430 MCU: 1. Select the file that contains the data to program from the MSP430 programmer dialog box (see Figure 2. Select the device. An error message appears on the screen if the device selected is different or not connected.
  • Page 8 Read the memory locations selected by the range field and store the data in the file By range selected in the file name field. The reset of a MSP430 can be performed in two ways. After reset, the MSP430 may remain under JTAG control or can be released to operate normally and execute the program.
  • Page 9: Communication Error Box

    Error Messages One of the following messages may show if JTAG communication is not established correctly: • If the MSP430 MCU to program can not be found, the message shown in Figure 5 appears. This problem can be caused by the PRGS430 not being connected to the hardware, the device not inserted or incorrectly inserted into the socket, or the device not powered.
  • Page 10: Error Messages

    LastResult = 0 → If the program is called with command-line parameter, the error code that is returned to the system when exiting the program is also stored here. MSP430™ Microcontroller Serial Programming Adapter SLAU048I – August 2000 – Revised October 2018 Submit Documentation Feedback Copyright ©...
  • Page 11: Command Line Options

    Selects supply voltage MSP_VCC of the programming adapter. The voltage is supplied between GND /SVolt:x.x and MSP VCC, for example, /Svolt: 3.0. SLAU048I – August 2000 – Revised October 2018 MSP430™ Microcontroller Serial Programming Adapter Submit Documentation Feedback Copyright © 2000–2018, Texas Instruments Incorporated...
  • Page 12 The programming adapter is connected to ComPort 2. The baud rate is not passed with the command line, so the setting in the PRGS430.ini file is used. MSP430™ Microcontroller Serial Programming Adapter SLAU048I – August 2000 – Revised October 2018 Submit Documentation Feedback Copyright ©...
  • Page 13 Error at target address (during erase check or verify) Unknown command line option Command line option out of valid range Filename mismatch Error in device.cfg SLAU048I – August 2000 – Revised October 2018 MSP430™ Microcontroller Serial Programming Adapter Submit Documentation Feedback Copyright © 2000–2018, Texas Instruments Incorporated...
  • Page 14: Prgs430.Dll Description

    Operation www.ti.com PRGS430.DLL Description The PRGS430.dll is used to communicate with the MSP-PRGS430 hardware and the connected MSP430 MCU. The initialization of the PRGS430 should be done with this sequence: InitCom SetDeviceType SetVCC . InitTarget ..ReleaseTarget ReleaseCom Several examples showing how the DLL could be used are located in the DLL_Usage_Examples folder of the PRGS430 system.
  • Page 15 Example lFuncReturn = Erase(long:0xF000, long:0x1000, long:1) For some MSP430 family members (for example, MSP430F2xxx devices) portions of flash information memory are factory preprogrammed with calibration data. Depending on which method is used for erasing the flash memory, this calibration data may be erased. Should the calibration data be conserved, it must be read prior to the information memory erase or a flash erase method that does not affect the calibration data memory locations must be used.
  • Page 16 Example lFuncReturn = EraseFile("text.txt", long:0, long:0, NULL) For some MSP430 family members, for example MSP430F2xxx devices, portions of flash information memory are factory preprogrammed with calibration data. Depending on which method is used for erasing the flash memory, this calibration data may be erased. Should the calibration data be conserved, it must be read prior to the information memory erase or a flash erase method that does not affect the calibration data memory locations must be used.
  • Page 17 The function returns success or the first address with mismatching data. Example lFuncReturn = VerifyData(long:0xF000, long:0x1000, void* lpData) SLAU048I – August 2000 – Revised October 2018 MSP430™ Microcontroller Serial Programming Adapter Submit Documentation Feedback Copyright © 2000–2018, Texas Instruments Incorporated...
  • Page 18 The function returns success or the first address with mismatching data. Example lFuncReturn = VerifyFileRange("test.txt", long:0, long:0xF000, long:0x1000) MSP430™ Microcontroller Serial Programming Adapter SLAU048I – August 2000 – Revised October 2018 Submit Documentation Feedback Copyright © 2000–2018, Texas Instruments Incorporated...
  • Page 19 2.4.14 /FN0014/ ProgramData This function writes data into an MSP430 MCU. Protection of ranges of memory locations defined in the DEVICE.CFG file can be disabled by setting the DISABLE_TI_MEM_PROTECT−Bit in Flags. long int ProgramData(long int wStart, long int wLength, void* lpData) wStart Start address of the range that is to be erased.
  • Page 20 2.4.15 /FN0015/ ProgramFile This function writes data from the file to the MSP430 MCU. The protection of ranges of memory locations defined in the DEVICE.CFG file can be disabled by setting the DISABLE_TI_MEM_PROTECT−Bit in Flags. If the PGM_WITH_ERASE option are not selected the program data is preserved. This means that the data is read from the flash and replaced with the new data.
  • Page 21 Sets the VCC_MSP voltage of the programming adapter to the given value. long int SetVcc(long int iVoltage) iVoltage VCC in mV (for example, 3000 = 3 V) The voltage range is limited to the voltage allowed for the selected MSP430 MCU. Example lFuncReturn = SetVcc(Long:3000) 2.4.18 /FN0018/ ReadOutData Reads data from the device and writes it to the buffer.
  • Page 22 RST_NMI 0x02 WITH_RELEASE 0x04 Reset | PUC means that the JTAG sends the command to the MSP430. Reset | RST_NMI performs a reset through the RST/NMI pin of the MSP430 MCU. The JTAG is also reset. If the WITH_RELEASE option is selected, the device is released from the JTAG access after the reset.
  • Page 23: Setnotificationwnd Status Codes

    Erase checking target STATUS_PATTERNCHECK Pattern checking target STATUS_VERIFY Verifying target STATUS_PROGRAM Programming target STATUS_READOUT Reading target out STATUS_BLOWFUSE Blowing fuse SLAU048I – August 2000 – Revised October 2018 MSP430™ Microcontroller Serial Programming Adapter Submit Documentation Feedback Copyright © 2000–2018, Texas Instruments Incorporated...
  • Page 24 DEVICE_VFUSE (0x0C): GetDeviceCfgInfo() returns the blow-fuse setting for the selected device; lpBuf and InfoIdx are ignored. 2.4.23 /FN0024/ AccessSFR This function writes or reads data into the special function registers of the MSP430 MCU. (implemented in PRGS320.dll versions 1.05 and higher). long int AccessSFR(LONG wAddr, void *IpData, LONG iFlags); wAddr SFR address that should be accessed.
  • Page 25: Return Values And Error Codes

    Pattern checking target STATUS_VERIFY Verifying target STATUS_PROGRAM Programming target STATUS_READOUT Reading out target STATUS_BLOWFUSE Blowing fuse ERR_READOUT_LOCKED −28 Read prohibited SLAU048I – August 2000 – Revised October 2018 MSP430™ Microcontroller Serial Programming Adapter Submit Documentation Feedback Copyright © 2000–2018, Texas Instruments Incorporated...
  • Page 26: Hardware

    Hints These hints are useful for programming MSP430 MCUs or MSP430 MCUs on printed-wire boards (PWB). • All VCC pins of an MSP430 MCU are tied together and connected to the most positive terminal of the supply. • All VSS pins of an MSP430 MCU are tied together and connected to the most negative terminal of the supply.
  • Page 27: Programming Adapter Target Connector Signals

    Hardware www.ti.com Programming Adapter Target Connector Signals The target connector signals for the programming adapter ensure communication between the programming adapter and MSP430 MCUs and supply low energy to systems without extra supply sources. Figure 9 Figure 10 show the target connector signals for the programming adapter.
  • Page 28: Target Connector Signal Functions

    The programming procedure (handling of the SW) is described in Chapters 1 and 2 of this manual. • The connections from the MSP430 terminals must follow EMI rules, such as short lines and ground planes. If TMS line receives one negative pulse by EMI strike, the fuse current is activated (with fuse version 1.0).
  • Page 29: Msp-Prgs430 Circuit Diagrams

    NOTE: Do not use J2 pin 9 as RST/NMI pullup. Figure 11. MSP-PRGS430 Components SLAU048I – August 2000 – Revised October 2018 MSP430™ Microcontroller Serial Programming Adapter Submit Documentation Feedback Copyright © 2000–2018, Texas Instruments Incorporated...
  • Page 30: Interconnection Of Msp-Prgs430 To Otp Or Eprom-Based Msp430 Devices

    Figure 12. MSP-PRGS430 Used to Program OTP or EPROM-Based MSP430 Devices The RST/NMI terminal on the MSP430 MCU has to be held high by an external resistor during access of the device through JTAG. In a noisy environment, consider using an additional capacitor from RST/NMI to VSS.
  • Page 31: Interconnection Of Msp-Prgs430 To Flash-Based Msp430 Devices

    The circuit diagram in Figure 13 shows the connections required to program flash-based MSP430 MCUs (MSP430Fxxx) with the MSP-PRGS430 programming adapter. Consult the device data sheet for the specific device location of the power supply and JTAG pins. Ensure that all positive and negative power supply pins are connected together.
  • Page 32: Hex Object Format

    Record type 01, the end-of-file record, also begins with the colon (:) start character. The colon is followed by the byte count, address, record type (01), and sumcheck. Figure 14. Intel-Hex Object Format MSP430™ Microcontroller Serial Programming Adapter SLAU048I – August 2000 – Revised October 2018 Submit Documentation Feedback...
  • Page 33: Ti-Txt File Format

    The termination tag q indicates end-of-file is mandatory. Schematics This following figures show the schematic diagrams for the serial programming adapter. SLAU048I – August 2000 – Revised October 2018 MSP430™ Microcontroller Serial Programming Adapter Submit Documentation Feedback Copyright © 2000–2018, Texas Instruments Incorporated...
  • Page 34 Schematics www.ti.com Figure 15. Schematics (1 of 2) MSP430™ Microcontroller Serial Programming Adapter SLAU048I – August 2000 – Revised October 2018 Submit Documentation Feedback Copyright © 2000–2018, Texas Instruments Incorporated...
  • Page 35: Schematics (2 Of 2)

    Schematics www.ti.com Figure 16. Schematics (2 of 2) SLAU048I – August 2000 – Revised October 2018 MSP430™ Microcontroller Serial Programming Adapter Submit Documentation Feedback Copyright © 2000–2018, Texas Instruments Incorporated...
  • Page 36 NOTE: Page numbers for previous revisions may differ from page numbers in the current version. Changes from July 27, 2009 to October 8, 2018 ......................Page ................• Formatting and editorial changes throughout document Revision History SLAU048I – August 2000 – Revised October 2018 Submit Documentation Feedback Copyright © 2000–2018, Texas Instruments Incorporated...
  • Page 37 STANDARD TERMS FOR EVALUATION MODULES Delivery: TI delivers TI evaluation boards, kits, or modules, including any accompanying demonstration software, components, and/or documentation which may be provided together or separately (collectively, an “EVM” or “EVMs”) to the User (“User”) in accordance with the terms set forth herein.
  • Page 38 FCC Interference Statement for Class B EVM devices NOTE: This equipment has been tested and found to comply with the limits for a Class B digital device, pursuant to part 15 of the FCC Rules. These limits are designed to provide reasonable protection against harmful interference in a residential installation.
  • Page 39 【無線電波を送信する製品の開発キットをお使いになる際の注意事項】 開発キットの中には技術基準適合証明を受けて いないものがあります。 技術適合証明を受けていないもののご使用に際しては、電波法遵守のため、以下のいずれかの 措置を取っていただく必要がありますのでご注意ください。 1. 電波法施行規則第6条第1項第1号に基づく平成18年3月28日総務省告示第173号で定められた電波暗室等の試験設備でご使用 いただく。 2. 実験局の免許を取得後ご使用いただく。 3. 技術基準適合証明を取得後ご使用いただく。 なお、本製品は、上記の「ご使用にあたっての注意」を譲渡先、移転先に通知しない限り、譲渡、移転できないものとします。 上記を遵守頂けない場合は、電波法の罰則が適用される可能性があることをご留意ください。 日本テキサス・イ ンスツルメンツ株式会社 東京都新宿区西新宿6丁目24番1号 西新宿三井ビル 3.3.3 Notice for EVMs for Power Line Communication: Please see http://www.tij.co.jp/lsds/ti_ja/general/eStore/notice_02.page 電力線搬送波通信についての開発キットをお使いになる際の注意事項については、次のところをご覧ください。http:/ /www.tij.co.jp/lsds/ti_ja/general/eStore/notice_02.page 3.4 European Union 3.4.1 For EVMs subject to EU Directive 2014/30/EU (Electromagnetic Compatibility Directive): This is a class A product intended for use in environments other than domestic environments that are connected to a low-voltage power-supply network that supplies buildings used for domestic purposes.
  • Page 40 Notwithstanding the foregoing, any judgment may be enforced in any United States or foreign court, and TI may seek injunctive relief in any United States or foreign court. Mailing Address: Texas Instruments, Post Office Box 655303, Dallas, Texas 75265 Copyright © 2018, Texas Instruments Incorporated...
  • Page 41 TI products. TI’s provision of these resources does not expand or otherwise alter TI’s applicable warranties or warranty disclaimers for TI products. Mailing Address: Texas Instruments, Post Office Box 655303, Dallas, Texas 75265 Copyright © 2018, Texas Instruments Incorporated...

Table of Contents