Texas Instruments EVM430-i2040SUBMTR User Manual Download Page 52

Prepaing the Application Code to Run

www.ti.com

5.

Select the

Download

tab. Due to the design of the firmware to protect against unintentional deletion of

factory parameters like the calibration for the clock speed, the calibration values are stored in the main
memory in flash page 0x8000 to 0x83FF. Thus the calibration value is NOT preserved when

Erase

main memory

or

Erase main and information memory

is selected (see

Figure A-4

). The user

should select

Erase main memory

as the option for download to preserve the factory parameters.

Figure A-4. Download Options

6. Click OK after all of the changes are made.

7. Rebuild the project by right clicking on the project and select [Rebuild All] from the pop-up menu (see

Figure A-5

). Three warnings will be reported during rebuilding (see

Figure A-6

), it is safe to ignore the

three warnings. To open the project workspace, modify the code, compile, and download the code, the
user must have IAR Embedded Workbench 5.5 installed with a valid license. If a valid license is not
available, the user can still down load the object code. See

Section A.3

for downloading procedures.

52

Example Application Code

SLAU587 – August 2014

Submit Documentation Feedback

Copyright © 2014, Texas Instruments Incorporated

Summary of Contents for EVM430-i2040SUBMTR

Page 1: ...MSP430i2040 Embedded Metering EVM EVM430 i2040SUBMTR User s Guide Literature Number SLAU587 August 2014 ...

Page 2: ...apacitance 21 3 3 3 Calibration of Current AC Offset 22 3 3 4 Calibration of Voltage AC Offset 22 3 3 5 Calibration of Phase Correction 22 3 3 6 Calibration of DC Parameters 22 4 Serial Communication Commands 23 4 1 Introduction 23 4 2 Communication Protocol 23 4 2 1 Polling Mode 23 4 3 Commands 25 4 3 1 HOST_CMD_GET_METER_NAME 25 4 3 2 HOST_CMD_GET_METER_VER 25 4 3 3 HOST_CMD_GET_METER_CONFIGURAT...

Page 3: ...ded Metering Library Callbacks 40 5 5 3 Application Level Calibration Functions 41 A Example Application Code 48 A 1 Introduction 48 A 2 Prepaing the Application Code to Run 48 A 3 Downloading Without an IAR License 55 B Hardware Design Files 58 B 1 Package 58 B 2 Schematic 59 C EVM Specification and Performance 60 C 1 EVM Specifiction 60 C 2 EVM Performance 61 C 2 1 Power Accuracy at Room Tempera...

Page 4: ...Optimization Options 50 A 3 Debugger Options 51 A 4 Download Options 52 A 5 Compiling the Application 53 A 6 Warnings 53 A 7 Connecting EVM and FET 54 A 8 Code Downloading 54 A 9 Debugger Screen 55 A 10 EVM Running 55 A 11 Download File 56 A 12 Select File 57 B 1 EVM Schematic 59 C 1 Power Percentage Error vs Load Current A 62 C 2 Typical Accuracy vs Temperature 63 D 1 IAR 5 5 Launch Window 64 D 2...

Page 5: ... present for the purpose of protecting inadvertent access d All interface circuits power supplies evaluation modules instruments meters scopes and other related apparatus used in a development environment exceeding 50Vrms 75VDC must be electrically located within a protected Emergency Power Off EPO protected power strip e Use stable and nonconductive work surface f Use adequately insulated clamps ...

Page 6: ... for download from the Texas Instruments web site including more documentation application notes example application code and software 1 2 Safety and Precautions The EVM is designed to operate by professionals who received appropriate technical training yet it is designed to operate from ac supply or high voltage dc supply please read the safety related documents that come with the EVM package and...

Page 7: ...r energy inverter Electrical vehicle charger Home monitoring security and automation In this document all the description of the configuration operation features behaviors functions and interfaces is based on the default firmware that is pre programmed on the EVM and the original EVM hardware design Proper functionality is not ensured if changes made to the hardware or the firmware 1 5 Features Ha...

Page 8: ...Isolated Debug Interface Hardware www ti com 1 6 Hardware This section introduces the parts on the EVM and describes the procedures to set up the hardware for evaluation 1 6 1 Top View of the EVM Figure 1 1 EVM Top View 1 6 2 Bottom View of the EVM Figure 1 2 EVM Bottom View 8 Getting Started SLAU587 August 2014 Submit Documentation Feedback Copyright 2014 Texas Instruments Incorporated ...

Page 9: ... dc source positive to LIVE_IN connector Solder the ac source neutral or dc source negative to NEUTRAL_IN connector Solder the load s live or positive power input to LIVE_OUT connector Solder the load s neutral or negative power input to NEUTRAL_OUT connector 1 6 3 4 Debugging Interface Spy Bi Wire is used on this EVM as the debug interface to external debugger Before connecting to MSP FET430UIF i...

Page 10: ...5 and Appendix A Hardware design files including schematic layout and bill of materials also see Appendix B 1 7 2 Setting up the PC Software Tool 1 7 2 1 Minimum System Requirement PC with RS232 port or a RS232 port through USB PC running Microsoft Windows XP SP3 or Windows 7 The software tool has been tested to run properly on a Pentium M 1 4 GHz PC with 1 25GB of RAM installed thus it is assumed...

Page 11: ...1 Right click My Computer Icon and select Properties in the pop up menu 2 Select the Hardware tab in the System Properties Window then Click the Device Manager to go to the Device Manager window Figure 1 3 System Properties Window 11 SLAU587 August 2014 Getting Started Submit Documentation Feedback Copyright 2014 Texas Instruments Incorporated ...

Page 12: ...m 3 Find the COM port number of the serial port that connecting the PC and the EVM Figure 1 4 Device Manager Window 12 Getting Started SLAU587 August 2014 Submit Documentation Feedback Copyright 2014 Texas Instruments Incorporated ...

Page 13: ...urement is needed a variable dc load or the UUT is also recommended Alternatively an ac test set that can generate the rated loading A reference meter that can give ac parameters of V_RMS I_RMS and P_ACTIVE The following links provide information about the instruments that were used for testing and calibrating the design AC Meter Test Set http en 3gcnkaipu com products_list pmcId 10 html Reference...

Page 14: ...ltage half cycle LED2 OFF Positive voltage half cycle ON Not used LED3 OFF Not used ON Foreground operations running LED4 OFF Foreground operations completed ON EVM is in ac mode measurement LED5 OFF EVM is not in ac mode measurement ON EVM is in dc mode measurement LED6 OFF EVM is not in dc mode measurement ON Active energy pulse pulsing LED7 OFF Active energy pulse idle The EVM is now ready to r...

Page 15: ... 1 Calibrator Software Startup Window Click the Comms indicator to open the Meter Status window see Figure 2 2 15 SLAU587 August 2014 Operating the PC Software Tool Submit Documentation Feedback Copyright 2014 Texas Instruments Incorporated ...

Page 16: ...e on PC reads the EVM every second and also averages the data read thus the update rate is slower than the update rate of the EVM At the bottom of this window there are four buttons Click the Meter Consumption button to open the Meter Consumption window Because the EVM does not support this feature the Meter Consumption window gives no useful information Click the Meter Calibration Factors button ...

Page 17: ...his is not the exact feature of the EVM Figure 2 4 Meter Features Window Click the Manual Cal button brings up the Meter Error window In this window the adjustment to the calibration factor values could be done by entering the percentage error of the reading from the EVM compare to the reading from the reference meter The technique and procedure of performing 17 SLAU587 August 2014 Operating the P...

Page 18: ...tware that is customized for embedded metering Neutral Monitoring is shown in the Meters Features window as a supported feature but this is not correct When wire resistance compensation or inlet capacitor compensation is enabled the calibrator interprets this as neutral monitoring support Resistance value of wire resistance compensation and capacitance value of inlet capacitor compensation cannot ...

Page 19: ...N CAP RES VDC_OFFSET IDC_OFFSET are parameters that will be calibrated during the process an estimated value is put into the memory during design characterization to help to speed up calibration Note Default CAP and RES should set to 0 before calibration VAC_OFFSET IAC_OFFSET PHASE_CORRECT are parameters that may not need calibration but a characterization would be sufficient for embedded metering...

Page 20: ...st voltage reading at the voltage set for VGAIN calibration 2 Or if percentage error is used as with the provided calibration software 3 d Write and apply the calibrated VGAIN 2 Calibrating IGAIN a Set VIN to line voltage b Set to High Highest possible load c Calculate IGAIN value with Equation 4 where IGAINn 1 is the new current calibration factor IGAINn is the original current calibration factor...

Page 21: ...n of VGAIN IGAIN and PGAIN follow these steps to calibrate the compensation to wire resistance and EMI capacitance 1 Calibrating RES a Calculate RES with the give equation where RWIRE is the estimated wire resistance VREF Imax is the reference meter voltage reading at the current set for IGAIN calibration VUUT Imax is the unit under test voltage reading at the current set for IGAIN calibration Ima...

Page 22: ...t at power factor 0 5 in the other direction used in step 3 6 Note the error 7 At this point the two errors should be approximately the same deviation but different direction from the calibrated power error at PF 1 for example at PF 1 the calibrated error is 0 1 and if at PF 0 5 the error reads approximately 0 5 then at PF 0 5 the error should read approximately 0 3 8 Adjust the phase correction w...

Page 23: ...ng calibration factors 4 2 1 Polling Mode When EVM is running the EVM waits for a command from the host through the serial port When the command frame receives and passes the frame checking the EVM interprets the command and performs the requested action The EVM communicates with the host using a data frame format as shown in Figure 4 1 Figure 4 1 Polling Mode Data Frame Format The frame starts wi...

Page 24: ... the same structure in the header and the frame end the difference is in the data field The first 2 bytes in the data field of a command is CMDH and CMDL which defines the command and the parameters that follows After receiving a valid command frame from the host the EVM responds to the host with a respond frame with the RSPH CMDH and RSPL CMDL 0x80 CMDL cannot use value larger than 0x7F The respo...

Page 25: ...mbers as defined by the following lines in metrology calibration template h define METER_SOFTWARE_VERSION define METER_HARDWARE_VERSION define METER_METROLOGY_VERSION define METER_PROTOCOL_VERSION 4 3 2 1 Command Format HOST_CMD_GET_METER_VERSION Command Respond LEN 2 18 Offset Width Data Offset Width Data CMDH 0 U8 0x53 0 U8 0x53 CMDL 1 U8 0x00 1 U8 0x80 2 U8 4 4 byte software version 6 U8 4 4 by...

Page 26: ...wer Bit 6 Reserved Bit 6 Measures mains frequency Bit 5 Reserved Bit 5 Measures power factor Bit 4 Reserved Bit 4 Measures IRMS Bit 3 Reserved Bit 3 Measures VRMS Bit 2 Wire Resistance Compensation Support Bit 2 Measures Apparent Power Bit 1 Inlet Capacitor Compensation Support Bit 1 Measures trigonometric reactive power Bit 0 Neutral Monitor Support Bit 0 Measures active Power Features 1 Features...

Page 27: ...CTORS Command Respond LEN 2 2 Offset Width Data Offset Width Data CMDH 0 U8 0x5A 0 U8 0x5A CMDL 1 U8 0x00 1 U8 0x80 4 3 6 HOST_CMD_SET_PASSWORD This command passes from the host to the EVM the password to enable calibration mode which allows calibration and other functions to be executed If auto report mode is enabled this command also disable the auto report mode and sets the EVM to polling mode ...

Page 28: ...EN 2 34 Offset Width Data Offset Width Data 0x6n CMDH 0 U8 0 U8 0x6n n 1 2 3 n 1 2 3 0xdp 0x80 0xdp CMDL 1 U8 always 0x00 in this 1 U8 d device 0 7 p phase 1 15 EVM 2 S32 Voltage in mV 6 S32 Current in µA 10 S32 Active power in mW 14 S32 Reactive power in mW 18 S32 Apparent power in mW 22 S16 Power factor in 0 001 24 S16 Frequency in 0 01 Hz 26 S32 Voltage channel dc offset 30 S32 Current channel ...

Page 29: ...ive power in 2 S32 mW Fundamental reactive power in 6 S32 mW 10 S32 Fundamental voltage in mV 14 S32 Fundamental current in µA 18 U16 Voltage THD in 0 01 20 U16 Current THD in 0 01 22 Next 12 bytes reserved 4 3 9 HOST_CMD_SUMCHECK_MEMORY This command requests the EVM to perform a calculation and return of 16 bit checksum from the start flash address to the end flash address inclusive 4 3 9 1 Comma...

Page 30: ...on values with the values listed Make sure the flash page contains the calibration values is read saved and erase before executing this command NOTE Only CMDH 0xD1 is supported by this EVM 4 3 11 1 Command Format HOST_CMD_SET_CALIBRATION_PHASE_n Command Respond LEN 30 2 Offset Width Data Offset Width Data 0xD0 n CMDH 0 U8 0xD0 n 0 U8 n 1 2 3 0x80 0xdp 0xdp CMDL 1 U8 1 U8 d device 0 7 always 0x00 i...

Page 31: ... in 1 1024 Ts 20 U16 Vrms scaling factor 22 U16 Wire resistance in 1 256 Ω 24 U16 Irms scaling factor 26 U16 Reserved 28 U16 Power scaling factor 4 3 13 HOST_CMD_SET_CALIBRATION_EXTRAS This commands the EVM to set the extra calibration values with the values listed Make sure the flash page contains the calibration values is read saved and erase before executing this command 4 3 13 1 Command Format...

Page 32: ...ATION_EXTRAS Command Respond LEN 2 10 Offset Width Data Offset Width Data CMDH 0 U8 0xDA 0 U8 0xDA CMDL 1 U8 0x00 1 U8 0x80 2 U16 Calibration status 4 U16 Intercept temperature 6 U16 Temperature intercept 8 U16 Temperature slope degree 32 Serial Communication Commands SLAU587 August 2014 Submit Documentation Feedback Copyright 2014 Texas Instruments Incorporated ...

Page 33: ...e source code of this library is not included in the package Contact the Texas Instrument Sales Team in your area if the source code is needed ADC setup Parameter initializations Sample based background processing Reporting cycle based foreground processing Reading application interface 3 The toolkit packaged into a library named emeter toolkit i2041 r43 Low level computation routines 5 3 Toolkit ...

Page 34: ... based on the information collected from the voltage and current ADC channels The computation engine performs its actions in a time critical background processing and a less time critical foreground processing The background processing is triggered by the ADC at the sample rate It is running in the interrupt services routine of the ADC and is processed automatically The foreground processing is tr...

Page 35: ... Current channel high pass filtering dc offset removal b Adjust phase correction to current i sample c Integration of square of current i sample d Capacitor compensation 4 Power processing a Integrate voltage i current i b Integrate quadrature voltage i current i c Integrate fundamental active power d Integrate fundamental reactive power 5 Line frequency processing a Update sample count since last...

Page 36: ...active power by scaling with number of samples and power scaling factor 2 Voltage processing a Calculate the RMS voltage by scaling with number of samples perform square root and multiply with the voltage scaling factor b Calculate the fundamental RMS voltage by scaling with number of samples perform square root and multiply with the voltage scaling factor c Current processing i Calculate the RMS ...

Page 37: ...with data collected by background processing Reading result from metrology calculations 5 5 1 1 Functions for Metrology Engine Control 5 5 1 1 1 int metrology_init void Check if PGAIN in the calibration parameter memory is 0xFFFF if true copy the default calibration parameter to calibration parameter memory Skip copying otherwise Parameter none Return 0xFFFF if calibration parameter memory is init...

Page 38: ...his function must be called by application explicitly when an indication is received to ensure correct readings This function performs the non time critical metrology calculations with data collected in background process Upon returning all metrology reading is updated Parameter none Return Active Power reading 5 5 1 2 2 power_t active_power int ph Get the latest active power reading of phase ph P...

Page 39: ...phase ph 5 5 1 2 8 rms_voltage_t rms_voltage int ph Returns the latest root mean square voltage of phase ph Parameter ph 1 Return latest root mean square voltage measured on phase ph 5 5 1 2 9 rms_voltage_t fundamental_rms_voltage int ph Returns the latest fundamental root mean square voltage of phase ph Parameter ph 1 Return latest fundamental root mean square voltage of phase ph 5 5 1 2 10 thd_t...

Page 40: ...plication code even an empty function is acceptable in case there is no need to process the event In the provided application example the callback functions are implemented in emeter main c 5 5 2 1 void BACKGROUND_PROCESS_ON void Called when background process starts 5 5 2 2 void BACKGROUND_PROCESS_OFF void Called when background process finished 5 5 2 3 void FOREGROUND_PROCESS_ON void Called when...

Page 41: ...ring library Interpretation is to be defined by application 5 5 3 1 2 void set_calibration_status int value Sets the calibration status to a specific value into the calibration parameter memory The parameter value is not defined by the embedded metering library Interpretation is to be defined by application 5 5 3 1 3 int clear_calibration_data void Clear all calibration data in calibration paramet...

Page 42: ...or type definition of calibration_scaling_factor_t 5 5 3 1 8 void set_P_scaling int phx calibration_scaling_factor_t value Write power scaling factor of phase phx with value Parameter phx 1 value the value to be written to power scaling factor in calibration parameter memory Return none 5 5 3 1 9 calibration_scaling_factor_t get_V_rms_scaling int phx Get the voltage scaling factor of phase phx Par...

Page 43: ...calibration parameter memory 5 5 3 1 15 void set_v_ac_offset int phx int32_t value Write the voltage channel ac offset of phase phx with value Value should be calculated as 23 Parameter phx 1 value the value to be written to voltage channel ac offset for phase phx in square of ADC counts in calibration parameter memory Return none 5 5 3 1 16 calibration_scaling_factor_t get_I_rms_scaling int phx G...

Page 44: ...n ADC counts in calibration parameter memory Return none 5 5 3 1 21 int32_t get_i_ac_offset int phx Get the current channel ac offset of phase phx Parameter phx 1 Return the current channel ac offset in square of ADC counts of phase phx to be stored in calibration parameter memory 5 5 3 1 22 void set_i_ac_offset int phx int32_t value Write the current channel ac offset of phase phx with value Valu...

Page 45: ... phx uint16_t value Write wire resistance value of phase phx with value Parameter phx 1 the wire resistance to be written in units of 1 256 Ω to calibration parameter memory Return none 5 5 3 1 27 int16_t get_phase_corr int phx Get phase correction of phx Parameter phx 1 Return the phase correction value in unit of 97 65625 µs in calibration parameter memory 5 5 3 1 28 void set_phase_corr int phx ...

Page 46: ...s scale 5 5 3 2 2 DEFAULT_TEMPERATURE_SLOPE ADC counts per 0 1 degree Celsius increment 5 5 3 2 3 DEFAULT_ROOM_TEMPERATURE Calibration temperature in 0 1 degree C unit 5 5 3 2 4 DEFAULT_BASE_PHASE_A_CORRECTION The phase correction between voltage and current channel due to hardware 5 5 3 2 5 DEFAULT_P_SCALE_FACTOR_A Power scaling factor 5 5 3 2 6 DEFAULT_V_RMS_SCALE_FACTOR_A Voltage scaling factor...

Page 47: ...he provided example code MSP430I2040SUBMETEREVM 5 5 3 2 15 METER_SOFTWARE_VERSION Defines the software version of the meter as reported by HOST_CMD_GET_METE_VER 5 5 3 2 16 METER_HARDWARE_VERSION Defines the hardware version of the meter as reported by HOST_CMD_GET_METE_VER 5 5 3 2 17 METER_METROLOGY_VERSION Defines the Metrology library version of the meter as reported by HOST_CMD_GET_METE_VER 5 5...

Page 48: ...ter template h source code for configuration will be discussed later metrology calibration default c source code to put the user defined default calibration parameter into a proper data structure metrology calibration template h source code of user defined default calibration parameter emeter autoreport c source code for performing auto reporting Note To enable auto report support uncomment the de...

Page 49: ...www ti com Prepaing the Application Code to Run Figure A 1 Project Options 49 SLAU587 August 2014 Example Application Code Submit Documentation Feedback Copyright 2014 Texas Instruments Incorporated ...

Page 50: ...e left hand column and then select the Optimizations tab on the right hand side and check that the optimization setting is as shown in Figure A 2 Figure A 2 Optimization Options 50 Example Application Code SLAU587 August 2014 Submit Documentation Feedback Copyright 2014 Texas Instruments Incorporated ...

Page 51: ...n the select Setup tab The EVM uses Spy Bi Wire for its code downloading and debugging Check to make sure the optionsis as shown in Figure A 3 Figure A 3 Debugger Options 51 SLAU587 August 2014 Example Application Code Submit Documentation Feedback Copyright 2014 Texas Instruments Incorporated ...

Page 52: ... factory parameters Figure A 4 Download Options 6 Click OK after all of the changes are made 7 Rebuild the project by right clicking on the project and select Rebuild All from the pop up menu see Figure A 5 Three warnings will be reported during rebuilding see Figure A 6 it is safe to ignore the three warnings To open the project workspace modify the code compile and download the code the user mus...

Page 53: ...epaing the Application Code to Run Figure A 5 Compiling the Application Figure A 6 Warnings 53 SLAU587 August 2014 Example Application Code Submit Documentation Feedback Copyright 2014 Texas Instruments Incorporated ...

Page 54: ...A 7 Connecting EVM and FET 9 Click the Download and Debug button to begin download and debugging see Figure A 8 Figure A 8 Code Downloading 10 After downloading is completed and succeed Figure A 9 appears Click Go to start application running see Figure A 10 54 Example Application Code SLAU587 August 2014 Submit Documentation Feedback Copyright 2014 Texas Instruments Incorporated ...

Page 55: ...still be downloaded to the board with the following steps using the installed IAR Embedded Workbench 5 5 1 Open the project workspace as described in Section A 2 steps 1 through 5 Then connect the board to the MSP FET430UIF as described in step 8 2 Click Project Download Download File see Figure A 11 55 SLAU587 August 2014 Example Application Code Submit Documentation Feedback Copyright 2014 Texas...

Page 56: ...select the file select the file named emeter app i2041 d43 from the folder Submeter i2040 4k_3_SOCK_AUTO_OSR_IAR5 5 emeter app emeter app i2041 Debug Exe see Figure A 12 56 Example Application Code SLAU587 August 2014 Submit Documentation Feedback Copyright 2014 Texas Instruments Incorporated ...

Page 57: ...ng Without an IAR License Figure A 12 Select File 4 The executable code is downloaded to the board 57 SLAU587 August 2014 Example Application Code Submit Documentation Feedback Copyright 2014 Texas Instruments Incorporated ...

Page 58: ...p which expanded to a folder called Hardware The following files are included Schematic in PDF format Schematic CAD file in Altium Designer format PCB layout CAD file in Altium Designer format Bill of materials PCB layout files in Gerber file format 58 Hardware Design Files SLAU587 August 2014 Submit Documentation Feedback Copyright 2014 Texas Instruments Incorporated ...

Page 59: ...www ti com Schematic B 2 Schematic Figure B 1 EVM Schematic 59 SLAU587 August 2014 Hardware Design Files Submit Documentation Feedback Copyright 2014 Texas Instruments Incorporated ...

Page 60: ...MS current active power reactive power apparent power power factor line frequency temperature Measurement voltage range 0 265 Vrms AC 0 to 380 VDC using reference design circuit and component values Measurement current range 0 to 15 Arms AC 0 to 22 5 ADC using reference design circuit and 0 5 mΩ shunt values Voltage resolution 1 mV Current resolution 1 µA Active Power resolution 1 mW Reactive and ...

Page 61: ...66 0 145141 0 000025 0 017 13 287 13 298 0 011 0 083 0 295495 0 295481 0 000014 0 005 27 587 27 589 0 002 0 007 0 747391 0 747393 0 000002 0 000 71 399 71 492 0 093 0 130 1 500100 1 500000 0 000100 0 007 165 134 165 379 0 245 0 148 2 988390 2 989000 0 000610 0 020 319 346 319 745 0 399 0 125 7 402320 7 400000 0 002320 0 031 596 562 596 954 0 392 0 066 14 371200 14 354000 0 017200 0 120 890 268 889...

Page 62: ...1 Power Percentage Error vs Load Current A NOTE It can be seen in Figure C 1 that the error begins to go negative at higher current This phenomenon occurs because the shunt is heated by the current flowing through the traces on the board At low current the higher error is mostly caused by noise that causes instability of the readings 62 EVM Specification and Performance SLAU587 August 2014 Submit ...

Page 63: ...0 054 0 003 4 991 5 000 0 193 1098 330 1099 840 0 137 50 220 054 220 053 0 000 4 988 5 000 0 256 1097 580 1099 920 0 213 55 220 026 219 996 0 014 4 983 5 000 0 343 1096 890 1099 910 0 275 60 220 050 220 027 0 010 4 979 5 000 0 427 1095 800 1099 890 0 372 65 220 009 220 051 0 019 4 974 5 000 0 522 1094 700 1100 020 0 484 70 219 968 219 995 0 012 4 969 5 000 0 630 1093 210 1099 940 0 612 75 219 896 ...

Page 64: ...gured for MSP430i2041 To run on MSP430i2040 follow these steps once 1 Open the workspace After launching IAR 5 5 select File Open Workspace Figure D 1 IAR 5 5 Launch Window 64 Running on MSP430i2040 and MSP430i2041 SLAU587 August 2014 Submit Documentation Feedback Copyright 2014 Texas Instruments Incorporated ...

Page 65: ...y of the example code Figure D 2 Open Workspace Window 2 Set the option Right click on the project emeter app i2041 and select Options Figure D 3 Workspace Options 65 SLAU587 August 2014 Running on MSP430i2040 and MSP430i2041 Submit Documentation Feedback Copyright 2014 Texas Instruments Incorporated ...

Page 66: ...on of the entry box and select MSP430Ixxxx Family MSP430I2040 Figure D 4 Options Window Click on Linker in the left hand column and select the Config tab Then click on the right hand button in the Linker configuration file box Figure D 5 Config Tab 66 Running on MSP430i2040 and MSP430i2041 SLAU587 August 2014 Submit Documentation Feedback Copyright 2014 Texas Instruments Incorporated ...

Page 67: ...ck Open Figure D 6 Selecting Default XCL File When brought back to the Options window click OK Figure D 7 Finishing the Setting Changes 67 SLAU587 August 2014 Running on MSP430i2040 and MSP430i2041 Submit Documentation Feedback Copyright 2014 Texas Instruments Incorporated ...

Page 68: ...SP430i2040 To have the project to run back on MSP430i2041 follow the same steps except to select MSP430Ixxxx Family MSP430I2041 in the Options window and select lnk430i2041_temp xcl when prompted in the Linker configuration file box 68 Running on MSP430i2040 and MSP430i2041 SLAU587 August 2014 Submit Documentation Feedback Copyright 2014 Texas Instruments Incorporated ...

Page 69: ...esponsible for compliance with all legal regulatory and safety related requirements concerning its products and any use of TI components in its applications notwithstanding any applications related information or support that may be provided by TI Buyer represents and agrees that it has all the necessary expertise to create and implement safeguards which anticipate dangerous consequences of failur...

Reviews: