Fujitsu Microelectronics Europe User Guide FMEMCU- UG-910006-13 MB91360 SERIES EVALUATION BOARD STARTERKIT MB91360 USER GUIDE
STARTERKIT MB91360 Revision History Revision History Date 1999 2001 09 July 2003 Issue 1.0 MM First draft 1.2 MM V1.3, MSt new format, Info about MB91F361 removed This document contains 43 pages.
STARTERKIT MB91360 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 STARTERKIT MB91360 and all its deliverables (eg. software include or header files, application examples, target boards, evaluation boards, engineering samples of IC’s etc.
STARTERKIT MB91360 Contents Contents REVISION HISTORY ............................................................................................................ 2 WARRANTY AND DISCLAIMER ......................................................................................... 3 CONTENTS .......................................................................................................................... 4 1 INTRODUCTION..................................................................................
STARTERKIT MB91360 Contents 7.7 Development tools and accessories.................................................................. 39 7.8 Related Documents............................................................................................. 40 7.9 Trouble Shooting................................................................................................. 41 7.10 Figures 43 7.
STARTERKIT MB91360 Chapter 1 Introduction 1 Introduction 1.1 Abstract The Fujitsu MB91360 evaluation board is a stand-alone application board that makes it easy to evaluate and demonstrate almost all features of the MB91360 microcontroller series. Along with the supplied Windows-based development tools, it can be used as a system for user program developments. The board can be configured as a target for the MB91360 emulation-system or as a standalone evaluation unit.
STARTERKIT MB91360 Chapter 1 Introduction 1.3 < Area for extensions (2.54mm grid) < Standard Euro-format (16x20 cm) < Built-in monitor debugger (in Flash) < Software includes Softune Workbench, a set of tools (e.g. flashloader) and example projects. General Board Usage The MB91360 Starterkit can be used as stand-alone evaluation board or as a target system for the MB2197-01 In-Circuit-Emulator.
STARTERKIT MB91360 Chapter 1 Introduction 1.4 Mode Selection The board has three different “modes”, which are represented by the three reset-buttons “USER”, “FLASH” and “MONITOR”. By default, the board will startup in the “MONITOR”-mode, which automatically invokes the debugger kernel. The board now can communicate with Softune Workbench. This means, any application can be downloaded and debugged with all provided features such as breakpoints, watches, single step etc.
STARTERKIT MB91360 Chapter 2 Installation 2 Installation 2.1 Hardware Installation What you’ll need : < Host : IBM(-comp) PC with Windows 9x or Windows NT ; 1 COM-port < Power Requirements: A power supply, capable of supporting 9-12V DC at about 500 mA. Note that the power connector must be + at the shield and - in the centre. Power supplies are available from Fujitsu.
STARTERKIT MB91360 Chapter 2 Installation 2.2 Software Installation Insert the provided CD-ROM, browse to the installation page and select the Installation option for Softune Workbench. Follow the instructions to unpack and install Softune Workbench for FR ,as well as some example projects and additional tools for the MB91360 Starterkit. It is recommended to use the default installation path C:\Softune.
STARTERKIT MB91360 Chapter 3 Getting Started 3 Getting Started Make sure you have Softune Workbench for FR installed on your PC and the evaluation board is ready to use. For details refer to the Hardware and Software Installation chapters. This chapter uses the available examples to illustrate some features of Softune Workbench. 3.1 Softune Workbench Development Introduction Start Softune Workbench. Select “File – Open Project” to load the first example “LEDdemo1.Prj”.
STARTERKIT MB91360 Chapter 3 Getting Started These three functions are available on the button-bar or from the main menu (Project – Compile / Make / Build / Abort). Click on MAKE or BUILD. Messages from the individual language tools will be fed into the output window at the bottom of the main screen. If the tool chain (C-compiler R Assembler R Linker) was completed successfully, the message “No Error” will appear. If you get any errors during compilation, an appropriate message will be generated.
STARTERKIT MB91360 Chapter 3 Getting Started 3.2 Softune Workbench Debugging Introduction Whenever you have successfully created a valid load module, you may switch from the development mode to the debugging mode of Softune Workbench. Basically, there are 3 types of debugging systems supported : 1. The software simulator: This type of debugger is always present and does not require any special hardware extensions. The simulator will cover the FR-core features, but no peripheral functions.
STARTERKIT MB91360 Chapter 3 Getting Started If these settings are correct, start the debugger using “Debug – Start Debug”. You should see a progress bar indicating the download process. If nothing happens, there will be an error message after some time (“Invalid communication status”). Double-check the settings again as explained above. Also make sure the evaluation-board is powered on, ready to use and the RS232-cable is connected properly. Also see the trouble-shooting section in the appendix.
STARTERKIT MB91360 Chapter 4 Details of the included Monitor-Debugger 4 Details of the included Monitor-Debugger 4.1 Basic debugger features GO: Executes the program continuously from the memory location pointed to by the current program counter (PC) until a termination factor occurs. STEP IN: Executes the program stepwise according to the listing in the source window (steps in C- or ASM).
STARTERKIT MB91360 Chapter 4 Details of the included Monitor-Debugger ABORT: Forcibly terminates execution. CAUTION: This function can be used in single code line operations only (example: for(k=DELAY_CONSTANT; k>0; k--); ) !! To abort continous execution on the Starterkit, you have to use an external interrupt. All examples provided use the „USER0“-button for this purpose. If you wish to use the „USER0“-button for Abort, make sure you have the ABORT-option in STARTUP.
STARTERKIT MB91360 Chapter 4 Details of the included Monitor-Debugger 4.2 Advanced debugger features TOGGLE BREAKPOINT: Sets or deletes breakpoint at the current source line or : To set or delete a breakpoint, click the circles at the beginning of a source-line. A indicates an active breakpoint. Hit “go” to execute until this line. A list of all breakpoints can be found under the “Debug – Breakpoint” menu. 255 Software-Breakpoints (using TRAP replacement) are possible.
STARTERKIT MB91360 Chapter 4 Details of the included Monitor-Debugger DEBUG - STACK: Displays the current stack contents in terms of function calls. Parameters, if any, are given in brackets. DEBUG - VECTOR: Reads out and displays the actual interrupt-vector table. Use the „jump“ function to display any code areas pointed to by an interrupt vector (e.g. interrupt service routines used in your program).
STARTERKIT MB91360 Chapter 4 Details of the included Monitor-Debugger Example: restart: set register PC=1f4000 set break main go In order to document or save debugging details such as memory contents, all outputs fed to the command console can be written to a file (“logging”). A whole “program” of commands (incl. flow control) can be written to a PRC-file and executed. Procedure-files are simple text-files with the extension “.
STARTERKIT MB91360 Chapter 5 Flash Programming 5 Flash Programming Whenever your application has been developed, debugged and tested as explained in the last chapter, it can be programmed to the internal flash ROM using the „MB91360 Flash Programmer“. This tool is a general flash programming utility, which allows programming the internal flash ROM without any restrictions given by the starterkit. 5.
STARTERKIT MB91360 Chapter 5 Flash Programming Follow these steps to use the MB91360 Flash Programmer : 1. Be sure to have the starterkit in Monitor (single-chip) mode. Check the position of the jumpers and dip-switches onboard according to table1. 2. Connect the RS232-cable from any PC-COM-port to “UART0” (female UART connector on the left side of the Starterkit - do NOT use the monitor COM connector!). 3. Specify a (hex-)file in the “file to program”-field (use the browse-button to select).
STARTERKIT MB91360 Chapter 6 Evaluation Board Hardware 6 Evaluation Board Hardware 6.1 Board Components On/Off DC input Socket QFP208 for Microcontroller MB91F361/2 Monitor UART and RS232-connector JP16 : Analog Ports (AD/DA) JP15 : PWM and Pulsgen.
STARTERKIT MB91360 Chapter 6 Evaluation Board Hardware The evaluation board provides various IO-signals, which can be connected to external devices. The controller resource functions are available on the connectors JP14, JP15, JP16 and JP20. External peripheral devices can be connected via the address/data bus on JP24 and JP25. For more information please refer to the following pin assignments and the schematics in the appendix. 6.
STARTERKIT MB91360 Chapter 6 Evaluation Board Hardware Jumper Description JP12 Vcc/Gnd array for testpurposes JP14 Serial communication pins (UART0-3 , CAN0-2) JP15 Puls generator outputs 0-7, Stepper motor (PWM) outputs 0-4 JP16 A/D inputs 0-7, Alarm comp. Input, Sound gen.
STARTERKIT MB91360 Chapter 6 Evaluation Board Hardware 6.3 Connectors for resources and IO-signals MCU-pins are grouped according to their logical functions. See the hardware manual for details on the resource functions. JP16 : Analog Inputs (ADC) Analog Outputs (DAC) Sound Generator Alarm Comparator JP20 : External Interrupts, Input Capture Units Output Compare Units I²C Interface JP14 : UARTs Sync.
STARTERKIT MB91360 Chapter 6 Evaluation Board Hardware Note: Address bus and data bus pins (JP24,25) cannot be used as IO-ports. Jumper Pin-No.
STARTERKIT MB91360 Chapter 6 Evaluation Board Hardware Jumper JP14 JP15 Pin-No.
STARTERKIT MB91360 Chapter 6 Evaluation Board Hardware Jumper Pin-No.
STARTERKIT MB91360 Chapter 7 Appendix 7 Appendix 7.1 Memory Mappings MB91F362 7.1.
STARTERKIT MB91360 Chapter 7 Appendix 7.1.
STARTERKIT MB91360 Chapter 7 Appendix 7.2 Tool options for own projects Valid load module files for MB91360 devices can only be achieved if the language tool configuration is appropriate. If you use the provided samples or templates, you do not have to worry about these settings. The most convenient way to create own projects is to copy the provided Template-Project from the sample-directory and use it as “blank sheet”.
STARTERKIT MB91360 Chapter 7 Appendix 7.3 Starterkit limitations If creating new projects, be sure not to use the following functions, which are reserved for the MB91360 Starterkit: < Flash-ROM area 0F0000..
STARTERKIT MB91360 Chapter 7 Appendix 7.
STARTERKIT MB91360 Chapter 7 Appendix UG-910006-13 - 34 - © Fujitsu Microelectronics Europe GmbH
STARTERKIT MB91360 Chapter 7 Appendix © Fujitsu Microelectronics Europe GmbH - 35 - UG-910006-13
STARTERKIT MB91360 Chapter 7 Appendix 7.
STARTERKIT MB91360 Chapter 7 Appendix 7.6 PAL Listing ;PALASM Design Description ;---------------------------------- Declaration Segment -----------TITLE STK360_1.PDS PATTERN A REVISION 1.3 AUTHOR M.MIERSE COMPANY FUJITSU MIKROELEKTRONIK GMBH DATE 20/09/99 CHIP STK360 PAL22V10 ; -------------------------------- Revision History ---------------; ; 20.11.98 V1.0 First Version ; 17.02.99 V1.1 Rem-Req and ext. UART Mapping changed ; 16.03.99 V1.2 UART-Reset changed to high-active ; 20.09.99 V1.
STARTERKIT MB91360 Chapter 7 Appendix EQUATIONS ; ----------------------------------------------------------------------; Power-on Indicator (Flip-Flop) : ; ----------------------------------------------------------------------- PONFLAG.
STARTERKIT MB91360 Chapter 7 Appendix ; SRAMS active in areas : /CSRAM = (/A20 * A19 * /CS0) ; 08:0000...0F:FFFF (CS0) + ( A20 * A19 * /CS0) ; 18:0000...1F:FFFF (CS0) + ( A20 * A19 * /CS2) ; 38:0000...3F:FFFF (CS2) ; UART-Area = 20:0000...27:FFFF (CS0 in Monitor-mode or CS2 in USER mode) /CSUART = (LEDRED * /A20 * /A19 * /CS0) + (LEDGRN * /A20 * /A19 * /CS2) 7.
STARTERKIT MB91360 Chapter 7 Appendix 7.8 Related Documents Available manuals for MB91360 series : 1. MB91360 Hardware Manual 2. MB91F36X Datasheet (General Specification) 3. FR Family C-Compiler Manual 4. FR Family Instruction Manual 5. FR Family Assembler Manual 6. FR Family Simulator Manual 7. FR Family Emulator Manual 8. FR Family Linkage Kit Manual 9. FR Family Softune Workbench Manual Note : All documents are available from the provided CD-ROM, Fujitsu’s Microcontroller CDROMs or from our web-site.
STARTERKIT MB91360 Chapter 7 Appendix 7.9 Trouble Shooting Problem Evaluationboard does not initialize after power-on. LED D10 (Power indicator) does not light up and the LC-display remains empty. The communication from Softune Workbench to the Solution Check voltage supply and jumpers : ☛ The voltage on DC-Power plug should be in the range of 9-12V. The plug should have + on shield and – on the center. LED D10 should light up after switching on the board.
STARTERKIT MB91360 Chapter 7 Appendix Problem evaluation board fails (Communication errors) Solution (see debugger introduction). ☛ Make sure no other programs are using the same COM-port on your PC. Close all other applications (e.g. Flash programmer utilities, terminals etc.) ☛ Use the provided RS232-cable (1:1 extension type) to connect from your PC to the „Monitor COM“ connector. ☛ If you are using a PC without a fast UART (16550 type), you have to switch to a lower baudrate (e.g.
STARTERKIT MB91360 Chapter 7 Appendix 7.10 Figures Figure 1: Using the Starterkit as target board for the ICE ....................................................... 7 Figure 2: Softune Workbench Editor .................................................................................... 11 Figure 3: SWB Debugging window....................................................................................... 14 Figure 4: MB91360 Flash Programmer ................................................................