Guide to the C2000 Piccolo F28027 and F28027F LaunchPads (LAUNCHXL-F28927F)

Currently only supported up to Energia 17

We are working on support in Energia 18 and beyond.

About the C2000 Piccolo Microcontroller

C2000 Piccolo devices are performance MCUs.  They are commonly used for real-time control such as motor control, digital power, and dynamic lighting applications, but can be used for a wide variety of projects and tasks.  InstaSPIN-FOC technology included with the LAUNCHXL-F28027F LaunchPad makes spinning motors very easy.

This hardware is open source! Get the design files from TI: F28027, F28027F

Pin Map

The following diagram shows the complete pin map for the C2000 Piccolo F28027 LaunchPad in Energia.  Click the image to enlarge.

LaunchPads C2000 — Pins Maps 5-25

Getting Started Video

Coming Soon!

Installing the drivers

Energia currently supports the C2000 LaunchPad on Windows and Linux. Due to some licensing restrictions, a few extra steps need to be taken to set up Energia for the C2000 Launchpads.

Setting up Energia for the C2000 LaunchPad

  1. Download and install Energia
  2. Download the C2000 compiler version 6.2.6 from here
  3. Start the installation process by executing the installer. A window with C2000 Code Generation Tools should appear
  4. Continue through the process until the installation directory can be chosen
  5. Change the Installation directory to the \energia\hardware\tools\c2000 by navigating to the tools directory under the hardware folder. Then add \c2000 to the path
  6. Continue to finish the setup

If Energia was running when the compiler was installed, Energia may need to be restarted for the C2000 Launchpad to appear.

After the C2000 compiler has been installed in the correct location, Energia can be run and the C2000 Launchpad should appear under the Boards menu.

To enable flash programming the serial boot mode of the F28027 device is used.  To configure the device for the serial boot mode, set the S1 switches to UP DOWN DOWN and S4 UP.

Pin Numbering

Pin numbering for the LaunchPad variant in Energia follows the GPIO numbers of the MCU pins on the LaunchPad (see pin mapping diagram below for details). Example: LED D2 can be turned on with:

 pinMode(P0, OUTPUT);
 digitalWrite(P0, LOW);

*Note: LOW causes the LEDs to turn on while HIGH causes the LEDs to turn off. In addition, the LEDs will occasionally flicker. This is due to the pins P0-P3 being mapped to LED0-LED3. These pins are set to input initially and therefore may pick up interference from wires, electronics, and even our bodies! Due to the interference, the LEDs may flicker occasionally.

Alternate Names

Pins can also be addressed by their alternative names. LED0, LED1, LED2, LED3, MISO, MOSI, PUSH1 and other names in the pin mapping below can be used.

 LEDS     SPI     I²C     SCI/UART     BUTTON
 LED0     SCK     SDA     RX           PUSH1
 LED1     MOSI    SCL     TX
 LED2     MISO
 LED3

These alternate names can be used as well to address the pins. Example: LED D2/LED0 can be turned on with:

 pinMode(LED0, OUTPUT);
 digitalWrite(LED0, LOW);

Switches

The C2000 Piccolo F28027* LaunchPad has 4 buttons/switches indicated by an S# next to them. The functions of these buttons/switches are described below.

S1: Boot Mode Switches

The Boot Mode Switches are 3 switches which are used to control the mode of the launchpad. When uploading programs with Energia, the boot mode switches should be in SCI/UART mode ( UP DOWN DOWN).  This allows the launchpad to communicate with the computer serially.

The table below shows the different boot modes and their configuration.

1 = switched up      0 = switched down

S1 GPIO34 GPIO37 TRSTn
Switch 1 2 3  Function
Mode EMU x x 1 Emulation Boot
Mode 0 0 0 0 Parallel I/O
Mode 1 1 0 0 SCI/UART
Mode 2 0 1 0 Wait
Mode 3 1 1 0 GetMode

S2: Reset

The S2 button when pressed will reset the device.

S3: GPIO12

The S3 button when pressed will cause GPIO12 to go high. When not pressed, GPIO12 will be in a low state.

S4: Serial switch

The S4 switch is used to determine if SCI is connected. When on, the board can send and receive serial information. When using Energia, the serial switch should be UP to allow for serial communication.

S4 Switch
OFF P28 – J1.3/ P29 – J1.4
ON P28 – J1.3 – SCI_RX/ P29 – J1.4 – SCI_TX

Jumpers

The C2000 Launchpad has two separate power domains for the purpose of allowing JTAG isolation. The jumpers on the launchpad configure whether USB power is passed to the target device. The table below contains the possible configurations. If JP1 is not connected, the device can be powered from an external 3.3V source.

Jumper Power Domain
JP1 3.3V
JP2 Ground
JP3 5V