background image

8.2  AEM Theory of Operation

In order to be able to accurately measure current ranging from 0.1 µA to 50 mA (114 dB dynamic range), a current sense amplifier is
utilized together with a dual gain stage. The current sense amplifier measures the voltage drop over a small series resistor, and the
gain stage further amplifies this voltage with two different gain settings to obtain two current ranges. The transition between these two
ranges occurs around 250 µA. Digital filtering and averaging is done within the Board Controller before the samples are exported to the
Energy Profiler application.

During startup of the kit, an automatic calibration of the AEM is performed. This calibration compensates for the offset error in the sense
amplifiers.

8

Figure 8.2.  Advanced Energy Monitor

8.3  AEM Accuracy and Performance

The AEM is capable of measuring currents in the range of 0.1 µA to 50 mA. For currents above 250 µA, the AEM is accurate within 0.1
mA. When measuring currents below 250 µA, the accuracy increases to 1 µA. Even though the absolute accuracy is 1 µA in the sub
250 µA range, the AEM is able to detect changes in the current consumption as small as 100 nA. The AEM produces 6250 current
samples per second.

Note: 

The current measurement will only be correct when powering the EFM8 from USB power through the debugger (power select

switch set to DBG or AEM).
 

UG238: EFM8SB2-SLSTK2011A User's Guide

Advanced Energy Monitor

silabs.com

 | Building a more connected world.

Rev. 0.3  |  17

Summary of Contents for EFM8SB2-SLSTK2011A

Page 1: ...plication development The kit includes the following KEY FEATURES EFM8SB20F64G MCU with 64 KB Flash and 4 KB RAM 20 pin expansion header Power sources include USB and CR2032 battery 2 user buttons 1 tri color LED 8 direction joystick Silicon Labs Si7021 Humidity and Temperature Sensor 32 kHz crystal for the RTC Ultra low power 128x128 pixel Memory LCD EFM8SB2 Sleepy Bee Starter Kit Board 1 x CR203...

Page 2: ...to use the EFM8SB2 Starter Kit The board comes pre loaded with a default application Clock to interact with while the software downloads After downloading the latest version of Simplicity Studio and installing 1 Select the J Link adapter for the kit under Devices 2 Click one of the demos available under Getting Started Demos or click the Getting Started Demos View All to view the entire list of av...

Page 3: ...is shown in the figure below ADC I2C SMBus Joystick EFM8SB2 Microcontroller GPIO POWER Board Controller UART Figure 2 1 EFM8SB2 SLSTK2011A Block Diagram UG238 EFM8SB2 SLSTK2011A User s Guide Kit Block Diagram silabs com Building a more connected world Rev 0 3 3 ...

Page 4: ...to the MCU Table 3 1 Kit MCU Connections MCU Port Pin Port Pin Assigned Function Primary Board Connec tion Secondary Board Con nection Expansion Port Con nection EXP P0 0 VREF VREF Caps P0 1 AGND P0 2 Port Match Input Push Button 0 PB0 P0 3 Port Match Input Push Button 1 PB1 P0 4 UART0 TX BC UART_TX EXP12 P0 5 UART0 RX BC UART_RX EXP14 P0 6 SMBus0 SDA I2C SDA EXP16 P0 7 SMBus0 SCL I2C SCL EXP15 P1...

Page 5: ... 2 PCA0 CEX2 RGB LED2 EXP9 P2 3 ADC EXP11 P2 4 Timer BC REFCLK P2 5 GPIO EXP13 P2 6 GPIO DISP Enable P2 7 C2D GPIO C2D for debug Debug C2D DISP Enable Note 1 This signal has high loading If the MCU pin is used for signals where edge speed is critical this signal should be disconnected from the pin UG238 EFM8SB2 SLSTK2011A User s Guide Kit Hardware Layout silabs com Building a more connected world ...

Page 6: ...8SB2 SLSTK2011A Power Switch With the switch in the AEM position an on board low noise LDO with a fixed output voltage of 3 3 V is used to power the MCU This LDO is powered from the J Link USB cable With the switch in the BAT position the device may be powered from either a 20 mm coin cell battery in the CR2032 socket or an external power supply connected to the VMCU and GND pins on the expansion ...

Page 7: ... 5 1 Push Buttons and LEDs The kit has two user push buttons They are connected to the EFM8 and are debounced by RC filters with a time constant of 1 ms The buttons are connected to pins P0 2 and P0 3 In addition to the two push buttons the kit also features a tri color LED that is controlled by EFM8 GPIO The LED is connected to pins P2 0 P2 1 and P2 2 in an active low configuration Figure 5 1 But...

Page 8: ...inations kΩ Expected UIF_JOYSTICK Voltage V 1 Center press 0 1 0 1 10 0 033 Up N 60 4 60 4 10 2 831 Up Right NE N E N E 10 21 34 21 34 10 2 247 Right E 33 33 10 2 533 Down Right SE S E S E 10 7 67 7 67 10 1 433 Down S 10 10 10 1 650 Down Left SW S W S W 10 6 6 10 1 238 Left W 15 15 10 1 980 Up Left NW N W N W 10 12 01 12 01 10 1 801 Note 1 These calculated values assume a VMCU of 3 3 V UG238 EFM8S...

Page 9: ...ing the EFM_DISP_ENABLE signal 0 The Board Controller has control of the display 1 The user application EFM8 has control of the display Data are clocked in on EFM_DISP_MOSI P1 2 when EFM_DISP_CS P1 5 is high and the clock is sent on EFM_DISP_SCLK P1 0 The maximum supported clock speed is 1 MHz Please refer to the display application information for details on driving the display http www sharpmemo...

Page 10: ...onnected to the RTC crystal pins on the EFM8 MCU This crystal enables the low power modes on the MCU that utilize the RTC Figure 5 5 32 kHz Crystal UG238 EFM8SB2 SLSTK2011A User s Guide Peripherals silabs com Building a more connected world Rev 0 3 10 ...

Page 11: ... the LCD Note Some of the breakout pads are shared by on board EFM peripherals The schematic must be consulted to make sure that it is acceptable to use a shared pin in your application P 0 0 P 0 1 P 0 2 P 0 3 P 0 5 P 0 6 P 0 7 P 1 0 P 1 1 P 1 2 P 1 3 P 0 4 P2 7 P2 6 P2 5 P2 4 P2 2 P2 1 P2 0 P1 7 P1 6 P1 5 P1 4 P2 3 VM CU Figure 6 1 Breakout Pads and Expansion Header UG238 EFM8SB2 SLSTK2011A User ...

Page 12: ... available on the expansion header are listed in the table below Table 6 1 Some peripheral functions available on Expansion Header Peripheral Peripheral pin MCU Pin EXP Header pin number UART0 UART0 TX P0 4 12 UART0 RX P0 5 14 SPI1 SPI1 SCK P1 0 8 SPI1 MISO P1 1 6 SPI1 MOSI P1 2 4 SPI1 CS P1 3 10 SMBus SMBus0 SDA P0 6 16 SMBus0 SCL P0 7 15 PCA0 PCA0 CEX0 P1 1 5 PCA0 CEX1 P1 6 7 PCA0 CEX2 P1 7 9 AD...

Page 13: ... Debug Connector Pinout Pin num ber Function Note 1 VTARGET Target voltage on the debugged application Note This connection is required and is needed for the debug circuitry to match voltage levels with the target device 2 TMS SWDIO C2D JTAG TMS Serial Wire data I O or EFM8 C2 data I O 4 TCK SWCLK C2CK JTAG TCK Serial Wire clock or EFM8 C2 clock 6 TDO SWO JTAG TDO or Serial Wire Output 8 TDI JTAG ...

Page 14: ...r Pinout Pin number Function Note 1 C2CK EFM8 C2 clock 2 C2D EFM8 C2 data I O 3 GND 6 5 Reference Board The top right corner of the board includes a 20 pin reference board connector The connecter contains some I O pins that can be used with some of the EFM8 EFM8SB2 Sleepy Bee s features Additionally the 3V3 and 5V power rails are also exported The figure below shows the pin assignment of the refer...

Page 15: ...ing Started New Project button 5 In the wizard ensure the EFM8SB2 Sleepy Bee Starter Kit Board kit and click Next 6 Select Example and click Next 7 Select the desired example or demo from the list and click Next 8 Click Finish 9 Click the Debug button in the IDE to build and download the code to the hardware 10 Follow the instructions at the top of the main example file to set up the hardware as n...

Page 16: ...eration can be found in the STK User Guide Note that AEM will measure the current for all circuitry connected to VMCU including the STK MCU and the CPT device 8 Figure 8 1 Measuring EFM8SB2 SLSTK2011A Current Using AEM 8 1 Usage The AEM data is collected by the board controller and can be displayed by the energyAware Profiler available through Simplicity Stu dio By using the energyAware Profiler c...

Page 17: ...bration of the AEM is performed This calibration compensates for the offset error in the sense amplifiers 8 Figure 8 2 Advanced Energy Monitor 8 3 AEM Accuracy and Performance The AEM is capable of measuring currents in the range of 0 1 µA to 50 mA For currents above 250 µA the AEM is accurate within 0 1 mA When measuring currents below 250 µA the accuracy increases to 1 µA Even though the absolut...

Page 18: ...s enabled by setting the EFM_BC_EN P1 4 line high and using the lines EFM_BC_TX P0 4 and EFM_BC_RX P0 5 for communicating The BC enable signal connects the EFM8 to the board controller 0 EFM8 UART pins are isolated from the Board Controller 1 EFM8 UART pins are connected to the Board Controller default upon reset Note The board controller is only available when USB power is connected UG238 EFM8SB2...

Page 19: ...the active debug mode is done with a drop down menu in the Kit Manager tool which is available through Simplicity Studio When using the debug adapter in the Out mode the end device must be manually detected before debugging and programming To do this 1 Right click on the kit from the Simplicity Studio launch screen and select Select Target Part 2 If needed select the appropriate Target Interface f...

Page 20: ... for new updates on startup After selecting a kit in the left under Devices the area at the top of the Launcher page displays the current kit version and Debug Mode Use the links in this area to change the debug mode or upgrade the kit firmware UG238 EFM8SB2 SLSTK2011A User s Guide Upgrading the Kit silabs com Building a more connected world Rev 0 3 20 ...

Page 21: ... Revision History A00 Initial prototype revision A01 Removed ST1 and J103 from the BOM A02 Updated PCB revision A00 Revision Boards There are no known issues with the A00 boards A01 Revision Boards There are no known issues with the A01 boards A02 Revision Boards There are no known issues with the A02 boards UG238 EFM8SB2 SLSTK2011A User s Guide Schematics Assembly Drawings and BOM silabs com Buil...

Page 22: ...2 1 Board Revision History Added the UG238 document reference Added a note to 6 3 Debug Connector that VTARGET is required Added the reference for the direct debug connector to 6 4 Direct Debug Connector Added a note about high loading on the DISP CLK signal 13 3 Revision 0 1 February 2015 Initial revision UG238 EFM8SB2 SLSTK2011A User s Guide Revision History silabs com Building a more connected ...

Page 23: ...mply or express copyright licenses granted hereunder to design or fabricate any integrated circuits The products are not designed or authorized to be used within any Life Support System without the specific written consent of Silicon Labs A Life Support System is any product or system intended to support or sustain life and or health which if it fails can be reasonably expected to result in signif...

Reviews: