background image

 
 

 

 

MSP-FET430 FLASH Emulation Tool (FET) 
(

For use with IAR Workbench Version 3.x) 

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

2004  

SLAU138A 

 

Mixed Signal 

 

Products

 

U

s

e

r ' s

 

G

u

i d

e

 User's Guide 

Summary of Contents for MSP-FET430

Page 1: ...MSP FET430 FLASH Emulation Tool FET For use with IAR Workbench Version 3 x 2004 SLAU138A Mixed Signal Products U s e r s G u i d e User s Guide ...

Page 2: ... design TI does not warrant or represent that any license either express or implied is granted under any patent right copyright mask work right or other intellectual property right of TI covering or relating to any combination machine or process in which such products or services might be or are used TI s publication of information regarding any third party s products or services does not constitu...

Page 3: ......

Page 4: ...July 2004 U s e r s G u i d e ...

Page 5: ...pment software systems For details of these items refer to the appropriate TI and IAR documents listed in Chapter 1 9 Important MSP430 Documents on the CD ROM and WEB This manual is applicable to the following tools and devices MSP FET430X110 for the MSP430F11xIDW MSP430F11x1AIDW and MSP430F11x2IDW devices MSP FET430P120 for the MSP430F12xIDW and MSP430F12x2IDW devices MSP FET430P140 for the MSP43...

Page 6: ...on From Texas Instruments MSP430xxxx Device Data Sheets MSP430x1xx Family User s Guide SLAU049 MSP430x3xx Family User s Guide SLAU012 MSP430x4xx Family User s Guide SLAU056 This is an example of a caution statement A caution statement describes a situation that could potentially damage your software or equipment This is an example of a warning statement A warning statement describes a situation th...

Page 7: ...ckstart from IAR Please consult the extensive documentation provided with Kickstart before requesting assistance FCC Warning This equipment is intended for use in a laboratory test environment only It generates uses and can radiate radio frequency energy and has not been tested for compliance with the limits of computing devices pursuant to subpart J of part 15 of FCC rules which are designed to p...

Page 8: ...vi ...

Page 9: ...Important MSP430 Documents on the CD ROM and WEB 1 6 Development Flow 2 1 2 1 Overview 2 2 2 2 Using Kickstart 2 2 2 2 1 Project Settings 2 3 2 2 2 Creating a Project from Scratch 2 5 2 2 3 Using an Existing IAR V1 x V2 x Project 2 6 2 2 4 Stack Management within the xcl Files 2 6 2 2 5 How to Generate Texas Instrument TXT and other format Files 2 7 2 2 6 Overview of Example Programs 2 7 2 3 Using...

Page 10: ... 3 C 1 13 EMULATOR SECURE C 3 C 1 14 EMULATOR GIE on off C 4 C 1 15 EMULATOR LEAVE TARGET RUNNING C 4 C 1 16 EMULATOR FORCE SINGLE STEPPING C 4 C 1 17 EMULATOR SET VCC C 4 80 pin MSP430F44x and MSP430F43x Device Emulation D 1 TI to IAR 2 x 3 x Assembler Migration E 1 E 1 Segment Control E 2 E 2 Translating Asm430 Assembler Directives to A430 Directives E 2 E 2 1 Introduction E 2 E 2 2 Character st...

Page 11: ...e PCB Pictorials Rev 1 0 B 9 Figure B 9 MSP TS430PM64 Target Socket module Schematic Rev 1 1 B 10 Figure B 10 MSP TS430PM64 Target Socket module PCB Pictorials Rev 1 1 B 11 Figure B 11 MSP TSPN80 Target Socket module Schematic B 13 Figure B 12 MSP TSPN80 Target Socket module PCB Pictorials B 14 Figure B 13 MSP TSPZ100 Target Socket module Schematic B 15 Figure B 14 MSP TSPZ100 Target Socket module...

Page 12: ......

Page 13: ...it Contents MSP FET430X110 1 2 1 2 Kit Contents MSP FET430Pxx0 P120 P140 P410 P430 P440 1 2 1 3 Kit Contents MSP FET430UIF 1 3 1 4 Software Installation 1 3 1 5 Hardware Installation MSP FET430X110 1 3 1 6 Hardware Installation MSP FET430Pxx0 P120 P140 P410 P430 P440 1 4 1 7 Hardware Installation USB IF MSP FET430UIF 1 4 1 8 Flash ing the LED 1 4 1 9 Important MSP430 Documents on the CD ROM and WE...

Page 14: ...arget Socket module This is the PCB on which is mounted a 64 pin clam shell style socket for the MSP430F13xIPM MSP430F14xIPM MSP430F15xIPM MSP430F16xIPM or MSP430F161xIPM device A 2x7 pin male connector is also present on the PCB MSP FET430P410 One MSP TS430PM64 Target Socket module This is the PCB on which is mounted a 64 pin clam shell style socket for the MSP430F41xIPM device A 2x7 pin male con...

Page 15: ...ion Root Embedded Workbench x x 430 doc readme htm from IAR for the latest information about the Workbench The term Kickstart is used to refer to the function limited version of Embedded Workbench including C SPY debugger Kickstart is supplied on the CD ROM included with each FET and the latest version is available from the MSP430 web site The above documents and this document can be accessed usin...

Page 16: ...ions can be found in Appendix F After connecting to a PC the USB FET performs a selftest where the red LED flashes for about 2 seconds If the selftest passed successfully the green LED lits permanently Use the 14 conductor cable to connect the USB FET Interface module to a target board such as an MSP430 FETPxxx Target Socket Module Ensure that the MSP430 device is securely seated in the socket and...

Page 17: ...ource code by double clicking on the project and then double clicking on the displayed source file 6 Use PROJECT DEBUG to start the C SPY debugger C SPY will erase the device Flash and then download the application object file to the device Flash Refer to FAQ Debugging 1 if C SPY is unable to communicate with the device 7 Use DEBUG GO to start the application The LED should flash 8 Use DEBUG STOP ...

Page 18: ...D ROM navigate to Literature MSP430 Literature Data Sheets to access the MSP430 device data sheets From the MSP430 main page on the CD ROM navigate to Literature MSP430 Literature User s Guides to access the MSP430 device User s Guides and tools Documents describing the IAR tools Workbench C SPY the assembler the C compiler the linker and the librarian are located in common doc and 430 doc The doc...

Page 19: ...Project Settings 2 3 2 2 2 Creating a Project from Scratch 2 5 2 2 3 Using an Existing IAR V1 x V2 x Project 2 6 2 2 4 Stack Management within the xcl Files 2 6 2 2 5 How to Generate Texas Instrument TXT and other format Files 2 7 2 2 6 Overview of Example Programs 2 7 2 3 Using C SPY 2 9 2 3 1 Breakpoint Types 2 9 2 3 2 Using Breakpoints 2 9 2 3 3 Using Single Step 2 10 2 3 4 Using Watch Windows ...

Page 20: ...n Installation Root Embedded Workbench x x common doc and Installation Root Embedded Workbench 430 doc htm files located throughout the Kickstart directory tree contain the most up to date information and supplement the pdf files In addition Kickstart documentation is available on line via HELP Read Me Firsts from IAR and TI and this document can be accessed using START PROGRAMS IAR SYSTEMS IAR EM...

Page 21: ... DEVICE Enable an assembler project or a C assembler project GENERAL OPTIONS TARGET ASSEMBLER ONLY PROJECT Enable the generation of an executable output file GENERAL OPTIONS OUTPUT OUTPUT FILE EXECUTABLE In order to most easily debug a C project disable optimization C C Compiler CODE OPTIMIZATIONS SIZE NONE BEST DEBUG SUPPORT Enable the generation of debug information in the compiler output C C Co...

Page 22: ... a usable state The following steps can be used to quickly configure a project Note The GENERAL OPTIONS tab does not have a FACTORY SETTINGS button 1 Specify the target device GENERAL OPTIONS TARGET DEVICE 2 Enable an assembler project or a C assembler project GENERAL OPTIONS TARGET ASSEMBLER ONLY PROJECT 3 Enable the generation of an executable output file GENERAL OPTIONS OUTPUT OUTPUT FILE EXECU...

Page 23: ...e a new text file FILE NEW SOURCE TEXT 3 Enter the program text into the file Note Use h files to simplify your code development Kickstart is supplied with files for each device that define the device registers and the bit names and these files can greatly simplify the task of developing your program The files are located in Installation Root Embedded Workbench x x 430 inc Simply include the h fil...

Page 24: ...ll start C SPY and C SPY will get control of the target erase the target memory program the target memory with the application and reset the target Refer to FAQ Debugging 1 if C SPY is unable to communicate with the device 10 Use DEBUG GO to start the application 11 Use DEBUG STOP DEBUGGING to stop the application to exit C SPY and to return to the Workbench 12 Use FILE EXIT to exit the Workbench ...

Page 25: ...r can be configured to output objects in TI TXT format for use with the GANG430 and PRGS430 programmers Select PROJECT OPTIONS LINKER OUTPUT FORMAT OTHER MSP430 TXT Intel and Motorola formats can also be selected Refer to FAQ Program Development 6 2 2 6 Overview of Example Programs Example programs for MSP430 devices are provided in Installation Root Embedded Workbench x x 430 FET_examples Each to...

Page 26: ...Development Flow 2 8 Note Some example programs require a 32KHz crystal on LFXT1 and not all FETs are supplied with a 32KHz crystal ...

Page 27: ... breakpoints and range breakpoints each require two address breakpoints Table 2 1 Number of device breakpoints and other emulation features Device Breakpoints N Range Breakpoints Clock Control State Sequencer Trace Buffer MSP430F11x1 2 MSP430F11x2 2 MSP430F12x 2 MSP430F12x2 2 MSP430F13x 3 X MSP430F14x 3 X MSP430F15x 8 X X X X MSP430F16x 8 X X X X MSP430F161x 8 X X X X MSP430F41x 2 X MSP430F42x 2 X...

Page 28: ...ced after the function reference and a GO will be implicitly executed This will cause the function to be executed at full speed If no hardware breakpoints are available the function will be executed in Non Realtime mode STEP INTO is supported STEP OUT is supported Within Disassembly mode VIEW DISASSEMBLY a step operation of a non CALL instruction executes the instruction at full device speed Withi...

Page 29: ...lue of the watched variable To change the format of the displayed variable default binary octal decimal hex char select the type click the right mouse button and then select the desired format The value of the displayed variable can be changed by selecting it and then entering the new value In C variables can be watched by selecting them and then dragging n dropping then into the Watch Window Sinc...

Page 30: ......

Page 31: ...nts for in circuit programming of the MSP430 Topic Page 3 1 Bootstrap Loader 3 2 3 2 External Power 3 2 3 3 Device Signals 3 3 3 4 Signal Connections for In System Programming and Debugging MSP FET430X110 3 4 3 5 Signal Connections for In System Programming and Debugging MSP FETP430IF MSP FET430UIF 3 6 ...

Page 32: ... power can be supplied to the tool via connections provided on the MSP FET430X110 and the Target Socket modules Refer to the schematics and pictorials of the MSP FET430X110 and the Target Socket modules presented in Appendix B to locate the external power connectors The USB IF can supply targets with up to 100mA through pin 2 of the 14 pin connector Vcc for the target can be selected between 1 8V ...

Page 33: ...Design Considerations for In Circuit Programming 3 3 levels accordingly Again refer to the Target Socket module schematic in Appendix B ...

Page 34: ...I TDO GND VCC TEST Notes Design considerations to support the FET GANG430 and PRGS430 1 Connections to XIN and XOUT are not required and should not be made 2 PRGS430 software Version 1 10 or greater must be used The BSL tool requires the following device signals RST NMI TCK GND VCC P1 1 P2 2 or P1 0 TEST If present on device 1xx devices use pins P1 1 and P2 2 for the BSL 4xx devices use pins P1 0 ...

Page 35: ...cur between the FET and your local power supply The figure shows a 14 pin header being used for the connections on your target board It is recommended that you build a wiring harness from the FET with a connector which mates to the 14 pin header and mount the 14 pin header on your target board This will allow you to unplug your target board from the FET as well as use the GANG430 or PRGS430 to pro...

Page 36: ...for MSP FET430X110 TDO TDI 1 13 11 9 7 5 3 2 14 12 10 8 6 4 VCC GND TCK TMS TDI Test RST NMI 10uF 100nF 100K TDO TDI VCC AVCC DVCC RST NMI TCK TMS TDI Test MSP430 VSS AVSS DVSS VCC 14 pos header 3M p n 2514 6002 Digi Key p n MHB14K ND Disconnect if target has it s own local power source 20K Not present on all devices Pulldown not required on all devices Check device datasheet pin description Pins ...

Page 37: ... FET Interface module and GANG430 can supply VCC to your target board via pin 2 In addition the FET Interface module and GANG430 have a VCC sense feature that if used requires an alternate connection pin 4 instead of pin 2 The VCC sense feature senses the local VCC present on the target board i e a battery or other local power supply and adjusts the output signals accordingly If the target board i...

Page 38: ...et has it s own local power source Connect to power target from FET or GANG430 if not using a local power source 14 pos header 3M p n 2514 6002 Digi Key p n MHB14K ND 20K Not present on all devices Pulldown not required on all devices Check device datasheet pin description Pins vary by device Note Connection to XOUT is not required No JTAG connection is required to the XOUT pin of the MSP430 as sh...

Page 39: ...stions This appendix presents solutions to frequently asked questions regarding hardware program development and debugging tools Topic Page A 1 Hardware A 2 A 2 Program Development Assembler C Compiler Linker A 3 A 3 Debugging C SPY A 5 ...

Page 40: ... Q1 and Q2 if applicable are not provided on the Target Socket module For MSP430 devices which contain user selectable loading capacitors the effective capacitance is the selected capacitance plus 3pF pad capacitance divided by two 7 Crystals resonators have no effect upon the operation of the tool and C SPY as any required clocking timing is derived from the internal DCO FLL 8 On 20 pin and 28 pi...

Page 41: ...at are include ed by source files that have already been added to the project say an h file within a c or s43 file These files will be added to the project file hierarchy automatically 4 In assembler enclosing a string in double quotes string automatically appends a zero byte to the string as an End Of String marker Enclosing a string in single quotes string does not 5 When using the compiler or t...

Page 42: ... using 8 bit operators If 8 bit operators are used to access MPY the access violation check mechanism can be defeated by using MPY_ to reference the register Similarly 16 bit operations on 8 bit registers are flagged 13 Constant definitions define used within the h files are effectively reserved and include for example C Z N and V Do not create program variables with these names 14 The CSTARTUP th...

Page 43: ... position independent A 3 Debugging C SPY 1 C SPY reports that it cannot communicate with the device Possible solutions to this problem include Ensure that the correct PC port is selected use PROJECT OPTIONS FET DEBUGGER CONNECTIONS Ensure that R6 on the MSP FET430X110 and the FET Interface module has a value of 82 ohms Early units were built using a 330 ohm resistor for R6 Refer to the schematics...

Page 44: ...visions 0 1 and 1 0 of the MSP TS430PM64 Target Socket module require a hardware modification the PCB trace connecting pin 6 of the JTAG connector to pin 9 of the MSP430 signal XOUT needs to get cut Notes The hardware may already be modified 1 The hardware modification may have already been performed during manufacturing or your tool may contain an updated version of the Target Socket module 2 If ...

Page 45: ...tly Asked Questions A 7 For revisions 1 0 1 1 and 1 2 of the FET Interface module install a 0 1uF capacitor between the indicated points pins 4 and 5 of U1 Figure A 1 Modification to FET Interface module 0 1u ...

Page 46: ...The configuration of the parallel port ECP Compatible Bidirectional Normal is not significant ECP seems to work well Refer FAQ Debugging 1 for additional hints on solving communication problems between C SPY and the device 7 C SPY asserts RST NMI to reset the device when C SPY is started and when the device is programmed The device is also reset by the C SPY RESET button and when the device is man...

Page 47: ...n EMULATOR INIT NEW DEVICE is selected 15 C SPY does not permit the individual segments of the INFORMATION memory and the Flash MAIN memory to be manipulated separately consider the INFORMATION memory to be one contiguous memory and the Flash MAIN memory to be a second contiguous memory 16 The MEMORY window correctly displays the contents of memory where it is present However the MEMORY window inc...

Page 48: ...wing the effects of the Flash access instruction Refer to FAQ Debugging 19 22 Bits that are cleared when read during normal program execution i e Interrupt Flags will be cleared when read while being debugged i e memory dump peripheral registers Within MSP430F43x 44x devices bits do not behave this way i e the bits are not cleared by C SPY read operations 23 C SPY cannot be used to debug programs ...

Page 49: ...start the application with RELEASE JTAG ON GO selected Remove the JTAG connector from the dummy device and connect to the unknown device Select DEBUG BREAK or the stop hand to stop the unknown device The state of the device can then be interrogated 30 RESET ing a program temporarily requires a breakpoint if PROJECT OPTIONS DEBUGGER SETUP RUN TO is enabled If N or more breakpoints are set RESET wil...

Page 50: ...e indirectly referenced by a library function 37 The Flash program download progress bar does not update gradually This behavior is to be expected The progress bar updates whenever a chunk of memory is written to Flash The development tools attempt to minimize the number of program chunks in order to maximize programming efficiency Consequently it s possible for say a 60K byte program to be reduce...

Page 51: ...ials B 7 Figure B 7 MSP TS430PM64 Target Socket module Schematic Rev 1 0 B 8 Figure B 8 MSP TS430PM64 Target Socket module PCB Pictorials Rev 1 0 B 9 Figure B 9 MSP TS430PM64 Target Socket module Schematic Rev 1 1 B 10 Figure B 10 MSP TS430PM64 Target Socket module PCB Pictorials Rev 1 1 B 11 B 1 History of changes to MSP TS430PM64 Target Socket module B 12 Figure B 11 MSP TSPN80 Target Socket mod...

Page 52: ...Hardware B 2 Figure B 1 MSP FET430X110 Schematic ...

Page 53: ...2 2 P2 0 XIN Vss Vcc P2 3 P1 0 P1 2 P1 4 P1 6 Figure B 2 MSP FET430X110 PCB Pictorials LED connected to P1 0 Jumper J5 Open to disconnect LED Orient Pin 1 of MSP430 device Connector J4 External power connector Jumper J1 Open to measure current R6 Ensure value is 82 ohms ...

Page 54: ...Hardware B 4 Figure B 3 MSP FET430IF FET Interface module Schematic ...

Page 55: ...Hardware B 5 Figure B 4 MSP FET430IF FET Interface module PCB Pictorial R6 Ensure value is 82 ohms ...

Page 56: ...Hardware B 6 Note Connections between the JTAG header and pins XOUT and XIN are no longer required and should not be made Figure B 5 MSP TS430DW28 Target Socket module Schematic ...

Page 57: ...P TS430DW28 Target Socket module PCB Pictorials Jumper J4 Open to disconnect LED Orient Pin 1 of MSP430 device Jumper J5 Open to measure current Connector J3 External power connector Remove R8 and jumper R9 LED connected to P1 0 ...

Page 58: ...Hardware B 8 Note Connections between the JTAG header and pins XOUT and XIN are no longer required and should not be made Figure B 7 MSP TS430PM64 Target Socket module Schematic Rev 1 0 ...

Page 59: ...30PM64 Target Socket module PCB Pictorials Rev 1 0 LED connected to pin 12 Jumper J7 Open to measure current Jumper J6 Open to disconnect LED Orient Pin 1 of MSP430 device Connector J5 External power connector Remove R8 and jumper R9 ...

Page 60: ...Hardware B 10 Note Connections between the JTAG header and pins XOUT and XIN are no longer required and should not be made Figure B 9 MSP TS430PM64 Target Socket module Schematic Rev 1 1 ...

Page 61: ...30PM64 Target Socket module PCB Pictorials Rev 1 1 Connector J5 External power connection Remove R8 and jumper R9 LED connected to pin 12 Jumper J7 Open to measure current Jumper J6 Open to disconnect LED Orient Pin 1 of MSP430 device ...

Page 62: ... from 100k to 47k R13 and R14 were added to support BSL usage on F413 They are not assembled R4 was removed Changes from Rev 1 0 to 1 1 Connection JTAG 6 J1 9 R4 0Ohm was inserted R4 is not assembled This isolates XOUT from the JTAG connector On Rev 0 1 power can be found or should be supplied on the target pins J1 1 DVcc J4 16 AVcc J4 15 DVss and J4 14 AVss Vcc can also be applied to FETJ2 2 and ...

Page 63: ...Hardware B 13 Figure B 11 MSP TSPN80 Target Socket module Schematic ...

Page 64: ...SP TSPN80 Target Socket module PCB Pictorials Connector J5 External power connection Remove R8 and jumper R9 Orient Pin 1 of MSP430 device LED connected to pin 12 Jumper J6 Open to disconnect LED Jumper J7 Open to measure current ...

Page 65: ...Hardware B 15 Note Connections between the JTAG header and pins XOUT and XIN are no longer required and should not be made Figure B 13 MSP TSPZ100 Target Socket module Schematic ...

Page 66: ...P TSPZ100 Target Socket module PCB Pictorials Connector J5 External power connection Remove R8 and jumper R9 Orient Pin 1 of MSP430 device LED connected to pin 12 Jumper J6 Open to disconnect LED Jumper J7 Open to measure current ...

Page 67: ...Hardware B 17 Figure B 15 MSP FET430UIF USB Interface schematics ...

Page 68: ...Hardware B 18 ...

Page 69: ...Hardware B 19 ...

Page 70: ...Hardware B 20 ...

Page 71: ...Hardware B 21 ...

Page 72: ......

Page 73: ...1 5 EMULATOR ADVANCED GENERAL CLOCK CONTROL C 2 C 1 6 EMULATOR ADVANCED EMULATION MODE C 2 C 1 7 EMULATOR ADVANCED MEMORY DUMP C 3 C 1 8 EMULATOR ADVANCED BREAKPOINT COMBINER C 3 C 1 9 EMULATOR STATE STORAGE C 3 C 1 10 EMULATOR STATE STORAGE WINDOW C 3 C 1 11 EMULATOR SEQUENCER C 3 C 1 12 EMULATOR POWER ON RESET C 3 C 1 13 EMULATOR SECURE C 3 C 1 14 EMULATOR GIE on off C 4 C 1 15 EMULATOR LEAVE TA...

Page 74: ...int reached Refer to FAQ Debugging 10 C 1 2 EMULATOR RESYNCHRONIZE JTAG Regain control of the device It is not possible to RESYNCHRONIZE JTAG while the device is operating C 1 3 EMULATOR INIT NEW DEVICE Initialize the device according to the settings in the DOWNLOAD OPTIONS Basically the current program file is downloaded to the device memory The device is then reset This option can be used to pro...

Page 75: ...R STATE STORAGE Open the State Storage dialog box The State Storage dialog box permits one to use the state storage module The state storage module is present only in those devices that contain the EEM Refer to the IAR C SPY FET Debugger section in the MSP430 IAR Embedded Workbench IDE User Guide C 1 10 EMULATOR STATE STORAGE WINDOW Open the State Storage window and display the stored state inform...

Page 76: ...ks correctly C 1 17 EMULATOR SET VCC On the USB FET the target supply voltage can be adjusted between 1 8V and 5 0V This voltage is available on pin 2 of the 14 pin target connector to supply the target from the USB FET If the target is supplied externally the external supply voltage should be connected to pin 4 of the target connector so the USB FET can set the level of the output signals accordi...

Page 77: ...e 100 pin MSP430F449 device Table D 1 F4xx 80 pin Signal Mapping lists where the pin signals of an 80 pin device appear on the pins of an MSP TS430PZ100 Target Socket module Note The MSP TS430PZ100 must be modified as indicated Refer to Appendix C 1 6 EMULATOR ADVANCED EMULATION MODE to enable the emulation mode Topic Page D 2 ...

Page 78: ...3 P4 7 S2 14 14 14 46 P4 6 S3 15 15 15 47 P4 5 S4 16 16 16 48 P4 4 S5 17 17 17 49 P4 3 S6 18 16 18 50 P4 2 S7 19 19 19 51 P4 1 S8 20 20 20 62 P4 0 S9 21 21 21 63 S10 22 22 S11 23 23 S12 24 24 S13 25 25 S14 26 26 S15 27 27 S16 28 28 S17 29 29 P2 7 ADC12CLK S18 30 30 P2 6 CAOUT S19 31 31 S20 32 32 S21 33 33 S22 34 34 S23 35 35 P3 7 S24 36 36 36 64 P3 6 S25 37 37 37 65 P3 5 S24 38 38 38 66 P3 4 S27 3...

Page 79: ...7 P2 1 TB0 58 78 P2 0 TA2 59 79 P1 7 CA1 60 80 P1 6 CA0 61 81 P1 5 TACLK ACLK 62 82 P1 4 TBCLK SMCLK 63 83 P1 3 TBOUTH SVSOUT 64 84 P1 2 TA1 65 85 P1 1 TA0 MCLK 66 86 P1 0 TA0 67 87 XT2OUT 68 88 XT2IN 69 89 TDO TDI 70 90 TDI 71 91 TMS 72 92 TCK 73 93 RST NMI 74 94 P6 0 A0 75 95 P6 1 A1 76 96 P6 2 A2 77 97 Avss 78 98 DVss1 79 99 Avcc 80 100 Note discontinuity of pin numbering sequence ...

Page 80: ......

Page 81: ...ves and the Kickstart 2 x 3 x assembler directives Topic Page E 1 Segment Control E 2 E 2 Translating Asm430 Assembler Directives to A430 Directives E 2 E 2 1 Introduction E 2 E 2 2 Character strings E 2 E 2 3 Section Control Directives E 3 E 2 4 Constant Initialization Directives E 4 E 2 5 Listing Control Directives E 4 E 2 6 File Reference Directives E 5 E 2 7 Conditional Assembly Directives E 5...

Page 82: ...ative offset Use ASEG if you want the absolute behavior of the old TI ORG statement E 2 Translating Asm430 Assembler Directives to A430 Directives E 2 1 Introduction The following sections describe in general how to convert assembler directives for Texas Instruments Asm430 assembler Asm430 to assembler directives for IAR s A430 assembler A430 These sections are only intended to act as a guide for ...

Page 83: ...would be copied to RAM segment by a start up routine In this case the segments must be exactly the same size and layout Description Asm430 Directive TI A430 Directive IAR Reserve size bytes in the bss uninitialized data section bss 1 Assemble into the data initialized data section data RSEG const Assemble into a named initialized section sect RSEG Assemble into the text executable code section tex...

Page 84: ... conditional code block listing fclist LSTCND Inhibit false conditional code block listing fcnolist LSTCND Set the page length of the source listing length PAGSIZ Set the page width of the source listing width COL Restart the source listing list LSTOUT Stop the source listing nolist LSTOUT Allow macro listings and loop blocks mlist LSTEXP macro LSTREP loop blocks Inhibit macro listings and loop bl...

Page 85: ...ctive or MACRO are undefined at module end Library modules are furthermore linked conditionally This means that a library module is only included in the linked executable if a public symbol in the module is referenced externally The following directives are used to mark the beginning and end of modules in the A430 assembler Additional A430 Directives IAR A430 Directive IAR Start a program module N...

Page 86: ...VAR or ASSIGN Undefine local symbols newblock 1 Equate a value with a symbol equ or set EQU or Perform arithmetic on numeric substitution symbols eval SET or VAR or ASSIGN End structure definition endstruct 2 Begin a structure definition struct 2 Assign structure attributes to a label tag 2 1 No A430 directive directly corresponds to newblock However undef may be used to reset a symbol that was de...

Page 87: ...ring assemble compile time 2 Warning messages cannot be user defined message may be used but the warning counter will not be incremented 3 The concept of load time addresses is not supported Run time and load time addresses are assumed to be the same To achieve the same effect labels can be given absolute run time addresses by the EQU directives Asm430 code A430 code label load_start load_start Ru...

Page 88: ...ion See Listing Control Directives end END page PAGE endif ENDIF ref EXTERN or IMPORT endloop ENDR sect RSEG endm ENDM setsect See Miscellaneous Directives endstruct See Symbol Control Directives setsym See Miscellaneous Directives equ or set EQU or space DS eval SET or VAR or ASSIGN sslist Not supported even EVEN ssnolist Not supported fclist LSTCND string DB fcnolist LSTCND struct See Symbol Con...

Page 89: ...TI to IAR 2 x 3 x Assembler Migration E 9 LSTPAG if else elif COMMON LSTXREF ifdef ifndef STACK endif ALIGN include ORG error ...

Page 90: ......

Page 91: ...ction describes the hardware installation process of the MSP FET430UIF USB debug interface on a PC running Windows XP The installation procedure for a Windows 2000 system is very similar and therefore not shown here Topic Page F 1 Hardware Installation F 2 ...

Page 92: ...B FET x xx xx Figure F 1 Figure F 1 WinXP Hardware Recognition 3 The Hardware Wizard should start automatically and popup the Found New Hardware Wizard dialog window 4 Instruct the Wizard to install the hardware driver from a specific location Figure F 2 Figure F 2 WinXP Hardware Wizard 5 Point the Hardware Wizard to the according folder where the corresponding driver information files are located...

Page 93: ...XP Driver Location Selection Folder 6 The Wizard should generate a message that an appropriate driver has been found 7 Note that WinXP shows a warning that the driver is not certified by Microsoft Ignore this warning and click Continue Anyway Figure F 4 ...

Page 94: ...Wizard Windows automatically recognizes another new hardware device called Texas Instruments UMP Serial Port 11 Depending on the current update version of the OS corresponding drivers are installed automatically or the Hardware Wizard pops up again In case of the Wizard is started please repeat the steps already described above again 12 Finally the MSP FET430UIF debug interface is installed and re...

Page 95: ...MSP FET430UIF Installation Guide F 5 Figure F 5 Device Manager ...

Reviews: