Renesas RSKM16C6NK User Manual

REG10J0017-0200
Renesas Starter Kit
RSKM16C6NK User’s Manual
RENESAS SINGLE-CHIP MICROCOMPUTER
M16C FAMILY
Rev.2.00 Renesas Technology Europe Ltd. Revision date:30.OCT.2007 www.renesas.com
i
Table of Contents
Chapter 1. Preface..................................................................................................................................................1
Chapter 2. Purpose.................................................................................................................................................2
Chapter 3. Power Supply........................................................................................................................................3
3.1. Requirements...............................................................................................................................................3
3.2. Power – Up Behaviour .................................................................................................................................3
Chapter 4. Board Layout.........................................................................................................................................4
4.1. Component Layout.......................................................................................................................................4
4.2. Board Dimensions........................................................................................................................................5
Chapter 5. Block Diagram.......................................................................................................................................6
Chapter 6. User Circuitry.........................................................................................................................................7
6.1. Switches.......................................................................................................................................................7
6.2. LEDs.............................................................................................................................................................7
6.3. Potentiometer...............................................................................................................................................7
6.4. Serial port.....................................................................................................................................................8
6.5. LCD Module..................................................................................................................................................8
6.6. Option Links..................................................................................................................................................9
6.7. Oscillator Sources ......................................................................................................................................15
6.8. Reset Circuit...............................................................................................................................................15
Chapter 7. Modes..................................................................................................................................................16
7.1. Boot mode...............................................................................................................................................16
7.2. Single chip mode ....................................................................................................................................16
Chapter 8. Programming Methods........................................................................................................................17
Chapter 9. Headers...............................................................................................................................................18
9.1. Microcontroller Headers.............................................................................................................................18
9.2. Application Headers ...................................................................................................................................20
Chapter 10. Code Development ...........................................................................................................................24
10.1. Overview...................................................................................................................................................24
10.2. Mode Support...........................................................................................................................................24
10.3. Breakpoint Support...................................................................................................................................24
10.4. Memory Map.............................................................................................................................................25
Chapter 11. Component Placement......................................................................................................................26
Chapter 12. Additional Information........................................................................................................................27
ii

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
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. 2007. All rights reserved. © Renesas Solutions Corporation. 2007. All rights reserved. © Renesas Technology Corporation. 2007. All rights reserved. Website:
Glossary
CPU Central Processing Unit RTE Renesas Technology Europe Ltd. HEW High-performance Embedded Workshop RSO Renesas Solutions Organisation. LED Light Emitting Diode RSK Renesas Starter Kit PC Program Counter E8a E8a On-chip debugger module
http://www.eu.renesas.com/
1

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

Chapter 3. Power Supply

3.1. Requirements

This RSK operates from a 5V power supply. A diode provides reverse polarity protection only if a current limiting power supply is used. 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 jack.
Warning
The RSK is neither under nor over voltage protected. Use a centre positive supply for this board.

3.2. Power – Up Behaviour

When the RSK is purchased the RSK board has the ‘Release’ or stand alone code from the example tutorial code pre-programmed into the Renesas microcontroller. On powering up the board the user LEDs will start to flash. After 200 flashes, or after pressing a switch the LEDs will flash at a rate controlled by the potentiometer.
3

Chapter 4. Board Layout

4.1. Component Layout

The following diagram shows the top layer component layout of the board.
E8a Header
Figure 4-1: Board Layout
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.
120.00mm
115.00mm
86.36mm
Short Board = 85 mm
50.80 mm
43.18 mm
35.56 mm
27.00mm
Corners x4
3mm
radius
SW1SW2SW
Other
E8
80.01mm
POT
3
JA2
Applies to connector
J1 -
with micriocontroller pin1
(LCD)
J2
(Expansion Bu s)
Application Header
Application Header
MCU
JA6
J4
RING
100.00mm
85.00mm
J3
Serial D9
SKT
45.00mm
R
JA4
E S
5.00mm
JA1
JA5
14.00mm
3.81mm
JA3
Figure 4-2 : Board Dimensions
5

Chapter 5. Block Diagram

Figure 5-1 is representative of the CPU board components and their connectivity.
Power Jack Option
LCD
Application Board
Headers
Microcontroller Pin
Headers
Debug Header Option
ADC Input
Serial Connector Option
Boot mode pins
Microcontroller
RESET pin
IRQ pin IRQ pin IRQ pin
RESn
Boot Circuitry
D-type latch
BOOT & BOOTn signals
Potentiometer
Figure 5-1: Block Diagram
Figure 5-2 is representative of the connections required to the RSK.
SW3SW2
SWITCHES
User: 4 LEDS
1Green, 1Orange, 2Red
LEDs
BOOT
Power: Green Boot: Orange
RES
Figure 5-2 : RSK Connections
6

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. RESn SW1/BOOT* Connects to an IRQ input for user controls.
The switch is also used in conjunction with the RES switch to place the device in BOOT mode when not using the E8a module.
SW2* Connects to an IRQ line for user controls. INT1 Pin17
SW3* Connects to the ADC trigger input. Option link allows connection to
IRQ line. The option is a pair of 0R links.
Table 6-1: Switch Functions
*Refer to schematic for detailed connectivity information.
INT0 Pin18 (Port 8, pin 2)
(Port 8, pin 3) ADTRG Pin 98 (Port 9, pin 7)
OR INT2 Pin16 (Port 8, pin 4)

6.2. LEDs

There are six LEDs on the RSK board. The green ‘POWER’ LED lights when the board is powered. The orange BOOT LED indicates the device is in BOOT mode when lit. The four user LEDs are connected to an IO port and will light when their corresponding port pin is set low.
Table 6-2, below, shows the LED pin references and their corresponding microcontroller port pin connections.
LED Reference (As shown
on silkscreen)
LED0 Port 4.0 52 LED1 Port 4.1 51 LED2 Port 4.2 50 LED3 Port 4.3 49
Microcontroller Port Pin function Microcontroller Pin Number
Table 6-2: LED Port

6.3. Potentiometer

A single turn potentiometer is connected to AN0.0 (P10.0) of the microcontroller. This may be used to vary the input analogue voltage value to this pin between AVCC and Ground.
7

6.4. Serial port

The microcontroller programming serial port 1 is connected to the RS232 connector. A serial port can be used by moving option resistors and fitting the D connector. This can be connected to serial channel 1 if the E8a is disabled from using channel 1; or serial channel 0 while the E8a is enabled.
Description Function Fit For E8a Remove for
E8a
TxD1 Programming
Serial Port
RxD1 Programming
Serial Port
CLK1 Programming
Serial Port
If a serial port is used the D-connector U3 must be fitted and the RS232 transceiver enabled.
Description Function Fit For RS233
RS232 Transceiver
Disables/Enables U3 RS232
R13 R68 R69 R68 R68 R69, R13
R12 R44 R47 R44 R44 R47, R12
R14 NA NA NA NA R14
Table 6-3: Serial port connections
Remove for
Enable
R42 R39 R39 R42
RS233 Enable
Fit for
RS232
Channel 0
Remove for
Channel 0
Fit For RS233
Disable
RS232
Fit for
RS232
Channel 1
Remove for RS233 Disable
Remove for
RS232
Channel 1
Enable
An additional serial port is connected to the application headers.
Transceiver
Table 6-4: RS232 enable

6.5. LCD Module

An LCD module is supplied to be connected to the connector J11. This should be fitted so that the LCD module lies over J3. Care should be taken to ensure the pins are inserted correctly into J11.The LCD module uses a 4 bit interface to reduce the pin allocation. No contrast control is provided; this is set by a resistor on the supplied display module. The module supplied with the RSK only supports 5V operation.
Table 6-5 shows the pin allocation and signal names used on this connector.
8
Loading...
+ 21 hidden pages