Download Print this page

Fujitsu MB904 Series Application Note

Hide thumbs

Advertisement

Quick Links

Fujitsu Microelectronics Europe
MCU-AN-390077-E-V11
Application Note
F²MC-16L/LX FAMILY
16-BIT MICROCONTROLLER
MB903XX/4XX/5XX/6XX
EMULATOR SETUP MB2147-05
16BIT COMPACT-ICE
APPLICATION NOTE

Advertisement

loading

  Related Manuals for Fujitsu MB904 Series

  Summary of Contents for Fujitsu MB904 Series

  • Page 1 Fujitsu Microelectronics Europe MCU-AN-390077-E-V11 Application Note F²MC-16L/LX FAMILY 16-BIT MICROCONTROLLER MB903XX/4XX/5XX/6XX EMULATOR SETUP MB2147-05 16BIT COMPACT-ICE APPLICATION NOTE...
  • Page 2: Revision History

    V1.1 tka, Emulator comparison table corrected: Third row, Maximum Operating Frequency 17.08.03 V1.2 tka, Notes for monitor-load auto programming added 06.01.2005 V1.3, hwe, chapter 5.2 ‘Monitoring’ added This document contains 23 pages. MCU-AN-390077-E-V11 - 2 - © Fujitsu Microelectronics Europe GmbH...
  • Page 3: Warranty And Disclaimer

    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.
  • Page 4: Table Of Contents

    Installation of Communication Interface Drivers............. 14 3.2.1 RS 232 communication ................. 14 3.2.2 USB communication................14 4 SET-UP DEBUG CONFIGURATION................15 Configure Debug Set-up..................15 5 APPENDIX ........................22 Trouble Shooting ....................22 MCU-AN-390077-E-V11 - 4 - © Fujitsu Microelectronics Europe GmbH...
  • Page 5: Introduction

    The MB2147-05 emulator system is a low cost emulator system which can be used for Fujitsu 16-Bit microcontrollers of the 16L/16LX Series. This application note should give a short guideline how to install an MB2147-05 emulation system. This guide describes on the...
  • Page 6: Overview

    < Function Call < View of Vector Table < Trace buffer 64KB with trace filter < Time measurements via CPU clock cycle count < Use of Fujitsu standard probe cables < Host Interface < USB1.1 < RS232 max. 115k Baud...
  • Page 7: Features Compared To Mb2141A/B, Mb2147-01

    Yes/64K Yes/64K Yes/64K Yes/64K Coverage Read-on the fly Restricted to Time- CPU cycles Measurement count Memory Window Stack Window Watch Window CPU Register Window Source Code Mixed Mode view Emulation memory © Fujitsu Microelectronics Europe GmbH - 7 - MCU-AN-390077-E-V11...
  • Page 8: Hardware Installation

    (Softune V30L28). Previous versions do not support MB2147-05. Additionally a floppy disk is included, which contains the hardware manual of the ICE. For any detailed hardware settings please check the hardware manual of the MB2147-05. MCU-AN-390077-E-V11 - 8 - © Fujitsu Microelectronics Europe GmbH...
  • Page 9: System Set-Up

    The emulator system hardware is installed as shown on the following pictures. Please take care that a target system is connected via a probe cable to the emulator, otherwise debugging of any software is not possible. Figure2.2.1 MB2147-05 System Set-up Figure2.2.2 MB2147-05 System Set-up © Fujitsu Microelectronics Europe GmbH - 9 - MCU-AN-390077-E-V11...
  • Page 10: System Configuration

    EVA-Chip. After insertion of the chip, the lever can be removed to its horizontal position, fastening the EVA-Chip in the socket. Figure2.3.1.1 Configuration Area for the Evaluation Chip MCU-AN-390077-E-V11 - 10 - © Fujitsu Microelectronics Europe GmbH...
  • Page 11: Supply Of Clocks To The Evaluation Chip

    To define the usage of the main and sub-clock pins the settings of SW3 and S7 must be checked. The following schematic show the crystal peripheral circuit. Figure 2.3.2.1.2 Crystal Peripheral Circuit © Fujitsu Microelectronics Europe GmbH - 11 - MCU-AN-390077-E-V11...
  • Page 12 In case the C-Pin of the EVA-Chip must be connected to an external capacitor, in order to buffer the internal core supply voltage, the following configuration must be performed. Figure 2.3.2.3.1 C-Pin Switch Peripheral Circuit MCU-AN-390077-E-V11 - 12 - © Fujitsu Microelectronics Europe GmbH...
  • Page 13: Example Configuration

    The following table show an example configuration for MB90V590 and MB90V595. SW3.1 SW3.2 SW3.3 SW3.4 SW3.5 SW3.6 SW3.7 SW3.8 All switches OFF All switches OFF Table 2.3.3.2 Example Configuration of SW3 © Fujitsu Microelectronics Europe GmbH - 13 - MCU-AN-390077-E-V11...
  • Page 14: Software Installation

    ICE or will be available separately as a zip file in case the Microcontroller CD-ROM V3.4 (available Q1/2003) is used. Use this USB driver if you are ask for special USB drivers to be installed for the ICE. MCU-AN-390077-E-V11 - 14 - © Fujitsu Microelectronics Europe GmbH...
  • Page 15: Set-Up Debug Configuration

    Softune workbench projects or .wsp for projects developed with newer Softune Workbench versions supporting workspaces. If a .prj file is selected, the project file will be converted automatically by Softune Workbench into a .wsp file. © Fujitsu Microelectronics Europe GmbH - 15 - MCU-AN-390077-E-V11...
  • Page 16 MB2147-05 USB. With the <Add> button the debug set- up wizard will be started to do some special configuration settings. Alternately you can use the right mouse button on the Debug item in the browser window. MCU-AN-390077-E-V11 - 16 - © Fujitsu Microelectronics Europe GmbH...
  • Page 17 Change odd page title here Chapter 4 Set-up Debug Configuration Follow now the instructions of the wizard in the following set-up menus Set-up Wizard start dialog Select Debugger type Select Emulator System © Fujitsu Microelectronics Europe GmbH - 17 - MCU-AN-390077-E-V11...
  • Page 18 It is highly recommended to remove this selection for security reasons afterwards, as soon as the emulator firmware has been programmed. Select communication interface Select optional batch file to be started after debugger start MCU-AN-390077-E-V11 - 18 - © Fujitsu Microelectronics Europe GmbH...
  • Page 19 Change odd page title here Chapter 4 Set-up Debug Configuration Specify e.g. special windows settings Finish wizard Set-up © Fujitsu Microelectronics Europe GmbH - 19 - MCU-AN-390077-E-V11...
  • Page 20 … Now first remove the selection “Monitor-load auto-program” in the emulator setup, before you start further debugging (described on page 18). MCU-AN-390077-E-V11 - 20 - © Fujitsu Microelectronics Europe GmbH...
  • Page 21 Change odd page title here Chapter 4 Set-up Debug Configuration The available debug items/commands can now be executed via the corresponding icons in the main menu line, the <Debug> or <View> menu. © Fujitsu Microelectronics Europe GmbH - 21 - MCU-AN-390077-E-V11...
  • Page 22: Appendix

    As a workaround ‘monitoring’ can be emulated as follows: Within your application use a timer function with IRQ handler (e.g. ReloadTimer). In the IRQ handler just reset the IRQ flag. Set a breakpoint into the Timer IRQ handler. MCU-AN-390077-E-V11 - 22 - © Fujitsu Microelectronics Europe GmbH...
  • Page 23 In this case the procedure file can be started by a click to a customized button. Restrictions of the ‘monitoring’ workaround described above: Timer with IRQ is needed. No Real-Time monitoring. Timer IRQ handler and break/restart of debugger influence the timing and performance of the application. © Fujitsu Microelectronics Europe GmbH - 23 - MCU-AN-390077-E-V11...