Résumé du contenu de la page N° 1
REJ10J1242-0200
Renesas Starter Kit for R8C/25
User’s Manual
RENESAS SINGLE-CHIP MICROCOMPUTER
M16C FAMILY / R8C/Tiny SERIES
Rev.2.00 Renesas Solutions Corp.
Revision date: 15.OCT.2007 www.renesas.com
i
Résumé du contenu de la page N° 2
Table of Contents Chapter 1. Preface..................................................................................................................................................1 Chapter 2. Purpose.................................................................................................................................................2 Chapter 3. Power Supply ............................................................................................................................
Résumé du contenu de la page N° 3
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 Solutions Corp. Trademarks All brand or product names used in this manual are trademarks or registered trademarks of their respective companies or organisations. Copyright © Renesas Solutions Corp. 2007. All rights reserved. © Renesas Technology Europ
Résumé du contenu de la page N° 4
Chapter 2. Purpose This RSK is an evaluation tool for Renesas microcontrollers. Features include: • Renesas Microcontroller Programming. • User Code Debugging. • User Circuitry such as Switches, LEDs and potentiometer(s). • User or Example Application. • Sample peripheral device initialisation code. The RSK board contains all the circuitry required for microcontroller operation. 2
Résumé du contenu de la page N° 5
Chapter 3. Power Supply 3.1. Requirements This RSK operates from a 3V to 5V 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 module. 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 jac
Résumé du contenu de la page N° 6
Chapter 4. Board Layout 4.1. Component Layout The following diagram shows the top layer component layout of the board. Application Board Interface Reset Switch JA1 RS232 Serial LCD Display Power Power LED Microcontroller Pin Headers (J1 to J4) E8 Header MCU User LED Power Connector for LIN LIN Connector Boot LED JA2 User/Boot Switch Application Board Interface User Switches Potentiometer Figure 4-1: Board Layout 4
Résumé du contenu de la page N° 7
92.71mm 3.81mm 5.00mm 85.00mm 100.00mm 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. 45.00mm JA1 14.00mm MCU JA2 27.00mm 50.80mm 80.00mm 85.00mm Figure 4-2 : Board Dimensions 5
Résumé du contenu de la page N° 8
BOOT & BO OTn signals Chapter 5. Block Diagram Figure 5-1 is representative of the CPU board components and their connectivity. P ower J ack Option BOOT A pplic ation B oard B oot mode pins Circuitry Interface Mic roc ontroller P in D-type RE S E T pin Headers Latch Microcontroller E8 IRQ pins LIN Connector, P ower Connec tor for LIN ADC Input I/O S erial Connector Option SW1 SW3 SW2 RES BOOT Switches LCD Display POWER: Green Potentimeter Data x4 User LED x4 Control x2 1Green, 1Orage, 2Red B
Résumé du contenu de la page N° 9
Chapter 6. User Circuitry 6.1. Switches There are four switches located on the RSK. The function of each switch and its connection are shown in Table 6-1. Switch Function Microcontroller RES When pressed, the RSK microcontroller is reset. RESET Pin8 SW1/BOOT* Connects to an IRQ input for user controls. INT0 Pin27 The switch is also used in conjunction with the RES switch to place (Port 4, pin 5) the device in BOOT mode when not using the E8a debugger. SW2* Connects to an IRQ Interr
Résumé du contenu de la page N° 10
6.4. Serial port The microcontroller programming serial port 1 is connected to the RS232 transceiver. This serial port can optionally be connected to the RS232 transceiver as well by fitting option resistors. The connections to be fitted are listed in the table 6-3. Description Function Fit for RS232 TxD1 Programming Serial Port R45 RxD1 Programming Serial Port R46 Table 6-3: Serial Port settings A Secondary serial port is connected to the application headers. This is shared with the LI
Résumé du contenu de la page N° 11
6.6.Option Links Table 6-5 below describes the function of the option links contained on this RSK board. Option Link Settings Reference Function Fitted Alternative (Removed) Related To R7 Reference Voltage Connects Reference Voltage Reference Voltage R19 to microcontroller disconnected from microcontroller R8 Oscillator Connects External Disconnects sensitive R10, R11, R12 (Main clock) Microcontroller header pins to microcontroller signals from microcontroller external pins R10 Oscil
Résumé du contenu de la page N° 12
Option Link Settings Reference Function Fitted Alternative (Removed) Related To R22 Board VCC Connects External 3V3 External 3V3 disconnected R20, R21 (CON_3V3) to Board_VCC from Board_VCC R23 Microcontroller Supply to microcontroller Fit Low ohm resister to VCC measure current R30 User I/O Power Connects Board_VCC supply Board_VCC disconnected from Supply to SW2, 3 and LED0-3 SW2, 3 and LED0-3 R31 SW1 Connects SW1 to INT0 Input Disconnected R44 RS232 Transceiver Disables RS232 Ser
Résumé du contenu de la page N° 13
Option Link Settings Reference Function Fitted Alternative (Removed) Related To R64 CAN Do not use CAN function, Do not use CAN function, R8C/25 Microcontroller do not R8C/25 Microcontroller do not have CAN function have CAN function R66 CAN Do not use CAN function, Do not use CAN function, R8C/25 Microcontroller do not R8C/25 Microcontroller do not have CAN function have CAN function Table 6-5: Option Links 6.7.Oscillator Sources A crystal oscillator is fitted on the RSK and u
Résumé du contenu de la page N° 14
Chapter 7. Modes The RSK supports Boot mode and Single chip mode. Details of programming the FLASH memory is described in the R8C/25 Group Hardware Manual. 7.1. Boot mode The boot mode settings for this RSK are shown in Table 7-1: Boot Mode pin settings below: MODE LSI State after Reset End Low Boot Mode Table 7-1: Boot Mode pin settings The software supplied with this RSK supports Boot mode using an E8a and HEW only. However, hardware exists to enter boot mode manually, do not connect
Résumé du contenu de la page N° 15
Chapter 8. Programming Methods The board is intended for use with HEW and the supplied E8a debugger. Refer to R8C/25 Group Hardware Manual for details of programming the microcontroller without using these tools. 13
Résumé du contenu de la page N° 16
Chapter 9. Headers 9.1. Microcontroller Headers Table 9-1 to Table 9-4 show the microcontroller pin headers and their corresponding microcontroller connections. The header pins connect directly to the microcontroller pins. * Marked pins are subject to option links. J1 Pin Circuit Net Name Device Pin Pin Circuit Net Name Device Pin 1 No Connection - 2 IIC_SCL 2 3 TRISTn 3 4 IIC_SDA 4 5 MODE_E8B 5 6 RING_P4_3 6 7 RING_P4_4 7 8 RESn 8 9 CON_XOUT 9 10 VSS 10 11 CON_XIN 11 12 UC_VCC 12 1
Résumé du contenu de la page N° 17
J3 Pin Circuit Net Name Device Pin Circuit Net Name Device Pin Pin 1 IRQ0/TRIGa* 27 2 IRQ1/IO_6* 28 3 IRQ2/IO_7* 29 4 LCD_E 30 5 LCD_RS 31 6 AD_POT 32 7 P3_1 33 8 TMR1 34 9 IO_5 35 10 IO_4 36 11 IO_3 37 12 AD0 38 13 No Connection - 14 No Connection - Table 9-3: J3 J4 Pin Circuit Net Name Device Pin Circuit Net Name Device Pin Pin 1 No Connection - 2 AD1 41 3 AD2 42 4 AD3 43 5 P4_2/VREF 44 6 IO_0 45 7 IO_2 46 8 IO_1 47 9 LCD_D7 48 10 LCD_D6 49 11 LCD_D5 50 12 LCD_D4 51 13
Résumé du contenu de la page N° 18
9.2. Application Headers Table 9-5 and Table 9-6 below show the standard application header connections. * Marked pins are subject to option links. JA1 Pin Header Name RSK Signal Device Pin Header Name RSK Signal Device Name Pin Name Pin 1 Regulated Supply 1 CON_5V - 2 Regulated Supply 1 GROUND - 3 Regulated Supply 2 CON_3V3 - 4 Regulated Supply 2 GROUND - 5 Analogue Supply NC - 6 Analogue Supply NC - 7 Analogue Reference CON_VREF 44 8 ADTRG NC - 9 ADC0 AD0 38 10 ADC1 AD1 41 11 ADC2 A
Résumé du contenu de la page N° 19
J9 Pin Function Signal Name 1 Power Supply (for LIN module) VBAT 2 GROUND GND J10 Pin Function Signal Name 1 Power Supply (for LIN module) VBAT 2 LIN Bus Line LIN 3 GROUND GND Table 9-7: LIN Headers 17
Résumé du contenu de la page N° 20
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. An E8a is supplied with the RSK product. 10.2. Mode Support HEW connects to the Microcontroller and programs it via the E8a. Mode support is handled transparently to the user. 10.3. Breakpoint Support HEW supports breakpoints on the user code, both in RAM and ROM. Double clicking in the breakpoint column in the code sets th