APPLICATION NOTE R01AN0010EJ0101 Rev.1.01 Page 1 of 117 Feb 01, 2012 V850E2/MN4 USB CDC (Communication Device Class) Driver Introduction This a
V850E2/MN4 USB CDC (Communication Device Class) Driver R01AN0010EJ0101 Rev.1.01 Page 10 of 117 Feb 01, 2012 3.2 Endpoints An endpoint is an ite
V850E2/MN4 USB CDC (Communication Device Class) Driver R01AN0010EJ0101 Rev.1.01 Page 100 of 117 Feb 01, 2012 <9> The system will return
V850E2/MN4 USB CDC (Communication Device Class) Driver R01AN0010EJ0101 Rev.1.01 Page 101 of 117 Feb 01, 2012 <11> The “Hardware Installa
V850E2/MN4 USB CDC (Communication Device Class) Driver R01AN0010EJ0101 Rev.1.01 Page 102 of 117 Feb 01, 2012 6.7 Debugging in the IAR Embedded
V850E2/MN4 USB CDC (Communication Device Class) Driver R01AN0010EJ0101 Rev.1.01 Page 103 of 117 Feb 01, 2012 6.7.2 Loading and Executing You w
V850E2/MN4 USB CDC (Communication Device Class) Driver R01AN0010EJ0101 Rev.1.01 Page 104 of 117 Feb 01, 2012 (2) Running the Program Press the
V850E2/MN4 USB CDC (Communication Device Class) Driver R01AN0010EJ0101 Rev.1.01 Page 105 of 117 Feb 01, 2012 6.8 Operation Verification The res
V850E2/MN4 USB CDC (Communication Device Class) Driver R01AN0010EJ0101 Rev.1.01 Page 106 of 117 Feb 01, 2012 7. Using the Sample Driver This s
V850E2/MN4 USB CDC (Communication Device Class) Driver R01AN0010EJ0101 Rev.1.01 Page 107 of 117 Feb 01, 2012 7.2 Customization This section des
V850E2/MN4 USB CDC (Communication Device Class) Driver R01AN0010EJ0101 Rev.1.01 Page 108 of 117 Feb 01, 2012 7.2.2 Register Settings The regist
V850E2/MN4 USB CDC (Communication Device Class) Driver R01AN0010EJ0101 Rev.1.01 Page 109 of 117 Feb 01, 2012 7.2.4 Virtual COM Port Host Drive
V850E2/MN4 USB CDC (Communication Device Class) Driver R01AN0010EJ0101 Rev.1.01 Page 11 of 117 Feb 01, 2012 3.4 Requests According to the USB s
V850E2/MN4 USB CDC (Communication Device Class) Driver R01AN0010EJ0101 Rev.1.01 Page 110 of 117 Feb 01, 2012 <3> On the “Port Settings”
V850E2/MN4 USB CDC (Communication Device Class) Driver R01AN0010EJ0101 Rev.1.01 Page 111 of 117 Feb 01, 2012 (2) Changing the Properties Certai
V850E2/MN4 USB CDC (Communication Device Class) Driver R01AN0010EJ0101 Rev.1.01 Page 112 of 117 Feb 01, 2012 Since these items are displayed ba
V850E2/MN4 USB CDC (Communication Device Class) Driver R01AN0010EJ0101 Rev.1.01 Page 113 of 117 Feb 01, 2012 (3) Changing the Vendor ID and Pro
V850E2/MN4 USB CDC (Communication Device Class) Driver R01AN0010EJ0101 Rev.1.01 Page 114 of 117 Feb 01, 2012 7.3 Function Usage Processing that
V850E2/MN4 USB CDC (Communication Device Class) Driver R01AN0010EJ0101 Rev.1.01 Page 115 of 117 Feb 01, 2012 8. Outline of the Starter Kit Thi
V850E2/MN4 USB CDC (Communication Device Class) Driver R01AN0010EJ0101 Rev.1.01 Page 116 of 117 Feb 01, 2012 8.3 Major Specifications The major
V850E2/MN4 USB CDC (Communication Device Class) Driver R01AN0010EJ0101 Rev.1.01 Page 117 of 117 Feb 01, 2012 Website and Support Renesas Electr
A-1 Revision Record Description Rev. Date Page Summary 1.00 Jun 30, 2010 — First edition issued 1.01 Feb 01, 2012 All pages Format revisions
General Precautions in the Handling of MPU/MCU Products The following usage notes are applicable to all MPU/MCU products from Renesas. For detailed
V850E2/MN4 USB CDC (Communication Device Class) Driver R01AN0010EJ0101 Rev.1.01 Page 12 of 117 Feb 01, 2012 (2) Class Requests Class requests a
Notice1. All information included in this document is current as of the date this document is issued. Such information, however, is subject to chan
V850E2/MN4 USB CDC (Communication Device Class) Driver R01AN0010EJ0101 Rev.1.01 Page 13 of 117 Feb 01, 2012 3.5 Descriptors In the USB specific
V850E2/MN4 USB CDC (Communication Device Class) Driver R01AN0010EJ0101 Rev.1.01 Page 14 of 117 Feb 01, 2012 3.5.2 Formats The size and field st
V850E2/MN4 USB CDC (Communication Device Class) Driver R01AN0010EJ0101 Rev.1.01 Page 15 of 117 Feb 01, 2012 Table 3.6 Interface Descriptor For
V850E2/MN4 USB CDC (Communication Device Class) Driver R01AN0010EJ0101 Rev.1.01 Page 16 of 117 Feb 01, 2012 4. Sample Driver Specifications Th
V850E2/MN4 USB CDC (Communication Device Class) Driver R01AN0010EJ0101 Rev.1.01 Page 17 of 117 Feb 01, 2012 4.1.2 Request Handling This section
V850E2/MN4 USB CDC (Communication Device Class) Driver R01AN0010EJ0101 Rev.1.01 Page 18 of 117 Feb 01, 2012 4.1.3 Descriptor Settings The descr
V850E2/MN4 USB CDC (Communication Device Class) Driver R01AN0010EJ0101 Rev.1.01 Page 19 of 117 Feb 01, 2012 (3) Interface Descriptor This descr
V850E2/MN4 USB CDC (Communication Device Class) Driver R01AN0010EJ0101 Rev.1.01 Page 2 of 117 Feb 01, 2012 1. Introduction 1.1 Note The sample
V850E2/MN4 USB CDC (Communication Device Class) Driver R01AN0010EJ0101 Rev.1.01 Page 20 of 117 Feb 01, 2012 (4) Endpoint Descriptor This descri
V850E2/MN4 USB CDC (Communication Device Class) Driver R01AN0010EJ0101 Rev.1.01 Page 21 of 117 Feb 01, 2012 (5) String Descriptor This descript
V850E2/MN4 USB CDC (Communication Device Class) Driver R01AN0010EJ0101 Rev.1.01 Page 22 of 117 Feb 01, 2012 4.2 Operations When the sample driv
V850E2/MN4 USB CDC (Communication Device Class) Driver R01AN0010EJ0101 Rev.1.01 Page 23 of 117 Feb 01, 2012 4.2.1 CPU Initialization Processin
V850E2/MN4 USB CDC (Communication Device Class) Driver R01AN0010EJ0101 Rev.1.01 Page 24 of 117 Feb 01, 2012 4.2.2 USB Function Controller Init
V850E2/MN4 USB CDC (Communication Device Class) Driver R01AN0010EJ0101 Rev.1.01 Page 25 of 117 Feb 01, 2012 (3) Initializing the EPC Circuit Lo
V850E2/MN4 USB CDC (Communication Device Class) Driver R01AN0010EJ0101 Rev.1.01 Page 26 of 117 Feb 01, 2012 (9) Setting up the Interrupt Mask R
V850E2/MN4 USB CDC (Communication Device Class) Driver R01AN0010EJ0101 Rev.1.01 Page 27 of 117 Feb 01, 2012 4.2.3 USBF Interrupt Processing (I
V850E2/MN4 USB CDC (Communication Device Class) Driver R01AN0010EJ0101 Rev.1.01 Page 28 of 117 Feb 01, 2012 (3) SETRQ Interrupt Processing If t
V850E2/MN4 USB CDC (Communication Device Class) Driver R01AN0010EJ0101 Rev.1.01 Page 29 of 117 Feb 01, 2012 4.3 Function Specifications This se
V850E2/MN4 USB CDC (Communication Device Class) Driver R01AN0010EJ0101 Rev.1.01 Page 3 of 117 Feb 01, 2012 2. Overview This application note de
V850E2/MN4 USB CDC (Communication Device Class) Driver R01AN0010EJ0101 Rev.1.01 Page 30 of 117 Feb 01, 2012 4.3.2 Correlation among the Sample
V850E2/MN4 USB CDC (Communication Device Class) Driver R01AN0010EJ0101 Rev.1.01 Page 31 of 117 Feb 01, 2012 usbf850_intusbf0usbf850_buff_initus
V850E2/MN4 USB CDC (Communication Device Class) Driver R01AN0010EJ0101 Rev.1.01 Page 32 of 117 Feb 01, 2012 usbf850_classrequsbf850_sendstallEP
V850E2/MN4 USB CDC (Communication Device Class) Driver R01AN0010EJ0101 Rev.1.01 Page 33 of 117 Feb 01, 2012 usbf850_send_bufusbf850_ep_statusus
V850E2/MN4 USB CDC (Communication Device Class) Driver R01AN0010EJ0101 Rev.1.01 Page 34 of 117 Feb 01, 2012 4.3.3 Function Descriptions This se
V850E2/MN4 USB CDC (Communication Device Class) Driver R01AN0010EJ0101 Rev.1.01 Page 35 of 117 Feb 01, 2012 (2) Main Routine Functions main [Sy
V850E2/MN4 USB CDC (Communication Device Class) Driver R01AN0010EJ0101 Rev.1.01 Page 36 of 117 Feb 01, 2012 cpu_init [Synopsis] Initialize CPU.
V850E2/MN4 USB CDC (Communication Device Class) Driver R01AN0010EJ0101 Rev.1.01 Page 37 of 117 Feb 01, 2012 SetProtectReg [Synopsis] Access wr
V850E2/MN4 USB CDC (Communication Device Class) Driver R01AN0010EJ0101 Rev.1.01 Page 38 of 117 Feb 01, 2012 (3) USB Function Controller Process
V850E2/MN4 USB CDC (Communication Device Class) Driver R01AN0010EJ0101 Rev.1.01 Page 39 of 117 Feb 01, 2012 usbf850_intusbf0 [Synopsis] Endpoi
V850E2/MN4 USB CDC (Communication Device Class) Driver R01AN0010EJ0101 Rev.1.01 Page 4 of 117 Feb 01, 2012 2.1.2 Features of the Sample Driver
V850E2/MN4 USB CDC (Communication Device Class) Driver R01AN0010EJ0101 Rev.1.01 Page 40 of 117 Feb 01, 2012 usbf850_intusbf1 [Synopsis] Resume
V850E2/MN4 USB CDC (Communication Device Class) Driver R01AN0010EJ0101 Rev.1.01 Page 41 of 117 Feb 01, 2012 usbf850_data_send [Synopsis] USB d
V850E2/MN4 USB CDC (Communication Device Class) Driver R01AN0010EJ0101 Rev.1.01 Page 42 of 117 Feb 01, 2012 usbf850_data_receive [Synopsis] Re
V850E2/MN4 USB CDC (Communication Device Class) Driver R01AN0010EJ0101 Rev.1.01 Page 43 of 117 Feb 01, 2012 usbf850_rdata_length [Synopsis] Ge
V850E2/MN4 USB CDC (Communication Device Class) Driver R01AN0010EJ0101 Rev.1.01 Page 44 of 117 Feb 01, 2012 usbf850_send_EP0 [Synopsis] Send U
V850E2/MN4 USB CDC (Communication Device Class) Driver R01AN0010EJ0101 Rev.1.01 Page 45 of 117 Feb 01, 2012 usbf850_receive_EP0 [Synopsis] Rec
V850E2/MN4 USB CDC (Communication Device Class) Driver R01AN0010EJ0101 Rev.1.01 Page 46 of 117 Feb 01, 2012 usbf850_send_null [Synopsis] Send
V850E2/MN4 USB CDC (Communication Device Class) Driver R01AN0010EJ0101 Rev.1.01 Page 47 of 117 Feb 01, 2012 usbf850_sendnullEP0 [Synopsis] Sen
V850E2/MN4 USB CDC (Communication Device Class) Driver R01AN0010EJ0101 Rev.1.01 Page 48 of 117 Feb 01, 2012 usbf850_sendstallEP0 [Synopsis] Se
V850E2/MN4 USB CDC (Communication Device Class) Driver R01AN0010EJ0101 Rev.1.01 Page 49 of 117 Feb 01, 2012 usbf850_ep_status [Synopsis] Notif
V850E2/MN4 USB CDC (Communication Device Class) Driver R01AN0010EJ0101 Rev.1.01 Page 5 of 117 Feb 01, 2012 (2) Multi Version The Multi version
V850E2/MN4 USB CDC (Communication Device Class) Driver R01AN0010EJ0101 Rev.1.01 Page 50 of 117 Feb 01, 2012 usbf850_fifo_clear [Synopsis] Clea
V850E2/MN4 USB CDC (Communication Device Class) Driver R01AN0010EJ0101 Rev.1.01 Page 51 of 117 Feb 01, 2012 usbf850_standardreq [Synopsis] Pro
V850E2/MN4 USB CDC (Communication Device Class) Driver R01AN0010EJ0101 Rev.1.01 Page 52 of 117 Feb 01, 2012 usbf850_getdesc [Synopsis] Process
V850E2/MN4 USB CDC (Communication Device Class) Driver R01AN0010EJ0101 Rev.1.01 Page 53 of 117 Feb 01, 2012 (4) USB Communication Class Process
V850E2/MN4 USB CDC (Communication Device Class) Driver R01AN0010EJ0101 Rev.1.01 Page 54 of 117 Feb 01, 2012 usbf850_send_encapsulated_command
V850E2/MN4 USB CDC (Communication Device Class) Driver R01AN0010EJ0101 Rev.1.01 Page 55 of 117 Feb 01, 2012 usbf850_set_line_coding [Synopsis]
V850E2/MN4 USB CDC (Communication Device Class) Driver R01AN0010EJ0101 Rev.1.01 Page 56 of 117 Feb 01, 2012 usbf850_get_line_coding [Synopsis]
V850E2/MN4 USB CDC (Communication Device Class) Driver R01AN0010EJ0101 Rev.1.01 Page 57 of 117 Feb 01, 2012 usbf850_set_control_line_state [Sy
V850E2/MN4 USB CDC (Communication Device Class) Driver R01AN0010EJ0101 Rev.1.01 Page 58 of 117 Feb 01, 2012 5. Sample Application Specification
V850E2/MN4 USB CDC (Communication Device Class) Driver R01AN0010EJ0101 Rev.1.01 Page 59 of 117 Feb 01, 2012 (1) User Data FIFO Initialization V
V850E2/MN4 USB CDC (Communication Device Class) Driver R01AN0010EJ0101 Rev.1.01 Page 6 of 117 Feb 01, 2012 (3) IAR Embedded Workbench Version T
V850E2/MN4 USB CDC (Communication Device Class) Driver R01AN0010EJ0101 Rev.1.01 Page 60 of 117 Feb 01, 2012 5.3 Function Usage In the source fi
V850E2/MN4 USB CDC (Communication Device Class) Driver R01AN0010EJ0101 Rev.1.01 Page 61 of 117 Feb 01, 2012 (1) Definitions and Declarations Th
V850E2/MN4 USB CDC (Communication Device Class) Driver R01AN0010EJ0101 Rev.1.01 Page 62 of 117 Feb 01, 2012 6. Development Environment This sec
V850E2/MN4 USB CDC (Communication Device Class) Driver R01AN0010EJ0101 Rev.1.01 Page 63 of 117 Feb 01, 2012 6.1.2 Program Development The hardw
V850E2/MN4 USB CDC (Communication Device Class) Driver R01AN0010EJ0101 Rev.1.01 Page 64 of 117 Feb 01, 2012 6.2 Setting up a CubeSuite Environ
V850E2/MN4 USB CDC (Communication Device Class) Driver R01AN0010EJ0101 Rev.1.01 Page 65 of 117 Feb 01, 2012 (3) Installing Device Files Copy th
V850E2/MN4 USB CDC (Communication Device Class) Driver R01AN0010EJ0101 Rev.1.01 Page 66 of 117 Feb 01, 2012 <2> The “Open” dialog box wi
V850E2/MN4 USB CDC (Communication Device Class) Driver R01AN0010EJ0101 Rev.1.01 Page 67 of 117 Feb 01, 2012 (5) Setting up the Build Tool Follo
V850E2/MN4 USB CDC (Communication Device Class) Driver R01AN0010EJ0101 Rev.1.01 Page 68 of 117 Feb 01, 2012 <3> Select “V850E2M MINICUBE
V850E2/MN4 USB CDC (Communication Device Class) Driver R01AN0010EJ0101 Rev.1.01 Page 69 of 117 Feb 01, 2012 6.2.2 Setting up the Target Enviro
V850E2/MN4 USB CDC (Communication Device Class) Driver R01AN0010EJ0101 Rev.1.01 Page 7 of 117 Feb 01, 2012 2.2 V850E2/MN4 Microcontroller For d
V850E2/MN4 USB CDC (Communication Device Class) Driver R01AN0010EJ0101 Rev.1.01 Page 70 of 117 Feb 01, 2012 (2) Host Driver Installation This s
V850E2/MN4 USB CDC (Communication Device Class) Driver R01AN0010EJ0101 Rev.1.01 Page 71 of 117 Feb 01, 2012 <4> The next screen will be
V850E2/MN4 USB CDC (Communication Device Class) Driver R01AN0010EJ0101 Rev.1.01 Page 72 of 117 Feb 01, 2012 <6> The “Install From Disk”
V850E2/MN4 USB CDC (Communication Device Class) Driver R01AN0010EJ0101 Rev.1.01 Page 73 of 117 Feb 01, 2012 <9> The system will return t
V850E2/MN4 USB CDC (Communication Device Class) Driver R01AN0010EJ0101 Rev.1.01 Page 74 of 117 Feb 01, 2012 <11> The “Hardware Installat
V850E2/MN4 USB CDC (Communication Device Class) Driver R01AN0010EJ0101 Rev.1.01 Page 75 of 117 Feb 01, 2012 6.3 Debugging in the CubeSuite Env
V850E2/MN4 USB CDC (Communication Device Class) Driver R01AN0010EJ0101 Rev.1.01 Page 76 of 117 Feb 01, 2012 6.3.2 Loading and Executing You wr
V850E2/MN4 USB CDC (Communication Device Class) Driver R01AN0010EJ0101 Rev.1.01 Page 77 of 117 Feb 01, 2012 (2) Running the Program Press the C
V850E2/MN4 USB CDC (Communication Device Class) Driver R01AN0010EJ0101 Rev.1.01 Page 78 of 117 Feb 01, 2012 6.4 Setting up a Multi Environment
V850E2/MN4 USB CDC (Communication Device Class) Driver R01AN0010EJ0101 Rev.1.01 Page 79 of 117 Feb 01, 2012 (3) Installing Device Files Copy th
V850E2/MN4 USB CDC (Communication Device Class) Driver R01AN0010EJ0101 Rev.1.01 Page 8 of 117 Feb 01, 2012 2.2.2 Features The major features of
V850E2/MN4 USB CDC (Communication Device Class) Driver R01AN0010EJ0101 Rev.1.01 Page 80 of 117 Feb 01, 2012 (5) Setting up the Debugging Tool G
V850E2/MN4 USB CDC (Communication Device Class) Driver R01AN0010EJ0101 Rev.1.01 Page 81 of 117 Feb 01, 2012 <3> In the “Create New Conne
V850E2/MN4 USB CDC (Communication Device Class) Driver R01AN0010EJ0101 Rev.1.01 Page 82 of 117 Feb 01, 2012 6.4.2 Setting up the Target Enviro
V850E2/MN4 USB CDC (Communication Device Class) Driver R01AN0010EJ0101 Rev.1.01 Page 83 of 117 Feb 01, 2012 (2) Host Driver Installation This s
V850E2/MN4 USB CDC (Communication Device Class) Driver R01AN0010EJ0101 Rev.1.01 Page 84 of 117 Feb 01, 2012 <4> The next screen will be
V850E2/MN4 USB CDC (Communication Device Class) Driver R01AN0010EJ0101 Rev.1.01 Page 85 of 117 Feb 01, 2012 <6> The “Install From Disk”
V850E2/MN4 USB CDC (Communication Device Class) Driver R01AN0010EJ0101 Rev.1.01 Page 86 of 117 Feb 01, 2012 <9> The system will return t
V850E2/MN4 USB CDC (Communication Device Class) Driver R01AN0010EJ0101 Rev.1.01 Page 87 of 117 Feb 01, 2012 <11> The Install Hardware di
V850E2/MN4 USB CDC (Communication Device Class) Driver R01AN0010EJ0101 Rev.1.01 Page 88 of 117 Feb 01, 2012 6.5 Debugging in the Multi Environ
V850E2/MN4 USB CDC (Communication Device Class) Driver R01AN0010EJ0101 Rev.1.01 Page 89 of 117 Feb 01, 2012 6.5.2 Loading and Executing You wr
V850E2/MN4 USB CDC (Communication Device Class) Driver R01AN0010EJ0101 Rev.1.01 Page 9 of 117 Feb 01, 2012 3. USB Overview This section provide
V850E2/MN4 USB CDC (Communication Device Class) Driver R01AN0010EJ0101 Rev.1.01 Page 90 of 117 Feb 01, 2012 <3> MULTI Debugger will then
V850E2/MN4 USB CDC (Communication Device Class) Driver R01AN0010EJ0101 Rev.1.01 Page 91 of 117 Feb 01, 2012 (2) Running the Program Press the M
V850E2/MN4 USB CDC (Communication Device Class) Driver R01AN0010EJ0101 Rev.1.01 Page 92 of 117 Feb 01, 2012 6.6 Setting up an IAR Embedded Wor
V850E2/MN4 USB CDC (Communication Device Class) Driver R01AN0010EJ0101 Rev.1.01 Page 93 of 117 Feb 01, 2012 (3) Installing Device Files Copy th
V850E2/MN4 USB CDC (Communication Device Class) Driver R01AN0010EJ0101 Rev.1.01 Page 94 of 117 Feb 01, 2012 (5) Debugging Tool Settings This se
V850E2/MN4 USB CDC (Communication Device Class) Driver R01AN0010EJ0101 Rev.1.01 Page 95 of 117 Feb 01, 2012 <3> Select “MINICUBE E2x” in
V850E2/MN4 USB CDC (Communication Device Class) Driver R01AN0010EJ0101 Rev.1.01 Page 96 of 117 Feb 01, 2012 6.6.2 Setting up the Target Enviro
V850E2/MN4 USB CDC (Communication Device Class) Driver R01AN0010EJ0101 Rev.1.01 Page 97 of 117 Feb 01, 2012 (2) Host Driver Installation This s
V850E2/MN4 USB CDC (Communication Device Class) Driver R01AN0010EJ0101 Rev.1.01 Page 98 of 117 Feb 01, 2012 <4> The next screen will be
V850E2/MN4 USB CDC (Communication Device Class) Driver R01AN0010EJ0101 Rev.1.01 Page 99 of 117 Feb 01, 2012 <6> The “Install From Disk”
Commentaires sur ces manuels