Axiom 0605AXM0367 User Manual

DOC-0367-010, REV. C
Development Board for Freescale MCF5213 MCU
M5213EVB
Hardware User Manual
Axiom Manufacturing 2813 Industrial Lane • Garland, TX 75041
Email: Sales@axman.com Web: http://www.axman.com
M5213EVB USER MANUAL 07/15/05
CONTENTS
CAUTIONARY NOTES .......................................................................................................................... 3
TERMINOLOGY..................................................................................................................................... 3
FEATURES............................................................................................................................................... 4
GETTING STARTED..............................................................................................................................5
SOFTWARE DEVELOPMENT....................................................................................................................... 5
REFERENCE DOCUMENTATION ................................................................................................................. 5
M5213EVB
STARTUP .............................................................................................................................. 7
M5213EVB HARDWARE CONFIGURATION AND OPTIONS....................................................... 7
MEMORY............................................................................................................................................... 7
POWER SUPPLY.................................................................................................................................... 8
Power Jack........................................................................................................................................... 8
TB1 Power connection......................................................................................................................... 8
ON_OFF Switch................................................................................................................................... 8
FUSE – F1............................................................................................................................................ 8
3.3V_EN Option................................................................................................................................... 9
3.3V Indicator ...................................................................................................................................... 9
VDD and VRx Enable Options............................................................................................................. 9
VX_EN Option....................................................................................................................................10
RESET................................................................................................................................................... 10
RESET Switch..................................................................................................................................... 10
RESET Indicator ................................................................................................................................10
ABORT
SWITCH .................................................................................................................................... 10
SW1 AND SW2 SWITCHES...................................................................................................................... 10
LED[4:1] USER INDICATORS.................................................................................................................. 10
LED_EN option.................................................................................................................................. 11
SYSTEM CLOCK................................................................................................................................. 11
CLOCK Option Chart ........................................................................................................................ 11
UART0_TERMINAL AND UART1 PORTS ........................................................................................... 11
UART0_EN and UART1_EN Options................................................................................................ 12
UART2_CAN
PORT............................................................................................................................... 12
COM_SEL option............................................................................................................................... 12
UART2_EN option.............................................................................................................................. 13
CAN Operation................................................................................................................................... 13
CAN_EN option..................................................................................................................................13
JP1 I2C PULL-UP ENABLE ................................................................................................................... 14
MC13192 ZIGBEETRANSCEIVER................................................................................................. 14
ZIGBEE_EN Option........................................................................................................................... 14
TX Power............................................................................................................................................15
M5213EVB I/O PORTS .........................................................................................................................15
BDM_PORT.......................................................................................................................................... 15
BDM_EN Option................................................................................................................................ 15
BDM Port Connector......................................................................................................................... 16
MCU_PORT.......................................................................................................................................... 16
TROUBLESHOOTING............................................................................................................................ 17
M5213EVB USER MANUAL 07/15/05
DBUG MONITOR OPERATION.........................................................................................................18
DBUG COMMUNICATION: ...................................................................................................................... 18
DBUG SYSTEM INITIALIZATION ............................................................................................................. 18
Interrupt Service Support................................................................................................................... 18
DBUG MEMORY MAP ............................................................................................................................ 18
DBUG COMMANDS................................................................................................................................. 19
dBUG Command Table...................................................................................................................... 19
APPENDIX 1: DBUG COMMAND SET............................................................................................. 21
ASM - ASSEMBLER................................................................................................................................ 21
BC - BLOCK COMPARE........................................................................................................................... 21
BF - BLOCK FILL .................................................................................................................................... 22
- BLOCK MOVE................................................................................................................................ 23
BM BR
- BREAKPOINTS................................................................................................................................. 23
BS - BLOCK SEARCH .............................................................................................................................. 24
- DATA CONVERSION........................................................................................................................ 25
DC DI
- DISASSEMBLE.................................................................................................................................. 25
DL - DOWNLOAD CONSOLE.................................................................................................................... 26
DLDBUG DOWNLOAD DBUG (UPDATE) ............................................................................................ 26
FL FLASH LOAD OR ERASE.................................................................................................................. 27
GO EXECUTE USER CODE..................................................................................................................... 27
GT - EXECUTE TO ADDRESS................................................................................................................... 28
IRD - INTERNAL REGISTER DISPLAY...................................................................................................... 28
IRM - INTERNAL REGISTER MODIFY ...................................................................................................... 28
HELP - HELP .......................................................................................................................................... 29
LR - LOOP READ .................................................................................................................................... 29
LW - LOOP WRITE.................................................................................................................................. 29
MD - MEMORY DISPLAY ........................................................................................................................ 30
MM - MEMORY MODIFY ........................................................................................................................ 30
MMAP - MEMORY MAP DISPLAY.......................................................................................................... 31
RD - REGISTER DISPLAY ........................................................................................................................ 31
RM - REGISTER MODIFY ........................................................................................................................ 32
RESET SET SHOW
- RESET THE BOARD AND DBUG ............................................................................................... 32
- SET CONFIGURATIONS.................................................................................................................. 33
- SHOW CONFIGURATIONS.......................................................................................................... 33
STEP - STEP OVER................................................................................................................................. 34
SYMBOL - SYMBOL NAME MANAGEMENT........................................................................................... 34
TRACE - TRACE INTO............................................................................................................................ 35
VERSION TRAP
- DISPLAY DBUG VERSION .................................................................................................. 35
#15 FUNCTIONS ........................................................................................................................... 36
OUT_CHAR ....................................................................................................................................... 36
IN_CHAR ........................................................................................................................................... 36
CHAR_PRESENT............................................................................................................................... 37
EXIT_TO_dBUG................................................................................................................................ 37
M5213EVB USER MANUAL 07/15/05
Cautionary Notes
1) Electrostatic Discharge (ESD) prevention measures should be applied whenever handling this product. ESD damage is not a warranty repair item.
2) Axiom Manufacturing reserves the right to make changes without further notice to any products to improve reliability, function or design. Axiom Manufacturing does not assume any liability arising out of the application or use of any product or circuit described herein; neither does it convey any license under patent rights or the rights of others.
3) EMC Information on the M5213EVB board:
a) This device complies with Part 15 of the FCC Rules. Operation is subject to the following
two conditions:
1. This device may not cause harmful interference, and
2. This device must accept any interference received, including interference that may cause undesired operation.
TX FCC ID# TFY0605AXM0367
b) Changes or modifications to this unit not expressly approved by Axiom Manufacturing
Inc., could void the user’s authority to operate this equipment.
b) This product as shipped from the factory with associated power supplies and cables, has
been tested and meets with requirements of CE IT Equipment CLASS B product.
c) This product is designed and intended for use as a development platform for hardware
or software in an educational / professional laboratory or as a component in a larger system.
d) In a domestic environment this product may cause radio interference in which case the
user may be required to take adequate prevention measures.
e) RF Exposure – This device exceeds the FCC requirements for RF exposure when the
antenna used for this transmitter has a separation distance of at least 20 cm from all persons and must not be co-located or operating in conjunction with any other antenna or transmitter.
Terminology
This development board applies option selection jumpers. Terminology for application of the option jumpers is as follows:
Jumper on, in, or installed = jumper is a plastic shunt that fits across 2 pins and the shunt is installed so that the 2 pins are connected with the shunt.
M5213EVB USER MANUAL 07/15/05
Jumper off, out, or idle = jumper or shunt is installed so that only 1 pin holds the shunt, no 2 pins are connected, or jumper is removed. It is recommended that the jumpers be placed idle by installing on 1 pin so they will not be lost.
Signal names in this document that are followed by an asterisk (*) denote an active-low signal.
FEATURES
M5213EVB is a low cost development system for the Freescale MCF5213 ColdFire® microcontroller. Application development is quick and easy with the included DB9 serial cable and dBUG firmware monitor. The BDM port is compatible with standard ColdFire BDM / JTAG interface cables and hosting software, allowing easy application debugging and development with a variety of hardware and software tools.
Features: MCF5213 CPU, 100 pin LQFP
* 256K Byte Flash (on-chip) * 32K Byte SRAM (on-chip)
* DMA Controller w/ four 32-bit Timers * Interrupt Controller * 8 Channel 12-bit A/D * QSPI, IIC, and CAN Serial Ports * 3 UART Serial Ports with DMA capability
* Edge / Interrupt Port
* 8 PWM timers
* 4 16-bit GPT Timers
* BDM / JTAG Port
* Internal 8MHz Oscillator
* 3.3V operation
8MHz reference crystal MCU port, 60 pin I/O port BDM / JTAG Port, 26-pin development port UART0 / Terminal Port w/ RS232 DB9-S Connector UART1 Port w/ RS232 DB9-S Connector UART2 / CAN port w/ RS232 and 1Mbaud CAN
transceiver
RESET switch and indicator ABORT (IRQ7) switch 4 User Indicators (LEDs) 2 User Push Switches 2.4GHz Zigbee™ capable RF Transceiver Regulated +3.3V power supply w/ indicator Supplied with DB9 Serial Cable, Wall Adapter Power supply, and P&E
BDM interface cable.
Specifications:
Board Size 3.5” x 5.5” Power Input: +5 - +25VDC, 9VDC typical
M5213EVB
M5213EVB USER MANUAL 07/15/05
Current Consumption: 100ma typical @ 9VDC input The M5213EVB is provided, operating the Freescale dBUG monitor firmware. The monitor
allows serial interface to a PC host for file loading and terminal command line operations. The kit is plug in and play out of the box with a wall adapter power supply. Additional hardware and software development tools are available, but not required.
GETTING STARTED
The M5213EVB single board computer is a fully assembled, fully functional development board for the Freescale MCF5213 microcontroller. It is provided with a wall plug power supply, P&E BDM interface cable, and a serial cable. Provided support software for this development board is for Windows 95/98/NT/2000/XP operating systems.
Development board users should also be familiar with the hardware and software operation of the target MCF5213 device. Refer to the microcontroller reference manual, MCF5213RM, for details. The purpose of the development board is to assist the user in quickly developing an application with a known working environment, to provide an evaluation platform, or as a control module for an applied system. Users should be familiar with memory mapping, memory types, and embedded software design for the quickest successful application development.
Software Development
Application development maybe performed by applying the dBUG firmware monitor, or by applying a compatible ColdFire BDM / JTAG cable with supporting host software. The monitor provides an effective and low cost command line debug method.
Software development is best performed with a development tool connected to the BDM port. This provides real-time access to all hardware, peripherals and memory on the board. Development tool software also provides high-level (C/C++) source code debug environment.
The target development environment and procedure for best success is to place software to be tested into RAM memory. Execute software to be tested under dBUG monitor or development tool control. After the software is tested and operational in RAM, it can be ported and programmed into Flash memory. However, note that programming a bootable application into the internal Flash will overwrite the dBUG monitor. The monitor can be recovered by using a BDM Flash programming tool along with the dBUG binaries provided on the MCF5213 website (http://www.freescale.com/coldfire).
Reference Documentation
The following documents should be referenced when developing with the M5213EVB. These documents are available on the MCF5213 and M5213EVB web pages (http://www.freescale.com/coldfire
M5213EVBUM – This user manual. MCF5213RM – MCF5213 Device Reference Manual
).
M5213EVB USER MANUAL 07/15/05
CFPRM – ColdFire Programmers Reference Manual with instruction set M5213EVB_SCH_B – M5213EVB Rev. B board schematics
M5213EVB USER MANUAL 07/15/05
M5213EVB Startup
Follow these steps to connect and power on the board for the default dBUG monitor operation.
1) Carefully unpack the M5213EVB and observe ESD preventive measures while handling the
M5213EVB development board.
2) Configure a virtual terminal program (such as HyperTerminal or Tera Term) for a direct
connection to the PC COM port to be applied for serial communication with the M5213EVB. Set the baud rate to 19.2K baud, 8 data bits, 1 stop bit, and no parity. Software XON / XOFF flow control should be enabled for Flash memory support operations. Use the AxIDE ‘’ tool bar button to configure the COM port on the PC.
3) Connect the M5213EVB board UART0 / TERMINAL serial port connector to the host PC
COM port with the provided 9 pin serial cable.
4) Apply power to the development board by installing the wall plug power supply between a
wall outlet and the PWR Jack on the board. Set the ON / OFF switch to the ON position. The board voltage indicators should turn on at this time.
5) Observe the terminal window display for the dBUG monitor prompt. The prompt should be
similar to the following:
External Reset
ColdFire MCF5213 on the M5213EVB Firmware v4a.1b.1b (Built on May 13 2005 08:04:26) Copyright 2005 Freescale Semiconductor, Inc.
Enter 'help' for help.
dBUG>
6) The board is ready to use now. See the dBUG monitor manual section for additional
monitor information. If BDM / JTAG development port interfaced tools are to be applied, see the BDM PORT section of this manual for more details on installation.
M5213EVB Hardware Configuration and Options
The M5213EVB board provides a basic development or evaluation platform for the MCF5213 microcontroller. Following are descriptions of the main components and options provided on the board.
MEMORY
The EVB memory is the internal MCF5213 device SRAM and Flash memory. The MCF5213 provides 32K bytes of SRAM and 256K bytes of Flash memory internally. The dBUG monitor occupies the lower 80K bytes of the MCF5213 Flash memory and lower 8K of the SRAM. Refer to the dBUG memory map for default memory locations.
M5213EVB USER MANUAL 07/15/05
POWER SUPPLY
Unregulated DC input power is applied by external connection to the Power Jack or TB1 terminal block. The ON _OFF switch controls the input supply. The EVB 3.3VDC regulator is protected from reverse voltage by diode D7 and current limited by fuse F1.
Power Jack
The Power Jack provides the default power input to the board. The jack accepts a standard
2.0 ~ 2.1mm center barrel plug connector (positive voltage center) to provide the +VIN supply of +5 to +25 VDC (+9VDC typical).
+Volts, 2mm center
TB1 Power connection
TB1 terminal block provides access to the +VIN and GND (power ground) supplies. The +VIN supply should be limited to the range of +5 to +25 VDC (+9VDC typical).
+VIN - GND
TB1
ON_OFF Switch
The ON_OFF switch provides power On and Off control for the input power from the PWR Jack or TB1. Switch ON position is towards the PWR jack and OFF position is towards the TB1 connector.
ON
OFF
ON / OFF
FUSE – F1
Fuse F1 provides over current protection from PWR Jack or TB1 input to the EVB board. The fuse will open if current over 500mA is sustained or reaches 1 Amp. To reset the fuse, turn the
M5213EVB USER MANUAL 07/15/05
ON/OFF switch off or remove power for 10 minutes. Check for the cause of the over current condition before applying power again.
3.3V_EN Option
This option enables the on board regulated 3.3VDC supply from VR1 to power the EVB board when installed. Remove or idle this option to apply an external 3.3VDC regulated input voltage from the EVB MCU PORT connector. See the VX_EN option for more details on applying external +3.3VDC on the MCU PORT.
This option header is enabled in default configurations by a circuit trace between the mounting hole vias. The 3.3V_EN option header is not installed in default configurations. To enable use of this option, cut the circuit trace between the mounting hole vias and install 1x2, 0.1”ctr, pin­header. A shunt must then be installed to enable this option.
3.3V Indicator
The 3.3V indicator will be ON if voltage is applied to EVB +3.3VDC main supply circuit. If EVB is powered from the PWR jack or TB1 input, ON_OFF switch is ON, and +3.3V_EN is closed, this indicator should be ON. If not, remove power or turn EVB Off and verify connections. If the Fuse is suspect, see the F1 fuse section for reset procedure.
With the 3.3V_EN option open, the indicator will be ON if external 3.3VDC is applied via the MCU Port. The VX_EN option jumper must also be installed.
VDD and VRx Enable Options
The EVB board provides many options to isolate power supplies to the different MCF5213 modules and core. All VDD and VRx options are installed by default. Do not operate the EVB without the proper power supplied to all of the MCF5213 power supply pins. The following table provides the VDD and VRx option information:
VDD and VRx Option Table Option Name Supply Connection MCU Port Connection
VDD_EN +3.3V to MCF5213 VDD pins VDD_PLL +3.3V to MCF5213 VDDPLL pin VSTDBY +3.3V to MCF5213 VSTDBY pin, also MCU Port
connection
VDDA +3.3V to MCF5213 VDDA analog supply pin,
also MCU Port connection.
VRH VDDA supply to MCF5213 VRH analog
reference pin, also MCU Port
VRL VSSA (ground) to MCF5213 VRL analog
reference pin
VX_EN MCU Port pin 1 connection to +3.3V supply,
input or output. For input, +3.3V_EN option must be open or idle.
Pin 60 Pin 55 Pin 57 VRL Pin 58, VSSA pin
56 Pin 1
M5213EVB USER MANUAL 07/15/05
VX_EN Option
The VX_EN option is provided to support external 3.3V input from the MCU PORT pin 1 in conjunction with Freescale educational accessories. The VX_EN option installed provides external 3.3V input (or output if wanted) on MCU Port pin1.
See the 3.3V_EN Option section above to disable the on-board regulator.
RESET
External reset is provided by the RESET switch, LV1 low voltage detector, or user applied connection to the RSTI* signal on the MCU PORT pin 6. If the main 3.3V supply is below operating level, the LV1 voltage detector will cause the MCF5213 to stay in the RESET condition. Both the RESET switch and LV1 provide a 150ms delay after release for the system to stabilize.
Application of RESET will cause the dBUG monitor or user application to initialize the MCF5213. The previous operating state of the MCF5213 will be lost.
RESET Switch
RESET switch provides for manual application of the MCF5213 RSTI* signal. Reset switch operation is provided a 150ms delay after release by LV1.
RESET Indicator
RESET indicator will be ON for the duration of a valid RSTO* signal. This operation indicates the MCF5213 is in the Reset state.
ABORT Switch
The ABORT switch provides for manual application of the IRQ7 interrupt signal. This operation will allow the dBUG monitor to stop execution of a user program and maintain the CPU operating state for user examination.
SW1 and SW2 Switches
User switches 1 and 2 are available for application as needed. Both switches provide an active low signal when pressed. SW1 applies the MCF5213 IRQ4 signal and SW2 applies the MCF5213 IRQ5 signal.
LED[4:1] User Indicators
Four user indicators are provided for application on the MCF5213 DTIN[3:0] signals (configurable as GPIO). Indicators are buffered so they do not load the MCF5213 I/O port.
10
M5213EVB USER MANUAL 07/15/05
Indicator Table
INDICATOR COLOR OPERATION DEFAULT
CONDITION
LED1 Green MCF5213 DTIN0 status, high = ON ON LED2 Green MCF5213 DTIN1 status, high = ON ON LED3 Green MCF5213 DTIN2 status, high = ON ON LED4 Green MCF5213 DTIN3 status, high = ON ON
LED_EN option
The user LED indicators LED[4:1] must be enabled by the LED_EN option installed.
SYSTEM CLOCK
The EVB provides a 8MHz crystal oscillator reference input in Pierce Mode configuration. The MCF5213 also provides an internal 8MHz relaxation oscillator. The SMA connector position and socket X1 position are for factory testing purposes only and should not be used.
NOTE: Applying alternate clock inputs without express consent from Axiom Manufacturing may void the user’s authority to operate this equipment.
CLOCK Option Chart
Clock Type Clock Mode CLK_SEL Option Setting
Source PLL CLK0 CLK1 1 2 3 4 5 6
Y1 (8MHz) ON Out / Idle Out / Idle In In Out NC NC NC Y1 (8MHz) OFF Out / Idle In In In Out NC NC NC
INT OSC ON In Out / Idle Out Out In NC NC NC INT OSC OFF In In Out Out In NC NC NC
Notes:
1) INT OSC is the internal MCF5213 8MHz relaxation oscillator.
2) CLK_SEL option has 2 option jumpers provided. For INT OSC selection idle one jumper on one pin so it will not be lost.
3) CLK_SEL option positions 3-6 are for factory use only.
UART0_TERMINAL and UART1 Ports
The UART0_TERMINAL port provides the primary interface to the dBUG monitor with a default baud rate of 19.2K baud, 8 data bits, 1 stop bit, and no parity. Both the UART0 and UART1 ports apply a standard 9-pin serial connector with RS232 type interface to the MCF5213 UART0 or UART1 serial ports. Both ports apply a UARTx_EN option jumper block to enable the MCF5213 UART signals to operate the RS232 ports. A straight through DB9 Male / Female type serial cable can be applied to connect the ports to a standard PC COM port. Following is the DB9S connection reference.
11
Loading...
+ 26 hidden pages