Nxp Twr-mcf51jg Tower Module User Manual

Nxp Twr-mcf51jg Tower Module User Manual

NXP-LOGO

NXP TWR-MCF51JG Tower Module

NXP-TWR-MCF51JG-Tower-Module-PRODUCT-IMAGE

TWR-MCF51JG and TWR-MCF51JG-KIT Overview

The TWR-MCF51JG is a Tower Controller Module compatible with the Freescale Tower System. It can function as a stand-alone, low-cost platform for the evaluation of the ColdFire+ MCF51JG microcontroller (MCU) devices. The TWR-MCF51JG features the MCF51JG, a ColdFire+ 32-bit microcontroller built on the Version 1 (V1) ColdFire® core and enabled by innovative 90nm thin film storage (TFS) flash process technology with FlexMemory. The MCF51Jx families offer a rich combination of additive peripherals including USB, hardware encryption, and more.

The TWR-MCF51JG is available as a stand-alone product or as a kit (TWR-MCF51JG-KIT) with the Tower Elevator Modules (TWR-ELEV) and the Tower Prototyping Module (TWR-PROTO). The TWR-MCF51JG can also be combined with other Freescale Tower peripheral modules to create development platforms for a wide variety of applications. Figure 1 provides an overview of the Freescale Tower System.

NXP-TWR-MCF51JG-Tower-Module-01Figure 1. Freescale Tower System Overview

Contents
The TWR-MCF51JG contents include:

  • TWR-MCF51JG board assembly
  • 3ft A to mini-B USB cable for debug interface and power
  • 3ft A to micro-B USB cable for MCF51JG USB interface
  • Micro-A to A adapter for MCF51JG USB Host applications
  • Quick Start Guide

The TWR-MCF51JG-KIT contains: 

  • TWR-MCF51JG MCU module
  • TWR-ELEV – Primary and Secondary Elevator Modules
  • TWR-PROTO – Prototyping module

Features
Figure 2 shows the TWR-MCF51JG with some of the key features called out. The following list summarizes the features of the TWR-MCF51JG Tower MCU Module:

  • Tower compatible microcontroller module
  • MCF51JG256: MCF51JG with 256 Kbytes of flash in a 44-pin MAPLGA package
  • Dual role USB interface with Micro-AB USB connector
  • General purpose Tower Plug-in (TWRPI) socket
  • On-board debug circuit (OSBDM) with virtual serial port
  • Three axis accelerometer (MMA8451Q)
  • Two (2) user-controllable LEDs
  • Two (2) user pushbutton switches & One (1) reset pushbutton switch

NXP-TWR-MCF51JG-Tower-Module-02Figure 2. Callouts on front side of the TWR-MCF51JG

Getting Started
Follow the Quick Start Guide found printed in the TWR-MCF51JG box or the interactive DVD for the list of recommended steps for getting started. Check for new or revised documentation on the tool support page for the TWR-MCF51JG: http://www.freescale.com/TWR-MCF51JG.

Reference Documents
The documents listed below should be referenced for more information on the ColdFire+ devices, Freescale Tower System, and the TWR-MCF51JG Controller Module. These can be found in the documentation section of freescale.com/TWR-MCF51JG or freescale.com/coldfire+.

  • TWR-MCF51JG-QSG: Quick Start Guide
  • TWR-MCF51JG-SCH: Schematics
  •  TWR-MCF51JG-PWA: Design Package
  • ColdFire+ Portfolio Product Brief
  • MCF51JG256 Reference Manual
  • Tower Configuration Tool
  • Tower Mechanical Drawing

Hardware Description
The TWR-MCF51JG is a Tower Controller Module featuring the MCF51JG256—a ColdFire+ based microcontroller with USB 2.0 full-speed OTG controllers in a 44 MAPLGA package. It is intended for use in the Freescale Tower System but can operate stand-alone. An on-board debug circuit, OSBDM, provides a BDM interface and a power supply input through a single USB mini B connector. Figure 3 shows a block diagram of the TWR-MCF51JG. The following sections describe the hardware in more detail.

NXP-TWR-MCF51JG-Tower-Module-03Figure 3. TWR-MCF51JG Block Diagram

MCF51JG Microcontroller
The TWR-MCF51JG module features the MCF51JG256CFT. The key features of the microcontroller are:

  • 32-bit ColdFire+ core with FlexMemory, EMAC, and DIV hardware acceleration
  • 50 MHz maximum core operating frequency
  • 44-pin MAPLGA, 5mm x 5mm
  • 1.85V – 3.6V operating voltage input range
  • 256 Kbytes of program flash, 64 Kbytes of static RAM
  • FlexMemory consisting of 32 Kbytes of FlexMemory that can be used as additional non-volatile flash or up to 2KB of enhanced EEPROM.
  • 10 flexible low power modes, ideal for extending battery life
  • Cryptographic Acceleration Unit (CAU) and Random Number Generator (RNGA) for secure communications
  • Integrated USB 2.0 Full-Speed Device/Host/OTG Controller supporting connection via USB and battery charging
  • Serial audio interface (SAI) providing a direct interface to codecs and to Inter-IC Sound (I2S) audio devices
  • Real-time debug support, with six hardware breakpoints that can be configured to halt the processor or generate debug interrupt
  • Multi-purpose clock generator with PLL and FLL operation modes; multiple input oscillator or resonator frequency ranges; two internal trimmable references
  • SPI, I2C, UART (SCI)
  • GPIO with pin interrupt support, DMA request capability, digital glitch filtering

Clocking
The ColdFire+ MCUs start up from an internal digitally controlled oscillator (DCO). Software can enable the main external oscillator (EXTAL/XTAL) if desired. The external oscillator/resonator for the Multipurpose Clock Generator (MCG) module can range from 32.768 KHz up to a 32 MHz.
The TWR-MCF51JG provides an 8 MHz ceramic resonator as shown in Figure 4 below and sheet 4 of the schematics. This oscillator can be used as a clock source for the phase locked loop (PLL) inside the MCG.

Notes

  1. When R7 is not populated (default), configure the crystal oscillator for low-power operation (MCG_C2[HGO] = 0).
  2. The resonator used here has internal load capacitors. Therefore no external or internal load capacitance within the MCU is required.

NXP-TWR-MCF51JG-Tower-Module-04Figure 4. Main Oscillator Input

Additionally, the TWR-MCF51JG provides a 32.768 KHz oscillator for an accurate real time clock source.

NXP-TWR-MCF51JG-Tower-Module-05Figure 5. 32 KHz Oscillator Input

System Power
When installed into a Tower System, the TWR-MCF51JG can be powered from either an on-board source or from another source in the assembled Tower System.
In stand-alone operation, the main power source for the TWR-MCF51JG module is derived from the 5.0V input from either the OSBDM USB mini-B connector (J14), the MCF51JG USB micro-AB connector (J8), or the EzPort header (J16) when a shunt is placed on jumper J15. Two low-dropout regulators provide 3.3V and 2.0V supplies from the 5.0V input voltage. Additionally, the 3.3V regulator built into the MCF51JG can be selected. All the user selectable options can be configured using two headers, J9 and J10.

The J10 header is used to select the power source that is supplied to one of the three possible voltage regulators. The J11 header is used to select the regulated board power source. Refer to Table 1 and Table 2 for details.

Table 1. J10, Regulator Power Source Selection

J10 Shunt SettingDescription
NXP-TWR-MCF51JG-Tower-Module-031-2Power from the OSBDM interface (J14) supplied to the on- board voltage regulators. This is a default setting.
NXP-TWR-MCF51JG-Tower-Module-065-6Power from the MCF51JG USB device interface (J8) supplied to the MCF51JG on-chip regulator. This is a default setting.
NXP-TWR-MCF51JG-Tower-Module-076-8Power from the Tower Primary Connector USB device interface supplied to the MCF51JG on-chip regulator.
NXP-TWR-MCF51JG-Tower-Module-083-5Power from the MCF51JG USB device interface (J8) supplied
2-4to the on-board voltage regulators.

Table 2. J9, Board Power Source Selection

J9 Shunt SettingDescription
NXP-TWR-MCF51JG-Tower-Module-09 

3-5

 

Board power is supplied by the 3.3V on-board (external) regulator. This is the default setting.

NXP-TWR-MCF51JG-Tower-Module-10 

5-7

 

Board power is supplied by the 2.0V on-board (external) regulator.

NXP-TWR-MCF51JG-Tower-Module-11 

1-2

 

Board power is supplied by the 3.3V MCF51JG on-chip (internal) regulator.

NXP-TWR-MCF51JG-Tower-Module-12 

 

1-3

5-7

Power from the 3.3V MCF51JG on-chip (internal) regulator is supplied to the 3.3V on-board (external) regulator. Board power is supplied by the 2.0V on-board (external) regulator.
Note: Take care not to install a shunt on J10 pins 1-2 when J9 is in this configuration. It is recommended to remove the shunt from J10 1-2 and use it on J9 for this setting.
NXP-TWR-MCF51JG-Tower-Module-13 

An external battery or other alternate source can be connected to pins 5 (positive) and 6 (negative, ground).

The 3.3V or 2.0V power supplied to the MCU is routed through a jumper, J12. The jumper shunt can be removed to allow for either (1) selecting the source of the MCU supply voltage or (2) the measurement of power consumed by the MCU.

Table 3. J12, Board Power Source Selection

J12 Shunt SettingDescription
NXP-TWR-MCF51JG-Tower-Module-143-5 

MCU power is supplied by the board power source selection jumper (J9). This is the default setting.

NXP-TWR-MCF51JG-Tower-Module-155-7MCU power is supplied by the 3.3V MCF51JG on-chip (internal) regulator. Use this jumper setting if it is desired to power only the MCU with the on-chip (internal) regulator and not the rest of the board.

Debug Interface
There are two debug interface options provided: the on-board OSBDM circuit and an external Background Debug Mode (BDM) connector. The BDM connector is a standard 6-pin connector providing an external debugger cable with access to the BDM interface of the MCF51JG256. Alternatively, the on-board OSBDM debug interface can be used to access the debug interface of the MCF51JG256.
Note: When using an external debug pod to connect to the MCF51JG, be sure to connect the BDM cable to J17 (JG BDM). Avoid connecting to J18 (JM60 BDM) which is directly next to J17. J18 provides a debug connection to the OSBDM MCU (MC9S08JM60).

OSBDM
An on-board MC9S08JM60 based Open Source BDM (OSBDM) circuit provides a BDM debug interface to the MCF51JG. A standard USB A male to mini-B male cable (provided) can be used for debugging via the USB connector, J14. The OSBDM interface also provides a USB to serial bridge. Drivers for the OSBDM interface are provided in the P&E Micro OSBDM/OSJTAG Tower Toolkit (available on the MCF51JG product website). These drivers and more utilities can be found online at: http://www.pemicro.com/osbdm.

Accelerometer
An MMA8451Q digital accelerometer is connected to the MCF51JG MCU through an I2C interface (I2C0: PTB2 and PTB3) and two GPIO/IRQ signals (PTC4 and PTC5).

NXP-TWR-MCF51JG-Tower-Module-16Figure 6. Accelerometer Circuit

Pushbuttons, LEDs
The TWR-MCF51JG features, two pushbutton switches (SW1 & SW2) connected to IRQ signals IRQ0 (PTB1) and IRQ3 (PTC1), a pushbutton switch (SW3) connected to the master reset signal, and two user-controllable LEDs connected to GPIO signals (PTB6 and PTC0).
Refer to Table 6 “I/O Connectors and Pin Usage Table” for more information.

General Purpose Tower Plug-in (TWRPI) Socket
The TWR-MCF51JG features a socket that can accept a variety of different Tower Plug-in modules featuring sensors, RF transceivers, and more. The General Purpose TWRPI socket provides access to I2C, SPI, IRQs, GPIOs, timers, analog conversion signals, TWRPI ID signals, reset, and voltage supplies. The pinout for the TWRPI Socket is defined in Table 4.
Refer to Table 6 “I/O Connectors and Pin Usage Table” for the specific MCF51JG pin connections to the General Purpose TWRPI socket.

Table 4. General Purpose TWRPI socket pinout

Left-side 2×10 Connector

PinDescription
15V VCC
23.3 V VCC
3GND
43.3V VDDA
5VSS (Analog GND)
6VSS (Analog GND)
7VSS (Analog GND)
8ADC: Analog 0
9ADC: Analog 1
10VSS (Analog GND)
11VSS (Analog GND)
12ADC: Analog 2
13VSS (Analog GND)
14VSS (Analog GND)
15GND
16GND
17ADC: TWRPI ID 0
18ADC: TWRPI ID 1
19GND
20Reset

Right-side 2×10 Connector

PinDescription
1GND
2GND
3I2C: SCL
4I2C: SDA
5GND
6GND
7GND
8GND
9SPI: MISO
10SPI: MOSI
11SPI: SS
12SPI: CLK
13GND
14GND
15GPIO: GPIO0/IRQ
16GPIO: GPIO1/IRQ
17GPIO: GPIO2
18GPIO: GPIO3
19GPIO: GPIO4/Timer
20GPIO: GPIO5/Timer

USB
The MCF51JG features a USB full-speed/low-speed OTG/Host/Device controller with built-in transceiver. The TWR-MCF51JG routes the USB D+ and D- signals from the MCF51JG MCU to either the on-board USB connector (J8) or the Tower Primary Connector (allowing the connection to external USB connectors or additional circuitry on a Tower peripheral module) depending on the value of four optional resistors: R11/R12 and R13/R14. By default, R11 and R12 are not populated and R13 and R14 are. This connects the MCF51JG USB signals to the on-board USB circuit.
A power supply switch with an enable input signal and over-current flag output signal is used to supply power to the USB connector when the MCF51JG is operating in host mode. Port pin PTA2 is connected to the flag output signal and port pin PTA1 is used to drive the enable signal. Both port pins can be isolated with jumpers if needed.

NXP-TWR-MCF51JG-Tower-Module-17Figure 7. USB dual-role interface

Jumper Table

There are several jumpers on the TWR-MCF51JG that provide configuration selection and signal isolation. Refer to the following table for details. The default installed jumper settings are shown in bold with asterisks.

Table 5. TWR-MCF51JG Jumper Table

JumperOptionSettingDescription
J1USB Power Switch Enable Input Connection*ON*Connect PTA1 to USB power switch enable input
OFFDisconnect PTA1 from USB power switch enable
J2USB Power Switch Flag Output Connection*ON*Connect PTA2 to USB power switch over-current flag output
OFFDisconnect PTA2 from USB power switch over- current flag output
J4SCI1/SPI1 Connection Selection*1-2*Connect SCI1_RX/SPI1_MISO to SPI1_MISO on Primary Edge
2-3Connect SCI1_RX/SPI1_MISO to SCI1_RX (RXD1) on Primary Edge
J5SCI1/SPI1 Connection Selection*1-2*Connect SCI1_TX/SPI1_MOSI to SPI1_MOSI on Primary Edge
2-3Connect SCI1_TX/SPI1_MOSI to SCI1_TX (TXD1) on Primary Edge
J9Board Power Source

Selection

*3-5*Refer to Table 2
J10Regulator Power Source
Selection
*1-2*

*5-6*

Refer to Table 1
J12MCU Voltage Selector*1-2*Power MCU from board power source selection jumper (J9).
2-3Power MCU with output of on-chip voltage regulator (VOUT33).
J13 

OSBDM Mode Selection

ONOSBDM bootloader mode (OSBDM firmware

reprogramming)

*OFF*Debugger mode
J15EzPort Power ConnectionONConnect on-board 5V supply to EzPort header (supports powering board from external EzPort probe)
*OFF*Disconnect on-board 5V supply from EzPort

header

Input/Output Connectors and Pin Usage Table
The following table provides details on which MCF51JG pins are using to communicate with the LEDs, switches, and other I/O interfaces onboard the TWR-MCF51JG.
Note: Some port pins are used in multiple interfaces on-board and many are potentially connected to off-board resources via the Tower Primary Connector. Take care to avoid attempted simultaneous usage of mutually exclusive features.

Table 6. I/O Connectors and Pin Usage Table

FeatureConnectionPort PinPin FunctionShared With
OSBDM/USB BridgeUART ReceivePTB5SCI2_RXSPI2_MISO
UART TransmitPTB4SCI2_TXSPI2_MOSI
USB OTGData NegativeUSB0_DNDifferential Data
Data PositiveUSB0_DPDifferential Data
EZPORTEZPort ClockPTB0EZP_CLKTWRPI, USB OTG
EZPort Data OutPTA6EZP_DOTWRPI, SAI
EZPort Data InPTA7EZP_DITWRPI
EZPort Chip SelectPTB1EXP_CS_BIRQ0/SW1
ResetRESET_BJG_RESET_B
SwitchesSW1PTB1IRQ0EZP_CS_B
SW2PTC1IRQ3FTM1_CH5
SW3RESET_BReset
SAISAI Receive FSPTA6SAI0_RX_FSEZPORT, TWRPI
FeatureConnectionPort PinPin FunctionShared With
SAI Transmit FSPTD0SAI0_RX_FSSPI
SAI Transmit DataPTD1SAI0_TXDSPI
SAI Receive DataPTA5SAI0_RXDFTM1_CH4
SAI Receive ClockPTA3SAI0_RX_BCLKFTM1_CH2,

CLKOUT

SAI Transmit ClockPTD2SAI0_TX_BCLKSPI
SAI Input ClockPTD3SAI0_CLKIN/MCLKSPI
AccelerometerI2C Clock I2C Data IRQ1
IRQ2
PTB2 PTB3 PTC4
PTC5
IIC0_SCL IIC0_SDA IRQ1
IRQ2
 

 

SCI1_RTS SCI1_CTS

TWRPITWRPI I2C SCL (J7 Pin 3)PTB2IIC0_SCLAccelerometer
TWRPI I2C SDA (J7 Pin 4)PTB3IIC0_SDAAccelerometer
TWRPI SPI MISO (J7 Pin 9)PTC2SPI1_MISOSCI1_RX
TWRPI SPI MOSI (J7 Pin 10)PTB7SPI1_MOSISCI1_TX
TWRPI SPI SS (J7 Pin 11)PTC7SPI1_SS
TWRPI SPI CLK (J7 Pin 12)PTC3SPI1_SCLK
TWRPI GPIO0 (J7 Pin 15)PTA6GPIO0SAI0, EZPORT
TWRPI GPIO1 (J7 Pin 16)PTB0GPIO1USB OTG,

EZPORT

TWRPI GPIO2 (J7 Pin 17)PTA7GPIO2EZPORT
TWRPI GPIO3 (J7 Pin 18)PTA1GPIO3FTM1_CH0,

IIC1_SCL

TWRPI GPIO4 (J7 Pin 19)PTA2GPIO4FTM1_CH1,

IIC1_SDA

LEDsYellow LED (D5)

Orange LED (D4)

PTB6

PTC0

LED1

LED2

Tower Elevator Connections
The TWR-MCF51JG features two expansion card-edge connectors that interface to the Primary and Secondary Elevator boards in a Tower system. The Primary Connector (comprised of sides A and B) is utilized by the TWR-MCF51JG while the Secondary Connector (comprised of sides C and D) only makes connections to the GND pins. Table 7 provides the pinout for the Primary Connector. (NC = No Connection)

Table 7. TWR-MCF51JG Primary Connector Pinout

Pin #Side BPin #Side A
NameUsageNameUsage
15VP5V_ELEV15VP5V_ELEV
2GNDGND2GNDGND
33.3VP3V333.3VP3V3
4ELE_PS_SENSE_1ELE_PS_SENSE43.3VP3V3
5GNDGND5GNDGND
6GNDGND6GNDGND
7SDHC_CLK / SPI1_CLKPTC37IIC0_SCLPTB2
8NC8IIC0_SDAPTB3
9SDHC_D3 / SPI1_CS0_bPTC79GPIO9/UART1_CTSPTC5
10SDHC_CMD / SPI1_MOSISPI1_MOSI10NC
11SDHC_D0 / SPI1_MISOSPI1_MISO11NC
12NC12NC
13NC13NC
14NC14NC
15NC15NC
16NC16NC
17NC17NC
18NC18NC
19NC19NC
20NC20NC
21GPIO1/UART1_RTSPTC421I2S0_MCLKPTD3
22NC22I2S0_DOUT_SCKPTD2
23NC23I2S0_DOUT_WSPTD0
24NC24I2S0_DIN0PTA5
25NC25I2S0_DOUT0PTD1
26GNDGND26GNDGND
27NC27NC
28NC28NC
29NC29NC
30NC30NC
31GNDGND31GNDGND
32NC32NC
33NC33NC
34NC34NC
35GPIO4PTB635NC
363.3VP3V3363.3VP3V3
37NC37NC
38NC38PWM2PTA3
39PWM5PTC139PWM1PTA2
40PWM4PTA640PWM0PTA1
41NC41UART0_RXPTB5
42NC42UART0_TXPTB4
43NC43UART1_RXSCI1_RX
44SPI0_MISOPTD244UART1_TXSCI1_TX
45SPI0_MOSIPTD145NC
46SPI0_CS0_bPTD046NC
47NC47NC
48SPI0_CLKPTD348NC
49GNDGND49NC
50I2C1_SCLPTA150NC
51I2C1_SDAPTA251NC
52GPIO5PTC052NC
53NC53NC
54NC54USB0_DNJG_ELEV_USB0_DN
55IRQ_HPTB155USB0_DPJG_ELEV_USB0_DP
56IRQ_GPTB156NC
57NC57USB0_VBUSUSB0_VBUS
58NC58NC
59NC59NC
60NC60NC
61IRQ_BPTC161NC
62IRQ_APTC162RSTIN_BJG_RESET_B
63NC63RSTOUT_BJG_RESET_B
64NC64CLKOUT0PTA3
65GNDGND65GNDGND
66NC66NC
67NC67NC
68NC68NC
69NC69NC
70NC70NC
71NC71NC
72NC72NC
73NC73NC
74NC74NC
75NC75NC
75NC75NC
77NC77NC
78NC78NC
79NC79NC
80NC80NC
81GNDGND81GNDGND
823.3VP3V3823.3VP3V3

TWR-MCF51JG Tower Module User’s Manual

References

Documents / Resouces

Download manual
Here you can download full pdf version of manual, it may contain additional safety instructions, warranty information, FCC rules, etc.


Related Manuals