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.
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.
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: •...
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 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...
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.
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.
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.
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.
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.
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”...
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”...
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.
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.
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.
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.
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.
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 ●...
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.
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.
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.
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.
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.
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.
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.
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"...
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>.
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...
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"...
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.
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.
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.
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”.
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.
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.
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.
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.
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: •...
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.
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.
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.
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.
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.
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...
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.
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."...
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).
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.
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...
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.
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...
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...
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...
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μ...
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...
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.
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 .
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...
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...
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.
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.
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...
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...
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...
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 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...
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