Renesas Demonstration Kit (RDK) for RL78 User’s Manual: Hardware RENESAS MCU RL78 Family Release 1.0 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 Corp. without notice. Please review the latest information published by Renesas Electronics Corp. through various means, including the Renesas Electronics Corp. website (http://www.renesas.com).
Disclaimer By using this Renesas Demonstration Kit (RDK), the user accepts the following terms. The RDK is not guaranteed to be error free, and the User assumes the entire risk as to the results and performance of the RDK.
Table of Contents Chapter 1. Preface ................................................................................................................ 1 Chapter 2. Purpose ............................................................................................................... 2 Chapter 3. Power Supply ...................................................................................................... 5 3.1. Requirements ................................................................................
6.13. FET ............................................................................................................................ 14 6.14. Oscillator Sources ...................................................................................................... 14 6.15. Reset Circuit ............................................................................................................... 15 6.16. Total Phase Beagle Debug Header ......................................................................
Chapter 1. Preface Cautions This document may be, wholly or partially, subject to change without notice. All rights reserved. The RDK design, documentation, and demo software are intended to improve understanding and time-to-market for RL78-based designs. Duplication of the design, documentation, and demonstration software is encouraged. Trademarks All brand or product names used in this manual are trademarks or registered trademarks of their respective companies or organizations.
Chapter 2. Purpose This RDK is an evaluation and demonstration tool for Renesas RL78 low-power microcontrollers. The goal is to provide the user with a powerful debug and demonstration platform targeted at common applications. A set of human/machine interfaces are tightly integrated with the features of the RL78 and the software demonstration programs providing the user with an accessible platform to rapidly evaluate and customize.
Digital Sensors • 3 – Axis Accelerometer • Temperature Sensor • Ambient Light Sensor Power Control • FET Circuit for DC output • TRIAC Circuit for AC output User Code and Application Debugging • On-board debugger for high-quality source code debugging (TK interface) • User circuit breadboard area 3
Renesas Online The Renesas RDK online experience is complemented by the online Renesas ecosystem. • Renesas Interactive: www.RenesasInteractive.com o Free Online Learning • Renesas Rulz: www.RenesasRulz.com o Online community o Online user forums o http://www.renesasrulz.com/community/demoboards/rdkrl78g13 - Online support site for this RDK • University Program: www.RenesasUniversity.
Chapter 3.Power Supply 3.1. Requirements This RDK gets its power from the debugger mini USB connection or optionally from a regulated 5V power supply. The optional power jack is a center positive connector using a 2.1 mm barrel. An alternate power header is located next to the power jack (J5). The RDK PCB can also be loaded with an optional 5.5V super cap (C73), part number EEC-S0HD334H. Warning: The RDK is neither under nor over-voltage protected. Use a 5V REGULATED center positive supply. 3.2.
Chapter 4. Board Layout 4.1. Component Layout The following diagram shows the top layer component layout.
4.2. Board Dimensions The following diagram gives the board dimensions (5.1”x5.1”) and connector locations. All through hole connectors are on a common 0.1” grid for easy interfacing.
Chapter 5. Block Diagram Figure 5-1 shows the CPU board components and their connectivity.
Figure 5-2 shows host PC connection to the RDK board.
Chapter 6. User Circuitry 6.1. Switches There are four switches located on the RDK board. The function of each switch and its connection are shown in Table 6-1. Switch Function RL78 SWITCH 1 Connects to an interrupt line for user controls. INTP0, P137 (pin 9) SWITCH 2 Connects to an interrupt line for user controls. INTP1, P50 (pin 33) SWITCH 3 Connects to an interrupt line for user controls. INTP2, P51 (pin 34) RESET When pressed, the RL78 is reset.
6.3. LEDs There are eight LEDs on the RDK board. The green 5V (LED10) and 3V (LED9) LEDs are ON automatically when the board is powered. There are six user LEDs (see table 6-3) that are connected to IO ports and will light when their corresponding port pin is set low. Table 6-3, below, shows the user LED pin references and their corresponding microcontroller port pin connections.
6.6. Audio (Audio Out, Mic, Speaker, Volume Potentiometer) An amplified stereo audio output jack is provided and connected to the timer circuit. TO01 is used for Right audio channel and comes out on CPU pin 40. TO02 is used for the Left audio channel and comes out on CPU pin 39. The stereo amp is powered by a National Semi LM4808. The on-board speaker is powered by a LM4889 audio power amplifier which can be disabled by setting P42 low. An on-board Analog Devices Inc.
6.10. Potentiometer A single turn potentiometer is connected to the ADC channel AN4 (CPU pin 52) of the microcontroller. This may be used to vary the input analog voltage value to this pin between 3V3A and Ground. Note: The potentiometer is fitted to offer an easy way of supplying a variable analog input to the controller. It does not necessarily reflect the accuracy of the controllers ADC. Please see the device manual for details. 6.11.
6.13. FET A Renesas N-channel power switching MOSFET (part number: RQKD609CQDQS) Q7 with low on resistance (Rds(ON) = 78mOHM typ.) is included on the RDK. The MOSFET will switch a load (ON/OFF) connected between header J2-5&6 and J2-3&4. The power to the MOSFET is supplied from external source from header J2-1&2 (ground or negative) to J2-5&6 (positive, up to 60V max). The MOSFET will switch the load ON or OFF by PWM waveform output from the RL78 timer channel TO05 on CPU pin 31.
6.15. Reset Circuit The RDK includes a user reset pushbutton switch which is connected to the internal reset circuit on the RX62N (RES#) and reset input on the Segger J-Link Debugger (TRESin). The RX62N (RES#) can also be reset by the debugger (TRESout). There is a peripheral reset control line connected to PC2 (pin 49) on the RX62N which can be used to reset major peripherals at once. This includes the Ethernet PHY, Beagle Port, Application Header, and Debug LCD. 6.16.
Chapter 7. Mode Switch This RDK has an on-board module with 4 switches (SW5) for controlling TK MUX Select, TK MUX Disable, and Speaker Enable. Table 7-1 below shows common settings for SW5. Mode TK MUX Select TK MUX Disable Speaker Enable SW5.4 Run ON ON ON ON Debug ON OFF ON ON Virtual COM OFF OFF ON ON Table 7-1: Common Mode Configurations TK MUX Select (SW5.1) • ON sets the USB connection (J16) for debugging purposes.
Chapter 8.Programming Methods The RDK is intended for use with IAR and includes an integrated Renesas TK debugger. Refer to RL78 Family Hardware Manual for details of programming the microcontroller without using these tools. The on-board TK debugger is pre-programmed at the factory and configured for normal operation. Should the TK debugger become inoperable – it will need to be returned to Renesas for repair. Note: SW5 must be set to debug mode to program the RL78.
Chapter 9. Headers 9.1. PMODTM Interfaces Two Digilent PMODTM (Interface Type 2A, expanded SPI) connection headers are available on the RDK. These interfaces can be access on the SPI bus using chip selects P71 (pin 28) for PMOD1 and P72 (pin 27) for PMOD2. PMODTM Interface connections are shown in Table 9-1.
9.3. Expansion Headers Table 9-2 and Table 9-3 show the controller pin headers and their corresponding microcontroller connections. The header pins connect directly to the MCU pin. Note that the J17/J18 header numbers match the MCU pin numbers. J17 Pin MCU Pin 1 1 3 RDK Function (MCU Port) J17 Pin MCU Pin Not Used (P120) 2 2 WIFI Power Off (P43) 3 Speaker Amp. Shutdown (P42) 4 4 MIC Amp.
J18 Pin MCU Pin 64 64 62 RDK Function (MCU Port) J18 Pin MCU Pin Infrared Output (P140) 63 63 Ambient Light Sensor INT (P141) 62 PMOD PIN10 (P00) 61 61 Audio Generator PWM (P01) 60 60 SPI Bus MOSI (P02) 59 59 SPI Bus MISO (P03) 58 58 SPI Bus SCK (P04) 57 57 Peripheral Reset (P130) 56 56 Not Used (P20) 55 55 Not Used (P21) 54 54 Not Used (P22) 53 53 Not Used (P23) 52 52 POT Input (P24) 51 51 MIC Input (P25) 50 50 Audio Loopback Input (P26) 49 49 Audio Filte
Chapter 10.Code Development 10.1. Overview Note: For all code debugging using RL78 IAR software tools, the CPU board must be connected to a PC USB port via the on-board TK interface and debugger. Due to the continuous process of improvements undertaken by Renesas and IAR, the user is recommended to review the information provided on the Renesas website at http://www.renesas.com/RL78 to check for the latest tool updates and manuals.
10.2.
Chapter 11.
Chapter 12. Additional Information 12.1. Hardware Partner Information Hardware partners played an integral role in the definition, development, and deployment of this RDK. Without their numerous contributions, this project would not have been possible. Contributors include National Semiconductor for their LM4808 and LM4889 audio amplifiers.
25
26
27
28
29
30
31
32
Renesas Contact Information For details on how to use High-performance Embedded Workshop (HEW), refer to the HEW manual available on the web site. For information about the RL78 series microcontrollers refer to the RL78 Family hardware manual. For information about the RL78 assembly language, refer to the RL78 Family Software Manual. Online technical support and information is available at: http://www.renesas.com/renesas_starter_kits Technical Contact Details America: techsupport.rta@renesas.
Renesas Demonstration Kit (RDK) for RL78 User's Manual Publication Date Rev.1.00 Published by: Renesas Electronics America, Inc. Nov 23 2011 2880 Scott Boulevard Santa Clara, CA 95050-2554, U.S.A ©2011 Renesas Electronics America, All Rights Reserved.
Mass-Market Group Renesas Electronics America, Inc. 2880 Scott Boulevard Santa Clara, CA 95050-2554, U.S.