To our customers, Old Company Name in Catalogs and Other Documents On April 1st, 2010, NEC Electronics Corporation merged with Renesas Technology Corporation, and Renesas Electronics Corporation took over all the business of both companies. Therefore, although the old company name remains in this document, it is a valid Renesas Electronics document. We appreciate your understanding. Renesas Electronics website: http://www.renesas.
Notice 1. 2. 3. 4. 5. 6. 7. 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.
User’s Manual Renesas Starter Kit for H8SX1664 User’s Manual RENESAS SINGLE-CHIP MICROCOMPUTER H8SX FAMILY Rev.1.00 2006.
Table of Contents Table of Contents ...................................................................................................................................................ii Chapter 1. Preface .................................................................................................................................................4 Chapter 2. Purpose .............................................................................................................................................
10.6. HMON Code Size ....................................................................................................................................30 10.7. Memory Map ...........................................................................................................................................32 10.8. Baud Rate Setting...................................................................................................................................33 10.9. Interrupt mask sections ..........
Chapter 1. Preface Cautions This document may be, wholly or partially, subject to change without notice. All rights reserved. No one is permitted to reproduce or duplicate, in any form, a part or this entire document without the written permission of Renesas Technology Europe Limited. Trademarks All brand or product names used in this manual are trademarks or registered trademarks of their respective companies or organisations. Copyright © Renesas Technology Europe Ltd. 2006. All rights reserved.
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). • Sample Application. • Sample peripheral device initialisation code. The CPU board contains all the circuitry required for microcontroller operation. This manual describes the technical details of the RSK hardware.
Chapter 3.Power Supply 3.1.Requirements This CPU board operates from a 5V power supply. A diode provides reverse polarity protection only if a current limiting power supply is used. All CPU boards are supplied with an E8 debugger. This product is able to power the CPU board with up to 300mA. When the CPU board is connected to another system that system should supply power to the CPU board. All CPU boards have an optional centre positive supply connector using a 2.0mm barrel power jack.
Chapter 4.Board Layout 4.1.Component Layout The following diagram shows top layer component layout of the board. Application Board Interface JA5 Reset Switch RS 232 Serial JA1 Power Power LED E8 Header LCD Display J11 J2 USB Microcontroller Pin Headers BUS Interface J3 J1 J A 3 User LEDs J4 JA6 Boot LED JA2 Application Board Interface Potentiometer Figure 4.
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. Figure 4.
Chapter 5.Block Diagram Figure 5.1 shows the CPU board components and their connectivity. Power Jack Option Application Board Headers Microcontroller Pin Headers Boot mode pins Boot Circuitry Microcontroller Debug Header Option RESET pin USB Connector Option ADC Input RESn D-type latch BOOT & BOOTn signals IRQ pin IRQ pin IRQ pin Serial Connector Option SW2 Potentiometer SW3 BOOT RES SWITCHES LEDs User: 4 LEDS 1Green, 1Orange, 2Red Figure 5.1: Block Diagram Figure 5.
Chapter 6.User Circuitry 6.1.Switches There are four switches located on the CPU board. The function of each switch and its connection are shown in Table 6-1. Switch Function Microcontroller RES When pressed; the CPU board microcontroller is reset. RESn SW1/BOOT* Connects to an IRQ input for user controls. IRQ0n, Pin 84 The switch is also used in conjunction with the RES switch to place (Port 1, pin 0) the device in BOOT mode when not using the E8 debugger.
Description Function Fit For E8 Remove for E8 Fit for RS232 Remove for RS232 SCI4 Tx Programming Serial Port R6 R37 R37 R6 SCI4 Rx Programming Serial Port R5 R36 R36 R5 Table 6-3 - Serial Option Links The board is designed to accept a straight through RS232 cable. A secondary microcontroller serial port is available and connected to the application headers. Please refer to the schematic diagram for more details on the available connections. 6.5.
6.6.Option Links Table 6-5 below describes the function of the option links contained on this CPU board. The default configuration is indicated by BOLD text. Option Link Settings Reference R3 Function Power Source Fitted Alternative (Removed) Board can be powered from J7 Disable external power connector Related To R13, R22, R40, R43 R4 E8 Enables E8 R5 Serial Port Configuration Connects programming port Disconnects programming port R6, R36, (Rx) to E8 connector. (Rx) from E8 connector.
Option Link Settings Reference R34 R35 R36 Function Serial Port Configuration Serial Port Configuration Serial Port Configuration Fitted Alternative (Removed) Related To Connects serial port D5 (Tx) to Disconnects serial port D5 (Tx) R15, R28, D-type (J8) or programming from D-type (J8) or R35, connectors (J9). programming connectors (J9). Connects serial port D5 (Rx) to Disconnects serial port D5 (Rx) R15, R28, D-type (J8) or programming from D-type (J8) or R34 connectors (J9).
Option Link Settings Reference R59 R60 R64 R66 R67 R68 R69 R70 R71 R74 R75 R76 R78 R79 R81 R82 R83 R84 Function Fitted Alternative (Removed) Application Use RxD0 of application board Use IO1 of application board Board Interface interface interface Application Use AN0 of application board Use AD_POT of application Board Interface interface board interface Voltage Reference Source Voltage Reference set to board Voltage Reference taken from Vcc signal external connector (J4).
Option Link Settings Reference R85 R86 R88 R90 R93 Function Fitted Alternative (Removed) Application Use IO5 of application board Use Wp of application board Board Interface interface interface Wp Connects Motor control Wp to Disconnects Motor control Wp the microprocessor from the microprocessor Application Use IO4 of application board Use Wn of application board Board Interface interface interface Application Use TIOCB0 of application Use Vn of application board Board Interface b
Option Link Settings Reference R129 Function Fitted Boot Mode Selection Alternative (Removed) Enables E8 to control the boot Allows application control of the mode selection. boot mode. R130 Crystal Selection Fit if 16MHz Crystal Fitted 12MHz Crystal Fitted R131 Memory Selection Fit to enable SDRAM Default R132 Debugging Adaptor Enables Debugging via the E10 Enables Debugging via the E8 adaptor. adaptor.
6.9.USB Port This RSK has a Full-speed (12 Mbps) USB port compliant to USB 2.0 specification. It is available as J12 on the RSK. This port allows Boot mode programming using USB Direct connection which does not require E8. For more details please refer to H8SX/1663 Group Hardware Manual.
Chapter 7.Modes The CPU board supports User mode and Boot mode. User mode may be used to run and debug user code, while Boot mode may only be used to program the Renesas microcontroller with program code. To program the user boot MAT, the device must be in Boot mode. Further details of programming the MATs are available in the H8SX/1663 Group hardware manual. When using the E8 debugger supplied with the RSK the mode transitions are executed automatically.
7.1.1.Boot mode The boot mode settings for this CPU board are shown in Table 7-2 below: MD2 MD1 MD0 LSI State after Reset FDT Settings End 0 1 0 Boot Mode A 0 Table 7-2: Mode pin settings The following picture shows these settings made in the E8Direct configuration dialog from HEW. Figure 7.
7.1.2. User Mode For the device to enter User Mode, reset must be held active while the microcontroller mode pins are held in states specified for User Mode operation. 100K pull up and pull down resistors are used to set the pin states during reset. The H8SX/1664 supports 4 user modes. The memory map in all of these modes is 16Mbyte in size. The default user mode for CPU board supporting H8SX1664 is 7.
Chapter 8.Programming Methods All of the Flash ROM on the device (i.e. both MATs) can be programmed when the device is in Boot mode. Once in boot mode, the boot-loader program pre-programmed into the microcontroller executes and attempts a connection with a host (for example a PC). On establishing a connection with the microcontroller, the host may then transmit program data to the microcontroller via the appropriate programming port.
The Flash Development Toolkit (FDT) is supplied to allow programs to be loaded directly on to the board using this method. Please select USB Direct interface while downloading the program. 8.4.Serial Port Programming This sequence is not required when debugging using the E8 supplied with the kit. The microcontroller must enter boot mode for programming, and the programming port must be connected to a host for program download.
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 pin unless otherwise stated.
J2 Pin Circuit Net Name Device Pin Circuit Net Name Pin Device Pin 1 A1 37 2 A0 38 3 EMLE 39 4 PM3 40 5 PM4 41 6 UC_VCC 32 7 No connection 8 No connection 9 Ground 32 10 VBUS_DET 46 11 MD_CLK 47 12 Ground 48 13 IO0_CLK0 49 14 UC_VCC 50 15 IO1_RxD0 51 16 IO2_TxD0 52 17 IO3_UD 53 18 IO4_Wn 54 19 IO5_Wp 55 20 TIOCA0_Vp 56 21 TIOCB0_Vn 57 22 TRISTn 58 23 IO6 59 24 IO7 60 25 NMIn 61 26 DREQ1n 62 27 TEND1n 63 28 UC_VCC 64 29
J3 Pin Circuit Net Name Device Pin Circuit Net Name Pin Device Pin 1 D7 73 2 UC_VCC 64 3 D8 75 4 D9 76 5 D10 77 6 D11 78 7 Ground 79 8 D12 80 9 D13 81 10 D14 82 11 D15 83 12 IRQ0n 84 13 IRQ1n 85 14 LED3 86 15 IRQ3n_ADTRG 87 16 Ground 79 17 CON_OSC2 89* 18 CON_OSC1 90* 19 RESn 91 20 No connection 21 TxD5 93 22 RxD5 94 23 WDTOVF_TDO 95 24 Ground 88 25 CON_XTAL 98* 26 CON_EXTAL 97* 27 UC_VCC 99 28 P1_6 100 29 P1_7 101
J4 Pin Circuit Net Name Device Pin Circuit Net Name Pin Device Pin 1 TRSTn 109 2 UC_VCC 99 3 TMS 111 4 Ground 96 5 TDI 113 6 TCK 114 7 MD0 115 8 LED1 116 9 LED2 117 10 ADPOT_AN0 118 11 AN1 119 12 AN2 120 13 CON_AVCC 121* 14 AN3 122 15 AVss 123 16 AN4 124 17 CON_VREF 125* 18 AN5 126 19 DA0_AN6 127 20 DA1_AN7 128 21 MD1 129 22 DLCDD4 130 23 DLCDD5 131 24 DLCDD6 132 25 MD3 133 26 DLCDRS 134 27 WRn 135 28 DLCDE 136 29 LL
9.2.Application Headers Table 9-5 and Table 9-6 below show the standard application header connections.
JA3 Pin Generic Header Name CPU board Device Signal Name Pin Pin Generic Header Name CPU board Device Signal Name Pin 1 Address Bus A0 38 2 Address Bus A1 37 3 Address Bus A2 36 4 Address Bus A3 35 5 Address Bus A4 34 6 Address Bus A5 33 7 Address Bus A6 31 8 Address Bus A7 30 9 Address Bus A8 29 10 Address Bus A9 28 11 Address Bus A10 27 12 Address Bus A11 26 13 Address Bus A12 24 14 Address Bus A13 22 15 Address Bus A14 21 16 Address
JA5 Pin Generic Header Name CPU board Device Signal Name Pin Pin Generic Header Name CPU board Device Signal Name Pin 1 AD4 AN4 124 2 AD5 AN5 126 3 AD6 AN6* 127 4 AD7 AN7* 128 5 CAN1TX --- --- 6 CAN1RX --- --- 7 CAN2TX --- --- 8 CAN2RX --- --- 9 Reserved 10 Reserved 11 Reserved 12 Reserved 13 Reserved 14 Reserved 15 Reserved 16 Reserved 17 Reserved 18 Reserved 19 Reserved 20 Reserved 21 Reserved 22 Reserved 23 Reserved 24 Reserved T
Chapter 10.Code Development 10.1.Overview Note: For all code debugging using Renesas software tools, the CPU board must either be connected to a PC serial port via a serial cable or a PC USB port via an E8. An E8 is supplied with the RSK product. The HMON embedded monitor code is modified for each specific Renesas microcontroller. HMON enables the High-performance Embedded Workshop (HEW) development environment to establish a connection to the microcontroller and control code execution.
Section RESET_VECTOR Description HMON Reset Vector (Vector 0) Start Size Location (H’bytes) H’ 0000 0000 0x0004 Required for Start-up of HMON SCI_VECTORS HMON Serial Port Vectors (Vector 160, 161, 162, 163) H’0000 0280 0x000C PHMON HMON Code H’0000 3000 0x276A CHMON HMON Constant Data H’0000 576a 0x0136 BHMON HMON Un-initialised data Variable 0x021F UGenU FDT Kernel. H’0000 1000 0xE71 H’0000 0800 0x0004 This is at a fixed location and must not be moved.
10.7.Memory Map The memory map shown in this section visually describes the locations of program code sections related to HMON, the FDT kernels and the supporting code within the ROM/RAM memory areas of the microcontroller. Figure 10.
10.8.Baud Rate Setting HMON is initially set to connect at 250000Baud. The value set in the baud rate register for the microcontroller must be altered if the user wishes to change either the serial communication baud rate of the serial port or the operating frequency of the microcontroller. This value is defined in the hmonserialconfiguser.h file, as SCI_CFG_BRR (see the Serial Port section for baud rate register setting values).
Chapter 11.
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. For information about the H8SX/1664 series microcontrollers refer to the H8SX/1663 Group Hardware Manual For information about the H8SX/1664 assembly language, refer to the H8SX Series Programming Manual Further information available for this product can be found on the Renesas website at: http://www.renesas.
Renesas Starter Kit for H8SX1664 User's Manual Publication Date Rev.1.00 Published by: Renesas Technology Europe Ltd. Dukes Meadow, Millboard Road, Bourne End Buckinghamshire SL8 5FH, United Kingdom ©2006 Renesas Technology Europe and Renesas Solutions Corp., All Rights Reserved.
Renesas Starter Kit for H8SX1664 User’s Manual 1753, Shimonumabe, Nakahara-ku, Kawasaki-shi, Kanagawa 211-8668 Japan REG10J0025-0100