Login / Signup

Getting Started with JM Bagde Board from Freescale

Getting Started with JM Bagde Board

Badge Board Overview

The Freescale JM Badge Board features a MCF51JM128 ColdFire V1 microcontroller (datasheet), a MPR083/4 proximity capacitive touch sensor, a MMA7260QT three‐axis accelerometer (datasheet), and a MC34673 Li‐Ion battery charger (datasheet).

If you want to know more about this Freescale product, please submit your request to Arrow Italy using this form (this form is valid ONLY for Companies or Customers based in Italy and working in the Italian area)

JM Badge Board Schematics
JM Badge Board Schematics

The major features of the JM Badge Board include:

    ColdFire V1 microcontroller
    •Powered by USB or rechargeable battery
    •USB device interface
    •Three‐axis accelerometer
    •Capacitive touch sensor with 8 touch points
    •LED matrix display
    •SD card slot
    •Magnetic Buzzer
JM Badge Board Block Diagram
JM Badge Board Block Diagram

MCF51JM128 Microcontroller 
The MCF51JM128 in a 64‐pin LQFP package is the host controller for the JM Badge Board. The MCF51JM devices are the newest members of the Flexis family. The following is a summary of features of the MCF51JM128. 

    • Up to 50.33 MHz ColdFire V1 core 
    • 128K flash 
    • 16K RAM 
    • Four low‐power modes 
    • Multi‐purpose clock generator (MCG) 
    • Dual‐role Full‐speed USB Controller and transceiver 
    • Controller Area Network (CAN) 
    • Two serial communications interfaces (SCI) 
    • Two serial peripheral interfaces (SPI) 
    • Cryptographic acceleration unit (CAU) 
    • Random number generator accelerator (RNGA) 
    • Analog comparators 
    • Analog‐to‐digital converter (ADC) 
    • Two I2C interfaces 
    • Carrier modulation timer (CMT) 
    • Two timer modules (TPM) 
    • Up to 66 GPIOs and 16 Rapid GPIOs

Power Supply 
The JM Badge Board can be powered by a rechargeable Li‐Ion battery or the USB interface. The typical voltage supply range of a Li‐ion battery is 3.1‐4.2V. The USB VBUS supply is 5V +/‐ 5%. In order to accommodate the operating voltage of all the devices on the JM Badge Board, a low‐dropout (LDO) regulator is used to maintain a 3.3V operating voltage.

LiIon Battery
The JM Badge Board is equipped with a rechargeable Lithium‐ion battery, LIR2430. The typical specifications for the battery are shown in Table 2 below.  
The typical charge and discharge voltage vs. capacity graph is shown in below.

typical charge_discharge voltage vs. capacity graph

System Clocks
The JM Badge Board provides a 12MHz crystal to the MCF51JM device. This option is required to achieve the 48 MHz system clock needed by the USB controller interface. When the USB is not operational, the MCF51JM can also operate from its internal reference.

USB Interface
The MCF51JM features a full‐speed USB dual‐role controller with on‐chip transceiver. The JM Badge Board is equipped with a mini‐AB USB connector wired for a USB device interface.   

LED Matrix Display 
A simple matrix of LEDs is provided as a display interface. MCF51JM GPIO signals are used to control the 5 x 16 matrix of LEDs.

Proximity Capacitive Touch Sensor
Eight touch sensitive electrodes provide the primary user interface on the JM Badge Board. These touch sensors detects capacitance changes on the eight electrodes and provides touch information to the MCU via the I2Cbus.

Threeaxis Accelerometer 
MMA7260QT three‐axis, low‐g accelerometer is featured on the JM Badge Board.  
Each axis has a dedicated analog output that is connected to an ADC channel on the MCF51JM.

Expansion Connector 
An unpopulated 30x2, 100 mil, through‐hole header allows access to most MCF51JM signals for probing and expansion. The header pinout and dimensions match that of the MCU_PORT on the DEMOJM baseboard.

Debug Interface 
The standard 6‐pin (2x3, 100 mil) ColdFire V1 BDM interface header is available but not populated.  

Getting Started with JM Bagde Board

Step 1 - Turn on board and display welcome message

1. Flip switch on the top right-hand side of the badge to the “On” position
2. A welcome message will scroll across the LED

Back of Badge

Step 2 - Edit LED message

1. Press and hold button E1 and slowly slide your finger from top to bottom down the left-hand side of the board, stopping at button E4
2. The word “Demos” will scroll across the screen. Press E1 to enter the Message Edit application.
3. Enter your customized message by using the following button:

    • E1 to scroll through characters
    • E2 to scroll through characters in the reverse direction
    • E3 to toggle caps lock
    • E5 to select a character
    • E6 to delete a character
Front of Badge

4. When finished, you may:

    • Press E8 to save your custom message and exit the Message Edit application
    • Press E4 to exit without saving

Step 3 - Explore other applications

1. Press E1 and slide your finger along the left-hand side down to E4 to unlock the badge
2. Press the other buttons to explore more demo applications. Visit Can your Badge Do This? for additional details
3. Press E8 to exit the application and return to the scrolling LED message
4. Use the USB cable with a laptop to charge the battery, program your badge board, or develop with your badge board

Read the Italian version: Come iniziare con la JM Badge Board della Freescale

If you want to know more about this Freescale product, please submit your request to Arrow Italy using this form.

NOTE: this form is valid ONLY for Companies or Customers based in Italy and working in the Italian area.

trivially program the badge board in BASIC...

Hi all,

If you want to trivially program the badge board, you can download StickOS from http://www.cpustick.com/downloads.htm using the badge board's USB bootloader and then log in via any terminal emulator to the USB Virtual COM Port exposed by the badge board and program it in BASIC. You can, for example, use the MCU A/D converters to read the accelerometer with a program as simple as:

10 dim x as pin ptb4 for analog input
20 dim y as pin ptb5 for analog input
30 dim z as pin ptb6 for analog input
40 dim gsel1 as pin ptc4 for digital output
50 dim gsel2 as pin ptc5 for digital output
60 dim wake as pin ptc3 for digital output
70 let gsel1 = 0
80 let gsel2 = 0
90 let wake = 1
100 while 1 do
110 print "x =", x, "; y =", y, "; z =", z
120 sleep 1 s
130 endwhile

You can see full documentation and details for StickOS on the page above, as well as download for almost a dozen different MCUs.

You can even see a "paddleball" game written in BASIC for the badge board here: http://www.cpustick.com/text.htm#pong

Have fun!

-- Rich

Who's online

There are currently 0 users and 7 guests online.

Recent comments