Renesas RX62N User guide

User’s Manual
RX62N Group
32
Renesas Starter Kit+ User’s Manual
RENESAS MCU RX Family / RX600 Series
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 Corporation without notice. Please review the latest information published by Renesas Electronics Corporation through various means, including the Renesas Electronics Corporation website (http://www.renesas.com).
www.renesas.com
Rev.2.01 Nov 2011
Notice
1. All information included in this document is current as of the date this document is issued. Such information, however, is subject to change without any prior notice. Before purchasing or using any Renesas Electronics products listed herein, please confirm the latest product information with a Renesas Electronics sales office. Also, please pay regular and careful attention to additional and different information to be disclosed by Renesas Electronics such as that disclosed through our website.
2. Renesas Electronics does not assume any liability for infringement of patents, copyrights, or other intellectual property rights of third parties by or arising from the use of Renesas Electronics products or technical information described in this document. No license, express, implied or otherwise, is granted hereby under any patents, copyrights or other intellectual property rights of Renesas Electronics or others.
3. You should not alter, modify, copy, or otherwise misappropriate any Renesas Electronics product, whether in whole or in part.
4. Descriptions of circuits, software and other related information in this document are provided only to illustrate the operation of semiconductor products and application examples. You are fully responsible for the incorporation of these circuits, software, and information in the design of your equipment. Renesas Electronics assumes no responsibility for any losses incurred by you or third parties arising from the use of these circuits, software, or information.
5. When exporting the products or technology described in this document, you should comply with the applicable export control laws and regulations and follow the procedures required by such laws and regulations. You should not use Renesas Electronics products or the technology described in this document for any purpose relating to military applications or use by the military, including but not limited to the development of weapons of mass destruction. Renesas Electronics products and technology may not be used for or incorporated into any products or systems whose manufacture, use, or sale is prohibited under any applicable domestic or foreign laws or regulations.
6. Renesas Electronics has used reasonable care in preparing the information included in this document, but Renesas Electronics does not warrant that such information is error free. Renesas Electronics assumes no liability whatsoever for any damages incurred by you resulting from errors in or omissions from the information included herein.
7. Renesas Electronics products are classified according to the following three quality grades: “Standard”, “High Quality”, and “Specific”. The recommended applications for each Renesas Electronics product depends on the product’s quality grade, as indicated below. You must check the quality grade of each Renesas Electronics product before using it in a particular application. You may not use any Renesas Electronics product for any application categorized as “Specific” without the prior written consent of Renesas Electronics. Further, you may not use any Renesas Electronics product for any application for which it is not intended without the prior written consent of 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. The quality grade of each Renesas Electronics product is “Standard” unless otherwise expressly specified in a Renesas Electronics data sheets or data books, etc.
“Standard”: Computers; office equipment; communications equipment; test and measurement equipment; audio and visual
equipment; home electronic appliances; machine tools; personal electronic equipment; and industrial robots.
“High Quality”: Transportation equipment (automobiles, trains, ships, etc.); traffic control systems; anti-disaster systems; anti-
crime systems; safety equipment; and medical equipment not specifically designed for life support.
“Specific”: Aircraft; aerospace equipment; submersible repeaters; nuclear reactor control systems; medical equipment or
systems for life support (e.g. artificial life 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 Renesas Electronics products described in this document within the range specified by Renesas Electronics, especially with respect to the maximum rating, operating supply voltage range, movement power voltage range, heat radiation characteristics, installation and other product characteristics. Renesas Electronics shall have no liability for malfunctions or damages arising out of the use of Renesas Electronics products beyond such specified ranges.
9. Although Renesas Electronics endeavors to improve the quality and reliability of its products, semiconductor products have specific characteristics such as the occurrence of failure at a certain rate and malfunctions under certain use conditions. Further, Renesas Electronics products are not subject to radiation resistance design. Please be sure to implement safety measures to guard them against the possibility of physical injury, and injury or damage caused by fire in the event of the failure of a 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. Because the evaluation of microcomputer software alone is very difficult, please evaluate the safety of the final products or system manufactured by you.
10. Please contact a Renesas Electronics sales office for details as to environmental matters such as the environmental compatibility of each Renesas Electronics product. Please use Renesas Electronics products in compliance with all applicable laws and regulations that regulate the inclusion or use of controlled substances, including without limitation, the EU RoHS Directive. Renesas Electronics assumes no liability for damages or losses occurring as a result of your noncompliance with applicable laws and regulations.
11. This document may not be reproduced or duplicated, in any form, in whole or in part, without prior written consent of Renesas Electronics.
12. Please contact a Renesas Electronics sales office if you have any questions regarding the information contained in this document or Renesas Electronics products, or if you have any other inquiries.
(Note 1) “Renesas Electronics” as used in this document means Renesas Electronics Corporation and also includes its majority-
owned subsidiaries.
(Note 2) “Renesas Electronics product(s)” means any product developed or manufactured by or for Renesas Electronics.
Disclaimer
By using this Renesas Starter Kit (RSK), the user accepts the following terms:
The RSK is not guaranteed to be error free, and the entire risk as to the results and performance of the RSK is assumed by the User. The RSK is provided by Renesas on an “as is” basis without warranty of any kind whether express or implied, including but not limited to the implied warranties of satisfactory qualit y, fitness for a particular purpose, title and non-infringement of intellectual property rights with regard to the RSK. Renesas expressly disclaims all such warranties. Renesas or its affiliates shall in no event be liable for any loss of profit, loss of data, loss of contract, loss of business, damage to reputation or goodwill, any economic loss, any reprogramming or recall costs (whether the foregoing losses are direct or indirect) nor shall Renesas or its affiliates be liable for any other direct or indirect special, incidental or consequential damages arising out of or in relation to the use of this RSK, even if Renesas or its affiliates have been advised of the possibility of such damages.
Precautions
The following precautions should be observed when operating any RSK product:
This Renesas Starter Kit is only intended for use in a laboratory environment under ambient temperature and humidity conditions. A safe separation distance should be used between this and any sensitive equipment. Its use outside the laboratory, classroom, study area or similar such area invalidates conformity with the protection requirements of the Electromagnetic Compatibility Directive and could lead to prosecution.
The product generates, uses, and can radiate radio frequency energy and may cause harmful interference to radi o communications. However, there is no guarantee that interference will not occur in a particular installation. If this equipment causes harmful interference to radio or television reception, which can be determined by turning the equipment off or on, you are encouraged to try to correct the interference by one or more of the following measures;
ensure attached cables do not lie across the equipment
reorient the receiving antenna
increase the distance between the equipment and the receiver
connect the equipment into an outlet on a circuit different from that which the receiver is connected
power down the equipment when not in use
consult the dealer or an experienced radio/TV technician for help NOTE: It is recommended that wherever
possible shielded interface cables are used.
The product is potentially susceptible to certain EMC phenomena. To mitigate against them it is recommended that the following measures be undertaken;
The user is advised that mobile phones should not be used within 10m of the product when in use.
The user is advised to take ESD precautions when handling the equipment.
The Renesas Starter Kit does not represent an ideal reference design for an end product and does not fulfil the regulatory standards for an end product.
How to Use This Manual
1. Purpose and Target Readers
This manual is designed to provide the user with an understanding of the RSK hardware functionality, and electrical characteristics. It is intended for users designing sample code on the RSK platform, using the many different incorporated peripheral devices.
The manual comprises of an overview of the capabilities of the RSK product, but does not intend to be a guide to embedded programming or hardware design. Further details regarding setting up the RSK and development environment can found in the tutorial manual.
Particular attention should be paid to the precautionary notes when using the manual. These notes occur within the body of the text, at the end of each section, and in the Usage Notes section.
The revision history summarizes the locations of revisions and additions. It does not list all revisions. Refer to the text of the manual for details.
The following documents apply to the RX62N Group. Make sure to refer to the latest versions of these documents. The newest versions of the documents listed may be obtained from the Renesas Electronics Web site.
Document Type Description Document Title Document No.
User’s Manual Describes the technical details of the RSK hardware. RSK+RX62N User’s
Manual
Software Manual Describes the functionalit y of the sample code, and
its interaction with the Renesas Peripheral Driver Library (RPDL)
Tutorial Provides a guide to setting up RSK environment,
running sample code and debugging programs.
Quick Start Guide Provides simple instructions to setup the RSK and
run the first sample, on a single A4 sheet.
Schematics Full detail circuit schematics of the RSK. RSK+RX62N
Hardware Manual Provides technical details of the RX62N
microcontroller.
RSK+RX62N Software Manual
RSK+RX62N Tutorial Manual
RSK+RX62N Quick Start Guide
Schematics RSK+RX62N
Hardware Manual
REJ10J2198
REJ10J2201
REJ10J2199
REJ10J2200
RJJ99J0073
R01UH0033EJ
2. List of Abbreviations and Acronyms
Abbreviation Full Form
ADC Analogue-to-Digital Converter bps bits per second CAN Controller-Area Network CPU Central Processing Unit CRC Cyclic Redundancy Check DIP Dual In-line Package DMA Direct Memory Access DMAC Direct Memory Access Controller E1 On-chip Debugger EEPROM Electronically Erasable Programmable Read Only Memory EMC Electromagnetic Compatibility ESD Electrostatic Discharge HEW High-performance Embedded Workshop I2C Phillips™ Inter-Integrated Circuit Connection Bus IRQ Interrupt Request LCD Liquid Crystal Display LED Light Emitting Diode MCU Micro-controller Unit MTU Multifunction Timer Unit OTG On The Go™ PC Program Counter PLL Phase Locked Loop PWM Pulse Width Modulation RSK+ Renesas Starter Kit+ RSPI Renesas Serial Peripheral Interface SDRAM Synchronous Dynamic Random Access Memory SFR Special Function Register SPI Serial Peripheral Interface SRAM Static Random Access Memory TFT Thin Film Transistor UART Universal Asynchronous Receiver/Transmitter USB Universal Serial Bus
Table of Contents
1. Overview............................................................................................................................................8
1.1 Purpose...................................................................................................................................................................... 8
1.2 Features..................................................................................................................................................................... 8
2. Power Supply.....................................................................................................................................9
2.1 Requirements ............................................................................................................................................................ 9
2.2 Power-Up Behaviour................................................................................................................................................. 9
3. Board Layout ...................................................................................................................................10
3.1 Component Layout.................................................................................................................................................. 10
3.2 Board Dimensions....................................................................................................................................................11
3.3 Component Placement ............................................................................................................................................ 12
4. Connectivity..................................................................................................................................... 14
4.1 Internal RSK Connections ...................................................................................................................................... 14
4.2 Debugger Connections............................................................................................................................................ 15
5. User Circuitry...................................................................................................................................16
5.1 Reset Circuit ........................................................................................................................................................... 16
5.2 Clock Circuit........................................................................................................................................................... 16
5.3 Switches.................................................................................................................................................................. 16
5.4 LEDs....................................................................................................................................................................... 17
5.5 Potentiometer.......................................................................................................................................................... 17
5.6 Debug LCD Module ............................................................................................................................................... 17
5.7 RS232 Serial Port.................................................................................................................................................... 18
5.8 Controller-Area Network (CAN) ............................................................................................................................ 18
5.9 Ethernet................................................................................................................................................................... 19
5.10 Universal Serial Bus (USB) .................................................................................................................................... 20
5.11 Generic LCD Header .............................................................................................................................................. 21
5.12 External Bus............................................................................................................................................................ 22
5.13 Renesas Serial Peripheral Interface (RSPI)............................................................................................................. 22
5.14 I2C Bus (Inter-IC Bus) ............................................................................................................................................ 22
6. Configuration ...................................................................................................................................23
6.1 Modifying the RSK................................................................................................................................................. 23
6.2 MCU Configuration................................................................................................................................................ 23
6.3 ADC Configuration................................................................................................................................................. 24
6.4 RS232 Serial Port Configuration ............................................................................................................................ 25
6.5 CAN Configuration................................................................................................................................................. 27
6.6 External Bus Configuration .................................................................................................................................... 28
6.7 USB Configuration ................................................................................................................................................. 30
6.8 Ethernet Configuration............................................................................................................................................ 33
6.9 Multi-Function Timer Pulse Unit (MTU) Configuration ........................................................................................ 35
6.10 IRQ & General I/O Pin Configuration .................................................................................................................... 39
6.11 Power Supply Configuration................................................................................................................................... 41
6.12 Clock Configuration................................................................................................................................................ 42
6.13 External Memory Configuration ............................................................................................................................. 42
7. Headers ............................................................................................................................................44
7.1 Application Headers................................................................................................................................................ 44
7.2 Generic Headers...................................................................................................................................................... 47
8. Code Development...........................................................................................................................48
8.1 Overview................................................................................................................................................................. 48
8.2 Compiler Restrictions ............................................................................................................................................. 48
8.3 Mode Support.......................................................................................................................................................... 48
8.4 Debugging Support................................................................................................................................................. 48
8.5 Address Space......................................................................................................................................................... 49
9. Additional Information.....................................................................................................................50
RSK+RX62N REJ10J2198-0201
Rev.2.01 RENESAS STARTER KIT+
Nov 30, 2011

1. Overview

1.1 Purpose

This RSK is an evaluation tool for Renesas microcontrollers. This manual describes the technical details of the RSK hardware. The Quick Start Guide and Tutorial Manual provide details of the software installation and debugging environment.

1.2 Features

This RSK provides an evaluation of the following features:
Renesas microcontroller programming
User code debugging
User circuitry such as switches, LEDs and a potentiometer
Sample application
Sample peripheral device initialisation code
The RSK board contains all the circuitry required for microcontroller operation.
REJ10J2198-0201 Rev. 2.01 Page 8 of 54 Nov 30, 2011
RSK+RX62N 2. Power Supply

2. Power Supply

2.1 Requirements

This RSK+ is supplied with an E1 debugger. The debugger is able to power the RSK+ board with up to 200mA. When the RSK is connected to another system then that system should supply power to the RSK+. All RSK and RSK+ boards have an optional centre positive supply connector using a 2.0mm barrel power jack.
This RSK+ supports a wide range of voltage inputs, and requires specific configuration for different inputs. Details of the external power supply connections are shown in Table 2-1 below.
Connector Supply Voltages J10 Setting J11 Setting
Regulated, 5V DC Shorted Shorted PWR1
The main power supply connected to PWR1 should supply a minimum of 5W to ensure full functionality.
This RSK+ features an independent USB power supply, which allows a user to power the USB host/OTG modules from a second external power supply. Connections for the external USB power supply are detailed in Ta bl e 2- 2 below.
Connector Supply Voltages
PWR2 Regulated, 3.3V DC PWR3 Regulated, 5V DC
Unregulated, 7 to 15V DC Open Open
Table 2-1: Main Power Supply Requirements
Table 2-2: USB Power Supply Requirements
The USB power supplies connected to PWR2 and PWR3 should both supp ly a minimum of 600mA to ensure full USB host functionality. Note: The OTG module is limited to supply a maximum of 200mA when operating as host.
The RSK+ can also be powered directly from the USB VBUS, when a suitable host device is connected to the USB0 connector and the RSK+ is correctly configured (refer to §6). This will limit the current consumption of the RSK+ to 500mA (USB maximum), therefore full functionality can not be achieved whilst being powered from the USB VBUS.

2.2 Power-Up Behaviour

When the RSK+ is purchased, the RSK+ board has the ‘Release’ or stand-alone code from the example tutorial code pre-programmed into the Renesas microcontroller. On powering up the board the user LEDs will start to flash. After 200 flashes or after pressing any switch, the LEDs will flash at a rate controlled by the potentiometer.
REJ10J2198-0201 Rev. 2.01 Page 9 of 54 Nov 30, 2011
RSK+RX62N 3. Board Layout

3. Board Layout

3.1 Component Layout

Figure 3-1 below shows the top component layout of the board.
Ethernet Interface
Application HeadersEthernet Status LEDs
USB Host
USB OTG
RS232 Serial
Debug LCD Header
CAN Header
Power Jack
5V Rail LED
3.3V Rail LED DIP Switches
JA6 JA2
JA5 JA1
RX62N
Application Board Interface
SW4
User LEDsReset Switch
E1 InterfaceE20 Interface
TFT JA3
User Switches
TFT Display Header Application Board Interface
Analog Potentiometer
Figure 3-1: Board Layout
REJ10J2198-0201 Rev. 2.01 Page 10 of 54 Nov 30, 2011
RSK+RX62N 3. Board Layout

3.2 Board Dimensions

Figure 3-2 below gives the board dimensions and connector positions. All the through-hole connectors are on a common 0.1 inch grid for easy interfacing.
Ether-
net
Serial
CAN
PWR
12.0mm 3.2mm3.00mm 7.0mm 3.2mm
JA6 JA2
LCD
RES
E20
USB
USB
RX62N
J20
TFT JA3
E1 SW1 SW2 SW3
54.53mm
85.01mm
90.00mm
97.71mm
JA5 JA1
RV1
19.00mm
7.00mm
40.00mm
7.00mm
8.81mm
10.00mm
68.64mm
76.26mm
104.20mm
110.00mm
111.82mm
119.44mm
128.00mm
143.00mm
150.00mm
173.00mm
180.00mm
Figure 3-2: Board Dimensions
REJ10J2198-0201 Rev. 2.01 Page 11 of 54 Nov 30, 2011
RSK+RX62N 3. Board Layout

3.3 Component Placement

Figure 3-3 below shows placement of individual components on the top-side PCB – bottom-side component placement can be seen in Figure 3-4, overleaf. Component types and values can be looked up using the board schematics.
(3V3_PWR)
POWER1(5V_ PWR)
RES
LED0
LED1
LED2
LED3
GND4
SW1 SW2
SW3
R189
C59
E20
E1
R188
U10
R190
C58
GND3
T3
T5R20
R187
R203 R202 R199 R200 R201 R204
R193
R195 R196 R197 R198 R194
T18
R18
R17
R19
R21
R22
T4
C29
C30
C28
C27 C26
RV1
C49
R220R16
POWER2
U9
C50
L1
R323
R24
J1
R324
R25 R26 R27 R28
SW4
R219
JA3
R163
R160
R159
R162
R161
J9
R166
U7
R167
C42
R165
R164
PWR1
D1
C44
C43
D10
J10
J11
D2
C45
C46
D3
D5
C54
C55
J13
R175
R227 R226
R222
R221
R15
TFT
R139 R251 R252 R135
U2
C31
R29
R32
J2
R158
R172
R174
R173
C47
C48
U8
R176
R177
R223
U5
U3
J17
R33
RCAN
C67
R248
C96
R228
R229
JA2
R320 R321
R143
C32
R30
J3
JA1
R247
LCD
R253
R70
R69
R90
R89 R138 R112 R113 R238 R239
R97
R96
R240 R241 R235 R234 R170
J20
R87
R86
R73
R72
R75
R74
R79
R78
R254
R71
R246
U12
R93
R88 R137 R108 R109 R236 R237 R232 R233
R132 R133 R128 R129 R141
R140
R124 R125
R85 R47 R84 R81 R80 R83 R82 R77 R76
R136
T6
C65
R243
C66
R242
SERIAL
R212
R209
R210
C61
C62
C64
J14
C63
U11
R317 R316
R206
C95
GND2
Product Label
R211R205
C60
R207
R208
R217
R218
R36
R35
R37
R225 R42
R134R224
R43
R41
R91
R92
R231
R230
R95
R94
R110 R111 R106 R107
R39
R38
R40
R60
R59
R57
R58
R56
J5
J6
R213R215
JA6
R55
R54
J16
J15
R214R216
J4
C33
R34 R31
U4
R118
R116
R114
R115
R117
R119
R121R120
R64
R65
R53
R52
R51
R50
R49
J22
R310
C88
L6
C79
R290
L4
C80 C87
R306
C83
C86
X4
R122
R98
R123
R99
GND6
C76
ETHERNET
R307 R304 R305
C91 C92C93 C94
C89C90
C85
C84
U15
R301
R302
C77C78
R100
R102
R105
R101
R103
R104
T13
R274 R275
GND1
R312
LED5
(DUPLEX)
R311
R315
R314 R313
T14T16T15T17
LED4
C81
(SPEED)
C82
L5
PWR
C97
C98
3
PWR
C56
C57
2
U14
R327 C75 R328
R130 R131 R126 R127
R46 R45 R44
R12
R10
R9
C9
J23
X3
U1
C22
R11
R7R5C6
C10
R2
X1
C5R4R6
R8
X2
C8
C7
R3
JA5
T1
R191
T2
R154
R156
R155
R153
R157
GND5
R272 R273
D9
R270 R271
T12
T9
R192
T10
C70
J19
U13
C71
R257 R258
R259 R255 R256
T7
L3
/R276
R260
/R268
USB1
D7
R277
R322
T11
J12
C69
C72
J18
T8
D8
D6
L2
J21
USB0
R269
J7
J8
Figure 3-3: Top-Side Component Placement
REJ10J2198-0201 Rev. 2.01 Page 12 of 54 Nov 30, 2011
RSK+RX62N 3. Board Layout
Figure 3-4 below shows the component placement on the bottom-side of the RSK+ board.
R181
R182
C68
R250 R249
R244R245
R309
Serial Number
R303
R308
R279 R282 R280 R281
R297 R292
R296 R291
R284
R283
R300
R295
R288
R294
R287
R289 R278
R299
R298 R293
R286
R285
MAC Address
C51 C52 C53
D4
R183
R184
R185
R186
JA6 JA2
R62
R171
R169
C17
C19
C18
C16
C15
R144
C2
R23
C1
R326 R325
C74
C73
R265
R266
R267
R262 R261
R264
R263
C3 R1
C20 C21
C12
C13
C4
C25
C14
C24
C23
C11
R329
R330 R332
R14
R13
R168
R331
C40
R146 R147 R148 R149
C34
C35
C36 C37
R150 R151 R152
C38
C36
TFT
JA3
U6
R179R178
C41
R67
R180
R318
R319
R48
JA1JA5
Figure 3-4: Bottom-Side Component Placement
REJ10J2198-0201 Rev. 2.01 Page 13 of 54 Nov 30, 2011
RSK+RX62N 4. Connectivity

4. Connectivity

4.1 Internal RSK Connections

The diagram below shows the RSK+ board components and their connectivity to the MCU.
Power Jack
Application Board Headers
MCU Pin Headers
Debug LCD
E1/E20 Debug Interface
CAN
RS-232
TFT Driver
USB Function/Host/OTG
Ethernet
Optional Jacks
VCC
Mode Pins
RX62N
MCU
ADC I/O
Potentiometer
Figure 4-1: Internal RSK+ Block Diagram
Reset
IRQ
Boot Mode Switches
128Mbit SDRAM
16Kbit I2C EEPROM
16Mbit SPI Serial Flash
Reset Circuit
SW3
SW2 SW1
Switches
User LEDs
RRO R
Ethernet
GGG Y
LEDs
Power
G
RESET
G
REJ10J2198-0201 Rev. 2.01 Page 14 of 54 Nov 30, 2011
RSK+RX62N 4. Connectivity

4.2 Debugger Connections

The diagram below shows the connections between the RSK+, E1 debugger and the host PC.
User Interface
Cable
E1 Emulator
RSK+
USB Cable
Host PC
Figure 4-2: Debugger Connection Diagram
REJ10J2198-0201 Rev. 2.01 Page 15 of 54 Nov 30, 2011
Loading...
+ 35 hidden pages