background image

R8C/3MK Group 

USB-to-Serial Communication Conversion Demo Board 

 R0K5R8C3MDU30BR Instruction Manual 

R01AN1051EJ0100  Rev.1.00 

 

Page 16 of 38 

Mar 21, 2012 

 

The following outlines the process until communication is achieved using the terminal software on the PC. For 
more details, refer to the application note titled “Renesas USB Device USB Peripheral Communications 
Devices Class Driver (PDCD).”

 

 

1) Connection to USB Host (PC) 

 

(1) Connect the demo board to the USB Host (PC) using the USB cable (A-miniB). 

 

  (System definition file (CDC_Demo.inf) is required for the initial connection.) 

 

(2) Confirm the COM number (Windows: device manager) 

 

2) Start up Terminal Software 

 

(1) Enter the confirmed COM number in the terminal software. 

 

(2) Set the communication speed 

 

 

 Set baud rate from 4800bps to57600bps.  

 

(3) Set all other parameters for serial port 

 

 

 Set the following setting

 

 

 

 

 Data length: 8 bits; parity: none; stop bit: 1 bit; flow control: none 

The example of data communication with a RS232C transceiver as an external UART device is shown in 
Figure 11. Figure 12 shows the example of the setting parameters for serial port on the terminal software. 

 

UART 

communication

Terminal software

Text screen

1."ABCDefg

2."12345678"

RS

23

2C 

Se

riial 

PO

RT

Terminal software

Text screen

Text Data

1. "ABCDefg

2. "12345678"

Text Data

UA

RT

0

US

B

US

B

1. "ABCDefg

2."12345678"

USB 

communication

USB CDC 

Host Device

UART 

communication

This Product

Text Data

1. "ABCDefg

2. "12345678"

Text Data

RS23

2C

RS232C

communication

PC with 

RS232C serial 

port

RS232C

Transceiver

UA

RT

Text Data

1. "ABCDefg

2. "12345678"

Text Data

 

Figure 11 Example of Data Communication using USB-to-UART Communication Conversion 

 

 

 

 

Summary of Contents for R0K5R8C3MDU30BR

Page 1: ...the information therein All referenced brands product names service names and trademarks are the property of their respective owners 00000005981LF 000 EOS Power Buy Now We have 45 000 LP502030 PCM NT...

Page 2: ...using the USB Peripheral function and serial communication function in R8C 3MK Group MCUs Target Device R8C 3MK Group Contents 1 Preface 2 2 Important 3 3 Precautions for Safety 5 4 Demo Board Functi...

Page 3: ...MDU30BR to enable USB to Serial communication conversion using the USB Peripheral function and serial communication function in R8C 3MK Group MCUs Before using the demo board please refer to 7 1 Bundl...

Page 4: ...charges However this does not necessarily mean that Renesas Electronics Corporation guarantees the provision of a workaround or correction under any circumstances 3 This product covered by this docum...

Page 5: ...rove the design and performance of our product Therefore the specification or design of the product or this user s manual may be changed without prior notice About rights 1 We assume no responsibility...

Page 6: ...use this product safely and properly Be sure to read this chapter before using this product WARNING WARNING indicates a potentially dangerous situation that will cause death or heavy wound unless it i...

Page 7: ...sual sound or see smoke coming from this product then disconnect power immediately Do not use this as it is because of the danger of electric shock and or fire In this case contact your local distribu...

Page 8: ...s delivered to you and specify caution in handling handling as precision equipment If packing of your product is not complete it may be damaged during transportation When you pack your product in a ba...

Page 9: ...er program already written to MCU Supports bus powered regulator from 5V to 3 3V system power supply 5 Related Documents Please refer to the following manuals and application note as needed when using...

Page 10: ...d Specification Figure 1 and Figure 2 show external views of the front and back of the demo board Figure 1 R0K5R8C3MDU30BR Board Top View Figure 2 R0K5R8C3MDU30BR External View back LED Green R8C 3MK...

Page 11: ...mpliant Full speed Receptacle Mini B UX60SC MB 5ST Hirose Power supply regulator MIC5353 3 3YMT Micrel Table 2 R0K5R8C3MDU30BR Power Supply Dimensions Environment Specifications Item Specification Usa...

Page 12: ...ailed instructions on how to attach the header pin to J3 see 7 2 Header Pin Attachment for details concerning connection with the external serial communication device see 7 3 External Serial Device Co...

Page 13: ...ystem definition Inf file and the upgrade application software mot are provided as electronic data and can be downloaded from Renesas web site for more details please see Release Note Please refer to...

Page 14: ...row 8 pin header pin Figure 5 J3 Header Pin Attachment Position Figure 6 Example of Bundled Header Pin Attached to J3 7 3 External Serial Communications Device Connection The demo board uses J1 J2 an...

Page 15: ...2 Figure 8 Positioning of Signal Lines and Power Supply GND Connected to J3 Table 4 Relation of connector pin No and MCU functions Terminal name J1 pin J2 pin J3 pin UART I2 C SSU GND 1 1 GND GND GND...

Page 16: ...nafter called SSU device to SSU in the R8C 3MK MCU As shown in Figure 9 if TP1 of this product is open when power is turned on the application runs as the USB to serial communication conversion functi...

Page 17: ...communication speed Set baud rate from 4800bps to57600bps 3 Set all other parameters for serial port Set the following setting Data length 8 bits parity none stop bit 1 bit flow control none The examp...

Page 18: ...2 Example of setting the serial port parameters on the terminal software 8 2 USB Downloader Function When the demo board is turned on while the USB downloader function switch pin TP1 is grounded GND t...

Page 19: ...ure 14 Terminal Software Display when MCU Flash ROM Data Erase is Complete 4 Write program 1 Enter W CR command to send the target Motorola S Format file from the Terminal software When the display sh...

Page 20: ...required for the initial connection 2 Confirm the COM number Windows device manager 2 Start up Terminal Software 1 Enter the confirmed COM number in the terminal software For the first step is selecti...

Page 21: ...tware 2 Set the communication speed Set baud rate from 600bps to115200bps 3 Set all other parameters for serial port Set the following for the program in the demo board Data length 8 bits parity none...

Page 22: ...ith I2 C slave devices Data length 9bit including acknowledge bit Wait insertion No wait states Data and the acknowledge bit are transferred consecutively 4 This product can communicate with the exter...

Page 23: ...evice You can communicate with SSU slave device Data length 8bit Data transfer direction MSB first SSCK clock phase Change data at odd edge Download data at even edge 4 This product can communicate wi...

Page 24: ...t responses the error code 0xFFyy yy is control field in the error condition as a command error 2 DevAdr Device address of I2 C devices 1 byte in binary format 0x00 0x7F This field consists of 7bits i...

Page 25: ...ived If the total length of command packet and data packet is less or equal 64bytes you can send a combined packet The detail is refer to 9 1 3 In the case of Read Access This product keeps on sending...

Page 26: ...the Read Access USB Packet Command 0x02 DevAdr 0x02 RegAdr 0x03 Len lower 0x02 Len upper 0x00 Data D001 0x01 I2CPacket Register Address 0x03 Data D001 0x01 S P Protocol Conversion of Rea Access Receiv...

Page 27: ...t Second Packet Send Data Packet 64 bytes Device Address b0000010 W Data D064 0x40 Data D065 0x41 Data D100 0x64 Third Packet Send Data Packet 36 bytes Control 0x00 DevAdr 0x02 RegAdr 0x03 Len lower 0...

Page 28: ...1EX24008ASAS0A Select I2C Demo send I pause 1 Write Access USB Command Packet and USB Data Packet separately Write 1234567890abcdef to Register Address 0x00 send 00 50 00 10 00 send 31 32 33 34 35 36...

Page 29: ...0x01 Read Access Control command consisted of 5 bytes 0x20 Memory Write Memory Write command consisted of 7 bytes 0x21 Memory Read Memory Read command consisted of 7 bytes 0x30 Instruction Write Contr...

Page 30: ...can send a combined packet The detail is refer to 10 1 3 In the case of Read Access This product keeps on sending data to USB Host until the USB data length is equal to Len field of packet command 10...

Page 31: ...Figure 26shows the protocol conversion of the Read Access USB packet Control 0x01 Dummy 0x00 Instruction 0x Len Lower 0x64 Len Upper 0x00 Data D001 0x01 SSU packet Instruction 0x Data D001 0x01 Proto...

Page 32: ...et Data D001 0x01 Protocol Conversion of Write Access Using Combined Packet First Packet Send Combined Packet First Packet Send Command Data Data D002 0x40 Control 0x00 Dummy 0x00 Instruction 0x Len L...

Page 33: ...y Write Send 2 Bytes Data First Packet Send Command Packet Second Packet Send Data Packet 2bytes First Packet Send Command and Data Data D002 0x40 Data D002 0x40 SSU Transmission SSU Reception Address...

Page 34: ...lect SSU Demo send S pause 1 Write Enable Instruction Write command send 30 00 06 00 00 Memory Write Write 1234567890abcdef to Memory Address 0x00 send 20 00 02 10 00 00 00 send 1234567890abcdef Write...

Page 35: ...Demo Board R0K5R8C3MDU30BR Instruction Manual R01AN1051EJ0100 Rev 1 00 Page 34 of 38 Mar 21 2012 11 Circuit Diagram See attached document Appendix 1 12 Parts Layout Diagram See attached document Appen...

Page 36: ...38 Mar 21 2012 Website and Support Renesas Electronics Website http www renesas com USB Device Page http www renesas com en usb Inquiries http www renesas com contact All trademarks and registered tra...

Page 37: ...R12 4 7k J1 CON5 J1 CON5 1 2 3 4 5 C6 0 1u C6 0 1u 1 2 R4 1 5K R4 1 5K R9 0 R9 0 C7 0 1u C7 0 1u 1 2 X1 CERAMIC X1 CERAMIC 1 3 2 R13 4 7k R13 4 7k R10 100k R10 100k C2 0 1u C2 0 1u 1 2 U2 MIC5353 3 3...

Page 38: ...Appendix2 Parts Layout Diagram 1 Front Surface 2 Rear Surface...

Page 39: ...3 FFC 8LBMEP1B HONDA unmount 0 8 Chip Monolithic Ceramic Capacitor C1 C3 C4 C1005X5R1C105K TDK 3 1 0uF 16V 9 Chip Monolithic Ceramic Capacitor C2 C5 C6 GRM155B11A104KA01D Murata 3 0 1uF 16V 10 Chip Mo...

Page 40: ...A 1 Revision Record Description Rev Date Page Summary 1 00 Mar 21 12 First edition issued...

Page 41: ...supplied until the reset process is completed In a similar way the states of pins in a product that is reset by an on chip power on reset function are not guaranteed from the moment when power is sup...

Page 42: ...support devices or systems surgical implantations or healthcare intervention e g excision etc and any other applications or purposes that pose a direct threat to human life 8 You should use the Renes...

Reviews: