Energy micro EFM32-G2XX-DK User manual

Preliminary ...the world's most energy friendly microcontrollers
2010-04-09 - t0006_1.10 1 www.energymicro.com
USER MANUAL
Development Kit EFM32-G2XX-DK
Feature rich development platform for evaluation, prototyping and application
development for the EFM32 Gecko MCU family with the ARMCortex-M3 CPU core.
Main features;
• Advanced Energy Monitoring provides real-time visibility into the energy
consumption of an application or prototype design.
• Exchangeable prototyping board for custom application development
• On-board emulator with debug out functionality
Downloaded from Elcodis.com electronic components distributor

Preliminary ...the world's most energy friendly microcontrollers
2010-04-09 - t0006_1.10 2 www.energymicro.com
1 Introduction
1.1 Features
• Advanced Energy Monitoring system for precise current tracking.
• Special hardware configuration for isolation of the MCU power domain.
• Replaceable prototyping board for quick custom application development.
• Full feature USB debugger / emulator with debug out functionality.
• 3.5-inch TFT-LCD 320x200 pixel RGB color display.
• Board Controller for board configuration / signal routing.
• Single ended and differential ADC inputs.
• Line-in stereo audio input amplifier.
• Line-out stereo audio output amplifier.
• 2 RS232 connectors.
• 3-axis accelerometer.
• SPI Flash and microSD card reader (SPI mode).
• EEPROM.
• Temperature sensor.
• IrDA tranceiver.
• 256Kx16bit / 512KB parallel bus SRAM.
• 2Mx16 / 4MB parallel bus NOR Flash.
• Ambient light sensor and potmeter.
• 5 way joystick.
• 4 User buttons, 8-bit DIP switch and 16 user LEDs.
1.2 Board Configuration
The EFM32-G2XX-DK is a highly flexible development kit. It offers many features and peripherals to the
EFM32 through jumperless configuration. The different features on the kit are available as configured
in the motherboard's Board Controller. Configuration is easily done by a simple API in the kit Board
Support Package.
If none of the motherboard features are needed, configuration of the Board Controller is not necessary.
All EFM32 GPIO pins are available on the prototyping board.
Downloaded from Elcodis.com electronic components distributor

Preliminary ...the world's most energy friendly microcontrollers
2010-04-09 - t0006_1.10 3 www.energymicro.com
2 Kit Block Diagram
An overview of the Kit is shown in the block diagram below.
Figure 2.1. EFM32-G2XX-DK Block Diagram
Board Control
BC Bus
14
BC Bus Connect
28
2
MCU Reset EFM32
EFM32 Microcontroller Board
EFM32
Microcontroller
160 seg LCD
Display
(optional)
User LEDs
USART
SPI Bus
I2C Bus 4
2
DAC
ADC 8
EEPROM
Temperature
Sensor
SPI Flash
Accelerometer
Ambient light
Potentiometer
RS232 A RS232 BIrDA
2
8
RS232 Level
Shifter
TXD
RXD
CTS
RTS
TXD
RXD
Line out
Line in
Analog Inputs
4
2
2
3
Analog in
Analog out
SPI
I2C
Serial
NOR Flash
SRAM
40
joystick
PushbuttonsDIP- switches
System
Reset
845
DISPLAY
320x240 TFT- LCD
4
Debug In/ Out 4
SPI MicroSD
USB
EFM32 Prototyping Board
16
AEM
90 90
SPI Flash
Downloaded from Elcodis.com electronic components distributor

Preliminary ...the world's most energy friendly microcontrollers
2010-04-09 - t0006_1.10 5 www.energymicro.com
4 Power supply
4.1 USB
The EFM32-G2XX-DK can get it's power from the standard USB 2.0 Type B port located on the
motherboard. The USB hub the kit is connected to needs to be able to deliver 500 mA (5 unit loads).
4.2 External power supply
By using the DC jack plug located on the motherboard, the EFM32-G2XX-DK can be powered by an
external power supply. The voltage must be 5V and the supply must be able to deliver 500mA.
The power jack dimensions should be a standard 5.5 mm outer diameter and 2.1 mm inner diameter.
The tip is 5V and the sleeve is GND.
Downloaded from Elcodis.com electronic components distributor

Preliminary ...the world's most energy friendly microcontrollers
2010-04-09 - t0006_1.10 6 www.energymicro.com
5 Reset infrastructure
5.1 MCU
The primary user reset for the MCU is the reset button on the MCU board. This will only reset the MCU.
It can also be reset using the board controller, by writing to the RESET_MCU bit in the RESET register.
Finally, it can be reset by debuggers.
5.2 Board controller
The board controller can be reset by pushing the reset button on the main board.
Downloaded from Elcodis.com electronic components distributor

Preliminary ...the world's most energy friendly microcontrollers
2010-04-09 - t0006_1.10 7 www.energymicro.com
6 Peripherals
The development kit has a rich set of user programmable peripherals that allows most of the EFM32G
on-chip peripherals to be evaluated and tested.
The registers referred to in this chapter are accessible using the kit Board Support Package. Refer to
the BSP chapter in this manual to learn how to enable the motherboard peripherals. A reference to all
the registers and their function is in the Board Controller chapter.
6.1 Pushbuttons
The state of the pushbuttons marked SW1 to SW4 can be read from the board controller, using the
PUSHBUTTON register. The buttons are debounced by RC filters with a time constant of 1ms.
6.2 DIP switches
The dipswitch positions can be read from the board controller, using the DIPSWITCH register. The
switches are not debounced.
6.3 Joystick
The joystick position can be read from the board controller, using the JOYSTICK register. The positions
are debounced by RC filters with a time constant of 1ms.
6.4 LEDs
The user LEDs can be set by the board controller by writing to the LED register. The state of the LEDs
can also be read back.
6.5 Differential analog input
This BNC input signal is converted to a differential signal by a differential operational amplifier using
ground as reference.The op amp output common mode voltage is 1.65V, and also implements a low-
pass active filter with a 3dB cutoff frequency of 4MHz.
The common mode voltage can be changed by adjusting the R5 and R12 resistors. It can also be
controlled by the VCM pin on the EFM if a shunt resistor is soldered in place of R252 and R5 and R12
are removed.
The peripheral is connected directly to the EFM when the ANALOG_DIFF bit in the PERCTRL register
in the board controller has been set.
6.6 Single ended analog inputs
This peripheral connects the two BNCs to the ADC on the EFM, and can be used as a single ended
analog interface. It can also be used for digital I/O.
The peripheral is connected directly to the EFM when the ANALOG_SE bit in the PERCTRL register in
the board controller has been set.
6.7 Line in / Audio in
This is an audio input amplifier with filter, and the output connects to the ADC of the EFM. The gain
of the amplifier is 0 dB and the bias point is 1.65 V. The filter is a 3-pole linear phase MFB filter with
a cutoff frequency of 20 kHz. In addition to the input amplifier and filter, the line in is equipped with a
voltage divider resulting in 6dB attenuation.
Downloaded from Elcodis.com electronic components distributor

Preliminary ...the world's most energy friendly microcontrollers
2010-04-09 - t0006_1.10 8 www.energymicro.com
The peripheral is connected directly to the EFM when the AUDIO_IN bit in the PERCTRL register in the
board controller has been set.
6.8 Line Out / Audio out
This is an audio output amplifier with filter, and the input connects to the DAC of the EFM. The gain of
the amplifier is 6 dB and is referenced to ground. The filter is a 3-pole linear phase MFB filter with a
cutoff frequency (at -3 dB) is at 27 kHz.
The peripheral is connected directly to the EFM when the AUDIO_OUT bit in the PERCTRL register in
the board controller has been set.
6.9 RS232
There are two RS232 connectors on the board which connects to the USART and LEUART of the EFM.
TheRS232 driver runsat 3.3 Vand it isrecommendedthat theMCUvoltage is 3.3V as well.Unpredicted
behavior can occur if the MCU voltage is much lower than 3.3V and the RS232 driver is enabled.
The two RS232 drivers can be connected to the EFM individually by setting the RS232_A and RS232_B
bits in the PERCTRL register in the board controller. The RS232_SHUTDOWN bit must also be cleared.
Note When none of the RS232 drivers are in use, it is highly recommended that the driver is shut
down by setting the RS232_SHUTDOWN bit in the PERCTRL register.
6.10 Accelerometer
This is a 3-axis accelerometer that connects to the ADC of the EFM. It outputs voltages proportional
to the g-forces for each axis. There are two settings for the range. If ACCEL_GSEL in the PERCTRL
register is cleared, the range is from 0 to 1.5 g, and when the bit is set the range is from 0 to 6 g.
The peripheral is connected directly to the EFM when the ACCEL bit in the PERCTRL register in the
board controller has been set.
6.11 IrDA
This is a 115.2 kBit/s (SIR) IrDA transceiver with a range of up to 70 cm, and connects to the USART
of the EFM.
The peripheral is connected directly to the EFM when the IRDA bit in the PERCTRL register in the board
controller has been set.
6.12 Potmeter
This is a potmeter pulled to 3.3 V by a 10k resistor, and it is connected to the ADC of the EFM. Using
the potmeter the output of this peripheral can be adjusted from 0 V to 3 V.
The peripheral is connected directly to the EFM when the POTMETER bit in the PERCTRL register in
the board controller has been set.
6.13 Ambient light sensor
This is an LDR in series with a 10k resistor, and it is connected to the ADC of the EFM. The output
voltage of the sensor ranges from 0.1 V to 2 V, increasing with the amount of light.
The peripheral is connected directly to the EFM when the AMBIENT bit in the PERCTRL register in the
board controller has been set.
Downloaded from Elcodis.com electronic components distributor

Preliminary ...the world's most energy friendly microcontrollers
2010-04-09 - t0006_1.10 9 www.energymicro.com
6.14 I2C EEPROM
The 2 KB I2C EEPROM is connected to the I2C module of the EFM. The maximum bus speed is 400
kHz and the address is 0xA0.
The peripheral is connected directly to the EFM when the I2C bit in the PERCTRL register in the board
controller has been set.
6.15 I2C Temperature sensor
TheI2Ctemperaturesensorisconnected to the I2CmoduleoftheEFM.Temperaturerange of the sensor
is -55 °C to +125 °C. The maximum bus speed is 400 kHz and the address is 0x90.
The peripheral is connected directly to the EFM when the I2C bit in the PERCTRL register in the board
controller has been set.
6.16 SPI Flash
A 16 MBit SPI flash is connected to the SPI module of the EFM.
The peripheral is connected directly to the EFM when the SPI bit in the PERCTRL register in the board
controller has been set. To route the chip select correctly, the FLASH bit in the BC_SPI_CFG register
in the board controller must also be set.
6.17 microSD
A microSD slot is connected to the SPI module of the EFM.
The peripheral is connected directly to the EFM when the SPI bit in the PERCTRL register in the board
controller has been set. To route the chip select correctly, the MICROSD bit in the BC_SPI_CFG register
in the board controller must also be set.
6.18 TFT LCD
The TFT LCD can be accessed from the EFM through the board controller. The interface can be
configuredtobeeither9bitor16bit.Thisselectionisdonebysettingthe16BITbitintheDISPLAY_CTRL
register in the board controller. It is also possible to use the SPI interface, but then the R112 resistor
must be moved over to the position of R112.
Note 16 bit or SPI interface options are currently not supported by the board controller.
6.19 SRAM
The 512 KB SRAM can be accessed from the EFM through the board controller. The data width is either
8 or 16 bit, depending on the access method.
6.20 NOR Flash
The 4 MB NOR Flash can be accessed from the EFM through the board controller. The data width is
either 8 or 16 bit, depending on the access method.
Downloaded from Elcodis.com electronic components distributor

Preliminary ...the world's most energy friendly microcontrollers
2010-04-09 - t0006_1.10 10 www.energymicro.com
7 Board Support Package
The Board Support Package (BSP) is a set of C source and header files that enables easy access to,
and control over board specific features and peripherals.
The package defines an API for direct access to the board controller registers, as well as regular function
calls for the most frequently used features.
7.1 Installation location
When installing the complete software package for the kit, the BSP will be installed under the main
installation directory, typically in a location such as
C:\Program Files\Energy Micro\boards\EFM32_Gxxx_DK\bsp\
or something similar. All files in the board support package is prefixed by dvk.
7.2 Resource usage
The BSP can be configured to use 1 of 2 access methods
• SPI - USART2 Serial Peripheral Interface
• EBI - External Bus Interface
SPI and EBI have different requirements regarding pin usage, see table below:
Table 7.1. GPIO Usage
GPIO Port SPI Pins EBI Pins
A 0-6, 15
B
C 2-5,13 12
D
E 8-15
F 2-5
The advantage of EBI over SPI, is that EBI access is a fast, directly memory mapped register access,
while SPI will add a synchronous two way transfer over a slower SPI interface. The disadvantage of EBI
is that it will consume a lot more I/O pins than SPI. The DVK will by default be configured to use SPI,
to enable EBI a small SPI initialization routine needs to be called once (per restart of the entire kit, not
per restart of the EFM32).
ForDKpart number EFM32_G8xx_DKwithLCD controller, SPI istheonly option asEBIand LCD cannot
be combined.
You must take care in not using these pins for other purposes after initialization of the BSP, as conflicts
and unpredictable behavior will result. You can disable the DVK interfaces after you have set your
configuration.
7.3 Application Programming Interface
To use the BSP, include the Development Kit header file, like this:
Downloaded from Elcodis.com electronic components distributor

Preliminary ...the world's most energy friendly microcontrollers
2010-04-09 - t0006_1.10 11 www.energymicro.com
#include "dvk.h"
Depending on the part number defined in your project as a build option, the DVK will default to the most
common access method for your MCU module according to part number. If you need to override the
default board control access method, you can define the access method by overriding the default with
DVK_SPI_CONTROL or DVK_EBI_CONTROL defines, such as
#define DVK_SPI_CONTROL
#include "dvk.h"
All functions in the BSP are prefixed with DVK_. The main initialization routine is defined as
void DVK_init(void);
and must be called before any access to the DVK-functions. To disable the BSP, call
void DVK_disable(void);
You can access all registers with the generic functions
void DVK_writeRegister(volatile uint16_t *addr, uint16_t data);
uint16_t DVK_readRegister(volatile uint16_t *addr);
Usable addresses for these functions, including bit fields are defined in the header file
dvk_bcregisters.h
The functions
void DVK_enablePeripheral( DVKPeripheral peri );
void DVK_disablePeripheral( DVKPeripheral peri );
can be used to toggle access/peripheral switches to all peripherals on the DVK. See the "peripheral"
example application for usage.
In addition to these main functions, full documentation of the complete API is included in the Doxygen/
HTML documentation of the installed package.
7.4 Example Applications
There are a number of example applications to illustrate the usage of the DVK API. You will find these
with their corresponding IAR Embedded Workbench and Keil MDK-ARM project files under
C:\Program Files\Energy Micro\boards\EFM32_Gxxx_DK\examples\
The examples include, among others
• blink - Simple application using the DVK and it's LED control API
• peripherals - Toggles peripherals on and off, indicated by LEDs on the board
• joystick - Use DVK LED, joystick and interrupt APIs for indicating DVK joystick movement
Downloaded from Elcodis.com electronic components distributor

Preliminary ...the world's most energy friendly microcontrollers
2010-04-09 - t0006_1.10 12 www.energymicro.com
The example files above have been configured to be built for both the EFM32_G2xx_DK and
EFM32_G8xx_DK kits, with the EFM32G290F128 and EFM32G890F128 part numbers. Select the
project that matches your setup to ensure correct operation.
7.5 How to include in your own applications
The easiest way to include the BSP in your application is to base your work on one of the example
applications, for instance the easy "blink" demonstration. The following items are recommended for
correct configuration:
1. Make sure you define the correct part number (e.g. EFM32G290F128) as a preprocessor defined
symbol
2. Make sure you define the correct part number (e.g. EFM32G290F128) for your IAR EWARM / Keil
MDK-ARM project
3. Add and include the EFM32_CMSIS-files (startup_efm32.s, system_efm32.c, core_cm3.c) to your
project
4. Add and include _all_ BSP package .c-files, with the dvk-prefix to your project
5. Configure include paths to point at the CMSIS/CM3/CoreSupport and CMSIS/CM3/DeviceSupport/
EnergyMicro/EFM32 directories
6. Configure include paths to point to the dvk/bsp directory
Make sure you call "DVK_init()" early at startup, and you should be all set.
7.6 Chip errata
Early versions of the development kit are shipped with EFM32 Engineering Samples on the MCU
modules.There has beenupdates toconfiguration and resetvalues that needsto be configured correctly
on these early parts. We recommend always starting your application with a call to
#include "chip.h"
void CHIP_init(void);
to ensure correct and stable behavior. See the BSP examples for details. We recommend also to
download and read the latest errata from the Energy Micro website for your part number.
Downloaded from Elcodis.com electronic components distributor

Preliminary ...the world's most energy friendly microcontrollers
2010-04-09 - t0006_1.10 13 www.energymicro.com
8 Configuration
Some parameters can be configured using the GUI. The other parameters, such as peripheral control,
can be controlled by software. See the Board Controller chapter for details.
8.1 MCU voltage
The MCU voltage can be set by entering the CFG page from the main page. Use the joystick to navigate
to VMCU and set your desired voltage by moving the joystick sideways. The measured VMCU can be
read at the bottom of this screen. Push Save to store your settings.
8.2 Debug settings
The debug routing can be set by entering the CFG page from the main page. Use the joystick to navigate
to Debug Control and set your desired mode by moving the joystick sideways. Push Save to store your
settings.
See the debug chapter to read more about the different modes.
8.3 Peripheral configuration
The peripheral configuration can be set by entering the CFG page from the main page and then entering
the Peri page. All peripherals connected to the EFM can be en- or disabled individually using the list
displayed in the GUI.
8.4 Program MCU
To program the MCU with files uploaded to the flash, enter the Flash page from the main page. The
list of available binaries are shown, and one of them can be selected by using the joystick. When the
desired binary has been selected, push Flash to program the MCU. While programming, a new page
shows with a progress bar. A status message appears when the programming is finished.
Note The debug mode has to be set to MCU for this to work.
8.5 Upload files
To upload files, Gecko Commander must be used. This is an executable that can be found in the install
location, typically:
C:\Program Files\Energy Micro\EFM32 Kit Package\GeckoCmd\Gecko.exe
After launching the program, execute this command in Gecko Commander:
put your_binary_file.bin \flash\your_binary_file.bin
To see the commands available, execute this command for help:
h
Downloaded from Elcodis.com electronic components distributor

Preliminary ...the world's most energy friendly microcontrollers
2010-04-09 - t0006_1.10 14 www.energymicro.com
9 Advanced Energy Monitor
9.1 AEM Display
To enter AEM from the main page, press the pushbutton under the display labeled AEM. If the EFM
is using the display, press the AEM button at the right side of the display, and the board controller will
take control of the display and show the AEM. To return to EFM control, simply press the AEM button
once more.
When the AEM is entered, you will get a real-time graphical display of the current consumption of the
EFM and other circuits powered by the VMCU power rail. The AEM display mainly features a plot of
current the consumption over time. It also displays the latest sampled current consumption and voltage.
9.2 AEM configuration
There are several parameters that can be configured on the AEM. To configure AEM, first enter the
AEM page. Then push the button labeled CFG. In the CFG page, you can adjust the scale of the time
axis of the current plot.
9.3 AEM theory of operation
In order to be able to measure currents ranging from 0.1uA to 50mA (114dB dynamic range), two current
sense amplifiers are utilized. The amplifiers measure voltage drop over a small series resistor and
translates this into a current. Each amplifier is adjusted for current measurement in a specific range.
The ranges for the amplifiers overlap and a change between the two occurs when the current is 200uA.
To reduce noise, averaging of the samples is performed before the current measurement is presented
in the AEM GUI.
During startup of the kit and when VMCU is changed, a calibration of the AEM is performed. This
calibration compensates for the offset error in the sense amplifiers. In order for the calibration to be
correct, no load should be connected between the pins of ST6 during calibration.
9.4 AEM accuracy and performance
The Advanced Energy Monitor is capable of measuring currents in the range of 0.1uA to 50mA. For
currents above 200uA, the AEM is accurate within 0.1mA. When measuring currents below 200uA, the
accuracy increases to 1uA. Even though the absolute accuracy is 1uA in the sub 200uA range, the AEM
is able to detect changes in the current consumption as small as 100nA. The measurement bandwidth
of the AEM is 60Hz when measuring currents below 200uA and 120Hz when measuring currents above
200uA. The table below summarizes accuracy of the two current sense amplifiers in different ranges.
Table 9.1. AEM accuracy
Current range Low gain amplifier accuracy High gain amplifier accuracy
50mA 0.1mA -
1mA 0.1mA -
200uA 0.01mA 1uA
10uA - 0.1uA
1uA - 0.1uA
Note In order for the AEM to work correctly, VMCU should be 3.0V or higher.
Downloaded from Elcodis.com electronic components distributor

Preliminary ...the world's most energy friendly microcontrollers
2010-04-09 - t0006_1.10 15 www.energymicro.com
10 Board controller
The board controller (BC) consists of the control MCU and an FPGA. The FPGA is essentially a
programmable multiplexer that allows the resources on the board to be shared between the EFM and
the control MCU. It also enables jumperless peripheral configuration. The control MCU implements the
built-in debugger, the AEM and performs housekeeping tasks.
To use the board controller for your application, the Board Support Package (BSP) must be installed.
See the BSP chapter to find out how.
10.1 Register Map
The offset register address is relative to the registers base address.
Offset Name Type Description
0x000 BC_BC_CFG RW Board Controller Config register
0x002 BC_EM RW Energy Mode register
0x004 BC_MAGIC R Magic number
0x006 BC_LED RW User LEDs register
0x008 BC_PUSHBUTTON R User pushbutton status register
0x00A BC_DIPSWITCH R User dipswitch status register
0x00C BC_JOYSTICK R Joystick state register
0x00E BC_AEM R AEM button status register
0x010 BC_DISPLAY_CTRL RW Display control register
0x012 BC_EBI_CFG RW EBI configuration register
0x014 BC_BUS_CFG RW BUS configuration register
0x018 BC_PERCTRL RW Peripheral control register
0x01A BC_AEMSTATE R AEM button status register
0x01C BC_SPI_CFG RW SPI configuration register
0x01E BC_RESET RW Reset register
0x020 BC_ADC_START RW ADC start byte register
0x022 BC_ADC_STATUS R ADC status register
0x024 BC_ADC_DATA R ADC data register
0x028 BC_HW_VERSION R Hardware version register
0x02A BC_FW_BUILDNO R Firmware build number
0x02C BC_FW_VERSION R Firmware version register
0x02E BC_SCRATCH_COMMON RW Common scratch register
0x030 BC_SCRATCH_EFM0 RW EFM scratch register 0
0x032 BC_SCRATCH_EFM1 RW EFM scratch register 1
0x034 BC_SCRATCH_EFM2 RW EFM scratch register 2
0x036 BC_SCRATCH_EFM3 RW EFM scratch register 3
0x038 BC_SCRATCH_BC0 RW BC scratch register 0
0x03A BC_SCRATCH_BC1 RW BC scratch register 1
0x03C BC_SCRATCH_BC2 RW BC scratch register 2
0x03E BC_SCRATCH_BC3 RW BC scratch register 3
0x040 BC_INTFLAG RW Interrupt flags
0x042 BC_INTEN RW Interrupt enables
Downloaded from Elcodis.com electronic components distributor

Preliminary ...the world's most energy friendly microcontrollers
2010-04-09 - t0006_1.10 16 www.energymicro.com
10.2 Register Description
10.2.1 BC_BC_CFG - Board Controller Config register
Offset Bit Position
0x000
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
Reset
0
Access
RW
Name
BC_CFG
Bit Name Reset Access Description
15:1 Reserved To ensure compatibility with future devices, always write bits to 0.
0 BC_CFG 0 RW Board controller configuration
Use this bit to change between SPI and EBI interface on the board controller
Value Mode Description
0 SPI The BC is configured to use the SPI interface.
1 EBI The BC is configured to use the EBI interface.
10.2.2 BC_EM - Energy Mode register
Offset Bit Position
0x002
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
Reset
0x0
Access
RW
Name
EM
Bit Name Reset Access Description
15:3 Reserved To ensure compatibility with future devices, always write bits to 0.
2:0 EM 0x0 RW Energy Mode register
This register is used to store the Energy Mode the EFM is running in.
10.2.3 BC_MAGIC - Magic number
Offset Bit Position
0x004
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
Reset
0xEF32
Access
R
Name
MAGIC
Downloaded from Elcodis.com electronic components distributor

Preliminary ...the world's most energy friendly microcontrollers
2010-04-09 - t0006_1.10 17 www.energymicro.com
Bit Name Reset Access Description
15:0 MAGIC 0xEF32 R Magic number
This register can be used to test the interface.
10.2.4 BC_LED - User LEDs register
Offset Bit Position
0x006
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
Reset
0x0000
Access
RW
Name
LED
Bit Name Reset Access Description
15:0 LED 0x0000 RW User LED register
Write to this register to change the DVK user leds
10.2.5 BC_PUSHBUTTON - User pushbutton status register
Offset Bit Position
0x008
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
Reset
0x0
Access
R
Name
PUSHBUTTON
Bit Name Reset Access Description
15:4 Reserved To ensure compatibility with future devices, always write bits to 0.
3:0 PUSHBUTTON 0x0 R User pushbutton status register
Read this register to determine the state of the pushbuttons
10.2.6 BC_DIPSWITCH - User dipswitch status register
Offset Bit Position
0x00A
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
Reset
0x00
Access
R
Name
DIPSWITCH
Downloaded from Elcodis.com electronic components distributor

Preliminary ...the world's most energy friendly microcontrollers
2010-04-09 - t0006_1.10 18 www.energymicro.com
Bit Name Reset Access Description
15:8 Reserved To ensure compatibility with future devices, always write bits to 0.
7:0 DIPSWITCH 0x00 R User dipswitch status register
Read this register to determine the state of the dipswitch
10.2.7 BC_JOYSTICK - Joystick state register
Offset Bit Position
0x00C
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
Reset
0
0
0
0
0
Access
R
R
R
R
R
Name
CENTER
LEFT
UP
RIGHT
DOWN
Bit Name Reset Access Description
15:5 Reserved To ensure compatibility with future devices, always write bits to 0.
4 CENTER 0 R Joystick CENTER switch state register
Read this register to get the status of the center switch of the joystick.
3 LEFT 0 R Joystick LEFT switch state register
Read this register to get the status of the left switch of the joystick.
2 UP 0 R Joystick UP switch state register
Read this register to get the status of the up switch of the joystick.
1 RIGHT 0 R Joystick RIGHT switch state register
Read this register to get the status of the right switch of the joystick.
0 DOWN 0 R Joystick DOWN switch state register
Read this register to get the status of the down switch of the joystick.
10.2.8 BC_AEM - AEM button status register
Offset Bit Position
0x00E
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
Reset
0
Access
R
Name
AEM
Bit Name Reset Access Description
15:1 Reserved To ensure compatibility with future devices, always write bits to 0.
0 AEM 0 R AEM button status register
Read this register to determine the state of the AEM button
Downloaded from Elcodis.com electronic components distributor

Preliminary ...the world's most energy friendly microcontrollers
2010-04-09 - t0006_1.10 19 www.energymicro.com
10.2.9 BC_DISPLAY_CTRL - Display control register
Offset Bit Position
0x010
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
Reset
0
0
Access
RW
RW
Name
POWER_ENABLE
RESET
Bit Name Reset Access Description
15:2 Reserved To ensure compatibility with future devices, always write bits to 0.
1 POWER_ENABLE 0 RW Display power enable
Set this bit to enable power to the TFT display
0 RESET 0 RW Display reset
Set this bit to put the TFT display into reset mode
10.2.10 BC_EBI_CFG - EBI configuration register
Offset Bit Position
0x012
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
Reset
0x0
Access
RW
Name
EBI_CFG
Bit Name Reset Access Description
15:2 Reserved To ensure compatibility with future devices, always write bits to 0.
1:0 EBI_CFG 0x0 RW EBI configuration register
Set this register to configure the BC EBI interface to match the configuration in your application
Value Mode Description
0 EBI_16_16 The BC EBI is in a 16 address bits and 16 data bits configuration
1 EBI_8_8 The BC EBI is in a 8 address bits and 8 data bits configuration
2 EBI_24_8 The BC EBI is in a 24 address bits and 8 data bits configuration
10.2.11 BC_BUS_CFG - BUS configuration register
Offset Bit Position
0x014
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
Reset
0x0
Access
RW
Name
BUS_CFG
Downloaded from Elcodis.com electronic components distributor

Preliminary ...the world's most energy friendly microcontrollers
2010-04-09 - t0006_1.10 20 www.energymicro.com
Bit Name Reset Access Description
15:2 Reserved To ensure compatibility with future devices, always write bits to 0.
1:0 BUS_CFG 0x0 RW BUS configuration register
Set this register to configure which bus has access to the SRAM, Nor Flash and TFT display.
Value Mode Description
0 FSMC The FSMC has access
1 EBI The EBI interface has access
2 SPI The SPI interface has access
10.2.12 BC_PERCTRL - Peripheral control register
Offset Bit Position
0x018
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
Reset
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
Access
RW
RW
RW
RW
RW
RW
RW
RW
RW
RW
RW
RW
RW
RW
RW
RW
Name
IRDA_SHUTDOWN
RS232_SHUTDOWN
ACCEL_SELFTEST
ACCEL_GSEL
AUDIO_IN
AUDIO_OUT
ANALOG_DIFF
ANALOG_SE
IRDA
I2C
SPI
RS232B
RS232A
POTMETER
AMBIENT
ACCEL
Bit Name Reset Access Description
15 IRDA_SHUTDOWN 0 RW Shut down IrDA transceiver
Set this bit to shut down the IrDA transceiver
14 RS232_SHUTDOWN 0 RW Shut down RS232 driver
Set this bit to shut down the RS232 driver. It is strongly recommended that this is done when the application does not use RS232.
13 ACCEL_SELFTEST 0 RW Accelerometer selftest mode
Set this bit to put the accelerometer into selftest mode
12 ACCEL_GSEL 0 RW Accelerometer g-select
Use this bit to configure the g-range of the accelerometer
Value Mode Description
0 LOW The g-range is up to 1.5g
1 HIGH The g-range is up to 6g
11 AUDIO_IN 0 RW Audio in connect
Set this bit to connect the audio in amplifier to the EFM
10 AUDIO_OUT 0 RW Audio out connect
Set this bit to connect the audio out amplifier to the EFM
9 ANALOG_DIFF 0 RW Analog differential input connect
Set this bit to connect the analog differential inputs to the EFM
8 ANALOG_SE 0 RW Analog single ended input connect
Set this bit to connect the analog single ended inputs to the EFM
7 IRDA 0 RW IrDA connect
Set this bit to connect the IrDA transceiver to the EFM
6 I2C 0 RW I2C bus connect
Set this bit to connect the I2C devices to the EFM
5 SPI 0 RW SPI bus connect
Downloaded from Elcodis.com electronic components distributor
Table of contents
Other Energy micro Microcontroller manuals
Popular Microcontroller manuals by other brands

Avnet
Avnet MicroZed 7010 Getting started guide

ST
ST STM32F446 Series Reference manual

Texas Instruments
Texas Instruments TMUXRTJ-RRQEVM user guide

Freescale Semiconductor
Freescale Semiconductor *KE02 Series Technical data

Onion
Onion Omega2S Getting started

IXYS
IXYS ZiLOG ZMOTION ZEPIR000102ZCOG user manual