REJ10J2128-0100 Renesas Starter Kit for R8C/38C User's Manual RENESAS SINGLE-CHIP MICROCOMPUTER R8C FAMILY R8C/3X SERIES Rev.1.00 Revision date: 01.APR.2010 Renesas Electronics Europe Ltd. www.renesas.
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.
Table of Contents Chapter 1. Preface .................................................................................................................................................. 1 Chapter 2. Purpose ................................................................................................................................................. 2 Chapter 3. Power Supply .......................................................................................................................................
Chapter 1. Preface Cautions This document may be, wholly or partially, subject to change without notice. All rights reserved. Duplication of this document, either in whole or part is prohibited without the written permission of Renesas Electronics Europe Limited. Trademarks All brand or product names used in this manual are trademarks or registered trademarks of their respective companies or organisations. Copyright © 2010 Renesas Electronics Europe Ltd. All rights reserved.
Chapter 2. 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. Features include: • Renesas Microcontroller Programming. • User Code Debugging. • User Circuitry such as switches, LEDs and potentiometer • Sample Application. • Sample peripheral device initialisation code.
Chapter 3. Power Supply 3.1. Requirements This RSK board operates from a 5V DC power supply. A diode provides reverse polarity protection only if a current limiting power supply is used. All RSK boards are supplied with an E8a debugger. This product is able to power the RSK board with up to 300mA. When the RSK is connected to another system then that system should supply power to the RSK. All RSK boards have an optional centre positive supply connector using a 2.1mm barrel power jack.
Chapter 4. Board Layout 4.1. Component Layout The following diagram shows the top layer component layout of the board.
4.2. Board Dimensions The following diagram gives the board dimensions and connector positions. All through-hole connectors are on a common 0.1” grid for easy interfacing.
Chapter 5. Block Diagram Figure 5-1 shows the RSK board components and their connectivity. Power Jack Option Application Board Headers Boot Mode Pins Microcontroller Pin Headers Boot Circuitry Microcontroller Debug LCD Header RESn RESET D-Type latch IRQ IRQ IRQ RS-232 Serial Connector LIN ADC Input SW3 SW2 SW1/BOOT RES Potentiometer SWITCHES Power: Red User: 4 LEDs 1 Green, 1 Orange Boot: Orange 2 Red LEDs Figure 5-1: Block Diagram Figure 5-2 shows E8a connections to the RSK.
Chapter 6. User Circuitry 6.1. Switches There are four switches located on the RSK board. The function of each switch and its connection are shown in Table 6-1 Switch Function Microcontroller RES When pressed, the microcontroller is reset. RESETn, Pin 9 SW1 / BOOT* Connects to an INT input for user controls. INT1n, Pin 35 (Port 3, bit 6) The switch is also used in conjunction with the RES switch to place the device in BOOT mode when not using the E8a debugger.
6.4. Serial port Serial port UART2 is connected to the standard RS232 header. Serial port UART0 can optionally be connected to the RS232 transceiver by moving option resistors. The connections to be moved are listed in the Table 6-3.
6.6. LIN The serial port UART0 also functions as LIN port pins. The options links to be configured are listed in the Table 6-5 Description Function Circuit Net Name Device Pin Fit for Hardware Remove for LIN Hardware LIN LIN TXD LINTXD 52 R70 R71 LIN RXD LINRXD 51 R72 R73 LIN NSLP LINNSLP 50 R74 R75 Table 6-5: Hardware LIN Settings For more details regarding configuring the RSK to operate in LIN master and slave mode, refer to table 6-6.
6.7. Option Links In this section, the default configuration is indicated by BOLD text. Table 6-6 below describes the function of the option links associated with serial port configuration.
R95 R96 LIN Mode When fitted in conjunction with R96, When removed in conjunction with R96, the Configuration the LIN operates in master mode. LIN operates in slave mode LIN Mode When fitted in conjunction with R95, When removed in conjunction with R95, the Configuration the LIN operates in master mode. LIN operates in slave mode. R96 R95 Table 6-6: Serial port configuration links Table 6-7 below describes the function of the option links associated with Power Source configuration.
Table 6-8 below describes the function of the option links associated with Analog Voltage Source configuration.
Table 6-9 below describes the function of the option links associated with application board interface.
R82 R83 R84 R85 R86 R87 R88 R98 R89 R90 Application Board Connects MCU port pin P3_6 (pin 35) to Disconnects MCU port pin P3_6 (pin Interface user switch SW1 35) from SW1 Application Board Connects MCU port pin P3_6 (pin 35) to Disconnects MCU port pin P3_6 (pin Interface INT1n at JA2-7 35) from INT1n Application Board Connects MCU port pin P3_7 (pin 19) to Disconnects MCU port pin P3_7 (pin Interface TXD2 at JA2-8 19) from TXD2 Application Board Connects MCU port pin P3_7 (pin 19) to
Table 6-10 below describes the function of the option links associated with Clock configuration.
Table 6-11 below describes miscellaneous options links.
Chapter 7. Modes The Renesas Starter Kit supports Boot mode and Single chip mode. Details of programming the FLASH memory is described in the R8C/38C Group Hardware Manual. This circuit is not required on customer’s boards as it is intended for providing easy evaluation of the operating modes of the device on the RSK. To manually enter the Boot mode, press and hold the SW1/BOOT. The mode pins are held in their boot states while reset is pressed and released. Release the boot button.
7.2. Single chip mode Because the MODE pin is pulled high, this Renesas Starter Kit will always boot in Single chip mode when the E8a is not connected and the boot switch is not depressed. Refer to R8C/38C Group Hardware Manual for details of Single chip mode.
Chapter 8. Programming Methods The board is intended for use with HEW and the supplied E8a debugger. Refer to R8C/38C Group Hardware Manual for details of programming the microcontroller without using these tools.
Chapter 9. Headers 9.1. Microcontroller Ring Headers The microcontroller pin headers and their corresponding microcontroller connections are detailed in Table 9-1 to Table 9-4.
Header Circuit Net Name Device pin Header Pin Circuit Net Name Device pin Pin 1 RXD2_IVREF3 21 2 CTS2RTS2_IVCMP3 22 3 Wn 23 4 Vn 24 5 Wp 25 6 Vp 26 7 Un 27 8 Up 28 9 TRDIOC0 29 10 TRDIOA0 30 11 DLCDD7 31 12 DLCDD6 32 13 DLCDD5 33 14 DLCDD4 34 15 SW1_INT1n 35 16 PIN36 36 17 IO7 37 18 IO6 38 19 IO5 39 20 IO4 40 21 - - 22 - - 23 - - 24 - - 25 - - 26 - - 27 - - 28 - - 29 - - 30 - - 31 - - 32 - - 33 - - 34
Header Circuit Net Name Device pin Header Pin Circuit Net Name Device pin Pin 1 IO3 41 2 IO2 42 3 IO1 43 4 IO0 44 5 INT3n 45 6 SW2_INT2n 46 7 INT4n 47 8 SW3_ADTRGn_TRISTn 48 9 PIN49 49 10 LINNSLP_CLK0 50 11 LINRXD0_RXD0 51 12 LINTXD0_TXD0 52 13 PIN53 53 14 PIN54 54 15 PIN55 55 16 ADPOT 56 17 AN19 57 18 AN18 58 19 AN17 59 20 AN16 60 21 - - 22 - - 23 - - 24 - - 25 - - 26 - - 27 - - 28 - - 29 - - 30 - - 31 - -
Header Circuit Net Name Device pin Header Pin Circuit Net Name Device pin Pin 1 AN15 61 2 AN14 62 3 AN13 63 4 AN12 64 5 AN0_DA1 65 6 AN1_DA0 66 7 AN2 67 8 AN3 68 9 LED3 69 10 LED2 70 11 LED1 71 12 LED0 72 13 RXD1 73 14 TXD1 74 15 CLK1 75 16 PIN76 76 17 TREO 77 18 DLCDRS 78 19 DLCDE 79 20 TRGIOB 80 21 - - 22 - - 23 - - 24 - - 25 - - 26 - - 27 - - 28 - - 29 - - 30 - - 31 - - 32 - - 33 - - 34 - - 35 -
9.2. Application Headers Standard application header connections are detailed in Table 9-5 to Table 9-8.
Header Generic Header RSK board Signal Pin Name Name Device Pin Header Generic RSK board Signal Pin Header Name Name Device Pin 1 AD4 AN12 64 2 AD5 AN13 63 3 AD6 AN14 62 4 AD7 AN15 61 5 CAN1TX --- --- 6 CAN1RX --- --- 7 CAN2TX --- --- 8 CAN2RX --- --- 9 AD8 AN16 60 10 AD9 AN17 59 11 AD10 AN18 58 12 AD11 AN19 57 13 TIOCOA TRGIOA 1 14 TIOCOB TRGIOB 80 15 TIOCOC TRCIOB 16 16 M2_TRISTn --- --- 17 TCLKC TRGCLKA 4 18 TCLKD TRGCLKB
Chapter 10. Code Development 10.1. Overview Note: For all code debugging using Renesas software tools, the RSK board must be connected to a PC USB port via an E8a. Due to the continuous process of improvements undertaken by Renesas the user is recommended to review the information provided on the Renesas website at www.renesas.com to check for the latest updates to the Compiler and Debugger manuals. 10.2.
10.5. Memory Map The memory map shown below gives the locations of each memory area.
J10 28 J9 J4 C7 D2 Figure 11-1: Component Placement (Top Layer) R21 JA2 R20 R94 R97 LIN X3 C23 R96 R95 R93 RV1 R15 C8 R14 U4 TR2 SW3 R45 R44 R29 J5 SW2 LED3 C10 R42 R43 R24 R23 R22 R40 C28 R99 R30 C16 R28 R16 C9 R17 R78 R79 R76 R77 SW1/BOOT GND4 E8A JA6 C4 R62 R64 R85 R84 J6 TR1 J1 C2 LED2 X2 R4 J7 PWR2 PWR1 R41 R91 GND3 R10 R12 R39 R27 U6 C25 C24 R13 R11 C3 R7 R5 R2 R3 R6 R8 X1 R36 LED1 C5 R63 R65 R37 R26 C27 R88 R87 R66 R67 R68 R69 R38 LED0
Chapter 12. Additional Information For details on how to use High-performance Embedded Workshop (HEW), refer to the HEW manual available on the CD or installed in the Manual Navigator.
Renesas Starter Kit for R8C/38C User's Manual Publication Date Rev.1.00 01.APR.2010 Published by: Renesas Electronics Europe Ltd. Duke’s Meadow, Millboard Road, Bourne End Buckinghamshire SL8 5FH, United Kingdom ©2010 Renesas Electronics Europe and Renesas Solutions Corp., All Rights Reserved.
Renesas Starter Kit for R8C/38C User's Manual Renesas Electronics Europe Ltd.