Summary of the content on the page No. 1
EDK3687
USER MANUAL
FOR H8/3687
ON-CHIP FLASH MICROCONTROLLER
Summary of the content on the page No. 2
Preface Cautions 1. This document may be, wholly or partially, subject to change without notice. 2. All rights reserved. No one is permitted to reproduce or duplicate, in any form, a part or this entire document without Renesas Technology Europe Limited's written permission. Trademarks General All brand or product names used in this manual are trademarks or registered trademarks of their respective companies or organisations. Specific Microsoft, MS and MS-DOS are registe
Summary of the content on the page No. 3
1. TABLE OF CONTENTS 1. TABLE OF CONTENTS ............................................................................................................................................. 3 2. START-UP INSTRUCTIONS ....................................................................................................................................... 4 2.1. INSTALLING THE EVALUATION DEVELOPMENT KIT (EDK)........................................................................... 4 2.2.
Summary of the content on the page No. 4
2. START-UP INSTRUCTIONS 2.1. INSTALLING THE EVALUATION DEVELOPMENT KIT (EDK) Please refer to the quick start guide provided for initial installation of the EDK. A copy of the quick start guide and other information relating to this EDK at: http://www.eu.renesas.com/tools Installing the EDK requires power and serial connection to a host computer. 2.2. SERIAL CONNECTION The serial communications cable for connecting the EDK to a host computer requires 1:1 connectivity. Figure 2
Summary of the content on the page No. 5
3. EDK BOARD LAYOUT The diagram shows a general layout of the EDK board. FLASH Programming J1 5V Power UVcc GND Testpoints RESn NMI LIN FW Switch NMIn ULED1 ULED2 OSC PSCK Power LED PTXD User1 LED PRXD User2 LED SPI RX232 TX232 Microprocessor RESET Switch CTS RTS 9-Way D-Type I2C J2 CJ4 FIGURE 3-1: EDK BOARD LAYOUT 3.1. EDK BLOCK DIAGRAM The diagram shows the connectivity of the components on the EDK board. External Reset NMI Switches PSU EDK specific Switch De-Bounce LIN RS23
Summary of the content on the page No. 6
4. EDK OPERATION 4.1. USER INTERFACE The EDK provides two buttons for influencing the operation of the board. The purpose of each button is clearly marked next to it. Refer to the board layout for positions (Section 3) 1. Reset Switch This button provides the microcontroller with a reset pulse utilizing the built in power on reset control of the device. 2. NMI Switch This button provides a de-bounced signal to the microcontroller for each operation of the button. There is no max
Summary of the content on the page No. 7
4.2.2. CRYSTAL CHOICE The operating crystal frequency has been chosen to support the fastest operation with the fastest serial operating speeds. The value of the crystal is 18.432MHz. The following table shows the baud rates and Baud Rate Register (BRR) setting required for each communication rate using the above default operating speed. It also confirms the resultant baud rate and the bit error rate that can be expected. Baud Rate Register Settings for Serial Communication Rates
Summary of the content on the page No. 8
4.4. I2C EEPROM The board has been tested with an Atmel AT24C04AN-10SI-2.7 I2C EEPROM device (Not supplied). The device is configured to connect to dedicated I2C pins on Ports P56 and P57. 4.5. LIN INTERFACE The board has been tested with an Philips TJA1020TD device (Not supplied). The device should be connected to P71 and P72 using 0R links on R29 and R31. Alternative connections are available; refer to section 5.3 for more information. The links R41, R45 and R47 need to be c
Summary of the content on the page No. 9
5. BOARD OPTIONS The EDK has a number of configuration settings set by four jumpers CJ4 (A, B, C, D) and zero-ohm links. Common EDK functions can be set using the jumpers as described in sections 5.2. The additional zero-ohm links provide additional features that may be required to interface with other systems. All the Jumper link settings are three pin options. There are four sets of options on each header. The headers are numbered from 1 to 12 with pin 1 marked on the PCB by an
Summary of the content on the page No. 10
5.2. EDK OPTIONS – CJ4 The EDK options provide access to commonly used features of the EDK range. These jumpers must be fitted at all times to ensure correct operation of the EDK. Jumper Function Setting 1-2 Setting 2-3 CJ 4-A Serial Receive Routes the programming serial Routes the programming serial port Default 1-2 Source port to the 9Way D Connector to the LIN Interface CJ 4-B Serial Transmit Routes the programming serial Routes the programming serial port Default 1-2 Dest
Summary of the content on the page No. 11
5.3. OPTION LINK SELECTION The following sections show the option links that apply to each peripheral device. The tables all use the same key of symbols which is given below: X – Groups of options one set of which must be fitted for correct operation of the EDK. O – Groups of options which if fitted must be connected in the groups as shown by the table row. S – Optional selection that will enable or disable specific device functions as listed. ! – Options which when incorrectly f
Summary of the content on the page No. 12
5.3.3. SPI – SERIAL PERIPHERAL INTERFACE The SPI interface is not directly compatible with the SCI interface on the device. Selection of the connections to the SPI interface should therefore be chosen to allow the operation of other peripherals as required. SCI2 SCI2 R R R R R R R R R R R R R SSU 48,49,50 56,57,58 15 16 17 18 19 20 21 22 23 24 25 35 37 SCI X O O O O SPI SCI X O O O SCI X O O O HOLDn S SPI WPn
Summary of the content on the page No. 13
6. MICROCONTROLLER HEADER CONNECTIONS The following table lists the connections to each or the headers on the board. 6.1. HEADER J1 J1 Pin Function EDK Symbol Device Pin Function EDK Symbol Device No pin No pin 1 TEST GND 8 2 RESn RESn 7 3 VCL(No Connection) NC3 6 4 X1 CON_X1 5 5 X2 CON_X2 4 6 AVCC CON_AVCC 3 7 PB7/AN7 PB7 2 8 PB6/AN6 PB6 1 9 PB5/AN5 PB5 64 10 PB4/AN4 PB4 63 11 PB0/AN0 PB0 62 12 PB1/AN1 PB1 61 13 PB2/AN2 PB2 60 14 PB3/AN3 PB3 59 15 P30 P30 58 16 P31 P31 5
Summary of the content on the page No. 14
7. CODE DEVELOPMENT 7.1. HMON 7.1.1. MODE SUPPORT The HMON library is built to support Normal Mode only. 7.1.2. BREAKPOINT SUPPORT The monitor utilises the Address Break Controller for code located in ROM, allowing a single breakpoint to be set in the code. Code located in RAM may have multiple breakpoints limited only by the size of the On-Chip RAM. Due to a limitation of the internal address break controller, a breakpoint set in ROM will execute the instruction at the breakpo
Summary of the content on the page No. 15
7.1.4. MEMORY MAP H'0000 H'0000 RESET Vector Vectors H'0001 H'0010 TRAP Vectors H'0017 H'0400 FDTInit H'04F7 H'0500 FDTUserModeMicr oKernel H'0018 H'0BC1 HW Break Vector H'0019 H'0C00 CUser_Vectors H'0C03 H'1000 H'002E PHMON SCI Vector H'002F CHMON H'2D10 On-Chip FLASH ROM H'DFFF H'E800 On-Chip RAM H'EFFF H'F700 Internal I/O REGISTERS H'F77F H'F780 On-Chip RAM H'FC7F H'FC80 BHMON H'FE7C H'FE7D H'FE80 Stack H'FF7F H'FF80 Internal I/O REGISTERS H'EE00 15
Summary of the content on the page No. 16
7.1.5. BAUD RATE SETTING HMON has initially set to connect at 115200Baud. Should the user wish to change this, the value for the BRR in HMONserialconfiguser.c will need to be changed and the project re-built. Please refer to the HMON User Manual for further information. 7.1.6. INTERRUPT MASK SECTIONS The EDK3687 has fixed interrupt priorities. The serial (SCI3 )port interrupt is used by HMON. The Real Time clock, external interrupt and Timer V interrupts have a higher priority th