Renesas M-Station User Manual
Renesas M-Station User Manual

Renesas M-Station User Manual

Baseboard for 78k0 and 78k0s micro-boards
Table of Contents

Advertisement

Quick Links

To our customers,
st
On April 1
, 2010, NEC Electronics Corporation merged with Renesas Technology
Corporation, and Renesas Electronics Corporation took over all the business of both
companies. Therefore, although the old company name remains in this document, it is a valid
Renesas Electronics document. We appreciate your understanding.
Issued by: Renesas Electronics Corporation (http://www.renesas.com)
Send any inquiries to http://www.renesas.com/inquiry.
Old Company Name in Catalogs and Other Documents
Renesas Electronics website: http://www.renesas.com
st
April 1
, 2010
Renesas Electronics Corporation

Advertisement

Table of Contents
loading

Summary of Contents for Renesas M-Station

  • Page 1 On April 1 , 2010, NEC Electronics Corporation merged with Renesas Technology Corporation, and Renesas Electronics Corporation took over all the business of both companies. Therefore, although the old company name remains in this document, it is a valid Renesas Electronics document. We appreciate your understanding.
  • Page 2 Renesas Electronics. Renesas Electronics shall not be in any way liable for any damages or losses incurred by you or third parties arising from the use of any Renesas Electronics product for an application categorized as “Specific”...
  • Page 3 User’s Manual M-Station Baseboard for 78K0 and 78K0S Micro-Boards ©June 2004. NEC Electronics America, Inc. Printed in USA. All rights reserved. Document no. U17185EU1V0UM00...
  • Page 4 M-Station Baseboard...
  • Page 5: Table Of Contents

    JP4: Multiple V JP5: USB Power Current Measurement Terminal ................. 19 JP8 and JP9: Host Interface RxD_SI and TxD_SO Select ..............19 6. M-Station Software And USB Drivers ................. 20 Software Features ............................20 Software Modules ............................. 20 USB Driver ................................21...
  • Page 6 6.3.4.2 Uninstalling USB Driver for Windows 2000..............35 6.3.4.3 Uninstalling USB Driver for Windows XP..............36 7. Preparing the M-Station for Operation................38 Configuration of M-Station and Micro-Board or Target System............39 Power Supply Options, JP2 Settings......................40 Power Monitoring Options, JP1 Settings....................40 Voltage-Level Options, JP3 and JP4 Settings..............
  • Page 7 9.2.4.5 Write............................57 9.2.4.6 Verify............................57 Configure Command Button.......................... 58 Help Command Button............................ 59 Close Command Button..........................59 10. MSTTERM Program: M-Station Terminal Emulation ............ 60 Starting and Exiting the MSTTERM Program..................61 10.1 MST Terminal Window............................ 61 10.2 10.2.1 MST Terminal Menu .......................... 62 10.2.2 MSTTERM Status Bar........................
  • Page 8 M-Station Baseboard...
  • Page 9: Introduction

    • Connecting it to the user target through a 16-pin ribbon cable. In this case, the M-Station is used for debugging and flash programming and you must have an on-board NEC Electronics microcontroller and a 16-pin header mounted on the target. See Table 3 for 16- pin header signals.
  • Page 10: Features

    M-Station Baseboard 2. FEATURES • USB 2.0 high-speed host interface • Operating voltage (V ): 2V to 5V in 0.5V increments • Flash programming voltage (V ): 5.0, 6.8, 7.8, 8.8, and 10V • Application development hardware resources ⎯ Seven-segment LED connecting to selected MCU port signals ⎯...
  • Page 11: Hardware

    M-Station Baseboard 3. HARDWARE Figure 1. M-Station Baseboard Figure 2. Board Layout...
  • Page 12 M-Station Baseboard M-Station Connectors Table 1. Connector Function 100-pin interface connector to micro-board 100-pin interface connector to micro-board USB type B connector for host interface to PC 16-pin flash programming/debugging header Optional DB9 CAN transceiver connector Optional DB9 RS-232 transceiver connector...
  • Page 13: J4 16-Pin Flash Programming And Debugging Header

    M-Station Baseboard J4 16-Pin Flash Programming and Debugging Header The 16-pin interface header is designed for compatibility with most NEC Electronics flash programmers, for example, the PG-FP4-E or the FlashMASTER. For confirmation, please refer to the user’s manual for your device. Table 3 shows the signal assignments for connection.
  • Page 14: Flash Programming Connections

    The 16-pin header also can be used for in-system programming of the MCU on your target system, provided the target has a 16-pin interface header to connect to the M-Station. Figure 4 shows the arrangement for the 16-pin cable connection.
  • Page 15: Jp3 Vdd Voltage Generation

    JP1 V Target Voltage Detect Bypass When the M-Station baseboard is used for flash programming of a micro-board or target system, the signal (pin 10 on the flash programming connector) is used to sense that power is applied on the micro-board or target system.
  • Page 16: Jp4 Vpp Selection And Generation

    “VDD_FLASH” and “VDE” on the board, to connect V to V on the flash programming connector. If is supplied by the M-Station, then V will match the M-Station voltage level. If V is supplied by the micro-board or target system (JP2 removed), then V matches the V supplied.
  • Page 17: Optional Main Clock Module

    Optional Main Clock Module The main clock and subclock for the MCU are mounted on the micro-board as a standard. The clock module on the M-Station is an optional feature for use when you require frequencies other than ones supplied by the micro-boards.
  • Page 18: Inter-Board Connectors

    Two 100-pin connectors connect the M-Station’s and micro-board’s CPU signals, flash programming interface signals, and control signals. Two 100-pin connectors also connect to the user breadboard area so that the CPU signals can be connected to the M-Station’s development hardware resources. 3.7.4 User Bread-boarding Area The user breadboarding area is a 0.1-inch centered pin array consisting of eight rows of 32 pins per...
  • Page 19: Rows 8 And 12

    M-Station Baseboard Row 2 is used to connect to several of the M-Station’s development hardware resources with CPU signals brought in to row 1. Row 2 Hardware Resource Allocation Table 4. Pin(s) Connected to Resource RS-232 RxD UART transceiver interface...
  • Page 20: Row 1

    The CPU signals are connected to the 100-pin P1 and P2 connectors on the micro-board and the 100- pin J1 and J2 connectors on the M-Station. From J1 and J2, the CPU signals are routed to rows in the user breadboarding area.
  • Page 21: Application Development Aid Hardware Resources

    RS-232 Transceiver The RS-232 transceiver is mounted on the M-Station as a standard feature. The optional DB9 (J6) connector has a footprint only on the M-Station. SB26 and SB27 are solder-blobs (SBs) with closely spaced pads.
  • Page 22: Can Transceiver

    Connect the CPU’s port signals to row 1 pins 9 and 10 so that I C emulation through a general- purpose CPU port can be implemented. To enable EEPROM operations up to 400 kHz, the M-Station has 2 kΩ resistors to pull up the SCL and SDA lines to V for the 24LC16B/P.
  • Page 23: Pushbutton Switches

    General-purpose switch Potentiometer A potentiometer, R51 in the upper right of the M-Station, is connected to pin 6 of row 2. Its low voltage is GND, provided when the potentiometer shaft is turned counterclockwise to its full extent. The high voltage is V , provided when the potentiometer shaft is turned clockwise to its full extent.
  • Page 24: Lcd Socket

    M-Station Baseboard LCD Socket An optional pin socket can be mounted on row 8[23:31] and row 12, where an LCD module can be inserted. The segment drive signals for the microcontroller CPU are connected to row 8[23:31] and row 12. These pins are open for the CPUs, which do not support LCD segment drive.
  • Page 25: Jumper Settings Summary

    M-Station Baseboard 5. JUMPER SETTINGS SUMMARY JP1: Micro-Board V Voltage Detect and Interface Power Leave JP1 open when the micro-board supplies V . Insert JP1 to connect V to VDD_FLASH when the micro-board does not supply V JP2 and JP3: Power Select Figure 13.
  • Page 26: Jp4: Multiple V Dd Select

    M-Station Baseboard Settings Table 1 Jumper Jumper Setting Description Default Setting No jumper VDD_SEL = 2.0V 1 to 2 VDD_SEL = 2.5V 3 to 4 VDD_SEL = 3.0V 5 to 6 VDD_SEL = 3.3V 7 to 8 VDD_SEL = 3.5V 9 to 10 VDD_SEL = 4.0V...
  • Page 27: Jp5: Usb Power Current Measurement Terminal

    M-Station Baseboard JP5: USB Power Current Measurement Terminal Reserved for NEC Electronics use only. JP8 and JP9: Host Interface RxD_SI and TxD_SO Select RXD_SI is connected to 16-pin header and 100-pin inter-board connector. It is then connected to TxD Input or serial output (SO) of microcontroller CPU on the micro-board. Likewise, the TXD_SO connects to the 16-pin header and 100-pin inter-board connector, and then to RxD or serial input (SI) of the microcontroller CPU.
  • Page 28: M-Station Software And Usb Drivers

    ⎯ Pausing of the user program to allow examination of the contents of registers, peripherals, and memory The M-Station USB driver must be installed first, following the procedure outlined in section 6.3. You can then install the OPTMST, FP4MST, and MSTTERM programs from the M-Station CD-ROM.
  • Page 29: Usb Driver

    Because of the way the Windows system keeps track of USB devices, when you install the driver, it is registered to a particular USB port. If you plug the M-Station into that port again, the driver loads automatically. If you plug the M-Station into a different USB port, then the driver is installed and registered again on that port.
  • Page 30: Usb Driver Installation For Windows 98 Or Windows Me

    Insert the M-Station CD-ROM into the drive on your computer. Go to X:\fscommand\Software\M-Station\Drivers\98-ME (where x is the letter of your drive). Connect a USB cable to the USB ports on your computer and the M-Station. When the wixard appears, click Next>.
  • Page 31 M-Station Baseboard Go to X:\fscommand\Software\M-Station\Drivers\98-ME (where X is the letter of your CD- ROM drive) and then click OK. When the wizard correctly shows the ..\98-ME directory, click Next>. Click Next> to continue.
  • Page 32 12. To verify installation, connect the M-Station to the system. 13. Click Start → Control Panel → System. 14. Select the Hardware tab and then the Device Manager tab. 15. Expand the Universal Serial Bus controllers list, verify that NEC M-Station-USB-IF-1 is shown, and then click OK.
  • Page 33: Usb Driver Installation For Windows 2000

    Insert the CD-ROM into the drive on your computer. Go to X:\fscommand\Software\M-Station\Drivers\2K-XP (where X is the letter of your drive). Connect a USB cable to the USB ports on your computer and the M-Station to begin the installation. Click Next> to start the wizard.
  • Page 34 Select the Specify a location check box and click Next>. The next dialog box may or may not show a directory. In either case, click Browse. Go to X:\fscommand\Software\M-Station\Drivers\2K-XP (where X is the letter of your CD- ROM drive), select usbmstnv1.inf, and then click Open.
  • Page 35 12. To verify driver installation, connect the M-Station to the system. 13. Click Start → Control Panel → System. 14. Select the Hardware tab and then the Device Manager tab. 15. Expand the Universal Serial Bus controllers list, verify that NEC M-Station-USB-IF-1 is shown, and then close the screen.
  • Page 36: Usb Driver Installation For Windows Xp

    Insert the CD-ROM into the drive on your computer. Go to X:\fscommand\Software\M-Station\Drivers\2K-XP (where X is the letter of your drive). Connect a USB cable to the USB ports on your computer and the M-Station to initialize the wizard. Select the Install from a list or specific location... check box and click Next>.
  • Page 37 M-Station Baseboard Select X:\fscommand\Software\M-Station\Drivers\2K-XP (where X is the letter of your CD- ROM drive) and click OK. When the wizard shows the ..\2K-XP directory, click Next>.
  • Page 38 M-Station Baseboard 10. You will see a message warning that the NEC M-Station-USB-IF has not passed Windows Logo testing. Click Continue Anyway. 11. The wizard then begins to install the software. 12. When you see the Completing the Found New Hardware Wizard message, click Finish.
  • Page 39 16. Click Start → Control Panel → System. 17. Select the Hardware tab and then the Device Manager tab. 18. Expand the Universal Serial Bus controllers list. 19. If the list shows the NEC M-Station-USB-IF-1 file, installation is complete and the driver is ready for use...
  • Page 40: Windows Xp Warning Message For Non-High-Speed Ports

    6.3.3.1 Windows XP Warning Message For Non-High-Speed Ports After installation, if you attach the M-Station to a host USB port incapable of supporting USB 2.0 high- speed operation, you may receive the following warning message. Because the M-Station operates properly in either a high- or non-high-speed port, you may disregard...
  • Page 41: Re-Install Windows Xp Driver At High Speed From Non-High Speed

    M-Station Baseboard 6.3.3.2 Re-install Windows XP Driver at High Speed From Non-High Speed If you install the driver on a non-high-speed port, and later attach the M-Station to a high-speed port, you will need to perform another installation. Initialize the wizard.
  • Page 42: Uninstalling The Usb Driver

    M-Station Baseboard Click Finish to complete the installation. If you then plug the M-Station into a high-speed port, you may briefly see the warning messages again, but they should disappear quickly after the M-Station initializes. Please disregard them. Uninstalling the USB 6.3.4...
  • Page 43: Uninstalling Usb Driver For Windows 2000

    6.3.4.2 Uninstalling USB Driver for Windows 2000 You must have administrator privileges to uninstall the driver. Connect the M-Station to your computer. Click Start → Settings → Control Panel → System. Select the Device Manager tab. Expand the Universal Serial Bus controllers list.
  • Page 44: Uninstalling Usb Driver For Windows Xp

    13. Open the file with a text editor such as Notepad and make sure the file starts with this text: ; Installation inf for the NEC USB to M-Station Interface 14. Delete this file, rename it, or move it to a different directory if you wish to save it.
  • Page 45 13. Open the file with a text editor such as Notepad and make sure it starts with this text: ; Installation inf for the NEC USB to M-Station Interface 14. Delete the file, rename it, or move it to a different directory if you wish to save it.
  • Page 46: Preparing The M-Station For Operation

    Connect the M-Station to the micro-board without power supplied. (Note: if battery power on the M-Station is to be used, JP2 should be out at this point.) Connect the M-Station to the computer using a standard USB cable. Wait for the USB LED to be on steadily.
  • Page 47: Configuration Of M-Station And Micro-Board Or Target System

    M-Station Baseboard Configuration of M-Station and Micro-Board or Target System The M-Station baseboard can be connected to micro-boards or target systems in one of two ways. • For micro-boards such as the M-78F0138, connect the micro-board directly to the underside of the M-Station baseboard using the two 100-pin connectors mounted on each board.
  • Page 48: Power Supply Options, Jp2 Settings

    Power Supply Options, JP2 Settings Having the M-Station supply power to the micro-board or target system is the normal method of operation. When the M-Station supplies power to the micro-board, set JP2 to select the source of the power to the micro-board.
  • Page 49: Vdd And

    CPU can result in damage to the CPU chip, micro-board, and/or target system. When you use the M-Station to flash program a CPU on a micro-board or in a target system, the M- Station drives V .
  • Page 50: Uart Communication, Jp8 And Jp9 Settings

    In this configuration, the program communicates with the USB interface on the M-Station through the USB driver and cable; the USB interface then communicates through its UART port with a compatible UART on the micro-board’s CPU.
  • Page 51: Connection Of Micro-Board Or Target System

    M-Station. If the M-Station USB driver has been properly installed, the driver will load on the PC at this point, and will download firmware to the USB interface on the M-Station for initialization. The green D1 LED, labeled “USB CONN”, just below the J3 connector, will flash on briefly once at the start of initialization.
  • Page 52: Connection Of Power

    If you are using the batteries in the battery holder to power the micro-board, connect JP2 to the “BAT” position at this time. If you are using the target system to provide power to the CPU and the M-Station V and/or V power, turn on the target power at this point.
  • Page 53: Using Optmst To Set Flash Programming Options

    8. USING OPTMST TO SET FLASH PROGRAMMING OPTIONS When the M-Station is used to flash program an NEC Electronics 78K0 or 78K0S microcontroller, the details of the algorithms used to program the device are contained in a parameter file, with the extension .PRC, which is read in by the FP4MST program.
  • Page 54 M-Station Baseboard To run the OPTMST program, click Start → Run → file name to display the OPTMST Flash Configuration dialog box. The main sections of the OPTMST window and the associated settings are explained in the sections following. Please refer to the user’s manual for your micro-board to learn about jumper settings and appropriate...
  • Page 55: Flash Clock Settings: Source And Frequency

    In the Flash Clock Source box, there are two option buttons that enable you to select whether the source of the main clock for the device being programmed is Host (driven by M-Station baseboard) or Target (supplied by the micro-board or target system).
  • Page 56: Port Box

    M-Station Baseboard 8.2.1 Port Box The Port box contains eight programming channels: four SIO channels and four UART channels. The channels available for a particular flash MCU may be limited to only one of the eight, or to a subset of the total possible.
  • Page 57: Voltage Settings

    After selecting the appropriate voltage levels for a device by setting JP3 and JP4 on the M-Station, set the JP3 Setting and JP4 Setting boxes to reflect the jumper connection used. When you select a...
  • Page 58: Additional Write Time Per Word

    M-Station Baseboard In such cases, entering an amount of milliseconds in the Additional Power On Time box results in an additional delay after V power is turned on before flash programming begins. For the EV0338, an additional power-on time of 200 ms is recommended to allow the power-on reset to settle.
  • Page 59: Ok, Cancel, Help Command Buttons

    OPTMST program. 9. FP4MST PROGRAM: M-STATION FLASH PROGRAMMING The FP4MST (Flash Programming For M-Station) application allows the M-Station to be used to flash program NEC Electronics 78K0 and 78K0S flash-programmable MCUs on micro-boards or target systems. Refer to section 3 for information about configuring the M-Station and micro-board for flash programming, and to section 8 about using OPTMST to set flash-programming options.
  • Page 60: Comparison Of .Prc Settings To M-Station V

    You may also correct the configuration by clicking Yes in response to the error messages. The FP4MST program cannot check the actual settings of JP3 and JP4 on the M-Station to verify voltages. It can only check the settings in the flash-programming options set by OPTMST. It checks...
  • Page 61: Fp4Mst Flash Programming

    M-Station Baseboard The FP4MST program then checks the silicon signature in the device to verify that it matches the signature specified in the .PRC file. If the signatures match, then the program continues. FP4MST Flash Programming The FP4MST Flash Programming box is the command window for flash programming.
  • Page 62: Device Selected And Change Device Type

    M-Station Baseboard Use the navigation buttons to browse to the directory where the file you wish to program is located. Select the file, verify that it appears in the File name text box, and click Open to open the file and return to the command window.
  • Page 63: Flash Programming Command Buttons

    M-Station Baseboard 9.2.4 Flash Programming Command Buttons There are six flash-programming command buttons: • Program Sequence that executes erase, program, and verify commands in sequence • Ssig Chk that checks and shows the device’s silicon signature • Blank Chk that checks whether the device is Blank (erased) or Not Blank (programmed) •...
  • Page 64: Ssig Chk

    M-Station Baseboard 9.2.4.2 SSig Chk Clicking the Ssig Chk command button initializes the device, reads its silicon signature, and then displays that information in the Device box. 9.2.4.3 Blank Chk Clicking the Blank Chk command button executes a blank check operation on the flash device, after first initializing and checking the silicon signature.
  • Page 65: Write

    M-Station Baseboard 9.2.4.5 Write Clicking the Write command button programs the selected object file into the flash device. If you use the Write command button instead of Program Sequence, you should use Blank Chk to insure that the device is erased, and Erase if necessary before writing. Writing of a non-blank device may result in incorrect data in the flash memory and a non-functional device.
  • Page 66: Configure Command Button

    M-Station Baseboard The memory image is sent to the flash device, and the Status window reports the progress of the operation by displaying the current number of block sent and the total number of blocks. For a 78K0 device, a block is 256 bytes; for a 78K0S device, a block is 128 bytes.
  • Page 67: Help Command Button

    M-Station Baseboard When you click OK to close the FP4MST Flash Configuration box, the flash device is initialized and its silicon signature read. If you change parameters that cause initialization to fail, such as changing the communication port without changing necessary jumpers, you will receive a message and have the opportunity to revise the configuration.
  • Page 68: Mstterm Program: M-Station Terminal Emulation

    The MSTTERM program uses the USB interface on the computer and M-Station to communicate with a 78K0 or 78K0S MCU on a micro-board or in a target system. The USB interface on the M-Station provides a UART device that can be connected to the 78K0 or 78K0S MCU for flash-programming operations through a UART port.
  • Page 69: Starting And Exiting The Mstterm Program

    M-Station Baseboard 10.1 Starting and Exiting the MSTTERM Program Before using the MSTTERM program, make sure that JP8 and JP9 on the M-Station are set for UART communication: TXDSO-UTXD on JP8 and RXDSI-URXD on JP9. Click the MSTTERM program shortcut in the Start menu to initialize the program and open the MST Terminal window, which displays any characters received by the M-Station USB interface.
  • Page 70: Mst Terminal Menu

    CTRL+O File → Save (.MST file) CTRL+S Edit → Paste CTRL+V All other typed keys, including control characters, are sent to the M-Station. If you want to send a shortcut character to the M-Station, click Transfer → Send binary key.
  • Page 71: Mstterm Status Bar

    M-Station Baseboard 10.2.2 MSTTERM Status Bar The status bar at the bottom of the MST Terminal window shows the status of the MSTTERM program, displaying “Capturing” when the capture to a text file is active or “Capture paused” when the capture is active but paused.
  • Page 72: Properties Box

    The Bits per second box shows the currently selected baud rate. Clicking the Bits per second arrow enables to you select a different rate for the UART on the M-Station USB interface. All transmitted characters after this are sent at the new baud rate, and any received characters are received at the new baud rate.
  • Page 73: Edit Menu

    M-Station Baseboard • Selecting the Filter Receive – 7-bit check box masks received characters to 7 bits. If the character is a non-printing ASCII character after masking (except for CR or LF handled above), it is displayed as “#”. If you clear the check box, all received characters are displayed on the screen as is, except for CR and LF characters.
  • Page 74: Transfer Menu

    M-Station Baseboard 10.6 Transfer Menu The Transfer menu contains the Capture Text…, Send Text File…, and Send binary key commands. 10.6.1 Capturing MSTTERM Interactions to a Text File The Capture Text… submenu contains the Select File, Pause, Resume, and Stop Capture commands.
  • Page 75: Sending Text File

    Clicking Transfer → Send Text File… opens a dialog box where you can select a .TXT file and click Open to transmit the contents of the file to the micro-board through the M-Station USB Interface. Clicking Cancel closes the dialog without sending the file. Characters in the text file are sent as if typed on the keyboard.
  • Page 76: Error Messages And Possible Causes

    No USB connection. If you attempt to start the FP4MST program without connecting the M-Station to the computer through a USB cable, you receive the following error message. Click OK. Check your hardware connections and then click Yes in response to the following: •...
  • Page 77 OPTMST, and that the proper .PRC file is being selected. • No power to M-Station. If the M-Station is connected to the PC, but there is no power on the VDE signal (detecting power on the micro-board or target), the following message will be...
  • Page 78 M-Station Baseboard • Device name in signature and .PRC file do not match. If the M-Station can initialize the flash device, and read the signature, and the signature matches the .PRC file except for the device name, the following message is shown: In this case, you may have selected a .PRC file for a device that is closely related to the one...
  • Page 79: Possible Mstterm Error Messages And Causes

    Various conditions can prevent the MSTTERM program from starting normally or functioning as expected. • No USB connection: If you attempt to start the MSTTERM program without connecting the M-Station to the computer through a USB cable, you receive the following error message. followed by: Click OK to close the MSTTERM program.
  • Page 80 M-Station Baseboard • No power to M-Station: If the M-Station is connected to the computer, but there is no power on the V signal to the micro-board, or on the V signal powering the interface logic, no characters are received or sent. Check that the M-Station and the micro-board have power, and that JP1 and JP2 are set appropriately for the micro-board.
  • Page 81 M-Station Baseboard...
  • Page 82 M-Station Baseboard These commodities, technology or software, must be exported from the U.S. in accordance with the export administration regulations. Diversion contrary to U.S. law prohibited. The information in this document is current as of June 2004. The information is subject to change without notice. For actual design-in, refer to the latest publications of NEC Electronics data sheets or data books, etc., for the most up-to-date...

Table of Contents