Renesas V850ES/Jx3-U-Plug it! User Manual
Renesas V850ES/Jx3-U-Plug it! User Manual

Renesas V850ES/Jx3-U-Plug it! User Manual

Demonstration kit for the 32-bit risc microcontroller
Table of Contents

Advertisement

Quick Links

V850ES/Jx3-U - Plug it!
32
Demonstration Kit for the V850ES/Jx3-U
32-bit RISC microcontroller
All information contained in these materials, including products and product specifications,
represents information on the product at the time of publication and is subject to change by
Renesas Electronics Corp. without notice. Please review the latest information published by
Renesas Electronics Corp. through various means, including the Renesas Technology Corp.
website (http://www.renesas.com).
www.renesas.com
R20UT0582ED0100, Rev. 2.00
March 16, 2011

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the V850ES/Jx3-U-Plug it! and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Summary of Contents for Renesas V850ES/Jx3-U-Plug it!

  • Page 1 All information contained in these materials, including products and product specifications, represents information on the product at the time of publication and is subject to change by Renesas Electronics Corp. without notice. Please review the latest information published by Renesas Electronics Corp. through various means, including the Renesas Technology Corp.
  • 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” or for which the product is not intended where you have failed to obtain the prior written consent of Renesas Electronics.
  • Page 3 Renesas Electronics product, such as safety design for hardware and software including but not limited to redundancy, fire control and malfunction prevention, appropriate treatment for aging degradation or any other appropriate measures.
  • Page 4: General Precautions In The Handling Of Mpu/Mcu Products

    General Precautions in the Handling of MPU/MCU Products The following usage notes are applicable to all MPU/MCU products from Renesas. For detailed usage notes on the products covered by this manual, refer to the relevant sections of the manual. If the descriptions under General Precautions in the Handling of MPU/MCU Products and in the body of the manual differ from each other, the description in the body of the manual takes precedence.
  • Page 5: Regional Information

    Some information contained in this document may vary from country to country. Before using any Renesas Electronics product in your application, please contact the Renesas Electronics office in your country to obtain a list of authorized representatives and distributors. They will verify: •...
  • Page 6: Table Of Contents

    Table of Contents List of Figures 9 List of Tables Chapter 1 Introduction ................ 12 Main features of V850ES/Jx3-U - Plug it! .............12 System requirements ..................13 Package contents ..................13 Trademarks ....................13 Chapter 2 V850ES/Jx3-U - Plug it! system configuration....14 V850ES/Jx3-U - Plug it! .................14 Host computer ....................14 Power supply via USB interface..............14...
  • Page 7 On board peripherals ..................22 3.2.1 SRAM 22 3.2.2 Ethernet ..........................22 3.2.3 IrDA infrared communication ..................22 3.2.4 Audio input........................22 3.2.5 Audio output ........................23 3.2.6 RS-232C ..........................23 3.2.7 External bus interface .....................24 3.2.8 External connector ......................25 Layout of solder-short pads .................26 Chapter 4 On-Chip debugging ............
  • Page 8 Chapter 11 Sample programs ............... 48 11.1 General Introduction..................48 11.2 “Jx3U_PLUGIT_DEMO” sample program ..........49 11.2.1 How to run the sample program ................49 11.3 “Jx3U_PLUGIT_COM” Serial Conversion sample program ....50 11.3.1 Development Environment..................51 11.3.2 System Structure......................51 11.3.3 How to run the sample program ................52 11.3.4 Communication Device Class (CDC).................54 11.3.5...
  • Page 9: List Of Figures

    V850ES/Jx3-U - Plug it! List of Figures Figure 1: V850ES/Jx3-U - Plug it! system configuration ................14 Figure 2: V850ES/Jx3-U - Plug it! Connector Layout..................15 Figure 3: V850ES/Jx3-U - Plug it! Function Layout..................16 Figure 4: Seven-segment-LED U20 ......................20 Figure 5: USB1, USB Mini-B Type Host Connector Pin Configuration ............21 Figure 6: Address mapping of On-board peripherals ..................24 Figure 7: Solder-short pad opened shape....................26 Figure 8: Solder-short pad shortened shape....................26...
  • Page 10 V850ES/Jx3-U - Plug it! Figure 57: V850ES/Jx3-U - Plug it! schematics 2/13 ..................76 Figure 58: V850ES/Jx3-U - Plug it! schematics 3/13 ..................77 Figure 59: V850ES/Jx3-U - Plug it! schematics 4/13 ..................78 Figure 60: V850ES/Jx3-U - Plug it! schematics 5/13 ..................79 Figure 61: V850ES/Jx3-U - Plug it! schematics 6/13 ..................80 Figure 62: V850ES/Jx3-U - Plug it! schematics 7/13 ..................81 Figure 63: V850ES/Jx3-U - Plug it! schematics 8/13 ..................82...
  • Page 11: List Of Tables

    V850ES/Jx3-U - Plug it! List of Tables Table 1: Mode setting, switch SW1 ......................17 Table 2: Power supply selector, JP2 ......................18 Table 3: CN9 connector..........................19 Table 4: Display Examples ..........................20 Table 5: Pin Configuration of Connector USB1...................21 Table 6: Pin assignment of external connector CN1 ...................25 Table 7: Solder-short pad connection ......................26 Table 8: OCD via MINICUBE2 On-Board debug function................28 Table 9: OCD via QB-V850MINI emulator ....................29...
  • Page 12: Chapter 1 Introduction

    Chapter 1 Introduction V850ES/Jx3-U - Plug it! is an USB-demonstration kit for the Renesas V850 32-bit microcontroller family. It allows the development of an USB system based on the V850ES uPD70F3769 device. It supports onboard debugging and real time execution of application programs.
  • Page 13: System Requirements

    V850ES/Jx3-U - Plug it!. Note: Updates of the IAR Embedded Workbench for V850 documentation and/or utilities for V850ES/Jx3-U - Plug it!, available, may be downloaded from the Renesas WEB page(s) at http://www2.renesas.eu/updates Trademarks IAR Embedded Workbench, visualSTATE, IAR MakeApp and C-SPY are registered trademarks of IAR Systems AB.
  • Page 14: Chapter 2 V850Es/Jx3-U - Plug It! System Configuration

    USB device in the same way as it would access a standard RS232 interface. The Renesas virtual UART driver appears to the windows system as an extra Com Port, in addition to any existing hardware Com Ports.
  • Page 15: Chapter 3 V850Es/Jx3-U - Plug It! Hardware

    V850ES/Jx3-U - Plug it! Chapter 3 V850ES/Jx3-U - Plug it! hardware Hardware Components The V850ES/Jx3-U - Plug it! board is equipped with USB-connectors and with several connectors in order to be connected to host computers, FLASH programmer or any external target hardware. Figure 2: V850ES/Jx3-U - Plug it! Connector Layout R20UT0582ED0100 Rev.
  • Page 16: Figure 3: V850Es/Jx3-U - Plug It! Function Layout

    V850ES/Jx3-U - Plug it! Figure 3: V850ES/Jx3-U - Plug it! Function Layout Some of the V850ES/Jx3-U - Plug it! components are free for user application hardware and software. Please read the user’s manual of the uPD70F3769 device carefully to get information about the electrical specification of the available I/O ports before you connect any external signals to the V850ES/Jx3-U - Plug it! board.
  • Page 17: Sw1, Configuration Switch (Dip-Switch)

    V850ES/Jx3-U - Plug it! 3.1.1 SW1, Configuration Switch (DIP-Switch) The different operation modes of the V850ES/Jx3-U - Plug it! board can be set by switch SW1. The bits 1-4 of DIP switch SW1 are for the mode setting of the board, bits 5-8 are connected to the pins “P78/ANI8”, “P79/ANI9”, “P710/ANI10”...
  • Page 18: Sw2, Reset Button

    V850ES/Jx3-U - Plug it! 3.1.2 SW2, RESET button SW2 is the reset button and controls the reset input signal of the V850ES/Jx3-U - Plug it! microcontroller. 3.1.3 SW3, Switch (INTP12) SW3 is a push button connecting VSS to external interrupt input INTP12 of the microcontroller. This is equal to port ”P98/INTP12”...
  • Page 19: Cn1, Extension Connector

    Connector NWIRE1 allows connecting an N-Wire On-Chip debug emulator, e.g. MINICUBE, to the V850ES/Jx3-U - Plug it! board. Please note, the QB-V850MINI On-Chip debug emulator is a separate product from Renesas and it is not included in this starterkit package. R20UT0582ED0100 Rev.
  • Page 20: U20, Seven-Segment-Led

    V850ES/Jx3-U - Plug it! 3.1.17 U20, Seven-segment-LED The seven-segment-LED U20 is connected to the external bus interface (see chapter 3.2.7) of the uPD70F3769 and can be accessed by writing to any address in the range of 0x600000 – 0x6FFFFF. Output a zero to light the corresponding segment.
  • Page 21: Usb1, Debug Connector (Type Mini-B)

    Table 5: Pin Configuration of Connector USB1 For connection with the host machine, use a USB cable (Mini-B type). For confirmation, Renesas Electronics used only the USB cable delivered with the V850ES/Jx3-U - Plug it! board. 3.1.21 USB2, Universal serial bus connector (Host, Type A) The interface allows connecting the built-in USB host controller of the uPD70F3769 with a function device.
  • Page 22: Usb3, Universal Serial Bus Connector (Type Mini-B)

    V850ES/Jx3-U - Plug it! board by the USB3 connector. For connection with the host machine, use a USB cable (Type Mini-B). For confirmation, Renesas Electronics used only the USB cable delivered with the V850ES/Jx3-U - Plug it! board. 3.1.23 DSUB1, RS-232C interface connector The 9-Pin D-Sub connector allows serial communication following the RS-232C protocol.
  • Page 23: Audio Output

    V850ES/Jx3-U - Plug it! 3.2.5 Audio output • Possibility to output analog audio signals with the uPD70F3769 internal D/A converter • Mono line level output • 3.5mm mono/stereo mini plug output • Anti-aliasing filter Fc = 3.6 kHz • Filter structure: Three 2 order low pass filters (-36dB/oct) •...
  • Page 24: External Bus Interface

    V850ES/Jx3-U - Plug it! 3.2.7 External bus interface Some of the on-board peripherals of the V850ES/Jx3-U - Plug it! board are connected to the external address/data bus of the uPD70F3769. To access the peripherals it is necessary to write to the corresponding address in the external memory area.
  • Page 25: External Connector

    V850ES/Jx3-U - Plug it! 3.2.8 External connector The 100-Pin extension connector (FX8C-100P-SV6 by Hirose Electric Co., Ltd.) can be used to connect additional external hardware to the V850ES/Jx3-U - Plug it! board. V850ES/JH2-U pin V850ES/JH2-U pin ● PCM3/HLDRQ ● ● P00/INTP00 ●...
  • Page 26: Layout Of Solder-Short Pads

    V850ES/Jx3-U - Plug it! Layout of solder-short pads Several pins of the 70F3769 microcontroller are connected to solder short-pads. The pads can be opened by the user to add user specific functions. The signal connected to each solder-short pad is printed on the V850ES/Jx3-U - Plug it! board.
  • Page 27: Chapter 4 On-Chip Debugging

    V850ES/Jx3-U - Plug it! Chapter 4 On-Chip debugging The V850ES/Jx3-U - Plug it! board offers two possibilities to use On-Chip debugging (OCD). The MINICUBE2 On-Board debug function of V850ES/Jx3-U - Plug it! allows On-Chip debugging without a need of external debug hardware.
  • Page 28: Ocd Via Minicube2 On-Board Debug Function

    V850ES/Jx3-U - Plug it! OCD via MINICUBE2 On-Board debug function To operate the V850ES/Jx3-U - Plug it! board within the On-Board debug mode, configure switch SW1 bits 1-4 as following: SW1/bit Configuration Table 8: OCD via MINICUBE2 On-Board debug function 4.1.1 Resources used by MINICUBE2 OCD Interface Debugging via the On-board MINICUBE2 OCD Interface uses the user memory spaces to implement communication with the target device, or each debug functions.
  • Page 29: Ocd Via N-Wire Emulator

    V850ES/Jx3-U - Plug it! OCD via N-Wire emulator To operate the V850ES/Jx3-U - Plug it! board together with an N-Wire On-Chip debug emulator, e.g. QB-V850MINI, connected to NWIRE1, configure switch SW1 bits1-4 as following: SW1/bit Configuration Table 9: OCD via QB-V850MINI emulator R20UT0582ED0100 Rev.
  • Page 30: Chapter 5 V850Es/Jx3-U - Plug It! Installation And Operation

    V850ES/Jx3-U - Plug it! Chapter 5 V850ES/Jx3-U - Plug it! installation and operation Getting started The IAR Embedded Workbench including the C-SPY debugger allows building and downloading application programs to the V850ES/Jx3-U - Plug it! starterkit. As communication interface between the PC host system and the V850ES/Jx3-U - Plug it! board a standard USB interface line is needed.
  • Page 31: Chapter 6 Hardware Installation

    V850ES/Jx3-U - Plug it! Chapter 6 Hardware installation After unpacking V850ES/Jx3-U - Plug it!, connect the board via connector USB1 to your host computer using the provided USB interface cable. When V850ES/Jx3-U - Plug it! is connected, the USB driver needs to be installed on the host machine.
  • Page 32: Sample Program Installation

    V850ES/Jx3-U - Plug it! Sample program installation To install the sample/demonstration programs for the V850ES/Jx3-U - Plug it! board select the Jx3U-PLUGIT_Samples_V100.exe in the directory \SamplePrograms\ on the CDROM. The setup dialogues will guide you through the installation process. Segger USB Eval Package installation To install the Segger USB Eval Package for the V850ES/Jx3-U - Plug it! board select the SeggerEval_Jx3U_PLUGIT.exe in the directory \Segger\ on the CDROM.
  • Page 33: Figure 12: Search Method (Windows 2000)

    V850ES/Jx3-U - Plug it! Following the window below is displayed. So, check that "Search for a suitable driver ..." is selected, then click Next>. Check that "Search for a suitable driver ..." is selected. Click. Figure 12: Search Method (Windows 2000) Check the "Specify a location"...
  • Page 34: Figure 14: Address Specification 2 (Windows 2000)

    V850ES/Jx3-U - Plug it! Locate the folder " \Driver” on the CD-ROM. The setup information file “MQB2SALL.inf” is automatic selected, then click Open to proceed within driver installation. Figure 14: Address Specification 2 (Windows 2000) Click. After the location of the USB driver has been specified click OK to proceed. Click Next>.
  • Page 35: Figure 16: Usb Driver Installation Completion (Windows 2000)

    V850ES/Jx3-U - Plug it! Click Finish to complete the installation of the USB driver. Click. Figure 16: USB Driver Installation Completion (Windows 2000) R20UT0582ED0100 Rev. 2.00 User Manual...
  • Page 36: Installation On Windows Xp

    V850ES/Jx3-U - Plug it! 7.5.2 Installation on Windows XP 1. When the V850ES/Jx3-U - Plug it! board is connected with the host machine, the board is recognized by Plug and Play, and the wizard for finding new hardware is started. At first the hardware wizard will ask if windows should search on the windows update web, check "No, not this time"...
  • Page 37: Figure 19: Search Location Specification 1 (Windows Xp)

    V850ES/Jx3-U - Plug it! 3. Check that "Search for the best driver in these locations." is selected. Select the "Include this location in the search:" check box and then click Browse. <1> Check that "Search for the best driver in these locations." is selected.
  • Page 38: Figure 21: Windows Xp Logo Testing (Windows Xp)

    V850ES/Jx3-U - Plug it! 6. As shown below, "NEC Electronics Starter Kit Virtual UART has not passed Windows Logo testing to verify its compatibility with Windows XP." is displayed. Click Continue Anyway. Click. Figure 21: Windows XP Logo Testing (Windows XP) 7.
  • Page 39: Confirmation Of Usb Driver Installation

    V850ES/Jx3-U - Plug it! Confirmation of USB Driver Installation After installing the USB driver, check that the driver has been installed normally, according to the procedure below. When using the V850ES/Jx3-U - Plug it! board in combination with IAR C-SPY debugger the “NEC Electronics Starter Kit Virtual UART” should be present like in the figure below.
  • Page 40: Chapter 8 Iar Sample Session

    V850ES/Jx3-U - Plug it! Chapter 8 IAR sample session When everything is set up correctly the IAR Embedded Workbench can be started. To do so, start the Embedded Workbench from Windows “Start” menu > “Programs” > folder “IAR Systems” > “IAR Embedded Workbench Kickstart for NEC V850”.
  • Page 41: Figure 25: Iar Embedded Workbench Project Workspace

    V850ES/Jx3-U - Plug it! After the sample workspace has been opened the projects included in the workspace are displayed. Please select the sample project “Jx3U_PLUGIT_DEMO”.The screen should now look similar to this one: Figure 25: IAR Embedded Workbench Project Workspace As a next step check some settings of the IAR Embedded Workbench that have to be made for correct operation of the demonstration samples and usage of the On-Board debug function of the V850ES/Jx3-U - Plug it! board.
  • Page 42: Figure 26: Device Selection

    V850ES/Jx3-U - Plug it! Figure 26: Device Selection It is necessary to tell the compiler where the additional Header files of the demonstration samples are located. Select the category “C/C++ compiler” and then the tab “Preprocessor”. Now the additional Include path can be added to the field “Additional include directories”. Add additional Include path here.
  • Page 43: Figure 28: Iar Debugger Options

    V850ES/Jx3-U - Plug it! The corresponding port where the V850ES/Jx3-U - Plug it! board is connected to the host PC will be detected automatically by the IAR C-SPY debugger. Select “Use MINICUBE2” to use On-Board debugging. Figure 28: IAR debugger options Note: Although the On-board debug interface is used, the MINICUBE2 C-Spy driver must be selected instead of the standard driver TK-V850 used for other starter kits.
  • Page 44: Figure 30: Minicube Hardware Setup Dialogue

    V850ES/Jx3-U - Plug it! Now after everything has been setup correctly it’s time to compile and link the demonstration project. Close the Options menu and select “Rebuild All” from the “Project” menu. If the project is compiled and linked without errors or warnings it can now be downloaded to the V850ES/Jx3-U - Plug it! board and debugged.
  • Page 45: Chapter 9 Troubleshooting

    V850ES/Jx3-U - Plug it! Figure 31: IAR C-SPY debugger Chapter 9 Troubleshooting In some cases it might happen that the connection to the V850ES/Jx3-U - Plug it! board can not be established. This can be caused by the following three situations: •...
  • Page 46: Chapter 10 Flash Programmer Writeez1

    V850ES/Jx3-U - Plug it! Chapter 10 Flash Programmer WriteEZ1 The flash programmer Write EZ1 doesn’t need to be installed, but can be directly started from the CDROM. Figure 32: WriteEZ1 User Interface 10.1 Device Setup To provide all necessary information about the device to be programmed, only the corresponding flash parameter file must be loaded.
  • Page 47: Using Writeez

    V850ES/Jx3-U - Plug it! Please check that the correct host communication port is selected. The used communication port can be seen in the Windows Device Manager. 10.2 Using WriteEZ After a successful device selection the internal flash memory can be blank-checked, erased, programmed or verified.
  • Page 48: Chapter 11 Sample Programs

    V850ES/Jx3-U - Plug it! Chapter 11 Sample programs 11.1 General Introduction Each of the sample programs is located in a single directory, which will be called main-directory of the sample. This main directory of each sample contains the complete project inclusive all output files of the development tool.
  • Page 49: Jx3U_Plugit_Demo" Sample Program

    V850ES/Jx3-U - Plug it! 11.2 “Jx3U_PLUGIT_DEMO” sample program This sample program is a simple random number generator between 0 and 9 to demonstrate the usage of the Jx3U_PLUGIT_DEMO starterkit. After starting the generator by pressing SW3 the segments of the seven-segment-LED are flashing until a random number is generated by pressing SW4.
  • Page 50: Jx3U_Plugit_Com" Serial Conversion Sample Program

    V850ES/Jx3-U - Plug it! 11.3 “Jx3U_PLUGIT_COM” Serial Conversion sample program The USB serial conversion driver is a communication device class (CDC) sample driver for built-in USB function controller that is built of the uPD70F3769. It is detected as communication device class (virtual COM port) when it connects with the host.
  • Page 51: Development Environment

    V850ES/Jx3-U - Plug it! 11.3.1 Development Environment Figure 37: Development Environment 11.3.2 System Structure Figure 38: System Structure of the sample program R20UT0582ED0100 Rev. 2.00 User Manual...
  • Page 52: How To Run The Sample Program

    V850ES/Jx3-U - Plug it! 11.3.3 How to run the sample program The sample application loads the communication data received by the buil-in USB function controller of the uPD70F3769. It converts the data to uppercase characters or to lowercase characters (only ASCII character data), and then executes the sending process by calling USB function controller sending process.
  • Page 53: Figure 41: Found New Hardware Wizard 2 (Windows Xp)

    V850ES/Jx3-U - Plug it! Check that "Install from a list or specific location (Advanced)" is selected, then click Next>. Check that "Install from a list or specific ..." is selected. Click. Figure 41: Found New Hardware Wizard 2 (Windows XP) Check that "Search for the best driver in these locations."...
  • Page 54: Communication Device Class (Cdc)

    V850ES/Jx3-U - Plug it! In the Windows Device Manager a new virtual communication port named ‘NEC Electronics Jx3U Virtual UART‘ will appear: Application Communication Port Figure 43: Jx3U_PLUGIT_COM-sample Application Communication Port Start a terminal program, e.g. Hyperterminal, and setup a connection to the application virtual communication port (9600 Baud, 8/N/1, no handshaking).
  • Page 55: Processing Flow

    V850ES/Jx3-U - Plug it! 11.3.5 Processing Flow Process Description USB Initialization Set NAK for Control Endpoint A NAK response is sent to all the requests including automatic execution requests. It sets for hardware not to return unexpected data in response to an automatic execution request until registration of data used for the automatic execution request is complete.
  • Page 56: Figure 45: Flow Chart Jx3U_Plugit_Com Endpoint 0 Monitoring Process

    V850ES/Jx3-U - Plug it! Endpoint 0 is the endpoint for control transferring. However, standard device requests,such as the request used by enumeration for plug-in, are automatically responded by hardware. Therefore, this should monitor standard requests that are not responded by hardware, class requests, and vendor requests. Endpoint 0 Monitoring Process Start Check CPUDEC Interrupt...
  • Page 57: Figure 46: Flow Chart Jx3U_Plugit_Com Endpoint 1 Monitoring Process

    V850ES/Jx3-U - Plug it! Endpoint 1 Monitoring Process Start Check BKO1DT Interrupt It detects the completion of receiving interrupt if BKO1DT bit of UF0IS3 is ON (1). BK01DT Interrupt Clear Interrupt Cause Clear the cause of interrupt by setting BKO1DTC bit of UF0IC3 to OFF (0). CBW Data Receiving Process Execute CBW Data Receiving Process.
  • Page 58: File Structure

    V850ES/Jx3-U - Plug it! 11.3.6 File Structure File Description main.c Main routine low_level_init.c CPU and board initialization usbf850.c USB initialization. Interrupt process. Bulk transfer. Control transfer. usbf850_communication.c CDC specific process DF3769_HWinit.s85 Security-ID setting monitor_dbg0.s85 Secures interrupt vector for Debugging monitor_uartc0.s85 Secures interrupt vector of serial interface Table 14: Source Modules USB Serial Conversation Sample...
  • Page 59: Table 16: Device Descriptor Serial Conversion Sample

    V850ES/Jx3-U - Plug it! iManufacture Index to string 0x01 descriptor to indicate manufacturer iProduct Index to string 0x02 descriptor to indicate product iSerialNumber Index to string 0x03 descriptor to indicate serial number bNumConfigurations Number of devices 0x01 that can be configured Table 16: Device Descriptor Serial Conversion Sample Field...
  • Page 60: Table 18: Interface Descriptor Serial Conversion Sample

    V850ES/Jx3-U - Plug it! bInterfaceSubclass Subclass code 0x02 bInterfaceProtocol Protocol code 0x00 0x00: no specific protocol 0xFF: vendor specific protocol iInterface Index to string descriptor 0x00 to indicate interface Table 18: Interface Descriptor Serial Conversion Sample Field Size Description Value bLength Descriptor size 0x07...
  • Page 61: Jx3U_Plugit_Storage" Mass Storage Sample Program

    V850ES/Jx3-U - Plug it! Field Size Description Value bInterval Polling interval for data 0x0A transfer endpoint Full/low speed interrupt: specify with unit of ms (number of frames) High-speed isochronous/interrupt: specify N for 2 raised to the power of N-1 with unit of μ frame (for example, 1 polling in 8μ...
  • Page 62: Figure 47: Project Window Jx3U_Plugit_Storage

    V850ES/Jx3-U - Plug it! Figure 47: Project Window Jx3U_PLUGIT_STORAGE R20UT0582ED0100 Rev. 2.00 User Manual...
  • Page 63: Development Environment

    V850ES/Jx3-U - Plug it! 11.4.1 Development Environment Figure 48: Development Environment 11.4.2 System Structure Figure 49: System Structure of the sample program R20UT0582ED0100 Rev. 2.00 User Manual...
  • Page 64: How To Run The Sample Program

    V850ES/Jx3-U - Plug it! 11.4.3 How to run the sample program The mass storage class (MSC) sample driver uses the Windows standard drivers for mass storage devices. To run the sample please use following procedure: Connect port USB1 and start a debug session. Connect port USB3 and run the sample application.
  • Page 65: Mass Storage Class (Msc)

    V850ES/Jx3-U - Plug it! 11.4.4 Mass Storage Class (MSC) The sample driver is a bulk-only mass storage class (MSC) driver. Bulk-only transport transfers commands, status, and data with bulk transferring. Commands are sent from host to device with bulk-out transferring. This is defined in the Command Block Wrapper (CBW) Format .
  • Page 66: Processing Flow

    V850ES/Jx3-U - Plug it! 11.4.6 Processing Flow Process Description USB Initialization Start USB Initialization Set NAK for Control Endpoint A NAK response is sent to all the requests including automatic execution requests. It sets for hardware not to return unexpected Set NAK for data in response to an automatic execution Control Endpoint...
  • Page 67: Figure 52: Flow Chart Jx3U_Plugit_Storage Endpoint 0 Monitoring Process

    V850ES/Jx3-U - Plug it! Endpoint 0 is the endpoint for control transferring. However, standard device requests,such as the request used by enumeration for plug-in, are automatically responded by hardware. Therefore, this should monitor standard requests that are not responded by hardware, class requests, and vendor requests. Endpoint 0 Monitoring Process Start Check CPUDEC Interrupt...
  • Page 68: Figure 53: Flow Chart Jx3U_Plugit_Storage Endpoint 0 Monitoring Process

    V850ES/Jx3-U - Plug it! Endpoint 1 Monitoring Process Start Check BKO1DT Interrupt It detects the completion of receiving interrupt if BKO1DT bit of UF0IS3 is ON (1). BK01DT Interrupt Clear Interrupt Cause Clear the cause of interrupt by setting BKO1DTC bit of UF0IC3 to OFF (0). CBW Data Receiving Process Execute CBW Data Receiving Process.
  • Page 69: Figure 54: Flow Chart Jx3U_Plugit_Storage Scsi Command Process

    V850ES/Jx3-U - Plug it! SCSI Command Process Analyze CBW Command Analyze the content of CBW after receivingCBW data. It saves CBW tag and checks valid data number for CBWCB and command direction, and then executes READ, WRITE, or NO DATA process. Error Process Process for errors such as invalid command.
  • Page 70: File Structure

    V850ES/Jx3-U - Plug it! 11.4.7 File Structure File Description main.c Main routine low_level_init.c CPU and board initialization usbf850.c USB initialization. Interrupt process. Bulk transfer. Control transfer. usbf850_storage.c MSC specific process scsi_cmd.c SCSI command process DF3769_HWinit.s85 Security-ID setting monitor_dbg0.s85 Secures interrupt vector for Debugging monitor_uartc0.s85 Secures interrupt vector of serial...
  • Page 71: Table 23: Device Descriptor Mass Storage Sample

    V850ES/Jx3-U - Plug it! bcdDevice BCD format of device 0x0001 release number iManufacture Index to string 0x01 descriptor to indicate manufacturer iProduct Index to string 0x00 descriptor to indicate product iSerialNumber Index to string 0x00 descriptor to indicate serial number bNumConfigurations Number of devices 0x01...
  • Page 72: Table 25: Interface Descriptor Mass Storage Sample

    V850ES/Jx3-U - Plug it! bInterfaceClass Class Code 0x08 0x00: no class 0xFF: vendor 0x01 – 0xFE: specific bInterfaceSubclass Subclass code 0x06 bInterfaceProtocol Protocol code 0x50 0x00: no specific protocol 0xFF: vendor specific protocol iInterface Index to string descriptor 0x00 to indicate interface Table 25: Interface Descriptor Mass Storage Sample Field Size...
  • Page 73: Table 26: Endpoint Descriptor Serial Conversion Sample

    V850ES/Jx3-U - Plug it! Field Size Description Value bInterval Polling interval for 0x00 data transfer endpoint Full/low speed interrupt: specify with unit of ms (number of frames) High-speed isochronous/interrupt: specify N for 2 raised to the power of N-1 with unit of μ frame (for example, 1 polling in 8μ...
  • Page 74: Chapter 12 Cables

    V850ES/Jx3-U - Plug it! Chapter 12 Cables 12.1 USB interface cable (Mini-B type) Figure 55: USB interface cable (Mini-B type) R20UT0582ED0100 Rev. 2.00 User Manual...
  • Page 75: Chapter 13 Schematics

    V850ES/Jx3-U - Plug it! Chapter 13 Schematics Figure 56: V850ES/Jx3-U - Plug it! schematics 1/13 R20UT0582ED0100 Rev. 2.00 User Manual...
  • Page 76 V850ES/Jx3-U - Plug it! Figure 57: V850ES/Jx3-U - Plug it! schematics 2/13 R20UT0582ED0100 Rev. 2.00 User Manual...
  • Page 77 V850ES/Jx3-U - Plug it! Figure 58: V850ES/Jx3-U - Plug it! schematics 3/13 R20UT0582ED0100 Rev. 2.00 User Manual...
  • Page 78 V850ES/Jx3-U - Plug it! Figure 59: V850ES/Jx3-U - Plug it! schematics 4/13 R20UT0582ED0100 Rev. 2.00 User Manual...
  • Page 79 V850ES/Jx3-U - Plug it! Figure 60: V850ES/Jx3-U - Plug it! schematics 5/13 R20UT0582ED0100 Rev. 2.00 User Manual...
  • Page 80 V850ES/Jx3-U - Plug it! Figure 61: V850ES/Jx3-U - Plug it! schematics 6/13 R20UT0582ED0100 Rev. 2.00 User Manual...
  • Page 81 V850ES/Jx3-U - Plug it! Figure 62: V850ES/Jx3-U - Plug it! schematics 7/13 R20UT0582ED0100 Rev. 2.00 User Manual...
  • Page 82 V850ES/Jx3-U - Plug it! Figure 63: V850ES/Jx3-U - Plug it! schematics 8/13 R20UT0582ED0100 Rev. 2.00 User Manual...
  • Page 83 V850ES/Jx3-U - Plug it! Figure 64: V850ES/Jx3-U - Plug it! schematics 9/13 R20UT0582ED0100 Rev. 2.00 User Manual...
  • Page 84 V850ES/Jx3-U - Plug it! Figure 65: V850ES/Jx3-U - Plug it! schematics 10/13 R20UT0582ED0100 Rev. 2.00 User Manual...
  • Page 85 V850ES/Jx3-U - Plug it! Figure 66: V850ES/Jx3-U - Plug it! schematics 11/13 R20UT0582ED0100 Rev. 2.00 User Manual...
  • Page 86 V850ES/Jx3-U - Plug it! Figure 67: V850ES/Jx3-U - Plug it! schematics 12/13 R20UT0582ED0100 Rev. 2.00 User Manual...
  • Page 87 V850ES/Jx3-U - Plug it! Figure 68: V850ES/Jx3-U - Plug it! schematics 13/13 R20UT0582ED0100 Rev. 2.00 User Manual...
  • Page 88 V850ES/Jx3-U Plug it! User’s Manual Publication Date: Rev.1.00 Aug 18, 2009 Rev.2.00 Mar 16, 2011 Published by: Renesas Electronics Europe GmbH...
  • Page 89 SALES OFFICES Refer to "http://www.renesas.com/" for the latest and detailed information. Renesas Electronics America Inc. 2880 Scott Boulevard Santa Clara, CA 95050-2554, U.S.A. Tel: +1-408-588-6000, Fax: +1-408-588-6130 Renesas Electronics Canada Limited 1101 Nicholson Road, Newmarket, Ontario L3Y 9C3, Canada...
  • Page 90 V850ES/Jx3-U - Plug it! R20UT0582ED0100 R20UT0582ED0100 (Previous number: U19787EE1V0UM00 ) (Previous number: U19787EE1V0UM00 )

Table of Contents