Upload
trinhnga
View
216
Download
0
Embed Size (px)
Citation preview
Fujitsu Microelectronics (Shanghai) Co., Ltd. Application Note
MCU-AN-500061-E-11
F²MC-8FX FAMILY
8-BIT MICROCONTROLLER
MB95330 SERIES
LQFP32 PGM ADAPTOR APPLICATION NOTE
LQFP32 PGM ADAPTOR V1.1 Revision History
MCU-AN-500061-E-11– Page 2
Revision History
Date Author Change of Records 2009-11-03 Kevin Wang V1.0, First draft 2009-11-26 Kevin Wang V1.1,Modif
This manual contains 20 pages.
© 2009 Fujitsu Microelectronics (Shanghai) Co., Ltd.
1. The products described in this manual and the specifications thereof may be changed without prior notice. 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.
3. The contents of this manual may not be transferred or copied without the express permission of Fujitsu.
4. The products contained in this manual are not intended for use with equipments which require extremely high reliability such as aerospace equipments, undersea repeaters, nuclear control systems or medical equipments for life support.
5. Some of the products described in this manual may be strategic materials (or special technology) as defined by the Foreign Exchange and Foreign Trade Control Law. In such cases, the products or portions thereof must not be exported without permission as defined under the law.
LQFP32 PGM ADAPTOR V1.1 Revision History
MCU-AN-500061-E-11– Page 3
REVISION HISTORY ............................................................................................................ 2�
1� INTRODUCTION .............................................................................................................. 4�
2� APPLICATION ENVIRONMENT ...................................................................................... 5�
2.1� Mother Board .......................................................................................................... 5�
2.2� Debug Tool .............................................................................................................. 5�
2.3� SOFTUNE ............................................................................................................... 6�
2.4� USB Programmer .................................................................................................... 6�
3� HARDWARE CONNECTION ........................................................................................... 7�
3.1� Independent Usage ................................................................................................. 7�
3.2� Used with Mother Board .......................................................................................... 8�
4� PROGRAM FUNCTION ................................................................................................. 11�
4.1� Use MB95330 Series USB Programmer to Program ............................................. 11�
4.2� Use F2MC-8L/8FX SOFTUNE to Program ............................................................. 12�
5� SCHEMATIC .................................................................................................................. 16�
5.1� LQFP32 PGM Adaptor .......................................................................................... 16�
6� PN DEFINITION RULE .................................................................................................. 17�
7� PN LIST OF APPLICABLE MCUS ................................................................................. 18�
8� MORE INFORMATION .................................................................................................. 19�
9� APPENDIX ..................................................................................................................... 20�
LQFP32 PGM ADAPTOR V1.1 Chapter 1 Introduction
MCU-AN-500061-E-11– Page 4
1 Introduction
The MB95330 LQFP32 PGM adaptor is developed mainly as an independent on-board programming and debugging tool for the MB95330series LQFP32 package MCU. Its original function of programming and debugging after being installed on the MB95330 series EV board still remains. The picture of MB95330 series LQFP32 PGM adaptor is shown in Figure 1.1.Four 8-pin connectors are used to connect with MB95330 EV board. The PN of the MB95330 LQFP32 PGM is FMCDC-8FX-PGMA-07032080.
Figure 1.1: MB95330 LQFP32 PGM adaptor
LQFP32 PGM ADAPTOR V1.1 Chapter 2 Application Environment
MCU-AN-500061-E-11– Page 5
2 Application Environment
This chapter introduces application environment of MB95330 LQFP32 PGM adaptor.
2.1 Mother Board The mother board of MB95330 LQFP32 PGM adaptor is MB95330 EV board V1.2, as below picture. It can be gotten from MB95330 motor EV Board (PN: MB2146-440-E).
Figure 2.1: MB95330 EV Board V1.2
2.2 Debug Tool The debug tool is BGMA (BGM Adaptor), the type of it is MB2146-08-E, as below picture.
Figure 2.2: BGM Adaptor
LQFP32 PGM ADAPTOR V1.1 Chapter 2 Application Environment
MCU-AN-500061-E-11– Page 6
2.3 SOFTUNE
SOFTUNE is used to program and debug, as software development environment. The version of it is F2MC-8L/8FX SOFTUNE Workbench V30L31, as below picture. It can be downloaded from the following website.
Web: http: //www.fujitsu.com/cn/fmc/service/mcu/tools.
Figure 2.3: SOFTUNE Version
2.4 USB Programmer The MB95330 series USB programmer is as below picture. It can be downloaded from the following website.
Web: http: //www.fujitsu.com/cn/fmc/service/mcu/tools.
Figure 2.4: MB95330 Series USB Programmer
LQFP32 PGM ADAPTOR V1.1 Chapter 3 Hardware Connection
MCU-AN-500061-E-11– Page 7
3 Hardware Connection
This chapter introduces hardware connection when it is used independently or with mother board.
MB95330 LQFP32 PGM adaptor can be used to program and debug independently or after being installed to the mother board. Hardware preparations for each case are described in Section 3.1and Section 3.2 respectively.
3.1 Independent Usage When using MB95330 LQFP32 PGM adaptor independently for programming, we should fix MCU on the socket first. Then following steps should be implemented.
Figure 3.1: Independent Usage Preparation
LQFP32 PGM ADAPTOR V1.1 Chapter 3 Hardware Connection
MCU-AN-500061-E-11– Page 8
(1) Connect BGMA to PC
(2) Connect PGM adaptor board to BGMA
(3) Power on the PGM adaptor board, the typical input voltage is 3.3V or 5V.
Figure 3.2: Hardware Connection for Independent Usage
3.2 Used with Mother Board (1) MB95330 series EV board V1.2 is the mother board of LQFP32 PGM adaptor board.
First remove the MB95330 chip mounted on the mother board.
Figure 3.3: Remove MCU from Mother Board
Remove MCU
(2)
(1)
(3)
LQFP32 PGM ADAPTOR V1.1 Chapter 3 Hardware Connection
MCU-AN-500061-E-11– Page 9
(2) Install the MB95F330 chip onto the adaptor socket.
.
Figure 3.4: Place MCU on Adaptor Board
(3) Fix the adaptor board to the mother board.
Figure 3.5: Fix Adaptor Board on the Mother Board
LQFP32 PGM ADAPTOR V1.1 Chapter 3 Hardware Connection
MCU-AN-500061-E-11– Page 10
(4) Connect BGMA to PC.
(5) Connect PGM adaptor board to BGMA.
(6) Power on the EV-board.
Figure 3.6: Process (4)-(6)
(6) (5)
LQFP32 PGM ADAPTOR V1.1 Chapter 4 Program Function
MCU-AN-500061-E-11– Page 11
4 Program Function
This chapter introduces programming steps using either MB95330 series USB programmer or F2MC-8L/8FX SOFTUNE Workbench V30L31.
MB95330 series MCU can be programmed through MB95330 series USB programmer or F2MC-8L/8FX SOFTUNE Workbench V30L31. Section 4.1 and section 4.2 introduce programming steps with MB95330 series USB programmer and F2MC-8L/8FX SOFTUNE Workbench V30L31 respectively.
4.1 Use MB95330 Series USB Programmer to Program
(1) Open MB95330 series USB programmer.
(2) Select MCU type (MB95334H/K).
(3) Select Hex file by the path: Current project DIR\Debug\ABS.
.
Figure 4.1: Select MCU Type and Hex File
(4) Click Full Operation to start programming.
(2)
(3)
LQFP32 PGM ADAPTOR V1.1 Chapter 4 Program Function
MCU-AN-500061-E-11– Page 12
Figure 4.2: Click Full Operation
(5) The USB programmer also provides single operation, including Erase, Blank Check, Program, Read & Compare and Copy.
4.2 Use F2MC-8L/8FX SOFTUNE to Program
(1) Open a project (E.g. MB95F334 Motor Drive) using SOFTUNE.
Figure 4.3: Open Demo Project
(2) Please select the MCU type to MB95F334K in “Project/Setup Project…/MCU”.
Figure 4.4: Set MCU Type
Select MCU
LQFP32 PGM ADAPTOR V1.1 Chapter 4 Program Function
MCU-AN-500061-E-11– Page 13
(3) In “Project/Setup Project…/Linker”, set “Disposition/Connection” in Category, then select
_INROM01 and click “Set Section…” After that, a dialog window will pop up as shown in
Figure 4.6 below. Set Const (named @INIT) and Dirconst (named @DIRINIT) as shown
in Figure 4.7 and Figure 4.8.
Figure 4.5: Disposition Display Window
Figure 4.6: Section Setting Window
(3.1) Select
(3.2) Select
(3.3) Click
LQFP32 PGM ADAPTOR V1.1 Chapter 4 Program Function
MCU-AN-500061-E-11– Page 14
Figure 4.7: Set Const Section
Figure 4.8: Set Dirconst Section
(3.5) set section name
(3.4) Select
(3.6) Click
(3.8) set section name
(3.7) Select
(3.9) Click
LQFP32 PGM ADAPTOR V1.1 Chapter 4 Program Function
MCU-AN-500061-E-11– Page 15
(4) Compile project.
(5) Start debugging.
Figure 4.9: Start Debugging
(6) Run (code update).
(7) End debugging.
Notes:
SOFTUNE environment can also be used to debug, however if users only need to do programming, DO NOT set any breakpoint before step 6, or error code will be programmed.
LQFP32 PGM ADAPTOR V1.1 Chapter 5 Schematic
MCU-AN-500061-E-11– Page 16
5 Schematic
This chapter demonstrates schematic of MB95330 PGM adaptor.
5.1 LQFP32 PGM Adaptor
Figure 5.1: LQFP32 PGM Adaptor Schematic
LQFP32 PGM ADAPTOR V1.1 Chapter 6 PN Definition Rule
MCU-AN-500061-E-11– Page 17
6 PN Definition Rule
The part number of PGM adaptor is FMCDC-8FX-PGMA-07032080.
07�LQFP,
032�Pin count (e.g. 032 means 32pin MCU),
080�Lead pitch (e.g. 0.80mm means lead pitch 080).
LQFP32 PGM ADAPTOR V1.1 Chapter 7 PN List of Applicable MCUs
MCU-AN-500061-E-11– Page 18
7 PN List of Applicable MCUs
MCU Series Part Number Footprint
MB95330 series MB95F332HPMC-G-SNE2
MB95F332KPMC-G-SNE2
MB95F333HPMC-G-SNE2
MB95F333KPMC-G-SNE2
MB95F334HPMC-G-SNE2
MB95F334KPMC-G-SNE2
LQFP32
LQFP32 PGM ADAPTOR V1.1 Chapter 8 More Information
MCU-AN-500061-E-11– Page 19
8 More Information
For more information on FUJITSU MB95330 products, please visit the following website:
Simplified Chinese Version http://www.fujitsu.com/cn/fmc
English Version http://www.fujitsu.com/cn/fmc/en
LQFP32 PGM ADAPTOR V1.1 Chapter 9 Appendix
MCU-AN-500061-E-11– Page 20
9 Appendix
Figure 1.1: MB95330 LQFP32 PGM adaptor ......................................................................... 4�
Figure 2.1: MB95330 EV Board V1.2 ..................................................................................... 5�
Figure 2.2: BGM Adaptor ....................................................................................................... 5�
Figure 2.3: SOFTUNE Version ............................................................................................... 6�
Figure 2.4: MB95330 Series USB Programmer ...................................................................... 6�
Figure 3.1: Independent Usage Preparation ........................................................................... 7�
Figure 3.2: Hardware Connection for Independent Usage ...................................................... 8�
Figure 3.3: Remove MCU from Mother Board ........................................................................ 8�
Figure 3.4: Place MCU on Adaptor Board .............................................................................. 9�
Figure 3.5: Fix Adaptor Board on the Mother Board ............................................................... 9�
Figure 3.6: Process (4)-(6) ................................................................................................... 10�
Figure 4.1: Select MCU Type and Hex File .......................................................................... 11�
Figure 4.2: Click Full Operation ............................................................................................ 12�
Figure 4.3: Open Demo Project ............................................................................................ 12�
Figure 4.4: Set MCU Type ................................................................................................... 12�
Figure 4.5: Disposition Display Window ............................................................................... 13�
Figure 4.6: Section Setting Window ..................................................................................... 13�
Figure 4.7: Set Const Section .............................................................................................. 14�
Figure 4.8: Set Dirconst Section ........................................................................................... 14�
Figure 4.9: Start Debugging ................................................................................................. 15�
Figure 5.1: LQFP32 PGM Adaptor Schematic ...................................................................... 16�