Electronics Source Co., L td. Operation Manual F 2 MC-8L FAMILY 8-BIT MICROCONTROLLER MB89201 SERIES GETTING STARTED DEV-MB89N202-APP1 OPERATION MANUAL
Content Introduction 3 1. Chapter 1 Hardware 1.1 Features 4 1.2 Overview of DEV-MB89N202-APP1 Evaluation Board 5 1.3 Connection and setting 6 1.4 Hardware specifications 7 2. Chapter 2 Fujitsu Flash Software Programmer 2.1 Serial Programming Setup 8 2.2 Fujitsu Flash software Programmer setup 9 2.3 Connect DEV-MB89N202-APP1 10 3. Chapter 3 Fujitsu Softune Workbench IDE 3.1 Softune Workbench setup 15 3.2 Getting start with Softune Workbench 18 3.3 How to create new project 26 2
Introduction The evaluation board, DEV-MB89N202-APP1 is developed as basic design of Fujitsu s Flash Microcontroller, MB89F202/MB89N202. This evaluation board is specifically aimed at the practical design engineers, technicians, researchers and also include students and amateurs who interest to begin or change to develop practical application with Fujitsu s Flash Microcontroller, MB89F202/MB89N202. The components which be used in this board are most common in electronics market, the circuit shows how to do in-circuit programming and basic interfacing of external peripherals and components such as LED 7-Segment display, EEPROM, key switch and buzzer. In this operation manual divided into three chapters. The first chapter shows the overview of DEV-MB89N202-APP1 hardware, how to setting, duty of main components and something must to be care in operation. The chapter two, show the operation with serial programming circuit, how to setup and use Fujitsu Flash Programmer software to communicate DEV-MB89N202-APP1 with PC via COM-PORT for download machine code into internal Flash Program Memory. And the last chapter emphasis to explains how to use Fujitsu Softune Workbench step by step. All of explainations try to do with sample operation pictures for easy to understand. Throughout the manual emphasis in explaination the use of DEV-MB89N202-APP1 and software tools but no in-depth of software programming. Please also refer to the application notes which prepare to demonstrate this evaluation board for detail information. 3
Chapter 1 Hardware 1.1 Features On board MCU : MB89F202/MB89N202-16 Kbytes Flash Program Memory - MB89N202 : 1000 Program/Erase cycles - MB89F202 : 10,000 Program/Erase cycles - 512 byte RAM - 10-bit ADC - UART - 8/16 bit capture timer/counter Main Clock Frequency 8 MHz In-Circuit Serial Programming via RS232 Communication. 4 digits 0.4 inch LED 7 Segments Display 3 LEDs Display Serial EEPROM : 24C01 4 key inputs 2 channels thermister input 2 channels NO/NC relay contacts 10A/120V Buzzer Basic sample software projects for various applications. Thermistor (Accessories) 4
1.2 Overview of DEV-MB89N202-APP1 Evaluation Board The DEV-MB89N202-APP1 evalution board shows the sample detail of Fujitsu Flash Microcontroller MB89F202/MB89N202 practical application, provide most common user interface such as 4-digit green LED 7-Segment display, three LED and four key input. These features are advantage to write and debug basic software. 5 SW1: EEPROM Resonator Fujitsu MCU Display Reset Button 24C01 8MHz MB89N202 Panel CN5: Thermister Input1 CN4: Thermister Input2 CN3: Relay Contact1 CN2: Relay Contact2 CN1: Power Connection CN5 RS232: Serial Communication Connection Serial Programming Circuit Mainboard Buzzer SL1: Program/Run Selection LED1 LED2 LED3 Key1 Key2 Key3 Key4 Display Panel
1.3 Connection and Setting Power connection DEV-MB89N202-APP1 is built-in rectifier, filter and 5-V regulator circuit so can be applied both +12V dc power supply or 9V ac power source such as transformer via CN1. Users don t worry about the polarity of power cord but should care about the voltage level to prevent electrical damaged. Serial Programming Circuit The main advantage of MB89F202/MB89N202 is can be programmed by asynchronous serial programming. Because of programming process use only TXD, RXD and high voltage signal so only MAX232 and a few passive device are needed for this circuit. 6 Program/Run Selection Slider switch SL1 is be used for mode selection between programming and running mode. The setup are shown in pictures below. Run Program Note : After selected the position of SL1, Reset button:sw1 must be pressed to enter programming mode or running mode.
1.4 Hardware specifications 7 L = 91mm W = 75mm H = 40mm **Note : The pictures are above are not actual size. Recommended Operation Condition 1. Power Supply Input Voltage +12 VDC, 9VAC 2. Maximum Thermistor Input Voltage 5V 3. Relay Contact Rating 10A/120V
Chapter 2 Fujitsu Flash Software Programmer 2.1 Serial Programming Hardware Setup 8 Reset Button Program/Run Selector Serial Port (RS232) Power Connector RS232 Connector Procedure to prepare DEV-MB89N202-APP1 for in-circuit programming. 1. Connect power supply to CN1 of evaluation board. 2. Connect serial port between serial port of computer with RS232 Connector of evaluation board. 3. Set slide switch to P Position. 4. Press Reset Button to enter serial programming mode.
2.2 Fujitsu Flash Software Programmer setup Run Setup.exe of Fujitsu MCU Programmer V 5.0.02 9 Click on Select destination folder of the program, and click next. The setup is progress
2.1 Connect DEV-MB89N202-APP1 Run Fujitsu MCU Programmer Version 5.0.02 from Start menu. Start>Programs>MCU Programmer 10 The programmer will show all available COM port on computer. Available COM port Select F2MC8L Asynchronous and then click Connect button.
11 COM port is current used If DEV-MB89N202-APP1 is connected, the programmer will show ASYN adapter found at COM port which current connected. For example as above, COM1 is connected to the board. Wait a moment, The software will shows the dialogbox as below. Then click on Advanced Mode button.
Select file type, for example as below, select Motorola S format. 12 And then Click Load File/Project button.
13 The Programmer will shows file dialogbox as below, the target.mhx files are normally kept in folder ABS of project file groups. For example as below select UART.mhx
Click Ok button to start programming process. 14
Chapter 3 Fujitsu Softune Workbench IDE 3.1 Softune Workbench IDE setup Run Setup.exe of Softune Workbench V30L29 15 Click OK Click on Browse to change location of Softune Click on Next
16 Select require component, if your computer has enough resource, recommend to select all component. Click on checkbox to select component Click on Next Setup is progress
Click on Finish 17
3.2 Getting start with Softune Workbench Run Softune Workbench V30L29 from Start menu. Start>Programs>Softune V3>FFMC-8L-Family-Softune-Workbench And wait a moment, below logo is shown. 18 Overviews of Sotune Workbench IDE. Menu Bar Toolbar Build All Icon Project Window Editor Output Window
Open existing project 19 1. Select Menu File 2. Click on Open Workspace 3. Click on to select Workspace file 4. Click on
And then Softune Workbench will shows the selected project. 20 Build All Project Window Editor Editor window adjustment. 1. Click right on editor window 2. Select Customize
21 3. Click on to select/deselect 4. Click on to change Font Change editor s font by using menu. 1. Select Menu View 2. Select to change Font
To change project s configuration. 1. Select menu Project 22 2. Select to setup Project To Make sure that one of register bank must be selected, to prevent data memory overlapping. 3. Select Linker 4. Select Bank0
To enable absolute module converter. 23 5. Select Converter 6. Check 7. Select type of machine code file format 8. Click on Project simulation procedure. 1. Select Debug menu 2. Click on to start debugger
24 3. Click on Next to set debug. 4. Select Simulator Debugger 5. Click on Next
25 6. Select Menu Debug 7. Select Load target file
3.3 How to create new project 26 1. Click on menu File 2. Select New 3. Click on 4. Click on OK
27 4. Select Project 5. Click on 6. select MCU Family 7. Select Target MCU ** 8. Name the project and Workspace 9. Select project file group location 10. Click on ** Note : If MB89N202 or MB89F202 not appear on list box, can be absolutely replaced by MB89P935A, because they are same structure.
After finished to create new project, Softune will create project folder name as project name at selected location, and no source code file inside the project folder. The shortest way is to create source code file for the project is to copy the sample source code files from sample project folder and modify them. 28 1. Find project folder 2. Open project folder
29 3. Find sample project folder 4. Copy source file folder to new project folder
30 5. Click right on Source Files 6. Select Add Member to folder 7. Add whole source code file in folder 9. Click on menu Project 10. Click on Setup Project 8. Source Code files are included to project
31 11. Click on MCU 12. Re-check MCU 13. Click on C Compiler 14. Add C Compiler option to accept // symbol
15. Click on Linker 32 16. Click on Disposition/Connection 17. Click on Set Section
33 18. Select ROM Section 19. Select Section Name 20. Select type of section 21. Click on to Two sections must be added 17. Specify I/O Section 18. Click on to add section 24. Click on to finish setup section
34 25. Select Register Bank 26. Select Bank 0 27. Click on Converter 28. Click on to enable absolute module converter 29. Select hex file format type 30. Click on to finish setup project
35 31. Click on to Compile new project Hex file have been created If no error, It s complete to create new project