Chapter 3. Power Supply........................................................................................................................................3
3.2. Power – Up Behaviour .................................................................................................................................3
Chapter 6. User Circuitry.........................................................................................................................................7
6.4. Serial port.....................................................................................................................................................8
7.2. Single chip mode ....................................................................................................................................16
Chapter 10. Code Development ...........................................................................................................................24
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.
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
J11
Pin Circuit Net Name Device
Pin
1 Ground - 2 5V Only 3 No Connection - 4 DLCDRS 70
5 R/W (Wired to Write only) - 6 DLCDE 69
7 No Connection - 8 No Connection 9 No Connection - 10 No Connection 11 DLCD4 66 12 DLCD5 65
13 DLCD6 64 14 DLCD7 63
Table 6-5: LCD Module Connections
Pin Circuit Net Name Device
Pin
6.6. Option Links
Table 6-6 below describes the function of the option links associated with Power configuration. The default configuration is indicated by
BOLD text.
Option Link Settings
Reference Function Fitted Alternative (Removed) Related To
R9 Board VCC
R32 Microcontroller
VCC1
R33 Microcontroller
VCC2
R25 Board VCC1 Board VCC1 connected to
R28 Board VCC1
R23 Board VCC1
R26 Board VCC2 Board VCC2 connected to
R29 Board VCC2
Supply to board from J5
Supply to microcontroller
VCC1
Supply to microcontroller
VCC2
Connector 3V3
Board VCC1 connected to
Connector 5V
Board VCC1 connected to
Connector J5
Connector 3V3
Board VCC2 connected to
Connector 5V
Fit Low ohm resistor to measure
current
Fit Low ohm resistor to measure
current
Fit Low ohm resistor to measure
current
Disconnected
Disconnected R23,R25
Disconnected R25,R28
Disconnected
Disconnected R24,R26
R33
R32
R23,28
R24,29
R24 Board VCC2
Board VCC2 connected to
Connector J5
Table 6-6: Power Configuration Links
9
Disconnected R26,R29
Table 6-7 below describes the function of the option links associated with Clock configuration. The default configuration is indicated by
BOLD text.
Option Link Settings
Reference Function Fitted Alternative (Removed) Related To
R96 External Oscillator Connects External Ring header
pins to Microcontroller
R100 External Oscillator Connects External Ring header
pins to Microcontroller
R97 External Oscillator Parallel resistor for crystal
R103 External Subclock
Oscillator
R105 External Subclock
Oscillator
R106 External Subclock
Connects External Ring header
pins to Microcontroller
Connects External Ring header
pins to Microcontroller
Parallel resistor for crystal
Oscillator
Table 6-7: Clock Configuration Links
Disconnects sensitive
microcontroller signals from
external pins.
Disconnects sensitive
microcontroller signals from
external pins.
Not fitted
Disconnects sensitive
microcontroller signals from
external pins.
Disconnects sensitive
microcontroller signals from
external pins.
Not fitted
R100
R96
R105
R103
10
Table 6 -8 below describes the f unction of the option links associated with Serial configuration. The default configuration is indicated by
BOLD text.
Option Link Settings
Reference Function Fitted Alternative (Removed) Related To
R14 Programming
Connects SCK to E8a
Serial Port
R12 Programming
Serial Port
R13 Programming
Serial Port
R44 Programming
Serial Port
R68 Programming
Serial Port
Connects E8a to
Programming Serial port.
Connects E8a to
Programming Serial port.
Connects RS232 port to
Programming SCI port
Connects RS232 port to
Programming SCI port
R42 RS232 Driver Enables RS232 Serial
Transceiver
R39 RS232 Driver
Disables RS232 Serial
Transceiver
R41 Serial Connector Connects Alternate serial (CH2)
to D connector
SCK disconnected from E8a
MUST be removed if R44 fitted. R44
Should be removed if R68 fitted. R68
MUST be removed if R12, R47
R12, R47, R49
or R49 fitted.
MUST be removed if R13, R69
R13, R69, R72
or R72 fitted.
MUST be removed if R39
R39
Fitted
MUST be removed if R42 Fitted R42
Disconnects Alternate serial
R40
from D connector.
R40 Serial Connector Connects Alternate serial (CH2)
to D connector
R55 Alternate Serial Connects Alternate Serial (CH2
- SCIb) to RS232 Transceiver
R50 Alternate Serial Connects Alternate Serial (CH2
- SCIb) to RS232 Transceiver
R72 RS232 Serial on
Application Header
R49 RS232 Serial on
Application Header
R69 RS232 Serial on
SCIa CH0
R47 RS232 Serial on
SCIa CH0
Connects Application Header to
RS232 Transceiver
Connects Application Header to
RS232 Transceiver
Connects Serial Channel 0 to
RS232 Transceiver
Connects Serial Channel 0 to
RS232 Transceiver
Table 6-8: Serial Configuration Links
Disconnects Alternate serial
from D connector.
Should be removed if SCIb
not used for RS232.
Should be removed if SCIb
not used for RS232.
MUST be removed if R68 or
R69 fitted.
MUST be removed if R44 or
R47 fitted.
MUST be removed if R68 or
R72 fitted.
MUST be removed if R44 or
R49 fitted.
R41
R50
R55
R68, R69
R44, R47
R68, R72
R44, R49
11
Table 6-9 below describes the function of the option links associat ed with Analog configuration. The default configuration is indicate d by
BOLD text.
Option Link Settings
Reference Function Fitted Alternative (Removed) Related To
R31 Analogue Power
Connects Board VCC1
supply to Analogue supply
Analogue supply MUST be
provided from external interface
JA1,R43
pins. (Fit R43)
R43 Analogue Power Connects AVCC supply to
R31 must be fitted
R31
Application headers
R109 VREF
Connects Board VCC1
supply to VREF
VREF can be provided from
external interface pins. (Fit
JA1,R110
R110)
R110 VREF VREF to Application headers
R109 should be fitted
R109
Table 6-9: Analog Configuration Links
Table 6-10 below describes the function of the option links associated with micro controller pin function select configuration. The default configuration is indicated by BOLD text.
12
Option Link Settings
Reference Function Fitted Alternative (Removed) Related To
R82 Microcontroller pin
function select
R80 Microcontroller pin
function select
R78 Microcontroller pin
function select
R76 Microcontroller pin
function select
R114 Microcontroller pin
function select
R115 Microcontroller pin
function select
R60 Microcontroller pin
function select
R61 Microcontroller pin
function select
Connects microcontroller pin
28 to IICSDA
Connects microcontroller pin 28
to TXD2 pin
Connects microcontroller pin
27 to IICSCL
Connects microcontroller pin 27
to RXD2
Connects microcontroller pin
95 to ADPOT
Connects microcontroller pin 95
to AN0
Connects microcontroller pin 44
to Wrn pin
Connects microcontroller pin
44 to WRLn pin
MUST be removed if R80 fitted. R80
Should be removed if R82
R82
fitted.
MUST be removed if R80 fitted. R76
Should be removed if R78
R78
fitted.
MUST be removed if R115
R115
fitted.
Should be removed if R114
R114
fitted.
MUST be removed if R61
R61
fitted.
Should be removed if R60 fitted. R60
R94 Microcontroller pin
function select
R93 Microcontroller pin
function select
R92 Microcontroller pin
function select
R90 Microcontroller pin
function select
R84 Microcontroller pin
function select
R83 Microcontroller pin
function select
R87 Microcontroller pin
function select
R85 Microcontroller pin
function select
Connects microcontroller pin 20
to TA4OUT pin
Connects microcontroller pin
20 to Up pin
Connects microcontroller pin 19
to TA4IN pin
Connects microcontroller pin
19 to Un pin
Connects microcontroller pin 26
to CLK2 pin
Connects microcontroller pin
26 to Vp pin
Connects microcontroller pin 24
to TA2OUT pin
Connects microcontroller pin
24 to Wp pin
MUST be removed if R93
R93
fitted.
Should be removed if R94 fitted. R94
MUST be removed if R92
R90
fitted.
Should be removed if R92 fitted. R92
MUST be removed if R83
R90
fitted.
Should be removed if R84 fitted. R92
MUST be removed if R85
R87
fitted.
Should be removed if R87 fitted. R85
R88 Microcontroller pin
function select
R86 Microcontroller pin
function select
Connects microcontroller pin 23
to TA2IN pin
Connects microcontroller pin
23 to Wn pin
13
MUST be removed if R86
R86
fitted.
Should be removed if R88 fitted. R88
Option Link Settings
Reference Function Fitted Alternative (Removed) Related To
R128 Microcontroller pin
function select
R130 Microcontroller pin
function select
R118 Microcontroller pin
function select
R116 Microcontroller pin
function select
R131 Microcontroller pin
function select
R129 Microcontroller pin
function select
R117 Microcontroller pin
function select
R119 Microcontroller pin
function select
Connects microcontroller pin 47
to A21 pin
Connects microcontroller pin
47 to CS2N pin
Connects microcontroller pin 46
to A22 pin
Connects microcontroller pin
46 to CS1N pin
Connects microcontroller pin 90
to AN4 pin
Connects microcontroller pin
90 to CAN0 EN pin
Connects microcontroller pin 89
to AN5 pin
Connects microcontroller pin
89 to CAN0 STBn pin
MUST be removed if R130
fitted.
Should be removed if R128
fitted.
MUST be removed if R116
fitted.
Should be removed if R118
fitted.
MUST be removed if R129
fitted.
Should be removed if R131
fitted.
MUST be removed if R117
fitted.
Should be removed if R119
fitted.
R130
R128
R116
R118
R129
R131
R119
R117
R67 Microcontroller pin
function select
R66 Microcontroller pin
function select
R45 Microcontroller pin
function select
R46 Microcontroller pin
function select
Connects microcontroller pin 88
to AN6 pin
Connects microcontroller pin
88 to CAN1 EN pin
Connects microcontroller pin 87
to AN7 pin
Connects microcontroller pin
87 to CAN1 STBn pin
MUST be removed if R66
R66
fitted.
Should be removed if R67
R67
fitted.
MUST be removed if R46
R46
fitted.
Should be removed if R45 fitted. R45
Table 6-10: MCU Pin Function Select Configuration Links
Table 6-11 below describes the function of the o ption links asso ciated with other options. The default c onf iguration is indicated by BOLD
text.
Option Link Settings
Reference Function Fitted Alternative (Removed) Related To
R35 SW3 Connects SW3 to Analogue
Disconnected
R34
Trigger input
R34 SW3
Connects SW3 to INT2 input
Disconnected R35
Table 6-11: Other Option Links
14
6.7.Oscillator Sources
A crystal oscillator is fitted on the RSK and used to supply the main clock input to the Renesas microcontroller. details theTable 6-12
oscillators that are fitted and alternative footprints provided on this RSK:
Component
Crystal (X1) Fitted 10MHz (HC/49U
package)
Subclock (X2) Fitted
Table 6-12: Oscillators / Resonators
32.768kHz (90SMX
package)
6.8. Reset Circuit
The CPU Board includes a simple latch circuit that links the mode selection and reset circuit. This provides an easy method for swapping
the device between Boot Mode, User Boot Mode and User mode. This circuit is not required on customers boards as it is intended for
providing easy evaluation of the operating modes of the device on the RSK. Please refer to the hardware manual for more information
on the requirements of the reset circuit.
The Reset circuit operates by latching the state of the boot switch on pressing the reset button. This control is subsequently used to
modify the mode pin states as required.
The mode pins should change state only while the reset signal is active to avoid possible device damage.
The reset is held in the active state for a fixed period by a pair of resistors and a capacitor. Please check the reset requirements carefully
to ensure the reset circuit on the user’s board meets all the reset timing requirements.
15
Chapter 7. Modes
The RSK supports Boot mode and Single chip mode.
Details of programming the FLASH memory is described in the M16C/6NK 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:
CNVSS P5.0 P5.5
1 1 0
Table 7-1: Boot Mode pin settings
The software supplied with this RSK only supports Boot mode using an E8a and HEW. However, hardware exists to enter boot mode
manually, do not connect the E8a in this case. Press and hold the SW1/BOOT. The mode pins above are held in their boot states while
reset is pressed and released. Release the boot button. The BOOT LED will be illuminated to indicate that the microcontroller is in boot
mode.
When neither the E8a is connected nor the board is placed in boot mode (with CNVSS and P5.5 being pulled low during reset) as above,
the P5.5 pin is pulled high by a 10k resistor, the P.5.0 pin is pulled high by a 100k resistor and the CNVSS is pulled low by a 100k resistor.
When an E8a is used these three pins are controlled by the E8a.
LSI State after Reset
End
Boot Mode
7.2. Single chip mode
This RSK is configured to always boot in Single Chip mode when the E8a is not connected and the boot switch is not depressed as CNVSS
is pulled down by a 100k resistor. Refer to M16C/6NK Group Hardware Manual for details of Single chip mode.
CNVSS P5.0 P5.5
0 1 1
Table 7-2: Single Chip Mode pin settings
LSI State after Reset
End
Single Chip Mode
16
Chapter 8. Programming Methods
The board is intended for use with HEW and the supplied E8a module. Refer to the M16C/6NK Group Hardware Manual for details of
programming the microcontroller without using these tools.
17
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
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 the breakpoint. Breakpoints will remain unless they are double clicked to remove
them.
24
10.4. Memory Map
Figure 10-1: Memory Map
25
Chapter 11.Component Placement
Figure 11-1: Component Placement
26
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 from the web
site.
For information about the M16C/6NK series microcontrollers refer to the M16C/6NKGroup Hardware Manual
For information about the M16C/6NK assembly language, refer to the M16C SeriesSoftware Manual.
Online technical support and information is available at:
Technical Contact Details
America:
Europe:
Japan:
General information on Renesas Microcontrollers can be found on the Renesas website at: