FUJITSU MB91302 User Guide

Fujitsu Microelectronics Europe
User Guide
STARTERKIT MB91302
FMEMCU-UG-910008-15
FR FAMILY
EVALUATION BOARD
StarterkitMB91302
Revision History
Revision History
Date Issue 2004-07-09 V1.0,TKa/HW, First Release 2004-07-26 V1.1, Tka, chapter 7.5, 7.7.3, 8 updated 2004-11-17 V1.2, Tka, Chapter 9 Programming corrected – COM2 removed 2005-01-14 V1.3, Tka, programming area corrected, page 45
Table with pin description for connector X2, X3 added 2005-01-18 V1.4, Tka, table in chapter 6.3 corrected 2005-01-31 V1.4, Tka, version number in bookmarks corrected
This document contains 54 pages.
UG-910008-15 - 2 - © Fujitsu Microelectronics Europe GmbH
StarterkitMB91302
Warranty and Disclaimer
Warranty and Disclaimer
To the maximum extent permitted by applicable law, Fujitsu Microelectronics Europe GmbH restricts its warranties and its liability for the “STARTERKITMB91302” Board and all its deliverables (eg. software include or header files, application examples, target boards, evaluation boards, engineering samples of IC’s etc.), its performance and any consequential damages, on the use of the Product in accordance with (i) the terms of the License Agreement and the Sale and Purchase Agreement under which agreements the Product has been delivered, (ii) the technical descriptions and (iii) all accompanying written materials. In addition, to the maximum extent permitted by applicable law,
ujitsu Microelectronics Europe GmbH disclaims all warranties and liabilities for the performance of
F the Product and any consequential damages in cases of unauthorised decompiling and/or reverse engineering and/or disassembling.
Note: The “STARTERKITMB91302” Board and all its deliverables are intended and must only be used in an evaluation laboratory environment.
1. Fujitsu Microelectronics Europe GmbH warrants that the Product will perform substantially in
accordance with the accompanying written materials for a period of 90 days form the date of receipt by the customer. Concerning the hardware components of the Product, Fujitsu Microelectronics Europe GmbH warrants that the Product will be free from defects in material and workmanship under use and service as specified in the accompanying written materials for a duration of 1 year from the date of receipt by the customer.
2. Should a Product turn out to be defect, Fujitsu Microelectronics Europe GmbH´s entire liability
and the customer’s exclusive remedy shall be, at Fujitsu Microelectronics Europe GmbH´s sole discretion, either return of the purchase price and the license fee, or replacement of the Product or parts thereof, if the Product is returned to Fujitsu Microelectronics Europe GmbH in original packing and without further defects resulting from the customer’s use or the transport. However, this warranty is excluded if the defect has resulted from an accident not attributable to Fujitsu Microelectronics Europe GmbH, or abuse or misapplication attributable to the customer or any other third party not relating to Fujitsu Microelectronics Europe GmbH.
3. To the maximum extent permitted by applicable law Fujitsu Microelectronics Europe GmbH
disclaims all other warranties, whether expressed or implied, in particular, but not limited to, warranties of merchantability and fitness for a particular purpose for which the Product is not designated.
4. To the maximum extent permitted by applicable law, Fujitsu Microelectronics Europe GmbH´s
and its supplier’s liability are restricted to intention and gross negligence.
NO LIABILITY FOR CONSEQUENTIAL DAMAGES
To the maximum extent permitted by applicable law, in no event shall Fujitsu Microelectronics Europe GmbH and its suppliers be liable for any damages whatsoever (including but without limitation, consequential and/or indirect damages for personal injury, assets of substantial value, loss of profits, interruption of business operation, loss of information, or any other monetary or pecuniary loss) arising from the use of the Product.
Should one of the above stipulations be or become invalid and/or unenforceable, the remaining stipulations shall stay in full effect
© Fujitsu Microelectronics Europe GmbH - 3 - UG-910008-15
StarterkitMB91302
Chapter 1 Contents
1 Contents
REVISION HISTORY............................................................................................................ 2
WARRANTY AND DISCLAIMER ......................................................................................... 3
1 CONTENTS...................................................................................................................... 4
2 OVERVIEW...................................................................................................................... 6
2.1 Abstract................................................................................................................... 6
2.2 Features.................................................................................................................. 6
2.3 General Description................................................................................................. 7
3 INSTALLATION ............................................................................................................... 8
3.1 Hardware Installation............................................................................................... 8
3.1.1 Power-Supply configuration ................................................................... 8
3.1.2 STARTERKITMB91302 Configuration .................................................... 9
3.1.3 Use as Emulation Target Board for Emulator MB2198-01................... 10
3.2 Software Installation .............................................................................................. 11
3.2.1 Installation of Softune Workbench ....................................................... 11
4 QUICK PROJECT START-UP / TEST “STARTERKITMB91302”................................ 12
5 JUMPERS AND SWITCHES.......................................................................................... 14
5.1 Jumper Overview .................................................................................................. 14
5.2 Operating-Mode (JP1)........................................................................................... 16
5.3 Power Supply Voltage (JP: 22).............................................................................. 16
5.4 Analogue Power Supply Voltage (JP: 2, 4, 7)........................................................ 17
5.5 UART”A” (JP: 12, 13, 14) ...................................................................................... 18
5.6 UART”B” (JP: 18, 19, 20) ...................................................................................... 18
5.7 Reset-Generation (JP: 11, 15, 16, 17, 21) ............................................................. 19
5.8 Buttons INT0, INT3, ADTG, TIN1, NMI(JP: 3, 5, 6, 8, 9)........................................ 20
6 CONNECTORS.............................................................................................................. 21
6.1 Power connector (X1)............................................................................................ 21
6.2 Edge connector (XPIN1, XPIN2, XPIN3, XPIN4) ................................................... 21
6.3 UART”A”, UART”B” connector (X5, X7)................................................................. 21
6.4 USER-LEDs & LC-Display (optional)..................................................................... 22
6.5 Graphic Board Interface ........................................................................................ 23
7 GETTING STARTED...................................................................................................... 25
7.1 Introduction to Softune Workbench ....................................................................... 25
7.2 Project Start-up ..................................................................................................... 27
UG-910008-15 - 4 - © Fujitsu Microelectronics Europe GmbH
StarterkitMB91302
Chapter 1 Contents
7.3 Softune Workbench Monitor Debugger.................................................................. 32
7
.3.1
eneral Description............................................................................... 32
G
7.3.2 Basic Debugger Features...................................................................... 35
7.4 Advanced Monitor Debugger Features.................................................................. 36
7.5 Memory Configuration for User Applications.......................................................... 39
7.6 Provided Examples ............................................................................................... 41
7.7 Advanced Monitor Debugger Information .............................................................. 42
7.7.1 Status Indication of Monitor Debugger after Reset ............................. 42
7.7.2 Memory Map of Softune Workbench Monitor Debugger..................... 43
7.7.3 User Configuration of the Softune Workbench Monitor Debugger.... 44
8 STARTERKIT LIMITATIONS ......................................................................................... 46
9 PROGRAMMING THE EXTERNAL FLASH MEMORY.................................................. 47
10 TROUBLE SHOOTING .................................................................................................. 50
11 SILK-PLOT OF THE BOARD ........................................................................................ 51
12 RELATED DOCUMENTS............................................................................................... 52
12.1 Application notes................................................................................................... 52
12.2 Manuals 52
12.3 Website Links........................................................................................................ 52
13 RELATED PRODUCTS ................................................................................................. 53
14 INFORMATION AND CONTACTS................................................................................. 54
© Fujitsu Microelectronics Europe GmbH - 5 - UG-910008-15
StarterkitMB91302
Chapter 2 Overview
2 Overview
2.1 Abstract
The “STARTERKITMB91302” is a multifunctional starterkit for the Fujitsu 32-Bit Flash microcontroller MB91302series. It can be used stand alone for software development and testing or as a target board to work with the emulator system. The board enables the designer to start immediately with the software development before his own final target system is available.
The “STARTERKITMB91302” comes with the following parts
- “STARTERKITMB91302” and Softune Workbench monitor debugger
- Serial cable D-Sub 9 pin male-female (1:1)
- Power-Supply
- Printed version of the user guide for “STARTERKITMB91302”
- “STARTERKITMB91302” CD-ROM
- Microcontroller CD-ROM V3.5 or higher
- Addendum sheet with latest important instructions
2.2 Features
The starterkit is being delivered with the MB91302APFF-G-020-BND-E1 microcontroller and a monitor debugger installed already in the external flash.
< Supports MB91302series in FPT-144P-M12 package
< On-board 64Mbit Flash and 64Mbit SDRAM
< In-Circuit serial Flash programming
< Integrated Softune Workbench monitor debugger
< All resources available for evaluation on connectors
< All 144 pins routed to connectors
< 15 MHz main-crystal
< Two UART Interfaces (UART0, 1)
< 8 User LEDs, optional: alphanumeric standard LC-Display connectable instead of LEDs
< Reset-button, Reset-LED
< 5 User-buttons configurable for INT0, INT3, ADTG, TIN1 and NMI
< 6-9V (500mA) unregulated external DC power supply
< 3V on-board voltage regulator with power status-LEDs
< Graphic-Controller board support:
< 96pin + 48pin VG connector
< Power-supply (+5V, +3V3, +2V5)
This board must only be used for test applications
in an evaluation laboratory environment.
UG-910008-15 - 6 - © Fujitsu Microelectronics Europe GmbH
StarterkitMB91302
Chapter 2 Overview
2.3 General Description
The “STARTERKITMB91302” supports microcontroller members of the MB91301series.
It can be used as a stand-alone evaluation board or as a target board for emulator debugger.
The evaluation board supports the following package: FPT-144P-M12
The board is supplied with a socket 15MHz crystal as main oscillation clock. Using the internal PLL of the LC, internal clock rates up to 60MHz can be achieved.
Two separate RS232 transceivers are available to connect the on-chip UART0 and UART1 to 9-pin D-Sub connectors (X5, X7). The transceivers generate the adequate RS232 levels for receive (RXD) and transmit (TXD) lines. Either the DTR line or the CTS line can be selected with jumpers (JP15, JP17, JP21) to generate a system reset. The RTS signal can be shortcut to CTS using the jumpers JP12 and JP18.
The external flash memory is programmed with a monitor-debugger, which uses UART0 (UART”A”; X5) for communication and to download the user-application.
If the board is used as an emulator target board, the microcontroller must be removed from the PCB and a socket (NQPACK144SE) must be soldered instead. The following configuration has to be used:
Emulation main unit: MB2198-01
DSU cable: MB2198-10
Probe Cable: MB2198-101
Socket/ Header:NQPACK144SE + HQPACK144SE
All pins of the microcontroller are connected to the edge connectors XPIN1 to XPIN4. Furthermore, on X2 and X3 Fujitsu graphic-controller starterkits (daughter boards) can be connected.
The on-board voltage regulator allows the user to connect an unregulated DC input voltage between +6V to +9V (500mA). Also the power-supply voltages for an optional graphic­controller starterkit are generated. In this case the input voltage should be +8V to +9V (1500mA). In case of any modifications of the board, care should be taken that the total power consumption will not damage the regulator.
There are six push buttons on the board, used for Reset, External Interrupts INT0 and INT3, Trigger for A/D-converter (ADTG) and Reload-Timer1 (TIN1) and a non-maskable interrupt (NMI) – used for Abort function of Softune Workbench monitor debugger.
Eight user-LEDs are connected via a 220 Ohm pull-down resistor network to Port PG0-PG7. Parallel to the LEDs the connector X4 can be used to connect a standard alphanumeric display. If neither LEDs nor LCD are required, the resistor network can be removed to free the port.
The jumper JP1 (MD0) can select the operating mode of the microcontroller.
© Fujitsu Microelectronics Europe GmbH - 7 - UG-910008-15
StarterkitMB91302
9V
Chapter 3 Installation
3 Installation
3.1 Hardware Installation
3.1.1 Power-Supply configuration
The STARTERKITMB91302 contains a universal AC/DC power-supply adapter. Before connecting the power-supply to the starterkit ensure the correct configuration of the power­supply:
1. Voltage selection to 9V
2. Appropriate DC plug (2
3. Adjust correct polarity:
nd
largest plug is most suitable) is plugged into the socket.
+ GND
After these settings are checked the supply is ready to be used with the STARTERKITMB91302.
UG-910008-15 - 8 - © Fujitsu Microelectronics Europe GmbH
StarterkitMB91302
PC Serial
Power Supply 6
-
9V
Polarity: (+) to shield / GND to center
1-2
5x
Chapter 3 Installation
3.1.2 STARTERKITMB91302 Configuration
Carefully remove the board from the shipping carton. Check if there are any damages first before power on the starterkit.
For the power supply a DC input voltage of 6V-9V/500mA is recommended (8V­9V/1500mA if graphic sub-boards are used). The positive voltage (+) must be connected to the shield, and ground (GND) must be connected to the centre of the connector X1!
The following picture shows the default jumper settings as a short reference. For details please check the chapter 4.1 Jumpers and Switches.
COM1 port
Basic set-up configuration with default jumper settings and power LEDs
After power-on push the blue reset button RESET (SW6) to ensure proper start-up. After power-on the green power status LEDs (D22, D14, D12, D7, D10, D16) should be on. If the LEDs do not light switch off the power supply and check the default jumper settings. The red reset LED (D19) must be off.
By default, the evaluation board is equipped with a MB91302A-020 and the external Flash is pre-programmed with the Softune Workbench monitor-debugger V1.02, 60MHz CPU clock (CLKB), 30MHz Peripheral clock (CLKP), 30MHz Bus clock (CLKT):
MonDebStarterkit91302_15MHz_CLKT30_V102
The monitor-debugger enables the user to debug his own application software located in the external SDRAM. After power-on the monitor debugger starts and finally D9, D10 are switched on to display that the debugger is working.
© Fujitsu Microelectronics Europe GmbH - 9 - UG-910008-15
StarterkitMB91302
Reset
8 User LEDs
Chapter 3 Installation
In case the monitor debugger detects any errors during start-up a status will be displayed on the 8 user LEDs. See chapter 6.2.3 “Advanced Debug Information” for more details.
3.1.3 Use as Emulation Target Board for Emulator MB2198-01
The “STARTERKITMB91302” can also be used as an emulator target board. In this case the user must unsolder the MCU MB91302A-020, U1 and solder a socket instead (NQPack144SE). The probe cable must be mounted to the socket, no MCU must be inserted in this case. Take care of pin 1 marking onto the socket and fix the probe cable with screws.
Do not use other probe cable than MB2198-101 only!
Connect the probe cable to the emulation pod. Check all DIP-switch-settings of the evaluation board and the emulation pod.
For the power on sequence the emulator system must be switched on first. Then switch on the evaluation board. Please look at the corresponding user manuals for the emulator how to set up the emulator system. After the power on the Reset-LED of the emulator must be off and the Vcc-LED (D22) must be on. If the Reset-LED is still on, check the Vcc voltage switch-settings of the emulator system and the power supply of the evaluation board.
For more details please check the following application notes for MB2198-01
MB2198-01 Installation Guide MB2198-01 AN-910026-11-MB2198INST.pdf
MB2198-01 Getting Start AN-910027-10-MB2198Start.pdf
MB2198-01 Emulation and Debugging with Softune AN-910028-10-MB2198emu.pdf
UG-910008-15 - 10 - © Fujitsu Microelectronics Europe GmbH
StarterkitMB91302
Chapter 3 Installation
3.2 Software Installation
3.2.1 Installation of Softune Workbench
Fujitsu supplies a full working 32bit development environment with the “STARTERKITMB91302” called Softune Workbench V6. The Softune Workbench also supports a monitor debugger which is pre-programmed into the external Flash memory of the “STARTERKITMB91302”. To develop own software and to work with the Monitor Debugger of the “STARTERKITMB91302” the Softune Workbench development environment must be installed first. Follow the instructions for successful installation of the Softune Workbench.
1. Before starting the installation setup ensure that you are logged in with administrator or poweruser permissions, otherwise the Softune installation will fail! Be aware that Softune does not support multi-user support. Therefore install- and user login must be the same.
2. Browse on the starterkit CD-ROM into the directory Software\SWBInstall and start the setup.exe
You can also start the installation using a browser by opening the index.html of the CD-ROM. Use the link “Software\Softune Workbench\” in the left side frame.
3. Follow the installation instructions
4. For the default installation path it is recommended to use c:\Softune32
5. After the installation is finished, Softune Workbench for FR can be started via the Windows “Start” menu
6. When Softune Workbench is started the following window will be shown
© Fujitsu Microelectronics Europe GmbH - 11 - UG-910008-15
StarterkitMB91302
MonDeb115KCOM1.sup
Select Configuration
Chapter 4 Quick Project Start-up / Test “STARTERKITMB91302”
4 Quick Project Start-up / Test “STARTERKITMB91302”
To open a project with Softune Workbench and to work with the monitor debugger, Softune Workbench must be started first. To open a project the following steps must be taken.
1. Ensure that no other windows application is using the COM1 port
2. Ensure correct jumper setting of JP1 position 1-2 (MCU Operating Mode)
3. Ensure correct jumper setting of JP15 position closed (RTS/CTS shortcut)
4. Ensure that the “STARTERKITMB91302” is connected via serial cable (X5, UART0) with COM1 of the PC.
Open the test-project using the <File>, <Open Workspace> dialog. Browse into the folder c:\..\software\examples\StarterkitMB91302_Test\ and select the file StarterkitMB91302_Test.wsp
5. Ensure that the configuration “MONDEBUGGER” is selected! Start the Monitor Debugger by double click on MonDeb115KCOM1 in the following menu
MONDEBUG
If a different COM port is used please use MonDebug115COM2.sup for COM2 or right-click on the “MonDeb115KCOM1” and select change. Follow the wizard to modify settings.
UG-910008-15 - 12 - © Fujitsu Microelectronics Europe GmbH
StarterkitMB91302
Right mouse click
Chapter 4 Quick Project Start-up / Test “STARTERKITMB91302”
6. Now the debugger starts and a download progress bar is shown indicating that the application program is downloaded to the “STARTERKITMB91302”.
7. After downloading the application successfully into the external SDRAM of the “STARTERKITMB91302” the following Softune Workbench screen is shown. The debugger offers now versatile features as “Run continuously, Step-In, Step-over, Step-out, ..” which can be used via the Icon list. Using the right mouse button opens a context menu offering more settings as “Set Breakpoints, …”.
Context dialog
8. Use the button “Run Continuously” to start the application and use the “NMI” button on the “STARTERKITMB91302” to Abort the Continuous program execution. Two times a running light should be shown now on the 8 user LEDs and if a terminal (115KB, 8N1) is connected to UART1 (X7) of the starterkit, a string is output corresponding to the pushed user button (INT0, INT3, ADTG, TIN1).
Note:
The command “Abort” to stop program execution is not supported by the Softune Workbench monitor debugger and might cause malfunction of the debugger if used. To “Abort” program execution use the button “NMI” on the “STARTERKITMB91302”.
9. For more details about Softune Workbench monitor debugger please check chapter
7.
© Fujitsu Microelectronics Europe GmbH - 13 - UG-910008-15
StarterkitMB91302
Chapter 5 Jumpers and Switches
5 Jumpers and Switches
This chapter describes all jumpers and switches, which can be modified, on the “STARTERKITMB91302”. The default setting is shown with a grey shaded area. All jumpers and switches are named directly on the board, so it is very easy to set the jumpers according to the features.
5.1 Jumper Overview
Jumper Description / Function Type
JP1 Mode-selection, MD0 Jumper 3 pol JP2 AVCC Jumper 2 pol JP3 SW INT0 Jumper 2 pol JP4 AVRH Jumper 3 pol JP5 SW INT3 Jumper 2 pol JP6 SW ADTG Jumper 2 pol JP7 AVSS Jumper 2 pol JP8 SW TIN1 Jumper 2 pol
JP9 SW NMI Jumper 2 pol JP11 Reset Jumper 2 pol JP12 UART A (RTS-CTS) Jumper 2 pol JP13 UARTA TxD (SOT0) Jumper 2 pol JP14 UARTA RxD (SIN0) Jumper 2 pol JP15 UARTA DTR/RTS Jumper 2 pol JP16 DTR/DTR Jumper 2 pol JP17 Reset by UARTA / UARTB Jumper 2 pol JP18 UARTB (RTS-CTS) Jumper 2 pol JP19 UARTB TxD (SOT1) Jumper 2 pol JP20 UARTB RxD (SIN1) Jumper 2 pol JP21 UARTB DTR/RTS Jumper 2 pol JP22 MCU_VCC Jumper 2 pol
Default
1-2 Closed Closed Closed Closed Closed Closed Closed Closed Closed Closed Closed Closed
Open Open
Open Closed Closed Closed
Open Closed
Coordinates
G 15
D/E 18
E 21 D/E 17 E/F 21
F 21
E 18
F 21 F 21
D/E 19
C 22
D 21
D 21 C/D 21
D 20
C 20
C 17/18
D 17
D 17 C/D 17 C/D 12
UG-910008-15 - 14 - © Fujitsu Microelectronics Europe GmbH
StarterkitMB91302
Graphic
Chapter 5 Jumpers and Switches
A B C D E F G H J K L M N
1
2
1
2
3 3
4
5
6
7
8
9
10
11
10
11
4
5
6
7
8
9
12 12
13
14
13
14
15 15
16 16
17 17
18 18
19 19
20
21 21
UART”B”
20
-Board Interface
22 22
23
24
25
26
27
28
29
30
23
UART”A”
24
25
26
27
28
29
30
A B C D E F G H J K L M N
© Fujitsu Microelectronics Europe GmbH - 15 - UG-910008-15
StarterkitMB91302
Chapter 5 Jumpers and Switches
5.2 Operating-Mode (JP1)
The jumper JP1 is used to set the operating mode of the LC.
Ensure that the mode pin settings correspond to the operation-mode of the application.
For more detailed information please check the Hardware-Manual of the microcontroller.
Jumper Setting Description
JP1 (MD0)
1 - 2 MD0=’1’,
2 - 3 MD0=’0’,
By default, the Single Chip Run-Mode is selected.
5.3 Power Supply Voltage (JP: 22)
JP22 This Jumper is used to connect the Vcc supply voltage to the LC.
Connecting an Ampere-meter allows measuring of the power-supply-current of the microcontroller (Icc).
Jumper Setting Description
JP22 (MCUVcc)
Default: JP22 = ON,
By default, the microcontroller is powered.
ON (Closed) Power supply Vcc connected to LC
OFF (Open) Disconnected from Power supply Vcc
UG-910008-15 - 16 - © Fujitsu Microelectronics Europe GmbH
StarterkitMB91302
Chapter 5 Jumpers and Switches
5.4 Analogue Power Supply Voltage (JP: 2, 4, 7)
The power supply as well as the positive reference voltage for the A/D-converter can be provided internally or externally.
JP2, JP7 connect power supply voltages (AVcc and AVss)
JP4 connect reference voltages (AVRH to AVcc)
Jumper Setting Description
JP2 (AVcc)
ON (Closed) AVcc is connected to Vcc
OFF (Open) AVcc is disconnected from Vcc
ON (Closed) AVRH is connected to AVcc
JP4 (AVRH)
OFF (Open) AVRH defined by resistor network
*1
ON (Closed) AVss is connected to GND
JP7 (AVss)
OFF (Open) AVss is disconnected from GND
*1
By default the resistor network (R15 and R16) is not mounted on the board
Default: JP2, JP4 and JP7 are closed
By default, the A/D-converter supply and reverence voltage is +3V3.
Note:
If JP2 and JP7 are open, the user has to supply an adequate analogue voltage supply (AVcc and AVss) to the A/D-converter.
If JP4 is open, the resistors R15 and R16 define AVRH.
By default the resistor network (R15 and R16) is not mounted on the board.
© Fujitsu Microelectronics Europe GmbH - 17 - UG-910008-15
Loading...
+ 37 hidden pages