Fujitsu F2MC-16L Series User Manual
Hide thumbs Also See for F2MC-16L Series:
Table of Contents

Advertisement

Quick Links

²
F
MC-16L Series
MB90675 Series Evaluation Board
USER MANUAL
Printed:
12. August 1996

Advertisement

Table of Contents
loading

Summary of Contents for Fujitsu F2MC-16L Series

  • Page 1 ² MC-16L Series MB90675 Series Evaluation Board USER MANUAL Printed: 12. August 1996...
  • Page 2 Fujitsu Mikroelektronik GmbH reserve the right to change products or specifications without notice. No part of this publication may be copied or reproduced in any form or by any means, or transferred to any third party without the prior written consent of Fujitsu. © FUJITSU Mikroelektronik GmbH 1996...
  • Page 3 Use the Evaluation Board at your own risk. Read the document, follow instructions, and make backups. Fujitsu can not guarantee that the board and code will work with every possible combination of hardware and software. While we have done our best to produce well-written, bug-free code, oversights and omissions can occur.
  • Page 4: Table Of Contents

    FUJITSU MB90675-Evaluation Board - User Manual 1. Introduction ......................6 2. EVAKIT Hardware ..................... 7 2.1. Installation....................... 7 2.2. Technical Characteristics ................. 9 2.3. Evaluation Board Resources................9 2.4. Evaluation Board Controls ................11 3. Monitor Operation..................... 16 3.1. General Operation ..................16 3.1.1.
  • Page 5 FUJITSU MB90675-Evaluation Board - User Manual 3.5.19. CHECK StartAddr EndAddr Count........... 33 3.5.20. CONVERT Value ................33 3.5.21. SAVE StartAddr EndAddr [ProgStartAddr]........34 3.6. Debug Commands ..................35 3.6.1. BREAK [BNumber BAddr [OccCount] ['S'] ['W' wAddr wCnt]] ..35 3.6.2.
  • Page 6: Introduction

    AAAA AAAA The MB90675 Evaluation Board and the associated software makes it easy to evaluate and ² demonstrate almost all features of Fujitsu's F MC-16L microcontroller series. ² Along with the Fujitsu F MC-16L software tools, it can also be used as a low cost development system for user software design.
  • Page 7: Evakit Hardware

    FUJITSU MB90675-Evaluation Board - User Manual AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA...
  • Page 8 FUJITSU MB90675-Evaluation Board - User Manual © © If a terminal program provided by Fujitsu (the ProMan Vers. 3.5 terminal window or the stand alone mini terminal program "mt.com") is used, the problem should disappear as soon as the software is started.
  • Page 9: Technical Characteristics

    The following generic test procedures were applied: - EN 50081 Part 2 - EN 50082 Part 2 It was tested in a typical setup using the MB2141A from Fujitsu Mikroelektronik GmbH. Thus, it is suitable for industrial environment. 2.3. Evaluation Board Resources The Evaluation Board was designed in order to leave as many microcontroller resources available for user evaluation and applications as possible.
  • Page 10 FUJITSU MB90675-Evaluation Board - User Manual The board has various modes to use the on-board RAM in different configurations. On User Reset the memory mapping is changed to User Mode. So, the user RAM that holds the application program can be executed in that case. On Monitor Reset the board is initialised to its defaults, after that it switched to User Mode mapping.
  • Page 11: Evaluation Board Controls

    FUJITSU MB90675-Evaluation Board - User Manual 2.4. Evaluation Board Controls Memory mapping is introduced in this concept as a means of allowing the user to run his own application as it would be in the final target system, in the final memory area. This is the so- called User 0 Mode, which is the default operating mode for all users.
  • Page 12 FUJITSU MB90675-Evaluation Board - User Manual Absolute Page 0' (MB90678) Address Area Monitor User0 User1a User1b AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA...
  • Page 13 FUJITSU MB90675-Evaluation Board - User Manual Mode Switches /HST-pull up "1" internal MD1-pin: or "0" external ROM user mode preset: user mode or 0 after user reset user sub mode: sub mode or a if user mode 1 default setting Fig.
  • Page 14 FUJITSU MB90675-Evaluation Board - User Manual The two LED Display Registers (7000Ch and 7000Dh) are two write-only register for controlling the LED Displays. The high byte controls the left LED Display and the low byte the right one. The different bits are assigned to the LED-segments as follows:...
  • Page 15 FUJITSU MB90675-Evaluation Board - User Manual NOTE: On power-on reset the monitor writes a default vector table into the user interrupt vector area (1 KB from FFC000..FFFFFF ⇔ shadow RAM FBC000..FBFFFF). The Forced Monitor Reset is intended for the case that the Monitor Reset button does not start the monitor.
  • Page 16: Monitor Operation

    © © The monitor can be operated via a PC terminal, like the terminal window of ProMan (Fujitsu's Programming Manager), the included mini terminal "MT.com" or any other terminal program. The default communication parameters are 9600 baud, 8 bit, no parity, 2 stop bits. If possible, ANSI terminal emulation should be activated.
  • Page 17: Number Formats

    FUJITSU MB90675-Evaluation Board - User Manual 3.1.2. Number Formats Most commands need parameters which are usually numbers. The monitor uses the following convention regarding the representation or base: By default, all numeric inputs are regarded as HEXADECIMAL numbers • Characters '0..9' and 'A..F' or 'a..f'.
  • Page 18: Monitor Commands

    FUJITSU MB90675-Evaluation Board - User Manual 3.2. Monitor Commands The Monitor Commands are grouped into different classes. The figure below gives an overview: Monitor Commands Environment HEXADECIMAL BAUD EMULATION DECIMAL PORT VERIFY UPORT COLORSET UPDATE UBREAK STATUS HEXFORMAT IOREAD HELP...
  • Page 19: Environment Commands

    FUJITSU MB90675-Evaluation Board - User Manual 3.3. Environment Commands 3.3.1. HELP, H, ? [Command] Print Help Text The HELP command prints a short overview of the most important monitor commands. Shortcuts for this are H and ?. If a command is named, specific help is displayed.
  • Page 20: Hexformat [Intel | Motorola]

    FUJITSU MB90675-Evaluation Board - User Manual UPDATE controls the highlighting of the changed CPU register (see commands REGISTER, EMULATION). If ALWAYS is selected the colouring is cleared after every display request. If CHANGE is selected it keeps on colouring the last changes until the next modifying has been done.
  • Page 21: Port [Intern | Extern]

    FUJITSU MB90675-Evaluation Board - User Manual 3.3.7. PORT [INTERN | EXTERN] Link Monitor I/Os to a RS232 port Selects the internal UART (UART 0 of the microcontroller) or external UART (on-board chip device) for monitor communication. All monitor I/Os are done via this port. After changing the connector must be plugged in the appropriate interface.
  • Page 22: Ioread [On | Off]

    FUJITSU MB90675-Evaluation Board - User Manual 3.3.10. IOREAD [ON | OFF] Enable/Disable I/O addressing When the TRACE command is executed some addresses and values are displayed next to the disassembled instructions. This can be completely disabled for I/O-instructions (transfer, bit, e.g.
  • Page 23: Status

    FUJITSU MB90675-Evaluation Board - User Manual 3.3.14. STATUS Display Information The STATUS command can be used to display information on the monitor status. For example whether the monitor is in HEX or DEC input mode. © FUJITSU Mikroelektronik GmbH 1996...
  • Page 24: Program Execution Commands

    FUJITSU MB90675-Evaluation Board - User Manual 3.4. Program Execution Commands 3.4.1. TRACE [ NSTR Trace Instruction The TRACE command can be used to single step an User program, beginning at the PCB:PC register address. 'nInstr' specifies the number of instructions which shall be executed automatically.
  • Page 25 FUJITSU MB90675-Evaluation Board - User Manual Instruction SPACE Group RETURN (Over) (oVer) (oveR) (Branch) (Next) eXit trace trace over CALL common abort JMP/JCTX trace abort RET/RETI trace both branch and trace only trace over branch branch no branch branch branch...
  • Page 26: Step [Over] [Ninstr]

    FUJITSU MB90675-Evaluation Board - User Manual See also INITUSER command. 3.4.2. STEP [OVER] [ NSTR Trace without displaying information This is the hidden version of TRACE (see TRACE). There are no outputs at all, unless a breakpoint is reached. The parameter OVER avoids to jump in subroutines by CALL or INT.
  • Page 27: M]Reset [Poweron]

    FUJITSU MB90675-Evaluation Board - User Manual 3.4.5. [M]RESET [POWERON] Monitor Reset This command is equivalent to pressing the Monitor Reset button. The parameter "poweron" causes the monitor to proceed the Power On start-up. The monitor is completely re-initialised. However, this effects only the monitor program. This does not cause a Power On for the microcontroller device.
  • Page 28: Dstack [Nword] [L]

    FUJITSU MB90675-Evaluation Board - User Manual DWORD [ S 3.5.2. TART Dump memory area in word format The Dump Words command dumps memory contents in 16 bit word format. (See also "DUMP" command). 3.5.3. DLONG [ S TART Dump memory area in long format The Dump Long Words command dumps memory contents in 32 bit word format.
  • Page 29 FUJITSU MB90675-Evaluation Board - User Manual EDIT [ B 3.5.7. Edit byte data in memory The Edit command allows the modification of single memory locations, beginning at the specified ByteAddress. (If not specified, the previously specified address is used.) The monitor will display the actual address and the contents.
  • Page 30: Inituser

    FUJITSU MB90675-Evaluation Board - User Manual REGISTER [ R 3.5.11. ALUE Show Registers, Change Register Contents The register command, without parameters displays the CPU register contents (AH, AL, SP, IP, FP, the current register bank RW0..7, ILM, RP, CCR, ADB, DTB, DPR, USB, USP, SSB,...
  • Page 31: Show Option [Value1 [Value2]]

    FUJITSU MB90675-Evaluation Board - User Manual SHOW O 1 [ V 2 ]] 3.5.13. PTION ALUE ALUE Show data This command displays various types of data or tables. If a data type is requested the necessary bytes are converted and displayed.
  • Page 32: Fill Startaddr Endaddr Data

    FUJITSU MB90675-Evaluation Board - User Manual FILL S 3.5.15. TART Fill Memory area. The Fill command fills a specified memory area with the specified data value. >fill fa0000 faffff 0↵ ... Clears RAM bank 2. SEARCH [ S ] [[ D1 [[ D2 ] ...[ D8 ]]] | " A 3.5.16.
  • Page 33: Check Startaddr Endaddr Count

    FUJITSU MB90675-Evaluation Board - User Manual CHECK S 3.5.19. TART OUNT Examine memory area Checks the memory area specified by StartAddr and EndAddr. The write and read back test is proceeded Count times. >check 84000 8ffff 4↵ NOTE: The memory area is completely overwritten after this operation. Do not check areas containing valid data.
  • Page 34: Debug Commands

    FUJITSU MB90675-Evaluation Board - User Manual 3.6. Debug Commands 3.6.1. BREAK [ BN ] [' S '] [' W ' UMBER OUNT DDR W Set Breakpoint/Snapshot/Watch-area If no parameters are specified, the Breakpoint command will display the current breakpoint list.
  • Page 35: Bclear [Bnumber]

    FUJITSU MB90675-Evaluation Board - User Manual 3.6.2. BCLEAR [BN UMBER Clear Breakpoint If no BreakpointNumber is specified, this command will clear all breakpoints otherwise the break point with BNumber is cleared. >bclear↵ >bclear 1↵ 3.6.3. BDISABLE [ BN UMBER Disable Breakpoint If no BreakpointNumber is specified, this command will disable all breakpoints.
  • Page 36: Sactivate

    FUJITSU MB90675-Evaluation Board - User Manual 3.6.6. SACTIVATE Activate Symbols In the case where the symbol table has not been activated during program download, the SACTIVATE command can be used to scan the memory for a symbol table and initialise the symbol management.
  • Page 37: Program Download

    FUJITSU MB90675-Evaluation Board - User Manual 3.7. Program Download Programs developed on the PC and symbol information can be downloaded onto the evaluation board using software tools found on the associated CD-ROM. One download function is enclosed in ProMan within the "Monitor" menu.
  • Page 38: Monitor Bios Interface

    FUJITSU MB90675-Evaluation Board - User Manual AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA...
  • Page 39: I/O Function Calls (Asm/C)

    FUJITSU MB90675-Evaluation Board - User Manual 4.1. I/O Function Calls (ASM/C) 4.1.1. I/O Function Calls Parameter Passing The most commonly used function vectors are those for ´I/O Function Calls´. Specifying a function code byte and additional parameters will execute a specific I/O function.
  • Page 40: I/O Function Calls Detailed Description

    FUJITSU MB90675-Evaluation Board - User Manual The following table lists the functions provided via I/O Function Calls: Function 1st Param. 2nd Param. FCode. Return Value Poll Character Received* 1:Rec, 0:No Send Char on RS232* Output Char char sent Receive Char on RS232*...
  • Page 41: 02] Receive Character On Rs232

    FUJITSU MB90675-Evaluation Board - User Manual 4.1.2.3. [02] Receive Character on RS232 This function will poll the RS232 receive line until a character is detected and finally return the received character. 4.1.2.4. [03] Print a String This function will transmit a complete string of character via RS232, to allow message outputs on the computer terminal.
  • Page 42: 09] Wait For N Milliseconds

    FUJITSU MB90675-Evaluation Board - User Manual 4.1.2.10. [09] Wait for n Milliseconds This function waits for the specified number of milliseconds (+5 %). It does not use any interrupt or any timer. The timing is realised using special instructions with known sum of cycles.
  • Page 43 FUJITSU MB90675-Evaluation Board - User Manual NOTE: Make sure the monitor was initialised (Power On Reset, Monitor Reset) before this entry is called the first time! The Monitor Shell is NOT a second shell. On this BIOS call the original shell is reactivated. It uses neither the stacks of user program nor initialises it a second monitor environment.
  • Page 44: How To Get Started, Example Sessions

    FUJITSU MB90675-Evaluation Board - User Manual AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA...
  • Page 45: First Approach

    FUJITSU MB90675-Evaluation Board - User Manual 5.1. First Approach Initialisation Routine, Link file and INIT16L. EX.C example C-module are provided compile c907a.exe assembler EX.ASM file assemble assemble asm907a.exe asm907a.exe INIT16L. EX.LST BUILD.BAT INIT16L. Object file EX.OBJ proceeds all the single...
  • Page 46 FUJITSU MB90675-Evaluation Board - User Manual In the example directories there are some batch files. These files expect the environment variable MB675 to be set. The instruction SET MB675=C:\FUJITSU\EVABOARD must be included in the AUTOEXEC.BAT. This is the path to the program directory (compiler, assembler ...).
  • Page 47: Lowest Level Example

    FUJITSU MB90675-Evaluation Board - User Manual 5.2. Lowest Level Example As a further step the Evaluation Board should be used without downloading anything to become familiar with some commands. A simple ">" refers to Evaluation Board monitor commands and "C:\>" refers to DOS commands. The Evaluation Board should be prepared (power, RS232 connector).
  • Page 48 FUJITSU MB90675-Evaluation Board - User Manual 0000 0000 F80000 FE0100 F80000 0000 0000 0000 0000 0000 0000 0000 0000 ILM RP 00 -S----- 00 0000 F8 0000 FE 0100 FE0100 The GO starts the program. If it reaches address F80100h it is interrupted and curent register set is shown.
  • Page 49: Examples Using Proman

    FUJITSU MB90675-Evaluation Board - User Manual <<User Break>> 0000 0000 F80000 FE0094 F80000 0000 0000 0000 0000 0000 0000 0000 0000 ILM RP 00 IS----- 00 0000 F8 0000 FE 0094 FE0094 To start a program by reset a vector must be placed: >BENABLE...
  • Page 50: Evaluation Board Hardware

    FUJITSU MB90675-Evaluation Board - User Manual AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA...
  • Page 51: Pin Assignment Of The Board

    FUJITSU MB90675-Evaluation Board - User Manual 6.2. Pin Assignment of the Board JP41 JP42 JP18 JP14 VCC 1 /HAK 3 /WRL CLK 5 /WRH /EXP TX0 7 /CS2 /CS1 RX1 9 /CS0 10 TX1 10 /CTRL ext. Reset 5V/3V P45 11...
  • Page 52 FUJITSU MB90675-Evaluation Board - User Manual Ports P0, P1, P2 and P20..33 of the MB90675 microcontroller are used as an external microprocessor bus, connecting the Monitor EPROMs U10, U11 and the User RAMs U22, U23, Address latches U2, U3 are used to de-multiplex the combined address/data bus.
  • Page 53: Appendix

    FUJITSU MB90675-Evaluation Board - User Manual AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA...
  • Page 54 FUJITSU MB90675-Evaluation Board - User Manual © FUJITSU Mikroelektronik GmbH 1996 - 54 -...
  • Page 55: Appendix B: Example Program Listings

    FUJITSU MB90675-Evaluation Board - User Manual 7.2. Appendix B: Example Program Listings 7.2.1. Example 1 First Example for Monitor Test #define MAXLED 20 #include "global.h" #include "tinybios.h" /* some global variables to work with symbols */ BYTE LEDtext[MAXLED] = {0, 0x76,0x79,0x38,0x38,0x3f,0x0,0x71,0x3e,0x1e,0x6, 0x78,0x6d,0x3e,0,0,0,0,0,0};...
  • Page 56: Example 2

    FUJITSU MB90675-Evaluation Board - User Manual 7.2.2. Example 2 Example for searching bad addresses #include "global.h" #include "tinybios.h" #include <ctype.h> #include <samples\mb906fm.h> #undef EXTERN #define EXTERN #include <samples\ic.h> #include <samples\tb.h> #include <samples\low.h> #undef EXTERN #define EXTERN extern #define TBMAX /* number of timebase timer...
  • Page 57 FUJITSU MB90675-Evaluation Board - User Manual default: if (isdigit(ch)) { ch = ch-'0'; ctr &= 0xf; ctr |= ch << 4; } else if (isxdigit(ch)) { = (ch&0xdf) -'A'+0xA; ctr &= 0xf; ctr |= ch << 4; } else bios_put(7);...
  • Page 58 FUJITSU MB90675-Evaluation Board - User Manual eflg = 0; /* no error yet */ do { *addr.fptr = ctr; /* write */ if (*addr.fptr != (BYTE)ctr) {/* re-read */ if (!eflg) { tmp = ++errctr; while (tmp & 0xFF00) tmp >>= 4;...
  • Page 59: Appendix C: Program Download Protocol

    FUJITSU MB90675-Evaluation Board - User Manual 7.3. Appendix C: Program Download Protocol Download code files can be generated by converting the "*.ABS" file to "*.CNV" using: C:\>lmc907a.exe.exampl.abs". A file containing so called "S-record" or "HEX-records" should be written. The evaluation board provides two different protocols in two formats for program download.
  • Page 60: Appendix D: Monitor Software Notes, Restrictions And Recommendation

    FUJITSU MB90675-Evaluation Board - User Manual 7.4. Appendix D: Monitor Software Notes, Restrictions and Recommendation As mentioned in chapter 2, the Monitor software resides in an EPROM memory bank in the upper address area XC0000h-XDFFFFh . Therefore, any address with upper bits (23..16) ----110- is accessing the monitor ROM.
  • Page 61 FUJITSU MB90675-Evaluation Board - User Manual Note also, that switching the microcontroller into the STOP, SLEEP or WATCH modes will disable monitor control via the terminal. After reset the user break function is always disabled. When the monitor is active, it always configures the clock control for max. speed. The user program speed is saved and restored when control is given to the user program.
  • Page 62: Index

    FUJITSU MB90675-Evaluation Board - User Manual AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA...
  • Page 63 FUJITSU MB90675-Evaluation Board - User Manual ProMan, 16 Symbol Table, 36 SYMBOLS, 36 RESET, 27 reset vector, 28 TargetAddress, 33 Technical Characteristics, 9 SACTIVATE, 36 TRACE, 24 SCLEAR, 37 trace instruction, 24 SEARCH, 32 set break point, 35 UBREAK, 21 SHOW, 31;...

This manual is also suitable for:

Mb90675 series

Table of Contents