Texas Instruments MSP-FET430 manual

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95

Ir a la página of

Buen manual de instrucciones

Las leyes obligan al vendedor a entregarle al comprador, junto con el producto, el manual de instrucciones Texas Instruments MSP-FET430. La falta del manual o facilitar información incorrecta al consumidor constituyen una base de reclamación por no estar de acuerdo el producto con el contrato. Según la ley, está permitido adjuntar un manual de otra forma que no sea en papel, lo cual últimamente es bastante común y los fabricantes nos facilitan un manual gráfico, su versión electrónica Texas Instruments MSP-FET430 o vídeos de instrucciones para usuarios. La condición es que tenga una forma legible y entendible.

¿Qué es un manual de instrucciones?

El nombre proviene de la palabra latina “instructio”, es decir, ordenar. Por lo tanto, en un manual Texas Instruments MSP-FET430 se puede encontrar la descripción de las etapas de actuación. El propósito de un manual es enseñar, facilitar el encendido o el uso de un dispositivo o la realización de acciones concretas. Un manual de instrucciones también es una fuente de información acerca de un objeto o un servicio, es una pista.

Desafortunadamente pocos usuarios destinan su tiempo a leer manuales Texas Instruments MSP-FET430, sin embargo, un buen manual nos permite, no solo conocer una cantidad de funcionalidades adicionales del dispositivo comprado, sino también evitar la mayoría de fallos.

Entonces, ¿qué debe contener el manual de instrucciones perfecto?

Sobre todo, un manual de instrucciones Texas Instruments MSP-FET430 debe contener:
- información acerca de las especificaciones técnicas del dispositivo Texas Instruments MSP-FET430
- nombre de fabricante y año de fabricación del dispositivo Texas Instruments MSP-FET430
- condiciones de uso, configuración y mantenimiento del dispositivo Texas Instruments MSP-FET430
- marcas de seguridad y certificados que confirmen su concordancia con determinadas normativas

¿Por qué no leemos los manuales de instrucciones?

Normalmente es por la falta de tiempo y seguridad acerca de las funcionalidades determinadas de los dispositivos comprados. Desafortunadamente la conexión y el encendido de Texas Instruments MSP-FET430 no es suficiente. El manual de instrucciones siempre contiene una serie de indicaciones acerca de determinadas funcionalidades, normas de seguridad, consejos de mantenimiento (incluso qué productos usar), fallos eventuales de Texas Instruments MSP-FET430 y maneras de solucionar los problemas que puedan ocurrir durante su uso. Al final, en un manual se pueden encontrar los detalles de servicio técnico Texas Instruments en caso de que las soluciones propuestas no hayan funcionado. Actualmente gozan de éxito manuales de instrucciones en forma de animaciones interesantes o vídeo manuales que llegan al usuario mucho mejor que en forma de un folleto. Este tipo de manual ayuda a que el usuario vea el vídeo entero sin saltarse las especificaciones y las descripciones técnicas complicadas de Texas Instruments MSP-FET430, como se suele hacer teniendo una versión en papel.

¿Por qué vale la pena leer los manuales de instrucciones?

Sobre todo es en ellos donde encontraremos las respuestas acerca de la construcción, las posibilidades del dispositivo Texas Instruments MSP-FET430, el uso de determinados accesorios y una serie de informaciones que permiten aprovechar completamente sus funciones y comodidades.

Tras una compra exitosa de un equipo o un dispositivo, vale la pena dedicar un momento para familiarizarse con cada parte del manual Texas Instruments MSP-FET430. Actualmente se preparan y traducen con dedicación, para que no solo sean comprensibles para los usuarios, sino que también cumplan su función básica de información y ayuda.

Índice de manuales de instrucciones

  • Página 1

    MSP-FET430 FLASH Emulation Tool (FET) ( For use with IAR Wo rkb ench Version 3.x) 2004 SLAU138A Mixed Signal Products Us e r ' s G u i d e User's Guide[...]

  • Página 2

    ii IMPORTANT NOTICE Texas Instrum ents and its subsidiaries (TI) reserve the right to make c hanges to their products or to disc ontinue any product or servic e without notice, and advise customers to obt ai n the latest vers ion of relevant information t o verify, before placing orders , that inform ation being relied on is c urrent and complete. [...]

  • Página 3

    [...]

  • Página 4

    July 2004 Us e r ' s G u i d e[...]

  • Página 5

    iii Preface Read This First About This Manual This ma nual doc uments th e Texas Instrum ents MS P-FET430 Flash Emulatio n Tool ( FET). Th e F ET is the pr ogram develo pment to ol for th e MSP430 u ltra low power microc ontroller. B oth avai labl e interfac es, the Paralle l-Por t-Interf ace and t he USB- Interfac e, are descr ibed here. How to Us[...]

  • Página 6

    iv Information About Cautions and Warnings This bo ok may con tain caut ions a nd warni ngs. C AU T I O N W A RNI NG The inform ation in a caut ion or a w arning is prov ided f or your protect ion. Read each caution and war nin g carefu lly . Related Documentation From Texas Instruments MSP4 30xxxx Devi ce Dat a Sh eets ❏ ❏ ❏ ❏ MSP430x 1xx [...]

  • Página 7

    v If You Need Assistance Support f or the MS P430 device and the F ET is pr ovide d by the T exas Instrume nts Produc t Inform ation Ce nter (PIC) . Contact informat ion for th e PIC can be found on t he TI web sit e at www.t i.com . Ad dition al devic e- specific infor mation ca n be found on the MSP 430 web s ite at www.ti.com/sc /msp430 . Note: [...]

  • Página 8

    vi[...]

  • Página 9

    vii Contents Read This F irst ................................................................................................................ iii About This Manual .....................................................................................................iii How to Use Thi s Manual ........................................................[...]

  • Página 10

    viii Frequently A sked Ques tions ....................................................................................... A-1 A.1 Hardwa re ........................................................................................................ A-2 A.2 Program Develo pment (Asse mbler, C -Comp iler, Lin ker)................................. A-3 A.3[...]

  • Página 11

    ix Figures Figure 3-1. S ignal conn ections for MSP-FET43 0X110. ............................................... 3-5 Figure 3-2. JTAG Signa l Connections ......................................................................... 3-7 Figure A-1. Mod ificat ion to FET Inter face module ..................................................... A-7 Figure B[...]

  • Página 12

    [...]

  • Página 13

    1-1 Chapter 1 Get Started Now! This chapt er will enab le you to inventor y your F ET, an d then it wi ll instr uct yo u to install the sof twar e and hardwar e, and the n run the de monstr at ion progra ms . Topic Page 1.1 Kit Contents, MSP-FET 430X110 1-2 1.2 Kit Contents, MSP-FET 430Pxx0 (‘P120, ‘P140, ‘P410, ‘P430, ‘P440) 1-2 1.3 Kit [...]

  • Página 14

    Get Started Now! 1-2 1.1 Kit Content s, MSP-FET430X110 One READ ME FIRST documen t. One MSP430 CD-ROM. One MSP- FET430 X110 F las h Emula tion To ol. T his is t he PCB on whic h is mounted a 2 0-pin Z IF sock et for the MSP430F 11xIDW , MSP430F 11x1AID W, or M SP430F1 1x2IDW d evice. A 25-c onductor c able originat es from t he FET. One sma ll box [...]

  • Página 15

    Get Started Now! 1-3 MSP-FET 430P430: Eight PCB 1x 20 pin headers (Four male a nd four fe male). MSP-FET 430P440: Eight PCB 1x 25 pin headers (Four male a nd four fe male). One sma ll box c ontainin g two or four M SP430 dev ice samples . MSP-FET 430P120: MSP4 30F12 3IDW and/or MSP4 30F123 2IDW MSP-FET 430P140: MSP4 30F14 9IPM and/ or MSP4 30F169I [...]

  • Página 16

    Get Started Now! 1-4 1.6 Hardware Install ation, M SP-FET430Pxx0 ( ‘P120, ‘P14 0, ‘P410, ‘ P430, ‘P4 40) 1) Use the 25-c onductor cable to connect th e FET Interfa ce modul e to the paralle l port of y our PC. 2) Use the 14-c onductor cable to connect th e FET Interfa ce modul e to the supplied Target S ocket mo dule. 3) Ensure t hat the [...]

  • Página 17

    Get Started Now! 1-5 3) Click on the tab at t he bott om of t he work space windo w that cor responds t o your tool (FETxxx) and desired languag e (assembler or C). 4) Use PROJECT ->O PTION S->FET D ebugger- >Setup- >Conn ectio n to selec t the appro priate por t: L PTx for the para llel F ET Inter face or TI USB F ET f or the USB Int e[...]

  • Página 18

    Get Started Now! 1-6 1.9 Important MSP430 Documents on the CD-ROM and WEB The primar y sourc es of MS P430 infor mation are the d evice s pecific data she et and User ’s Guide. T he mos t up to d ate versio ns of t hese docum ents ava ilab le at the time of product ion have been prov ided on the CD- ROM inc luded w ith this tool. The MSP430 w eb [...]

  • Página 19

    2-1 Chapter 2 Development Flow This chapter discusses how to use K ickstart to develop your application software, and how to use C-SP Y to debug it. Topic Page 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 Scra tch 2-5 2.2.3 Using an Existing IAR V1.x/ V2.x Project 2-6 2.2.4 Stack Management withi[...]

  • Página 20

    Developm ent Flow 2-2 2.1 Overview Applicat ions are dev eloped in as sembler and/or C usin g the Wor kbench, and they are debugged using C-SP Y. C-SP Y is seaml essly int egrate d into the Workbenc h. However , it is more conv enient t o make t he distinc tion between th e code dev elopment enviro nment ( Workbe nch) an d the debu gger (C- SPY). C[...]

  • Página 21

    Developm ent Flow 2-3 The simul ator wil l input a maximum of 4K by tes of cod e. A “Full” (i.e., unr estricted) ver sion of th e softw are tools can be purchase d from IAR. A mid- feature d tool s et – cal led “Base line”, with a 12K byte C co de size limita tion and basic f loatin g-point oper ations – is als o availa ble from IAR. Co[...]

  • Página 22

    Developm ent Flow 2-4 Enable th e Device Descript ion file. Th is file makes C- SPY “a ware” of the specifics of the device it is debugg ing. This file w ill cor res pond to the specifi ed target device (D EBUG GER->S ETUP- >DEVICE D ESCRIPT ION- >OVERRIDE DEFAULT) Enable th e erasure of the Main and In formati on mem ories befor e obj[...]

  • Página 23

    Developm ent Flow 2-5 Note: Avoid the use of absolute pathnames when referenc ing files. Instead, us e the re lative p athna me keywords $TOO LKIT_DIR$ and $PROJ_DIR $. Refer t o the IAR docum entatio n for a d esc ription of t hese keywords . The use of relat ive path names wi ll perm it projects to be moved eas ily, an d projects will n ot requir[...]

  • Página 24

    Developm ent Flow 2-6 Note: How to add ass embler sou rce files t o you r project The defau lt file type presen ted in t he Add F iles windo w is “C/C++ F iles”. In ord er to view a ssembler fi les (.s43 ), select “A ssembler File s” in the “Files of type” dro p-dow n menu. 8) Configure the proj ect opti ons (PRO JECT->O PTIONS) . Fo[...]

  • Página 25

    Developm ent Flow 2-7 system st ack wit h in C program s. CSTACK ca n also be use d in assemb ler programs [ MOV #SF E(CST ACK), SP]. CSTA CK is def ined t o extend fr om t he last locati on of R AM for 50 bytes (i.e., the stack ex tends downw ards throu gh RAM for 50 bytes). Other state ments in the .x cl file d efine other r elocat abl e regions [...]

  • Página 26

    Developm ent Flow 2-8 Note: Some exa mple pr ograms require a 32KHz crys tal on LF XT1, and not all FET s are su pplie d with a 32KHz c rystal.[...]

  • Página 27

    Developm ent Flow 2-9 2.3 Using C-SPY Refer to A ppendix C for a desc ription of F ET-spec ific menus w ithin C-SPY. 2.3.1 Breakpoint Types The C-SPY breakp oint mec hanism m akes use of a li mited numb er of on- chip debugging r esour ces ( specifica lly, N breakp oint reg ister s, refer to T able 2- 1 below). Whe n N or f ewer break points ar e s[...]

  • Página 28

    Developm ent Flow 2-10 The RUN TO CURSO R operation temp orarily requires a breakpoint. Consequent ly, only N-1 break points can b e activ e when RUN TO CURSOR is used if v irtual br eakpoints a re disable d. Refer to FAQ, Debugging #31). If, while pr ocessin g a break point, a n interrup t beco mes ac tive, C-SP Y will s top at the firs t instruc [...]

  • Página 29

    Developm ent Flow 2-11 2.3.4 Using Watch Windows The C-SPY Watch Window mechanism perm its C variabl es to be m onitored during th e debu gging ses sion. Althou gh not or iginally desig ned to d o so, t he Watch W indow mec hanism can be ex tended to monito r ass embler var iables. Assume t hat the var iables t o watch are defi ned in RA M, say: RS[...]

  • Página 30

    [...]

  • Página 31

    3-1 Chapter 3 Design Considerations for In-Circuit Programming This chapt er pres ents s ignal req uireme nts for in -circ uit progra mming 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 I n-System Progr amming and Debugging, MSP-FET430X110 3-4 3.5 Signal Connections for I[...]

  • Página 32

    Design Cons idera tions for In-C ircuit Pr ogramm ing 3-2 3.1 Bootstrap Loader The JTAG pins prov ide ac cess to the Flash memory of the MSP430F d evice. On some devices, t hese pins must b e “shar ed” with the devic e port pins, an d this shari ng of p ins can c omplic ate a d esign (or it may simply not be possible t o do so). As an alt ernat[...]

  • Página 33

    Design Cons idera tions for In-C ircuit Pr ogramm ing 3-3 levels accor dingly) . Again, r efer to the Target Socke t modu le sche matic in Append ix B.[...]

  • Página 34

    Design Cons idera tions for In-C ircuit Pr ogramm ing 3-4 3.3 Device Signals The foll owing dev ice signa ls s hould be brought out (i.e ., made acc essible) so that the F ET, GANG 430, and P RGS430 t ools c an be utilized : RST/NMI ❏ ❏ ❏ ❏ TMS ❏ ❏ ❏ ❏ TCK ❏ ❏ ❏ ❏ TDI ❏ ❏ ❏ ❏ TDO ❏ ❏ ❏ ❏ GND ❏ ❏ ❏ ❏ V[...]

  • Página 35

    Design Cons idera tions for In-C ircuit Pr ogramm ing 3-5 3.4 Signal Connections for In-System Programming and Debuggin g, MSP- FET430X110 With th e proper c onnecti ons, y ou can use the C-S PY debu gger and the MSP- FET430X1 10 to pro gram a nd debu g code on y our ow n targe t board. I n additio n, the connec tions w ill suppor t the G ANG430 a [...]

  • Página 36

    Design Cons idera tions for In-C ircuit Pr ogramm ing 3-6 Note: Connection to XOUT is not required No JTAG c onnecti on is r equired to the XOUT pin of the M SP430 as shown on s ome sc hematic s. Figure 3-1. Signal connections for MSP-FET430X110. TDO/TDI 1 13 11 9 7 5 3 2 14 12 10 8 6 4 V CC GND TCK TMS TDI Test RST/NMI 10uF 100nF 100K TDO/TDI V CC[...]

  • Página 37

    Design Cons idera tions for In-C ircuit Pr ogramm ing 3-7 3.5 Signal Connections for In-System Programming and Debuggin g, MSP- FETP430IF, MSP-FET 430UIF With the pr oper c onnecti ons, y ou can use the C-S PY debugger and an FET hardware J TAG i nterface s uch as th e MSP-F ETP430I F and MS P-FET4 30UIF to program a nd deb ug cod e on yo ur own ta[...]

  • Página 38

    Design Cons idera tions for In-C ircuit Pr ogramm ing 3-8 TDO /TD I 1 13 11 9 7 5 3 2 14 12 10 8 6 4 V C C(Fr omTo ol) GND TCK TM S TDI Te st V C C(Local Sense) RST/NMI 10uF 100nF 100K TDO/TDI RST /NMI TCK TMS TDI Test MSP430 V C C /AV C C /DV C C ** V S S /AV S S /DV S S ** V CC Connect if t arget has i t's own 'local' po wer sourc [...]

  • Página 39

    A-1 Appendix A Frequently Asked Questions This ap pendix pres ents s olutio ns to fre quently asked q uestions regard ing hardware, pr ogram develop ment, an d debuggi ng too ls. Topic Page A.1 Hardware A-2 A.2 Program Deve lopment (Assembler, C -Compiler, Linker) A-3 A.3 Debugging (C-SPY) A-5[...]

  • Página 40

    Frequently Aske d Quest ions A-2 A.1 Hardware 1) The state o f the de vice (CPU registers, RAM memory, etc.) is undefined following a reset. Exceptions t o the a bove s tatement are that the PC is lo aded w ith the word at 0xfffe ( i.e., the reset vec tor), the status regis ter is cleared, and th e perip heral reg isters (SFRs) ar e initializ ed as[...]

  • Página 41

    Frequently Aske d Quest ions A-3 low power mode is restored (usin g GO) . This behavi or appears to happen on a ll dev ices ex cept the M SP430F 12x. 12) The foll owing ZIF socket s are us ed in the FET t ools a nd Targ et Socke t module s: 20-pin d evice (DW packag e): We lls-CTI 652 D02 0 ❏ ❏ ❏ ❏ 28-pin d evice (DW packag e): We lls-CTI 6[...]

  • Página 42

    Frequently Aske d Quest ions A-4 9) It is possibl e to mix as sembler an d C prog rams wi thin the Workbench. Refer to the A ssembler Langua ge Interfa ce chapter of the C/C++ Comp iler Ref erence Guid e from IAR . 10) The Workbenc h can pr odu ce an obj ect file in Texas Inst ruments .T XT format. C-SPY cannot input an object file in Texas In stru[...]

  • Página 43

    Frequently Aske d Quest ions A-5 Optimizati on: NO NE is sup por ted wit hi n PROJ ECT- > OPT IONS- >C/C++ COM PILER-> CODE->OPTI MIZATIONS. Alter natively, variables can be d eclare d vol at il e . 16) The IAR Tutorial assumes a Full or Baseline versio n of the Workbench. Wi thin a Kickst art syste m, i t i s not possi ble t o configu [...]

  • Página 44

    Frequently Aske d Quest ions A-6 software can preven t the C -SPY/FET driver from ac ces sing the paralle l port, an d, hence, comm unicatin g with t he devi ce. It may be n ecess ary to reb oot the com puter to c omp lete the i nstallat ion of the requ ired par allel port dr ivers. Revisions 1.0, 1.1, and 1.2 of the FET Interfac e modu le requ ire[...]

  • Página 45

    Frequently Aske d Quest ions A-7 For revis ions 1.0, 1.1, and 1.2 of th e FET I nterface mo dule, ins tall a 0.1 uF cap acitor between the indicate d points ( pins 4 and 5 of U1). Figure A-1. Modification to FET Interface module 0 .1u[...]

  • Página 46

    Frequently Aske d Quest ions A-8 2) C-SPY can download data into RAM, INFORMATION, and Fla sh MAIN memori es. A war ning mes sage is output if an at tempt is made to download data o utside of the dev ice mem ory spac es. 3) C-SPY can debug applications that utilize interrupt s and low power modes . Refer to F AQ, Debu gging #24). 4) C-SPY cannot ac[...]

  • Página 47

    Frequently Aske d Quest ions A-9 the JTAG pins and the me asur ements wil l be erro neou s. Refer to F AQ, Debugging #12) and Hardw ar e #11). 11) Most C-SPY setting s (break points, etc .) are now preserved between sessions. 12) When C-SP Y has co ntrol of the d evice, the C PU is ON (i.e., it is not in low power mod e) regar dless of the settings[...]

  • Página 48

    Frequently Aske d Quest ions A-10 (RESYNCHRON IZE JTAG) ) and before C-SPY has regained c ontrol of the device that the device will execut e normally . T his behavi or may have sid e effects . Once C- SPY h as rega ined contr ol of the dev ice, it will perfor m a res et of the d evice an d retain contro l. 19) When pro grammin g the Fl ash, do not [...]

  • Página 49

    Frequently Aske d Quest ions A-11 26) On devices e quipp ed with a Data T ransfer C ontroll er (DT C), the completion of a data t ransfer cycl e will p reempt a single st ep of a low power mode instruction . The devic e will a dvanc e beyond t he low power mod e instr uction on ly after an in terrupt is proce ssed. Unt il an interrupt is proc essed[...]

  • Página 50

    Frequently Aske d Quest ions A-12 35) Special Function Re gisters (SF Rs) – or t he peri pheral reg isters – are now di splayed in VIEW- >REGIST ER ; ther e is no lon ger an SFR Window. 36) The putch ar()/getch ar() b reakpoint s are set only if these fu nctions are pres ent (and the mec h anism is enab led) . Not e tha t putchar() /getchar([...]

  • Página 51

    B-1 Appendix B Hardware This ap pendix c ontains info rmation re lating to the F ET hardwar e, inc luding schematic s and PCB p ictori als. Topic Page Figure B-1. MSP-FET 430X110, Schematic B-2 Figure B-2. MSP-FET 430X110, PCB Pictorial s B-3 Figure B-3. MSP-FET 430IF FET Inter face module, S chematic B-4 Figure B-4. MSP-FET 430IF FET Interf ace mo[...]

  • Página 52

    Hardware B-2 Figure B-1. MSP-FET430X110, Schematic[...]

  • Página 53

    Hardware B-3 J2 J3 P2.1 RST XOUT P2.5 TST P2.4 P1 .1 P1.3 P1.5 P1.7 P2.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 Jum per J5 Open to disconn ect LED Orien t Pin 1 of MSP430 device Connect or J4 External power con nector Jum per J1 Open to measure curren t R6 Ensure v alue is 82 ohm s[...]

  • Página 54

    Hardware B-4 Figure B- 3. MSP-FET430IF FET Interface m odule, Schematic[...]

  • Página 55

    Hardware B-5 Figure B-4. MSP-FET430IF FET Interface module, PCB Pictorial R6 Ensure value is 82 ohms[...]

  • Página 56

    Hardware B-6 Note : Connections betwe en the J TAG header and pins XOUT and XI N are no longer required , and should no t be made. Figure B-5. MSP-TS430DW28 Target Socket module, Schematic[...]

  • Página 57

    Hardware B-7 Figure B-6. MSP-TS430DW28 Target Socket module, PCB Pictorials Jum per J4 Open to disconn ect LED Orien t Pin 1 of MSP430 device Jum per J5 Open to measure cu rrent Connect or J3 External power con nector Remo ve R8 and ju mpe r R9 LED connected to P1.0[...]

  • Página 58

    Hardware B-8 Note : Connections betwe en the J TAG header and pins XOUT and XI N are no longer required , and should no t be made. Figure B-7. MSP-TS430PM64 Target Socket module, Schematic, Rev. 1.0[...]

  • Página 59

    Hardware B-9 Figure B-8. MSP-TS430PM64 Target Socket module, PCB Pictorials, Rev. 1.0 LED conn ected to pin 12 Jumper J7 Open to measure cu rren t Jum per J6 Open to disconn ect LED Orien t Pin 1 of MSP430 device Connect or J5 External power con nector Re mo ve R8 a nd j u mp e r R 9[...]

  • Página 60

    Hardware B-10 Note : Connections betwe en the J TAG header and pins XOUT and XI N are no longer required , and should no t be made. Figure B-9. MSP-TS430PM64 Target Socket module, Schematic, Rev. 1.1[...]

  • Página 61

    Hardware B-11 Figure B-10. MSP-TS430PM64 Target Socket module, PCB Pictorials, Rev. 1.1 Connect or J5 External power con nection Re mo ve R8 a nd j u mp e r R 9 LED conn ected to pin 12 Jumper J7 Open to measure cu rren t Jum per J6 Open to disconn ect LED Orient P in 1 of M SP 430 devi ce[...]

  • Página 62

    Hardware B-12 B.1 History of changes to MSP-TS430PM64 Target Socket module Changes from Rev. 0 .1 to 1.0: Connector J 5 for ex ternal power was add ed Connectors FETJ2 a nd FE TJ3 were rem oved C8 was cha nged fro m 100nF to 10nF R5 was cha nged fro m 100k to 47k R13 and R 14 were a dded t o support B SL usage on F4 13. They are not assembled R4 wa[...]

  • Página 63

    Hardware B-13 Figure B-11. MSP-TSPN80 Target Socket module, Schematic[...]

  • Página 64

    Hardware B-14 Figure B-12. MSP-TSPN80 Target Socket module, PCB Pictorials Connect or J5 External power con nection Re mo ve R8 a nd j u mp e r R 9 Orient P in 1 of M SP 430 devi ce LED conn ected to pin 12 Jum per J6 Open to disconn ect LED Jumper J7 Open to measure cu rren t[...]

  • Página 65

    Hardware B-15 Note : Connections betwe en the J TAG header and pins XOUT and XI N are no longer required , and should no t be made. Figure B-13. MSP-TSPZ100 Target Socket module, Schematic[...]

  • Página 66

    Hardware B-16 Figure B-14. MSP-TSPZ100 Target Socket module, PCB Pictorials Connect or J5 External power con nection Remo ve R8 and ju mpe r R9 Orient P in 1 of M SP 430 devi ce LED conn ected to pin 12 Jum per J6 Open to disconn ect LED Jumper J7 Open to measure cu rren t[...]

  • Página 67

    Hardware B-17 Figure B-15. MSP-FET430UIF USB Interf ace schematics[...]

  • Página 68

    Hardware B-18[...]

  • Página 69

    Hardware B-19[...]

  • Página 70

    Hardware B-20[...]

  • Página 71

    Hardware B-21[...]

  • Página 72

    [...]

  • Página 73

    C-1 Appendix C FET Specific Menus This ap pendix d escr ibes the C-S PY men us that ar e spec ific to th e FET. Topic Page C.1 EMULATOR C-2 C.1.1 EMULATOR->RELEASE JT A G ON GO C-2 C.1.2 EMULATOR->RESYNCHRONIZE JTAG C-2 C.1.3 EMULATOR->INIT NEW DEVICE C-2 C.1.4 EMULATOR->SHOW USED BREAKPOINTS C-2 C.1.5 EMULATOR->ADVAN CED->GENERAL[...]

  • Página 74

    FET Spec ific Menus C-2 C.1 EMULATOR The current devic e ty pe is display ed. C.1.1 EMULATOR->RELEASE JTAG O N GO C-SPY uses the d evice JT AG sign als t o debug th e dev ice. On som e MSP430 devices, th ese JT AG signa ls ar e shared with th e devic e port pins. Normal ly, C- SPY mai ntains th e pins i n JTAG mo de so t hat the dev ice c an be [...]

  • Página 75

    FET Spec ific Menus C-3 Refer to A ppendix D . C.1.7 EMULATO R->ADVANCED- >MEMO RY DUMP Write the specif ied dev ice memory contents t o a s pecified file. A c onvent ional dialog is displ ayed that permits the user to spec ify a f ile name, a memory starting address , and a l ength. Th e address ed mem ory is then writt en in a text format t[...]

  • Página 76

    FET Spec ific Menus C-4 C.1.14 EMULATO R ->GI E on/off Enables or disa bles al l inter rupts. Nee ds to be re stored manual ly befor e GO. C.1.15 EMULATOR->LEAVE TARG ET RUNNING If C-SPY is close d, the targ et keeps ru nning the user program. C.1.16 EMULATOR->FO RCE SING LE STEPPI NG On GO the program i s executed by single steps. Only in[...]

  • Página 77

    D-1 Appendix D 80-pin MSP430F44x and MSP430F43x Device Emulation 80-pin M SP430F44x and MSP430F4 3x dev ices c an be emulated by the 100-pin MSP43 0F44 9 devi c e. Table D-1. F 4xx/8 0-pin S ignal Map ping lis ts wher e the pin sign als of an 80- pin devic e appear on th e pins of an MSP- TS43 0PZ100 Target Socket module. Note: Th e MSP-T S430PZ1 0[...]

  • Página 78

    80-pin M SP430F44x and M SP430F4 3x Device Emulati on D-2 Table D-1. F4xx/80-pin Signal Mapping F4xx/80-pin Signal F4xx/80-pin Pin Number MSP430- TS430PZ100 Pin Number Connection required between indicated pin s of MSP430- TS430PZ100 socket DVcc1 1 1 P6.3/A3 2 2 P6.4/A4 3 3 P6.5/A5 4 4 P6.6/A6 5 5 P6.7/A7 6 6 VREF+ 7 7 XIN 8 8 XOUT 9 9 VeREF+ 10 10[...]

  • Página 79

    80-pin M SP430F44x and M SP430F4 3x Device Emulati on D-3 P5.5/R13 49 57 P5.6/R23 50 58 P5.7/R33 51 59 DVcc2 52 60 DVss2 53 61 P2.5/URXD0 54 74† P2.4/UTXD0 55 75 P2.3.TB2 56 76 P2.2/TB1 57 77 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/MC[...]

  • Página 80

    [...]

  • Página 81

    E-1 Appendix E TI to IAR 2.x/3.x Assembler Migration Texas Ins truments made a suite of develo pment t ools f or the MS P430, includi ng a compr ehens ive as sembler and dev ice sim ulator. T he so urce of the TI assembler and t he source of t he Kickstart assembler are not 100% compatib le; the instruc tion mne monic s are iden tica l, whil e the [...]

  • Página 82

    TI to IAR 2.x/ 3.x Ass embler Migration E-2 E.1 Segment Control RSEG def ines a Re locat able S EGment. A reloc atable segment m eans t hat the code th at fol lows the R SEG stat ement w ill be plac e *som ewhere* in the region d efined for that seg ment (in t he .xcl fi le). In oth er words, th e cod e can be "r elocated" , and you don&a[...]

  • Página 83

    TI to IAR 2.x/ 3.x Ass embler Migration E-3 consecutive backslashes (). In Asm 430 syntax, a quot e is represented by two consecut ive q uotes ( “”). See ex amples below: Character String Asm430 Syntax (TI) A430 Syntax (IAR) PLAN “C” “PLAN “”C””” “PLAN ”C”” doscomm and.com “dos command.com ” “doscom man[...]

  • Página 84

    TI to IAR 2.x/ 3.x Ass embler Migration E-4 E.2.4 Constant Initi alization Directives Description Asm430 Dir ective (TI) A430 Directive (IAR) Initialize o ne or more s uccessive b ytes or text strings .byte or .strin g DB Initialize a 48-bit MSP430 floating-po int constant .double 1) Initialize a variable-l ength field .field 2) Initialize a 32-bit[...]

  • Página 85

    TI to IAR 2.x/ 3.x Ass embler Migration E-5 E. 2 . 6 F i l e Ref e r en ce D i r e cti ves Description Asm430 Dir ective (TI) A430 Directive (IAR) Include sour ce stat em ents from another file .copy or .in clude #include or $ Identify one or more symbo ls that are defined in th e current mo dule and used in other module s .def PUBLIC or EXPORT Ide[...]

  • Página 86

    TI to IAR 2.x/ 3.x Ass embler Migration E-6 X SET X+1 ; Increment count er ENDR ENDM Additional A430 D irectives (I AR) A430 Directi ve (IAR) Repeatable block assem bly: Formal argum ent is subs tituted by e ach character of a string. REPTC Repeatable block assem bly: fo rmal argument is substitut ed by each string of a list of a ctual argum ents. [...]

  • Página 87

    TI to IAR 2.x/ 3.x Ass embler Migration E-7 E.2.9 Macro Directives Description Asm430 Dir ective (TI) A430 Directive (IAR) Define a macro .macro MACRO Exit premature ly from a m acro .mexit EXITM End macro def inition .endm ENDM Additional A430 D irectives (I AR) A430 Directi ve (IAR) Create sym bol, loca l to a macr o LOCAL 1) 1) In Asm430 lo cal [...]

  • Página 88

    TI to IAR 2.x/ 3.x Ass embler Migration E-8 Additional A430 D irectives (I AR) A430 Directi ve (IAR) Assign a va lue to a prepr ocessor s ymbol #defi ne Undefine a preprocessor s ymbol #undef Conditiona l assemb ly #if, #else, # elif Assemble if a preproces sor symbol is defined (not defined) #ifdef, #ifnde f End a #if, #ifd ef or #ifndef block #en[...]

  • Página 89

    TI to IAR 2.x/ 3.x Ass embler Migration E-9 LSTPAG (+/-) #if, #else, # elif COM MON LSTXREF (+/-) #ifde f, #ifndef STAC K #endif ALIG N #include ORG #error[...]

  • Página 90

    [...]

  • Página 91

    F-1 Appendix F MSP-FET430UIF Installation Guide This sec tion d escribes the hardware instal lation pr oces s of the MS P- FET430UIF USB deb ug int er face on a PC runni ng Windows XP. The installation procedure for a Windows 2000 system is v ery similar and therefore no t show n here. Topic Page F.1 Hardware Installation F-2[...]

  • Página 92

    MSP-FET430UIF Installa tion Gu ide F-2 F.1 Hardware Installation 1) Connect the MSP-F ET430UIF USB Debug Interf ace with a USB ca ble to a US B port of y our PC 2) Windows now shou ld recog nize the n ew hardwar e as a n “MSP4 30 USB FET x. xx.xx” (Figure F-1). Figure F-1. WinXP Hardware Recognition 3) The Hardwar e Wizar d shou ld start automa[...]

  • Página 93

    MSP-FET430UIF Installa tion Gu ide F-3 Figure F-3. WinXP Driver Location Selection Folder 6) The Wizar d shoul d genera te a m essage t hat an appr opriate driver has been found. 7) Note that WinXP sh ows a warning t hat the dr iver is n ot certif ied by Microsoft. Ignore th is warn ing a nd click “Cont inue Any way” (F igure F-4).[...]

  • Página 94

    MSP-FET430UIF Installa tion Gu ide F-4 Figure F-4. WinXP Driver Installation 8) In the next s tep t he Wizar d insta lls the dr iver files. 9) The Wizar d now sh ows a mes sage that it has fi nishe d the ins tallat ion of the softw are for “M SP430 US B FET A dapter” . 10) After clos ing the Har dware Wizard, Windows autom atically recog nizes [...]

  • Página 95

    MSP-FET430UIF Installa tion Gu ide F-5 Figure F-5. Device Manager[...]