41
Fujitsu Microelectronics Europe Application Note MCU-AN-391005-E-V17 FR FAMILY EMULATION SYSTEM MB91460 GETTING STARTED APPLICATION NOTE

mcu-an-300005-e-v17-mb91v460 getting started

  • Upload
    others

  • View
    0

  • Download
    0

Embed Size (px)

Citation preview

Page 1: mcu-an-300005-e-v17-mb91v460 getting started

Fujitsu Microelectronics Europe Application Note

MCU-AN-391005-E-V17

FR FAMILY EMULATION SYSTEM

MB91460

GETTING STARTED

APPLICATION NOTE

Page 2: mcu-an-300005-e-v17-mb91v460 getting started

Getting Started Revision History

MCU-AN-391005-E-V17 - 2 - © Fujitsu Microelectronics Europe GmbH

Revision History

Date Issue 2005-05-18 V1.0; UMa 2005-07-18 V1.1; UMa 2005-07-28 V1.2; UMa 2005-08-16 V1.3; UMa

2005-09-02 V1.4; PHu: specify board in 4.1 Providing a Clock Source; clarify jumper setting in 5.1.4 Clock Control

2005-10-20 V1.5; UMa: Installation procedure changed Default jumper settings changed: HWWD is enabled (S3:EN_X) Def. jumper settings corrected: SL260 is open, SL262 is closed

2006-01-17 V1.6; UMa: Typos corrected

2006-04-12 V1.7; Resistors on adapter board can be removed; Changed software installation procedure; Added SK-91F467D-208PFV

This document contains 41 pages.

Page 3: mcu-an-300005-e-v17-mb91v460 getting started

Getting Started Warranty and Disclaimer

© Fujitsu Microelectronics Europe GmbH - 3 - MCU-AN-391005-E-V17

Warranty and Disclaimer To the maximum extent permitted by applicable law, Fujitsu Microelectronics Europe GmbH restricts its warranties and its liability for all products delivered free of charge (e.g. 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, Fujitsu Microelectronics Europe GmbH disclaims all warranties and liabilities for the performance of the Product and any consequential damages in cases of unauthorised decompiling and/or reverse engineering and/or disassembling. Note, all these products 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 suppliers´ liability is 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

Page 4: mcu-an-300005-e-v17-mb91v460 getting started

Getting Started Contents

MCU-AN-391005-E-V17 - 4 - © Fujitsu Microelectronics Europe GmbH

Contents

REVISION HISTORY.............................................................................................................. 2

WARRANTY AND DISCLAIMER........................................................................................... 3

CONTENTS ............................................................................................................................ 4

1 INTRODUCTION................................................................................................................ 6

2 HARDWARE REQUIREMENTS ........................................................................................ 7

3 SOFTWARE INSTALLATION ........................................................................................... 8 3.1 Softune Workbench................................................................................................... 8

4 INSTALLATION OF THE EMULATION SYSTEM............................................................. 9 4.1 Providing a Clock Source.......................................................................................... 9 4.2 Checking the Jumpers .............................................................................................. 9 4.3 Connecting the Emulation System.......................................................................... 10

4.3.1 Cabling the Emulator MB2198-01 ............................................................. 10 4.3.2 Mounting the Evaluation MCU .................................................................. 11 4.3.3 Connecting and Cabling the Adapter Board to the Evaluation Board ....... 12

4.3.3.1 Connecting the Adapter Board to the SK-91460-MAIN ............ 12 4.3.3.2 Connecting the Adapter Board to the SK-91F467D-208PFV.... 13

4.4 Power up the Emulation System............................................................................. 14

5 JUMPERS AND SWITCHES ........................................................................................... 15 5.1 Jumpers of the MB91V460 Adapter Board (MB2198-300) ..................................... 15

5.1.1 V-Chip Options.......................................................................................... 15 5.1.2 Emulator Interface..................................................................................... 16 5.1.3 External Emulation Memory ...................................................................... 17 5.1.4 Clock Control............................................................................................. 18 5.1.5 Power Settings .......................................................................................... 19 5.1.6 Signal Routing........................................................................................... 20 5.1.7 Default Jumper Settings............................................................................ 21

5.2 Jumpers of the evaluation board SK-91460-MAIN V1.2 ......................................... 22 5.2.1 Analogue Power Supply Voltage............................................................... 22 5.2.2 Default Jumper Settings............................................................................ 23

5.3 Default Jumper Settings of the evaluation board SK-91F467D-208PFV ................ 24 5.4 Default Jumpers Settings of the probe cable PB-91467D-208PFV ........................ 25 5.5 Default Jumpers Settings of the probe cable PB-91467D-LS-208PFV................... 26

Page 5: mcu-an-300005-e-v17-mb91v460 getting started

Getting Started Contents

© Fujitsu Microelectronics Europe GmbH - 5 - MCU-AN-391005-E-V17

6 SOFTUNE WORKBENCH GETTING STARTED ............................................................ 27 6.1 Copying the “template” directory ............................................................................. 27 6.2 Adjusting the project files ........................................................................................ 27 6.3 Opening the Softune Workbench............................................................................ 28 6.4 Entering the code.................................................................................................... 30 6.5 Compiling the Project .............................................................................................. 30 6.6 Enter Debugging Mode ........................................................................................... 30 6.7 Executing the Program............................................................................................ 31 6.8 Ending the Debugging ............................................................................................ 31 6.9 Last steps................................................................................................................ 31

7 SETUP / CHANGE CONNECTION PC – EMULATION SYSTEM .................................. 32 7.1 Setup Serial Connection ......................................................................................... 32

7.1.1 Overview ................................................................................................... 32 7.1.2 Settings ..................................................................................................... 32

7.2 Setup USB .............................................................................................................. 32 7.2.1 Overview ................................................................................................... 32 7.2.2 Updating the USB-Drivers......................................................................... 32

7.3 Setup LAN............................................................................................................... 34 7.3.1 Overview ................................................................................................... 34 7.3.2 Configuring the LAN Adapter .................................................................... 35 7.3.3 Configuring Operating System “WindowsTM”............................................. 36 7.3.4 Checking the network-connection ............................................................. 38 7.3.5 Troubleshooting ........................................................................................ 38 7.3.6 Softune Workbench................................................................................... 40

8 APPENDIX....................................................................................................................... 41 8.1 Figures .................................................................................................................... 41

Page 6: mcu-an-300005-e-v17-mb91v460 getting started

Getting Started Chapter 1 Introduction

MCU-AN-391005-E-V17 - 6 - © Fujitsu Microelectronics Europe GmbH

1 Introduction

The chapter gives short overview of this application note.

This application note describes the first steps how to use the MB91460 emulation system. It describes also the software and hardware installation procedure.

Further information can be found in the following manuals:

- ‘Softune Workbench Installation Manual for V6’ for information about the installation procedure of the software

- ‘MB2198-01 Hardware Manual’ for information about the emulator

- ‘SK-91460-MAIN V1.2 User Guide’ for information about the evaluation board SK-91460-MAIN and its jumpers and options.

- ‘SK-91F467D-208PFV V1.1 User Guide’ for information about the evaluation board SK-91F467D-208PFV and its jumpers and options.

- ‘PB-91467D-208PFV User Guide’ for information about the probe cable PB-91467D-208PFV and its jumpers and options.

The MB91460 emulation system allows the designer immediately to start with the software development before his own final target system is available.

Page 7: mcu-an-300005-e-v17-mb91v460 getting started

Getting Started Chapter 2 Hardware Requirements

© Fujitsu Microelectronics Europe GmbH - 7 - MCU-AN-391005-E-V17

2 Hardware Requirements

The chapter lists the required hardware for the MB91460 emulation system.

The MB91460 emulator system consists of

- the emulator MB2198-01 incl. 16 V DC power supply

- the DSU-FR cable MB2198-10

- the MB91V460 adapter board (MB2198-300) incl. 16 V DC power supply

- and an evaluation board, e.g.

- the evaluation board SK-91460-MAIN V1.2 incl. 9 V DC power supply

or

- the evaluation board SK-91F467-208PFV V1.1 incl. 9 V DC power supply and

- the probe cable PB-91467-208PFV or the probe cable PB-91467-LS-208PFV

Page 8: mcu-an-300005-e-v17-mb91v460 getting started

Getting Started Chapter 3 Software Installation

MCU-AN-391005-E-V17 - 8 - © Fujitsu Microelectronics Europe GmbH

3 Software Installation

This chapter describes the software installation procedure

This installation procedure is valid for Windows XP/2000/NT 4.0. For other operating systems and for further details, please refer to the Softune Workbench installation manual for V6 and to the hardware manual of the Emulator MB2198-01

3.1 Softune Workbench Please install the Softune Propack 911s FRSTAPACK600007FME02

1. Execute FRSTAPACK600007FME02 and follow installation process.

Rule 1: To install the software under Windows XP/2000/NT 4.0, the user requires administration authority.

Page 9: mcu-an-300005-e-v17-mb91v460 getting started

Getting Started Chapter 4 Installation of the Emulation System

© Fujitsu Microelectronics Europe GmbH - 9 - MCU-AN-391005-E-V17

4 Installation of the Emulation System

This chapter describes, what should be considered and checked before power-up the emulation system. Also the start-up procedure of the emulation system is described.

In order to properly install the emulation system, please follow the following steps.

4.1 Providing a Clock Source The adapter board can be equipped with two clocks, a main and a sub clock. The following figure depicts who to install the crystal and the capacities for the main clock in connector SC30. The same applies analogously for the sub clock in connector SC31.

Figure 1: Installing the crystal for the main clock

The crystal for the main clock has a frequency of 4 MHz and the crystal for the sub clock has a frequency of 32 kHz. The capacity of the capacitor should be 22 pF.

4.2 Checking the Jumpers

Rule 2: To prevent damages, check all jumpers and switches before powering up the emulation system.

Jumpers of the MB91V460 adapter board (MB2198-300) and all jumpers of the evaluation board SK-91460-MAIN V1.2 or SK-91F467D-208PFV and the probe cable PB-91467D-208PFV influencing the adapter board are described in chapter 5.

Page 10: mcu-an-300005-e-v17-mb91v460 getting started

Getting Started Chapter 4 Installation of the Emulation System

MCU-AN-391005-E-V17 - 10 - © Fujitsu Microelectronics Europe GmbH

4.3 Connecting the Emulation System The following connections have to be established:

4.3.1 Cabling the Emulator MB2198-01 There are some connections necessary for the emulator MB2198-01. The following lists each step.

1. Connect the emulator MB2198-01 (1) e.g. with the USB-Cable (2) to the USB port of the PC. (Analogously for other connection types. Please also refer to chapter 7)

2. Plug the DSU-FR Cable MB2198-10 (3) into the port labelled ‘DSU Cable’ (4). The correct position of cable and port is marked with arrows.

3. Finally, connect the 16 V DC power supply (5) to the port ‘DC in’ (6) and to 230 V. Please, be aware, that the emulator is switched off.

Figure 2 illustrates the necessary connections of the emulator MB2198-01.

Figure 2: Connections of the Emulator MB2198-01

Page 11: mcu-an-300005-e-v17-mb91v460 getting started

Getting Started Chapter 4 Installation of the Emulation System

© Fujitsu Microelectronics Europe GmbH - 11 - MCU-AN-391005-E-V17

4.3.2 Mounting the Evaluation MCU 1. Press down the top of the IC socket. Take care when you press the IC socket; Hold

the board against the pressure not to bend the board.

2. Confirm that the hook is open, and put the evaluation MCU on the socket. The index shows the A1 pin of the evaluation MCU.

3. Release the socket slowly and confirm that the evaluation MCU is fastening to the socket.

The following figure shows the socket of the evaluation MCU MB91V460.

Figure 3: Mounting the Evaluation MCU

Page 12: mcu-an-300005-e-v17-mb91v460 getting started

Getting Started Chapter 4 Installation of the Emulation System

MCU-AN-391005-E-V17 - 12 - © Fujitsu Microelectronics Europe GmbH

4.3.3 Connecting and Cabling the Adapter Board to the Evaluation Board Depending on the evaluation board, a probe cable is required or not. The following sections describe the connection of the adapter board to the evaluation board SK-91460-Main or to the evaluation board SK-91F467D-208PFV with the probe cable PB-91467D-208PFV or PB-91467D-LS-208PFV

4.3.3.1 Connecting the Adapter Board to the SK-91460-MAIN 1. Connect both boards. Be aware, that the boards are tight connected.

Figure 4 shows the connected boards.

Figure 4: Connected Adapter Board and Evaluation Board

After connecting both boards together it is necessary to connect the DSU-FR Cable MB2198-10 and the power supplies.

2. Connect the DSU-FR Cable MB2198-10 to the evaluation board.

3. Connect the 16 V DC power supply to the port ‘DC in’ and to 230 V. Please, be aware, that ‘SW2 Power’ is off.

4. Provide the 9 V DC power supply and connect it to 230 V. The following figure shows the correct polarisation. Do not power up the evaluation board by connecting the power supply yet.

Figure 5: The Correct Polarisation of the 9 V DC Power Supply.

9 VGND

Page 13: mcu-an-300005-e-v17-mb91v460 getting started

Getting Started Chapter 4 Installation of the Emulation System

© Fujitsu Microelectronics Europe GmbH - 13 - MCU-AN-391005-E-V17

Figure 6 shows the cabling of the adapter and evaluation boards.

Figure 6: Cabling the Adapter Board and Evaluation Board

4.3.3.2 Connecting the Adapter Board to the SK-91F467D-208PFV 1. Connect the adapter board with the probe cable. Be aware, that the boards are tight

connected.

2. Unscrew the YQ-PACK of the SK-91F467D-208PFV and remove carefully the microcontroller from the socket.

3. Connect the probe cable PB-91467D-208PFV to the SK-91F467D-208PFV and tighten the screw.

The same procedure applies for the probe cable PB-91467D-LS-208PFV.

Figure 7 shows the connected boards.

Figure 7: Connected Adapter Board, Probe Cable and Evaluation Board

Page 14: mcu-an-300005-e-v17-mb91v460 getting started

Getting Started Chapter 4 Installation of the Emulation System

MCU-AN-391005-E-V17 - 14 - © Fujitsu Microelectronics Europe GmbH

After connecting the boards it is necessary to connect the DSU-FR Cable MB2198-10 and the power supplies.

5. Connect the DSU-FR Cable MB2198-10 to the evaluation board.

6. Connect the 16 V DC power supply to the port ‘DC in’ and to 230 V. Please, be aware, that ‘SW2 Power’ is off.

7. Provide the 9 V DC power supply and connect it to 230 V. The following figure shows the correct polarisation. Do not power up the evaluation board by connecting the power supply yet.

Figure 8: The Correct Polarisation of the 9 V DC Power Supply.

The following figure shows the cabling of the boards.

Figure 9: Cabling the Adapter Board, Probe Cable and Evaluation Board

4.4 Power up the Emulation System To avoid damages, please always follow this procedure to power up the emulation system.

1. Switch on the main switch at the back of the emulator MB2198-01. The ‘Power’ LED and the ‘UVCC’ LED have to be illuminated.

2. Power on the MB91V460 Adapter Board (MB2198-300) ‘SW2 Power’. The ‘Power’ LED has to be illuminated.

3. Power on the evaluation board SK-91460-MAIN V1.2

Rule 3: To power down the emulation system, please follow the procedure reversely.

9 VGND

Page 15: mcu-an-300005-e-v17-mb91v460 getting started

Getting Started Chapter 5 Jumpers and Switches

© Fujitsu Microelectronics Europe GmbH - 15 - MCU-AN-391005-E-V17

5 Jumpers and Switches

This chapter describes the jumpers and switches which can be modified on the MB91V460 adapter board (MB2198-300). Also the jumpers of the evaluation board SK-91460-MAIN V1.2 influencing the adapter board are explained. The default settings are mentioned.

5.1 Jumpers of the MB91V460 Adapter Board (MB2198-300)

5.1.1 V-Chip Options Some options of the V-chip can be enabled or disabled.

Jumper Setting Description

EN – X Old alarm comparator S1

ALARM_SEL X – DIS New alarm comparator

EN – X 5V ADC is enabled S2

ADC_SEL X – DIS 3V ADC is enabled

EN – X Hardware watchdog is disabled S3

HWWDG_KILL X – DIS Hardware watchdog is enabled

EN – X Fixed Mode / Reset Vector is enabled S4

FIX_ENX X – DIS Fixed Mode / Reset Vector is disabled

EN – X Clock supervisor is disabled S5

CSV_KILL X – DIS Clock supervisor is enabled

EN – X Flash Mode S6

SRAM_SFX X – DIS SRAM Mode

EN – X Disable flash security of emulation flash S7

FSC_DISABLE X – DIS Enable flash security of emulation flash

Default: S1 = X–DIS S2 = EN–X S3 = X-DIS

S4 = EN–X S5 = X–DIS S6 = X–DIS S7 = EN–X

Note:

1) ALARM_SEL: The 91V460 is equipped with two different alarm comparators. The devices 91F467D and 91461 are equipped with the new alarm comparator.

2) ADC_SEL: Depending on the voltage supply the respective ADC have to be selected.

3) HWWDG_KILL: The hardware watchdog has to be enabled also in the Softune workbench. (Debug Mode: Setup-> Dev. Environment-> Dev. Environment-> Execution-> watchdog)

4) SRAM_SFX: Depending on the connected emulation memory, the respective mode has to be selected. By default a SRAM is connected.

Page 16: mcu-an-300005-e-v17-mb91v460 getting started

Getting Started Chapter 5 Jumpers and Switches

MCU-AN-391005-E-V17 - 16 - © Fujitsu Microelectronics Europe GmbH

5.1.2 Emulator Interface The emulator interface can be terminated if the in-circuit-emulator (ICE) is not used.

Jumper Setting Description

USER – INITX INITX is controlled by the evaluation board S14

INITX INITX – ICE INITX is controlled by the emulator

USER – TRSTX TRSTX is controlled by the evaluation board S15

TRSTX TRSTX – ICE TRSTX is controlled by the emulator

PD_OFF – ICD3 Disconnect pull-down resistor to ICD3 S16

ICD3 ICD3 – PD_ON Connect pull-down resistor to ICD3

PD_OFF – ICD2 Disconnect pull-down resistor to ICD2 S17

ICD2 ICD2 – PD_ON Connect pull-down resistor to ICD2

PD_OFF – ICD1 Disconnect pull-down resistor to ICD1 S18

ICD1 ICD1 – PD_ON Connect pull-down resistor to ICD1

PD_OFF – ICD0 Disconnect pull-down resistor to ICD0 S19

ICD0 ICD0 – PD_ON Connect pull-down resistor to ICD0

PD_OFF – BREAK Disconnect pull-down resistor to BREAK S20

BREAK BREAK – PD_ON Connect pull-down resistor to BREAK

Default: S14 = INITX–ICE S15 = TRSTX–ICE S20 = BREAK-ON

S16 = OFF–ICD3 S17 = OFF–ICD2 S18 = OFF–ICD1

S20 = OFF–ICD0

Note:

1) If the in-circuit-emulator (ICE) is used, the default settings have to be used.

Page 17: mcu-an-300005-e-v17-mb91v460 getting started

Getting Started Chapter 5 Jumpers and Switches

© Fujitsu Microelectronics Europe GmbH - 17 - MCU-AN-391005-E-V17

5.1.3 External Emulation Memory The size of the external emulation memory and the emulation memory width is selectable.

Jumper Setting Description

D32 – X External emulation memory is used in a 32 bit widthS13

D32_D16SL X – D16 External emulation memory is used in a 16 bit width

Jumper MDENS2 MDENS1 MDENS0 Size

1 1 1 8 MByte

1 1 0 4 MByte

1 0 1 2 MByte

1 0 0 1 MByte

0 1 1 512 kByte

0 1 0 Prohibited

0 0 1 Prohibited

S10 MDENS1

S11 MDENS0

S12 MDENS2

0 0 0 0 Byte

Default: S13 = D32-X

MDENS0 = 0 MDENS1 = 0 MDENS2 = 0

Page 18: mcu-an-300005-e-v17-mb91v460 getting started

Getting Started Chapter 5 Jumpers and Switches

MCU-AN-391005-E-V17 - 18 - © Fujitsu Microelectronics Europe GmbH

5.1.4 Clock Control The source of the main and the sub clock is selectable between the adapter board and the evaluation board. MCLKI and MCLKO of the external bus interface can be connected to the evaluation board or can be shorten on the adapter board.

Jumper Setting Description

EML – X0 Main clock provided from adapter board S22

X0 - USER Main clock provided from evaluation board

EML – X1 Main clock provided from adapter board S23

X1 - USER Main clock provided from evaluation board

EML – X0A Sub clock provided from adapter board S24

X0A - USER Sub clock provided from evaluation board

EML – X1A Sub clock provided from adapter board S25

X1A - USER Sub clock provided from evaluation board

EVA – MCLKI

EVA – MCLKO

MCLKI and MCLKO are not connected to evaluation board. MCLKI and MCLKO are shorten S30 / S31

MCLKI / MCLKO MCLKI – USER

MCLKO – USER

MCLKI and MCLKO are connected to evaluation board. MCLKI and MCLKO are not shorten

Default: S22 = EML-X0 S23 = EML-X1 S24 = EML-X0A

S25 = EML-X1A

S30 = MCLKI-USER S31 = MCLKO-USER

By default the clocks are provided from the adapter board.

By default MCLKI and MCLKO are connected to the evaluation board.

Page 19: mcu-an-300005-e-v17-mb91v460 getting started

Getting Started Chapter 5 Jumpers and Switches

© Fujitsu Microelectronics Europe GmbH - 19 - MCU-AN-391005-E-V17

5.1.5 Power Settings The voltage sources are selectable.

Jumper Setting Description

UVCC5 – SHDNSEL Keep watching VCC5 of evaluation board S26

SHDNSEL SHDNSE – UVCC3 Keep watching VCC3 of evaluation board

3.3V – VCCC3SEL MB91V460’s VCC3 is supplied by evaluation boardS27 VCCC3SEL VCCC3SEL – 3.5V 3.5V is supplied to VCC3 of MB91V460

UVCC3 – VCC5 Connect VCC3 of the adapter board to VCC3 of evaluation board S28

VCC5 VCC5 – UVCC5 Connect VCC5 of the adapter board to VCC5 of evaluation board

UVCC5 – UVCC3H VCC5H is generated from VCC5 by adding +1 V S29 UVCC3H UVCC3H – UVCC3 VCC5H is generated from VCC3 by adding +1 V

VCC3 – C Connect to VCC3 of MB91V460 S8 C C – VCC3C Connect to the C terminal of the evaluation board

Default: S26 = SHDNSEL–UVCC3 S27 = VCCC3SEL–3.5V

S28 = VCC5–UVCC5 S29 = UVCC3H–UVCC3

S8 = VCC3 – C

Note:

1) SHDNSEL: VCC3 or VCC5 can be supervised. If the selected voltage fails, the power supply of the evaluation chip will be cancelled.

Page 20: mcu-an-300005-e-v17-mb91v460 getting started

Getting Started Chapter 5 Jumpers and Switches

MCU-AN-391005-E-V17 - 20 - © Fujitsu Microelectronics Europe GmbH

5.1.6 Signal Routing Some signal can be routed depending on the application of the evaluation board.

Jumper Setting Description

PULLDOWN – P10_7 Pull-down resistor is connected to P10_7 S21 P10_7 P10_7 – PULLUP Pull-up resistor is connected to P10_7

P224 – CN2_B68

P242 – CN3_A6 P22_4 is connected to CN2_B68

P24_2 is connected to CN3_A6 S32/S33 P224/P242 P224 – CN3_A6

P242 – CN2_B68 P22_4 is connected to CN3_A6

P24_2 is connected to CN2_B68

P225 – CN2_B67

P243 – CN3_A5 P22_5 is connected to CN2_B67

P24_3 is connected to CN3_A5 S34/S35 P225/P243 P225 – CN3_A5

P243 – CN2_B67 P22_5 is connected to CN3_A5

P24_3 is connected to CN2_B67

Default: S21 = PULLDOWN – P10_7

S32 = P224 – CN2_B68 S33 = P242 – CN3_A6

S34 = P225 – CN2_B67 S35 = P243 – CN3_A5

Page 21: mcu-an-300005-e-v17-mb91v460 getting started

Getting Started Chapter 5 Jumpers and Switches

© Fujitsu Microelectronics Europe GmbH - 21 - MCU-AN-391005-E-V17

5.1.7 Default Jumper Settings In Figure 10 the default jumper settings of the adapter board are marked. The resistor can be removed, beside of R71, R74 and R75.

Figure 10: Default Jumper Settings of the Adapter Board

Page 22: mcu-an-300005-e-v17-mb91v460 getting started

Getting Started Chapter 5 Jumpers and Switches

MCU-AN-391005-E-V17 - 22 - © Fujitsu Microelectronics Europe GmbH

5.2 Jumpers of the evaluation board SK-91460-MAIN V1.2 In this section only the jumpers, influencing the adapter board are explained. Please refer to the user guide of the evaluation board SK-91460-MAIN V1.2 for the other jumpers and switches.

5.2.1 Analogue Power Supply Voltage The power supply for the ports of the adapter board is generated by the evaluation board. The voltage is selectable between 3.6 V and 5 V.

Jumper Setting Description

closed The microcontroller interface is powered with 3,3V SL260

open The microcontroller interface is powered with 5V

closed Power supply MCU_Vcc is connected SL262

open Power supply MCU_Vcc is disconnected

closed 3,3V is supplied to UVCC3 ST370

open 3,3V is not supplied to UVCC3

closed 3,3V is supplied to VCC3C ST371

open 3,3V is not supplied to VCC3C

Default: SL260 = open SL262 = closed

ST370 = closed ST371 = closed

By default, the I/O-ports are supplied by 5 V.

Note:

1) The Jumper S28 of the adapter board selects UVCC3 or MCU_VCC (UVCC5) as power supply for the I/O-port. By default this Jumper selects MCU_VCC (UVCC5).

Page 23: mcu-an-300005-e-v17-mb91v460 getting started

Getting Started Chapter 5 Jumpers and Switches

© Fujitsu Microelectronics Europe GmbH - 23 - MCU-AN-391005-E-V17

5.2.2 Default Jumper Settings In Figure 11 the default jumper settings are marked. For detailed information about the jumpers, please refer to the hardware manual of the evaluation board.

Figure 11: Default Jumper Settings of the Evaluation Board SK-91460-MAIN

Page 24: mcu-an-300005-e-v17-mb91v460 getting started

Getting Started Chapter 5 Jumpers and Switches

MCU-AN-391005-E-V17 - 24 - © Fujitsu Microelectronics Europe GmbH

5.3 Default Jumper Settings of the evaluation board SK-91F467D-208PFV In the following figure the default jumper settings are marked. For detailed information about the jumpers, please refer to the user guide of the evaluation board.

Figure 12: Default Jumper Settings of the Evaluation Board SK-91F467D-208PFV

Page 25: mcu-an-300005-e-v17-mb91v460 getting started

Getting Started Chapter 5 Jumpers and Switches

© Fujitsu Microelectronics Europe GmbH - 25 - MCU-AN-391005-E-V17

5.4 Default Jumpers Settings of the probe cable PB-91467D-208PFV In the following figure the default jumper settings are marked. For detailed information about the jumpers, please refer to the user guide of the evaluation board.

Figure 13: Default Jumper Settings of the Probe Cable PB-91467D-208PFV

Page 26: mcu-an-300005-e-v17-mb91v460 getting started

Getting Started Chapter 5 Jumpers and Switches

MCU-AN-391005-E-V17 - 26 - © Fujitsu Microelectronics Europe GmbH

5.5 Default Jumpers Settings of the probe cable PB-91467D-LS-208PFV In the following figure the default jumper settings are marked. For detailed information about the jumpers, please refer to the user guide of the evaluation board.

Figure 14: Default Jumper Settings of the Probe Cable PB-91467D-LS-208PFV

Page 27: mcu-an-300005-e-v17-mb91v460 getting started

Getting Started Chapter 6 Softune Workbench Getting Started

© Fujitsu Microelectronics Europe GmbH - 27 - MCU-AN-391005-E-V17

6 Softune Workbench Getting Started

PREPARING A NEW PROJECT

6.1 Copying the “template” directory If you want to create a new project it is strongly recommended to use the “template project” as a base of operations.

The “template project” includes all basic settings for a quick and safe start. It includes the header and includes files of the latest released version.

To start, copy the “template” directory with all its sub folders.

For example, we want to create a project, called LED. For that, rename the copy of the “template” folder to “LED”.

Figure 15: Copy the Template Project

6.2 Adjusting the project files First click into the new “LED” folder and rename the following files:

Template.prj → Led.prj

Template.wsp → Led.wsp

Now open the file “Led.prj” with your favourite text editor.

You will find an entry like this: [DirInfo]

PRJ=C:\

In the line “PRJ=” please edit the file path to your correct path. Of course, the “template” has to be renamed to “led”.

Save and close the file. Attention: If you use MS Word, please be sure to save the file as a normal text file, not as a word document!

Page 28: mcu-an-300005-e-v17-mb91v460 getting started

Getting Started Chapter 6 Softune Workbench Getting Started

MCU-AN-391005-E-V17 - 28 - © Fujitsu Microelectronics Europe GmbH

Now open the file “Led.wsp” also with a text editor.

Do the following changes: [PrjFile]

Count=1

FILE-0=Template.prj → FILE-0=Led.prj

ActivePrj=Template.prj → ActivePrj=Led.prj

[SubPrj-Template.prj] → [SubPrj-Led.prj]

Like in the Prj-File, you have to set your correct project folder path in the “WSP=” line: [DirInfo]

WSP=C:\

Now save and close the file also as a normal text file.

The new project environment is now adjusted.

6.3 Opening the Softune Workbench Now you can open the Softune Workbench. For installation of this tool please refer to the Installation Guide App. Note.

Choose the Menu File/Open. The following pop up window will occur:

Figure 16: Open a Workspace

Click “OK” for “Workspace/Project file”, and then browse to the file “Led.wsp”. Open it.

Page 29: mcu-an-300005-e-v17-mb91v460 getting started

Getting Started Chapter 6 Softune Workbench Getting Started

© Fujitsu Microelectronics Europe GmbH - 29 - MCU-AN-391005-E-V17

Then the following project structure will be displayed on the left side of the Softune screen.

The top level is the Workspace itself: “Led”.

The next level contains the ABS-File of the Project, which contains the compiled program data

The source files, their dependencies and the debugger settings follow.

For the moment the Source Files are in the point of interest.

Open the Source File of the Main Program “Main.c” by double clicking it in the window shown left.

Now a text editor window will open, which shows the contents of “Main.c”. It will look like this:

Figure 17: The MAIN.C Code of the Template

The code only contains the chip specific header inclusion and in the main routine a frame for the interrupt initialisation.

Page 30: mcu-an-300005-e-v17-mb91v460 getting started

Getting Started Chapter 6 Softune Workbench Getting Started

MCU-AN-391005-E-V17 - 30 - © Fujitsu Microelectronics Europe GmbH

6.4 Entering the code Now the development of the application can begin, therefore the main-function is already prepared.

Interrupt definition is done in the file ‘vectors.c'.

6.5 Compiling the Project Because of the usage of the “Template Project”, you now can compile this example at this moment. No other settings have to be done.

There are two ways to build to the whole project data. Either choose Project/Build or click the button in the circle in the illustration below:

6.6 Enter Debugging Mode After a successful project built you can enter the debugger mode via three different interfaces depending on your hardware set up:

• PC-COM-Port (RS232)

• LAN Interface

• USB Port

By double clicking on the correct connection type of the Debug dependency in the Project window (*.sup-files), your PC will connect to the MB2198-01 Emulator and the Softune Workbench will enter the Debugging Mode.

After a successful connection, the Softune Workbench will look like this:

Page 31: mcu-an-300005-e-v17-mb91v460 getting started

Getting Started Chapter 6 Softune Workbench Getting Started

© Fujitsu Microelectronics Europe GmbH - 31 - MCU-AN-391005-E-V17

Figure 18: Debugging Mode after a successful Connection

Note that the interface has to be determined only once. Later you can choose the menu Debug/Start debug to enter this mode.

6.7 Executing the Program

Now choose Debug/Run/Go, press F5 or click the button. Look at the Starter Kit. A “scrolling” LED has to be flashing on the Board.

To halt the execution, choose Debug/Abort or click the button (Note, that this button is only active in execution mode). The emulator system now is being halted. The execution can be continued by entering the “Go”-Mode again.

6.8 Ending the Debugging To end the debugging just choose the menu Debug/End debug.

6.9 Last steps To save the project data choose File/Close Workspace.

Click “Yes”. Afterwards you can close the Softune Workbench.

Note, that in the next start of the Workbench, your new LED-Project will occur in the menu list File/Recent Workspace File. By simply clicking to “Led.wsp”, the whole project will open again.

Page 32: mcu-an-300005-e-v17-mb91v460 getting started

Getting Started Chapter 7 Setup / Change Connection PC – Emulation System

MCU-AN-391005-E-V17 - 32 - © Fujitsu Microelectronics Europe GmbH

7 Setup / Change Connection PC – Emulation System

This chapter describes who to establish the connection between PC and emulation system.

The emulator MB2198-01 offers three possibilities to program and to debug a device, namely via

- Serial connection

- USB

- LAN

In the template for the 91V460 all three connection types are already preconfigured, but for some device additional settings have to be made.

7.1 Setup Serial Connection

7.1.1 Overview The emulator MB2198-01 offers the possibility to program and debug a device via a serial connection. Even though this is a very easy to install connection, the transmission speed is very slow.

7.1.2 Settings The default setting for debugging via a serial connection is COM 1 and a baud rate of 115200 Baud.

7.2 Setup USB

7.2.1 Overview The emulator MB2198-01 is provided with a USB port that can be used to program and debug a device. No additional hardware connection is required for this purpose

7.2.2 Updating the USB-Drivers To operate the emulator MB2198-01 on the PC, the USB-Drivers of the PC have to be updated. The following procedure describes the update-process.

1. Connect the USB-Cable to the emulator MB2198-01 and to the PC. Connect the 16 V DC power supply to the port ‘DC in’ and to 230 V. Please, be aware, that the emulator is switched off. Also refer to Figure 2.

2. After the PC is booted, power up the emulator. Windows will register a new hardware component and will start the hardware wizard. Select the option ‘No, not this time’ to search the drivers manually and press ‘Next’.

Page 33: mcu-an-300005-e-v17-mb91v460 getting started

Getting Started Chapter 7 Setup / Change Connection PC – Emulation System

© Fujitsu Microelectronics Europe GmbH - 33 - MCU-AN-391005-E-V17

Figure 19: Installing the USB-driver I

3. Select the option ‘Install from a list or specific location (Advanced) and press ‘Next’

Figure 20: Installing the USB-driver II

4. Include the subfolder ‘Drivers’ of the unpacked the softune propack 911s Rev 60006, e. g. ‘c:\temp\rev600006\Drivers’ in the search. Press ‘Next’ to install the drivers.

Page 34: mcu-an-300005-e-v17-mb91v460 getting started

Getting Started Chapter 7 Setup / Change Connection PC – Emulation System

MCU-AN-391005-E-V17 - 34 - © Fujitsu Microelectronics Europe GmbH

Figure 21: Choose the search options

5. Finish the update procedure by pressing ‘Finish’.

Figure 22: Close the hardware wizard

Rule 4: To install the software under Windows XP/2000/NT 4.0, the user requires administration authority.

7.3 Setup LAN

7.3.1 Overview The emulator MB2198-01 is provided with a local area network port that can be used to program and debug a device over a network connection. No additional hardware connection except the LAN connection itself is required for this purpose

Using the Fujitsu LAN-remote controlled debug facility,

Page 35: mcu-an-300005-e-v17-mb91v460 getting started

Getting Started Chapter 7 Setup / Change Connection PC – Emulation System

© Fujitsu Microelectronics Europe GmbH - 35 - MCU-AN-391005-E-V17

• A Fujitsu support engineer can easily help solving a concrete problem by debugging your application out of a Fujitsu support centre.

• You can control the emulator from different locations without having to move your hardware installation from one place to another.

• Program download will be more than 6 times faster than with RS232C

7.3.2 Configuring the LAN Adapter 1. Connect emulator and PC by the serial RS232-Port (or USB-Port)

3 Start the „LAN Address“ Program in the Softune Workbench Folder

4 Click on Communication to define the serial RS232 Port where the emulator is

connected to or use USB connection.

5 Read current status from the emulator

6 Set the unique IP address given from your network manager. This is a very important point; every IP-address within a network has to be unique.

7 Check the Port address: must be 5001

8 Make settings valid by „Set“, and reset the emulator when prompted

9 Close Program „LAN Address“

Figure 23: Changing the IP-Address

Page 36: mcu-an-300005-e-v17-mb91v460 getting started

Getting Started Chapter 7 Setup / Change Connection PC – Emulation System

MCU-AN-391005-E-V17 - 36 - © Fujitsu Microelectronics Europe GmbH

7.3.3 Configuring Operating System “WindowsTM” 1 Within your WindowsTM-directory (e.g. C:\windows or

C:\WINNT\system32\drivers\etc) you should find three files:

services hosts lmhosts[.sam]

(Note: The files may not have a file-extension!)

2 Make a copy off all three files, like for an example: services to sevices.old , etc. Edit file services and add the following line: fjicesv 5001/tcp # Fujitsu emulator

Figure 24: Add a Service

(Note: if 5001/tcp is already contained in the file services, use an unused number beginning with 5002 or greater, e.g. fjicesv 5002/tcp. In that case also the emulator address given by the program „LAN address“(see above) has to be changed!

Page 37: mcu-an-300005-e-v17-mb91v460 getting started

Getting Started Chapter 7 Setup / Change Connection PC – Emulation System

© Fujitsu Microelectronics Europe GmbH - 37 - MCU-AN-391005-E-V17

3 When saving again the file Services be sure that your editor (e.g. notepad) will not add any extension, e.g. .txt, to your file. To get sure, use quotation marks for the filename: File save as: ”services”

4 The file hosts is used to make a redefinition of the complex IP-number with a simple name within your global network. This may be important if you use a DNS-Server. Of course, you can define different names for the same IP-Address, as shown below. Edit file hosts and add the following line: „The unique IP address (as set by LAN-Address, see above)“ „Nickname of emulator“ e.g. 141.187.6.82 Emulator

Figure 25: Add a Host When saving again the file Hosts be sure that your editor (e.g. notepad) will not

add any extension, e.g. .txt, to your file. To get sure, use quotation marks for the filename: File save as: ”hosts”

5 The file lmhosts (or lmhosts.sam) is used to make a redefinition of the complex IP-number with a simple name within your local network. Of course, you can define different names for the same IP-Address, as shown below. Edit file lmhosts and add the following line:

Page 38: mcu-an-300005-e-v17-mb91v460 getting started

Getting Started Chapter 7 Setup / Change Connection PC – Emulation System

MCU-AN-391005-E-V17 - 38 - © Fujitsu Microelectronics Europe GmbH

Figure 26: Edit the File Imhosts.asm

„the unique IP address (as set by LAN-Address, see above)“ „nickname of emulator“ e.g. 141.187.6.82 fjicescv 141.187.6.82 Emulator When saving again the file Imhosts get sure that your editor (e.g. notepad) will not add any extension, e.g. .txt, to your file. To get sure, use quotation marks for the filename: e.g. File save as:”lmhosts” (or lmhosts.sam)

7.3.4 Checking the network-connection Disconnect serial RS232 (or USB) cable from Emulator and try to find the emulator:

• Open DOS-Window (or open RUN (Ausführen) in the Start-Menu)

• The command ping Emulator should acknowledge with some time-values, that means the network is set up right.

The emulator with LAN-adapter is successfully integrated in the network environment and can be used by the Softune Workbench.

7.3.5 Troubleshooting

If the command ping my_emulator will reply with a timeout-message, try to find the emulator by its IP-address: Type command ping IP-address, e.g. ping 141.187.6.82.

If this will work, then check settings (nickname and IP-address) within Imhosts and Hosts. If neither nickname (my_emulator) nor IP-address will work, check settings done by the program LAN-address and check the file Services.

Page 39: mcu-an-300005-e-v17-mb91v460 getting started

Getting Started Chapter 7 Setup / Change Connection PC – Emulation System

© Fujitsu Microelectronics Europe GmbH - 39 - MCU-AN-391005-E-V17

Also check your physical network interconnection cables. When using a HUB for 10Base-T then a standard (1:1) network cable has to be used. If the emulator is connected directly to the PC a „crossed network cable“is necessary. Good answer: Emulator/LAN-adapter replies with time-values:

Figure 27: Testing the IP-Connection to the Emulator I „Failed“-answer: Emulator/LAN-adapter replies with timeout message:

Figure 28: Testing the IP-Connection to the Emulator II

Page 40: mcu-an-300005-e-v17-mb91v460 getting started

Getting Started Chapter 7 Setup / Change Connection PC – Emulation System

MCU-AN-391005-E-V17 - 40 - © Fujitsu Microelectronics Europe GmbH

7.3.6 Softune Workbench Within the Softune Workbench the LAN interface can be used instead of a serial RS232C communication. Detail-Host: can be the „nickname“ as defined in the files hosts and lmhosts or the IP-address of the emulator, set by the program „LAN-Address“, can be used.

Figure 29: Changing the IP-Address of the Host in the Softune Workbench

Nickname or IP address

Page 41: mcu-an-300005-e-v17-mb91v460 getting started

Getting Started Chapter 8 Appendix

© Fujitsu Microelectronics Europe GmbH - 41 - MCU-AN-391005-E-V17

8 Appendix

8.1 Figures Figure 1: Installing the crystal for the main clock ..................................................................... 9 Figure 2: Connections of the Emulator MB2198-01............................................................... 10 Figure 3: Mounting the Evaluation MCU ................................................................................ 11 Figure 4: Connected Adapter Board and Evaluation Board................................................... 12 Figure 5: The Correct Polarisation of the 9 V DC Power Supply. .......................................... 12 Figure 6: Cabling the Adapter Board and Evaluation Board .................................................. 13 Figure 7: Connected Adapter Board, Probe Cable and Evaluation Board............................. 13 Figure 5: The Correct Polarisation of the 9 V DC Power Supply. .......................................... 14 Figure 7: Cabling the Adapter Board, Probe Cable and Evaluation Board ............................ 14 Figure 8: Default Jumper Settings of the Adapter Board ....................................................... 21 Figure 9: Default Jumper Settings of the Evaluation Board SK-91460-MAIN........................ 23 Figure 10: Default Jumper Settings of the Evaluation Board SK-91F467D-208PFV ............. 24 Figure 10: Default Jumper Settings of the Probe Cable PB-91467D-208PFV....................... 25 Figure 10: Default Jumper Settings of the Probe Cable PB-91467D-LS-208PFV ................. 26 Figure 11: Copy the Template Project ................................................................................... 27 Figure 12: Open a Workspace ............................................................................................... 28 Figure 13: The MAIN.C Code of the Template ...................................................................... 29 Figure 14: Debugging Mode after a successful Connection .................................................. 31 Figure 15: Installing the USB-driver I ..................................................................................... 33 Figure 16: Installing the USB-driver II .................................................................................... 33 Figure 17: Choose the search options ................................................................................... 34 Figure 18: Close the hardware wizard ................................................................................... 34 Figure 19: Changing the IP-Address...................................................................................... 35 Figure 20: Add a Service ....................................................................................................... 36 Figure 21: Add a Host ............................................................................................................ 37 Figure 22: Edit the File Imhosts.asm ..................................................................................... 38 Figure 23: Testing the IP-Connection to the Emulator I ......................................................... 39 Figure 24: Testing the IP-Connection to the Emulator II ........................................................ 39 Figure 25: Changing the IP-Address of the Host in the Softune Workbench......................... 40