Fujitsu MB2146-450-E Setup Manual
Fujitsu MB2146-450-E Setup Manual

Fujitsu MB2146-450-E Setup Manual

F2mc-8fx family 8-bit microcontroller mb95310/370 series ev board
Hide thumbs Also See for MB2146-450-E:

Advertisement

Quick Links

Fujitsu Semiconductor (Shanghai) Co., Ltd.
MCU-AN-500072-E-13

Setup Guide

F²MC-8FX FAMILY
8-BIT MICROCONTROLLER
MB95310/370 SERIES
EV BOARD MB2146-450-E
SETUP GUIDE

Advertisement

Table of Contents
loading

Summary of Contents for Fujitsu MB2146-450-E

  • Page 1: Setup Guide

    Fujitsu Semiconductor (Shanghai) Co., Ltd. MCU-AN-500072-E-13 Setup Guide F²MC-8FX FAMILY 8-BIT MICROCONTROLLER MB95310/370 SERIES EV BOARD MB2146-450-E SETUP GUIDE...
  • Page 2: Revision History

    To obtain up-to-date information and/or specifications, contact your Fujitsu sales representative or Fujitsu authorized dealer. 2. Fujitsu will not be liable for infringement of copyright, industrial property right, or other rights of a third party caused by the use of information or drawings described in this manual.
  • Page 3: Table Of Contents

    EV BOARD MB2146-450-E V1.3 Contents CONTENTS REVISION HISTORY ......................2  CONTENTS ..........................3  1  PRODUCT OVERVIEW ..................... 5  1.1  Objective and Deliverable ..................5  1.2  System Block ......................5  1.3  Handling Precautions ....................5  1.4  Feature ........................6  1.5  Hardware Setup ......................6 ...
  • Page 4 EV BOARD MB2146-450-E V1.3 Contents 3.5.10  Test Pin ..................... 29  3.5.11  Battery Usage ................... 29  4  SAMPLE CODE MANUAL ....................30  4.1  Project Structure ..................... 30  4.2  Source Code File Description ................. 31  4.2.1  ADC .c ....................... 31  4.2.2  Beep .c ...................... 32 ...
  • Page 5: 1  Product Overview

    This product is a set of EV-Board of MB95F310 series. It is composed of a BGMA (MB2146- 08-E) and an EV-board (MB2146-450-E). Combining the SOFTUNE Workbench on PC, the EV-Board enables the quick start of development before the user system is ready.
  • Page 6: Feature

    EV BOARD MB2146-450-E V1.3 Chapter 1 Product Overview 1.4 Feature The MB95F310 Series EV-Board is the best for a performance and functional evaluation, and operation check before using MB95F310 Series MCU in a user's system. The features of the BGM debugger for MB95F310 Series MCU are shown as below.
  • Page 7: 2  Bgma Manual

    EV BOARD MB2146-450-E V1.3 Chapter 2 BGMA Manual 2 BGMA Manual This chapter gives introduction on how to set up BGMA. 2.1 BGMA Overview Following is a close shot of a MB95200 Series BGMA. The Part Number is MB2146-08-E. It provides a debug platform for the MB95F310 Series MCU with a small size of 55.7mm (W)
  • Page 8: Idc10 Interface Description

    EV BOARD MB2146-450-E V1.3 Chapter 2 BGMA Manual 2.3 IDC10 Interface Description Pin Number Pin Name Description UVCC Target MCU Vcc Target MCU Vss RSTIN Target MCU reset input RSTOUT Target MCU reset output Reserved Reserved Reserved Target MCU debug pin...
  • Page 9 EV BOARD MB2146-450-E V1.3 Chapter 2 BGMA Manual Select Install from a list or specific location (Advanced), then click Next. Figure 2-3: Install BGMA in Windows (2) Select …\Drivers from the folder where SOFTUNE is installed, click Next. Figure 2-4: Install BGMA in Windows (3)
  • Page 10 EV BOARD MB2146-450-E V1.3 Chapter 2 BGMA Manual Select BGMA (MB2146-08) from the window displayed in Figure 2-5, and then click Next. Figure 2-5: Install BGMA in Windows (4) Windows will install the driver automatically. Click Finish after the driver has completed the installation normally.
  • Page 11: Led Description

    EV BOARD MB2146-450-E V1.3 Chapter 2 BGMA Manual 2.5 LED Description First, when USB cable is plugged to PC, check whether the Power LED turns green or not. Refer to Figure 2-7. Figure 2-7: BGMA Power LED (1) Second, plug IDC10 cable to the EV-board (target MCU board), then turn on EV-board. After that, check whether the Power LED on the BGMA turns orange or not.
  • Page 12: 3  Ev-Board Manual

    EV BOARD MB2146-450-E V1.3 Chapter 3 EV-board Manual 3 EV-board Manual This chapter gives introduction on how to set up EV-board and functions of EV-Board. 3.1 EV-board Overview MB95F310 EV-board is an evaluation platform for the MB95F310 Family microcontroller. Figure 3-1 is a close shot of EV-board.
  • Page 13: Function List

    EV BOARD MB2146-450-E V1.3 Chapter 3 EV-board Manual 3.2 Function List The EV-board is consisted of a board and a sample firmware. The board, together with a BGMA (PN: MB2146-08-E) and a SOFTUNE, provides a useful platform for using the MCU and its peripherals.
  • Page 14: Ev-Board Schematic

    EV BOARD MB2146-450-E V1.3 Chapter 3 EV-board Manual 3.3 EV-board Schematic Figure 3-2: EV-board Schematic MCU-AN-500072-E-13 – Page 14...
  • Page 15: Hw Module Description And Jumper Settings

    EV BOARD MB2146-450-E V1.3 Chapter 3 EV-board Manual 3.4 HW Module Description and Jumper settings 3.4.1 Pin Assignment of MB95F310 Table 3- 1 describes the assignment of MCU Pin Table 3-1: Assignment of Pin Pin name Pin Usage Description Logical Description...
  • Page 16: Power Module

    EV BOARD MB2146-450-E V1.3 Chapter 3 EV-board Manual 3.4.2 Power Module EV-board provides 2 kinds of power supplies for user to choose. Please read the following instructions before using. DC Adaptor: 5V DC: Output voltage: 3.3V Connection: Connector (J12) Battery: QTY: 4PCS;...
  • Page 17 EV BOARD MB2146-450-E V1.3 Chapter 3 EV-board Manual 5V DC from J12 U5: 5V. MCU-AN-500072-E-13 – Page 17...
  • Page 18: I2C Module

    EV BOARD MB2146-450-E V1.3 Chapter 3 EV-board Manual 3.4.3 I2C Module There are two switches between at24c08 and EEPROM. When I2C is used to visit EEPROM, they will switch off. When I2C is used to visit external chip, they will switch on. Following...
  • Page 19 EV BOARD MB2146-450-E V1.3 Chapter 3 EV-board Manual Table 3-4 describes the function of keys. Table 3-4: KEY Description FUNCTION Switch mode:”EEPROM -> Temperature MODE -> UART -> RTC -> EEPROM….” Confirm some operations to enter into CONFIRM edit mode or confirm edit result...
  • Page 20: Lcd Module

    EV BOARD MB2146-450-E V1.3 Chapter 3 EV-board Manual 3.4.5 LCD Module COM0~COM3 and SEG00 ~SEG31 are used to drive LCD. Table 3-5 describes the relationship between SEG and LCD Table 3-5: LCD Assignment SEG(00…..31) LED(0…10) SEG00 LED0 SEG01 SEG02 SEG03...
  • Page 21: Operation Manual

    EV BOARD MB2146-450-E V1.3 Chapter 3 EV-board Manual 3.5 Operation Manual 3.5.1 Mode Switch Pressing mode key can switch EEPROM mode to RTC mode, following figures describe the operation. Default is EEPROM mode. Pressing Mode key ---switch to temperature mode.
  • Page 22: Eeprom Sub-Address Switch And Edit

    EV BOARD MB2146-450-E V1.3 Chapter 3 EV-board Manual 3.5.2 EEPROM Sub-address Switch and EDIT In EEPROM mode, the LCD displays the value of a certain sub-address. Status Data If you press Up or Down key, the value of sub-address will change.
  • Page 23 EV BOARD MB2146-450-E V1.3 Chapter 3 EV-board Manual Press Confirm key to confirm this operation. Note: Status “0” ------ normal status Status “1” ------ setting status MCU-AN-500072-E-13 – Page 23...
  • Page 24: Factory Mode

    EV BOARD MB2146-450-E V1.3 Chapter 3 EV-board Manual 3.5.3 Factory Mode In EEPROM normal status, press Send and Wake-up key in turn, and system enters into factory mode. In factory mode, all EEPROM data are initialized to its sub-address and the LCD will display the value written into the sub-address.
  • Page 25: Uart Send

    EV BOARD MB2146-450-E V1.3 Chapter 3 EV-board Manual 3.5.5 UART Send Switch the mode to UART, the LCD will display the value of received data; if you want to send data, the following operation will be an example. Pressed Mode key ---switch to UART mode.
  • Page 26: Rtc Operation

    EV BOARD MB2146-450-E V1.3 Chapter 3 EV-board Manual 3.5.6 RTC Operation When system is powered on, the RTC timer begins to count. When user wants to enter standby mode, the sleep mode can be selected by setting the timer; after setting standby time, counter counts continuously and enters sleep mode when the counter value is same as the set value.
  • Page 27 EV BOARD MB2146-450-E V1.3 Chapter 3 EV-board Manual Note: 1. When the time is set to 0 hour 0 minute and 0 second, the system will not enter standby mode. 2. The setting time must be bigger than the system running time.
  • Page 28: Wake-Up Operation

    EV BOARD MB2146-450-E V1.3 Chapter 3 EV-board Manual 3.5.7 Wake-Up Operation There is a wake up key on the LCD EV-Board, which uses external interrupt to wake up system from sleep mode. When system enters sleep mode, no operation can be made except the wake-up key.
  • Page 29: Reset Operation

    EV BOARD MB2146-450-E V1.3 Chapter 3 EV-board Manual 3.5.8 Reset Operation There is a reset key to be used when user wants to reset system. In normal condition, the reset pin is connected to V While reset key pressed, it is connected to GND.
  • Page 30: 4  Sample Code Manual

    EV BOARD MB2146-450-E V1.3 Chapter 4 Sample Code Manual 4 Sample Code Manual 4.1 Project Structure There is a project LCD EV-Board Project.prj in this MB95F310 EV-Board. The following structure describes the flow chart of this project, as shown in Figure 4-1.
  • Page 31: Source Code File Description

    EV BOARD MB2146-450-E V1.3 Chapter 4 Sample Code Manual 4.2 Source Code File Description Eight drive files are available in this project shown below. Figure 4-2: Source Code Files 4.2.1 ADC .c In this function, environment temperature and key value will be calculated.
  • Page 32: Beep .C

    EV BOARD MB2146-450-E V1.3 Chapter 4 Sample Code Manual 4.2.2 Beep .c When AD key is pressed, it will make a short beep sound by setting different values to PIN PPG1. Following table describes the Beep library: Function Name Description...
  • Page 33: I2C .C

    EV BOARD MB2146-450-E V1.3 Chapter 4 Sample Code Manual 4.2.5 I2C .c In this function, the user can initialize I2C status and use SCL and SDA to send data to master device and receive data from slave device. Following table describes the I2C library:...
  • Page 34: Rtc .C

    EV BOARD MB2146-450-E V1.3 Chapter 4 Sample Code Manual 4.2.7 RTC .c In this function, the user can initialize clock register, start time base timer, set display value for LCD and set condition to enter standby mode Following table describes the LCD library:...
  • Page 35: Uart .C

    EV BOARD MB2146-450-E V1.3 Chapter 4 Sample Code Manual 4.2.8 UART .c In this function, the MCU works in an asynchronous mode. The baud rate is generated by a dedicated baud rate generator. In the EV-Board sample code the baud rate is 9600.
  • Page 36: Global Variable Description

    EV BOARD MB2146-450-E V1.3 Chapter 4 Sample Code Manual 4.3 Global Variable Description Five drive files are available in this project shown below, _f2mc8fx.h _f2mc8fx.h is system-defined document. Ignore it mb95310.h Mb95310.h is system-defined document. Ignore it def.h This file basically includes all global variables of FW Following table describes the main struct.
  • Page 37: How To Add These Files

    EV BOARD MB2146-450-E V1.3 Chapter 4 Sample Code Manual 4.4 How to Add These Files Before using chapter4.2 file, please refer to the following steps. Create a new project. Copy .c file to project document. Add .c file to project.
  • Page 38: 5  Development Platform Quick Start

    EV BOARD MB2146-450-E V1.3 Chapter 5 Development Platform Quick Start 5 Development Platform Quick Start 5.1 Tools Setup Sequence Start the debugging system in the following sequence: Connect a BGMA to the PC with a USB cable, confirm whether the LED on the BGMA is green;...
  • Page 39: 6  Additional Information

    EV BOARD MB2146-450-E V1.3 Chapter 6 Additional Information 6 Additional Information For more Information on FUJITSU Semiconductor products, visit the following websites: English version address: http://www.fujitsu.com/cn/fsp/services/mcu/mb95/application_notes.html Chinese version address: http://www.fujitsu.com/cn/fss/services/mcu/mb95/application_notes.html MCU-AN-500072-E-13 – Page 39...
  • Page 40: 7  Appendix

    EV BOARD MB2146-450-E V1.3 Chapter 7 Appendix 7 Appendix 7.1 Tables Table 3-1: Assignment of Pin ....................15  Table 3-2: Selection of Power Supply ..................16  Table 3-3: I2C Switch ......................18  Table 3-4: KEY Description ....................19  Table 3-5: LCD Assignment ....................20 ...

Table of Contents