Staging:CC3100 & CC3200 Current Measurements Setup

Dynamic Current Measurement methods
Application energy consumption profile describes the consumption of the system for different system modes over time. The profile also includes the energy consumed for the transition between system modes. The total energy consumed is an integral of the current consumed, measured in units of Amperes, over time from the supply: Energy: E [Jouls]= ∫Vsupply*Idt

Alternatively the charge consumption could be calculated: Charge: C [coulomb ]= ∫ Idt

Commonly, a simpler, piece-wise linear approximation description of energy consumption is used: Energy: E [Jouls]= ∑_(x=1)^n(Vsupply*Ix*Tx )

Alternatively the charge consumption could be calculated: Charge: C [coulomb]= ∑_(x=1)^n(I_x*T_x )

The application power consumption could be measured in various methods, using:
 * Oscilloscope with Current Probe
 * Mobile Communications DC source (Example presented using Agilent 66319D)

Oscilloscope with Current Probe

 * 1)  Tools Needed 
 * 2) Oscilloscope(Tektronix TDS7404/TDS5104B)
 * 3) 	Current probe with Amplifier(Tektronix TCP312 and TCPA300)
 * 4) 	External 3.3V supply source(Agilent E3631A)
 * 5) 	Short cables to connect 3.3V external supply to device
 * 6)  FW Needed 
 * 7) Use TI benchmark code or your application FW
 * 8)  Pre-requisites / Things to Consider 
 * 9) 	This setup is suited for active current measurements only or current numbers, which are higher than min measurable currents using particular current probe (with current probe and oscilloscope which we have in our lab, we could measure current numbers accurately which are higher than 10mAmp).
 * 10) 	Make sure FULL bandwidth is selected for the channel where current probe is connected this is to make sure you do not miss out any glitch/spike while measuring currents.
 * 11) 	Calibrate current probe before connecting across supply line and align current direction mark (arrow) on current probe with current direction in supply line (if not you will see negative currents on the oscilloscope)
 * 12) 	Always feed external 3.3V supply at VBAT_CC pin and connect current probe across this supply line and measure current.
 * For the CC3200Launchpad : Connecting wire across jumper(J12) is not a good method, since this will alter the DCDCs inductor values.
 * 1) 	Check the current limit that you have set for the external supply, lower current limit may RESET the device.
 * 2) 	Calibrate for voltage drop across the wire connecting supply to the device (use short and multi strand wire).
 * 3)  Procedure 
 * 4) Modifications for each board
 * For CC3100Boosterpack: Remove jumper J6, Connect at Jumper J10, Pin_3.2 for GND.
 * For CC3200LaunchPad: Remove resistor R62 across jumper J12 and also jumper J12
 * 1) 	Connect external supply to the pin, which connects to device(on other pin we can measure 3.3V which is coming from board supply)
 * 2) 	Connect current probe to the positive supply wire and make sure current direction in the wire and arrow on the current probe are in same direction
 * 3) 	Start executing the code and measure the active currents on the oscilloscope
 * 4) *	To measure the charge of a profile, place the cursors to limit the profile and use “math” function to perform integral over time. The result will be the total profile charge in [Coulombs] in between the cursors.
 * 5) *	To measure the peak current of transmit (TX) and receive (RX) modes use the “Y” axis cursors.

Mobile Communications DC source

 * 1)  Tools Needed 
 * 2) 	Agilent 66319D
 * 3) 	Install NI Measurement and Automation explorer and Agilent 66319D GUI
 * 4) 	NI GPIB-USB connector
 * 5) 	Wires to connect instrument to device
 * 6)  FW Needed 
 * 7) Use TI benchmark code or your application FW
 * 8)  Pre-Requisites /Things to Consider 
 * 9) 	This particular setup can be used to measure transient currents.
 * 10) 	Set proper supply Voltage, Current and series resistor value before turning ON the supply Output
 * 11) 	Make sure you select proper range in the “Range” tab before you start the measurements
 * There are three ranges: Low, Mid and HiGH. Select based on the requirement
 * Select the proper time and current divisions, these will be at top left and top right corner of plot window
 * 1) 	Plot in the GUI might not match the current numbers due to software issue. But the Minimum, Average and Maximum values displayed at the bottom are accurate
 * 2) 	In order to measure max current of particular spike/peak use marker, place markers on either side of the spikes and look for max currents
 * 3) 	There is no necessity to tweak settings for the measurements accuracy. Hence Set it to default, software automatically sets the best possible accuracy with the current configuration
 * 4) 	If you select the 4wire connection mode then software will take care of drop across the wire, there is no need to compensate for the drop across the wire.
 * 5)  Procedure 
 * 6) Modifications for each board
 * For CC3100Boosterpack: Remove jumper J6, Connect at Jumper J10, Pin_3.2 for GND
 * For CC3200LaunchPad: Remove resistor R62 across jumper J12 and also jumper J12
 * 1) 	Install necessary software for the instrument 66319D
 * 2) 	Open 66319D GUI and go to “Source” tab and select “I/O Configuration…”.
 * On the pop window press “Auto-Detect”
 * This will show instrument details, which are connected to your PC and prompt if you want to use 66319D as power supply, click “Yes”
 * 1) 	Connect positive terminal of power supply to VBAT_CC pin and GND to board GND
 * 2) 	Configure supply voltage, current and series resistor value and then turn on the power supply.
 * 3) 	Start executing code and press “DLOG” tab if you want to log the data or press “Measure” if you want to measure instantaneous current numbers
 * 4) 	To measure average current over certain period of time or over one complete cycle of active + low power mode, stop measurement after desired time period or one cycle and place markers on either ends and measure currents

Static Current Measurements
The Low power modes power consumption could be measured using digital multi-meter. Here is a description of the setup:

Digital Multimeter

 * 1)  Tools Needed 
 * 2) 	Digital multimeter(Agilent 34401A)
 * 3) 	Short cables to connect multimeter in series with the device
 * 4) Optional: Keysights Software
 * 5)  FW Needed 
 * 6) Use TI benchmark code to generate the system modes
 * 7) *	For Hibernate
 * 8) *	For LPDS
 * 9)  Pre-Requisites / Things to Consider 
 * 10) 	This particular setup should be used to measure constant currents(both low and high currents can be measured provide these currents are constant over time or long interval)
 * 11) 	Start all current measurements with higher current range setting on ammeter and then depending on low power mode configured, reduce the current measurement range
 * 12) 	Take care of the current direction through the ammeter, wrong current direction may lead to negative current numbers
 * 13) 	Use short cables for connecting ammeter to device
 * 14)  Procedure 
 * 15) Modifications for each board
 * For CC3100Boosterpack: Remove jumper J6
 * For CC3200LaunchPad: Remove resistor R62 and connect ammeter across jumper J12
 * 1) 	Configure multimeter to measure DC current and set higher current range
 * 2) 	Check for the current direction, wrong current direction will lead to negative currents
 * 3) 	Release RESET and execute the code
 * 4) 	Once device enters into the configured low power mode, reduce current range and note down the current numbers
 * 5) 	Before you exit from low power mode/RESET the device increase the current range on multimeter to higher value