Renesas M16C/26A Technical information

Renesas M16C/26A Technical information
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.com
April 1st, 2010
Renesas Electronics Corporation
Issued by: Renesas Electronics Corporation (http://www.renesas.com)
Send any inquiries to http://www.renesas.com/inquiry.
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. Also, please pay regular and careful attention to
additional and different information to be disclosed by Renesas Electronics such as that disclosed through our website.
Renesas Electronics does not assume any liability for infringement of patents, copyrights, or other intellectual property rights
of third parties by or arising from the use of Renesas Electronics products or technical information described in this document.
No license, express, implied or otherwise, is granted hereby under any patents, copyrights or other intellectual property rights
of Renesas Electronics or others.
You should not alter, modify, copy, or otherwise misappropriate any Renesas Electronics product, whether in whole or in part.
Descriptions of circuits, software and other related information in this document are provided only to illustrate the operation of
semiconductor products and application examples. You are fully responsible for the incorporation of these circuits, software,
and information in the design of your equipment. Renesas Electronics assumes no responsibility for any losses incurred by
you or third parties arising from the use of these circuits, software, or information.
When exporting the products or technology described in this document, you should comply with the applicable export control
laws and regulations and follow the procedures required by such laws and regulations. You should not use Renesas
Electronics products or the technology described in this document for any purpose relating to military applications or use by
the military, including but not limited to the development of weapons of mass destruction. Renesas Electronics products and
technology may not be used for or incorporated into any products or systems whose manufacture, use, or sale is prohibited
under any applicable domestic or foreign laws or regulations.
Renesas Electronics has used reasonable care in preparing the information included in this document, but Renesas Electronics
does not warrant that such information is error free. Renesas Electronics assumes no liability whatsoever for any damages
incurred by you resulting from errors in or omissions from the information included herein.
Renesas Electronics products are classified according to the following three quality grades: “Standard”, “High Quality”, and
“Specific”. The recommended applications for each Renesas Electronics product depends on the product’s quality grade, as
indicated below. You must check the quality grade of each Renesas Electronics product before using it in a particular
application. You may not use any Renesas Electronics product for any application categorized as “Specific” without the prior
written consent of Renesas Electronics. Further, you may not use any Renesas Electronics product for any application for
which it is not intended without the prior written consent of Renesas Electronics. Renesas Electronics shall not be in any way
liable for any damages or losses incurred by you or third parties arising from the use of any Renesas Electronics product for an
application categorized as “Specific” or for which the product is not intended where you have failed to obtain the prior written
consent of Renesas Electronics. The quality grade of each Renesas Electronics product is “Standard” unless otherwise
expressly specified in a Renesas Electronics data sheets or data books, etc.
“Standard”:
8.
9.
10.
11.
12.
Computers; office equipment; communications equipment; test and measurement equipment; audio and visual
equipment; home electronic appliances; machine tools; personal electronic equipment; and industrial robots.
“High Quality”: Transportation equipment (automobiles, trains, ships, etc.); traffic control systems; anti-disaster systems; anticrime systems; safety equipment; and medical equipment not specifically designed for life support.
“Specific”:
Aircraft; aerospace equipment; submersible repeaters; nuclear reactor control systems; medical equipment or
systems for life support (e.g. artificial life support devices or systems), surgical implantations, or healthcare
intervention (e.g. excision, etc.), and any other applications or purposes that pose a direct threat to human life.
You should use the Renesas Electronics products described in this document within the range specified by Renesas Electronics,
especially with respect to the maximum rating, operating supply voltage range, movement power voltage range, heat radiation
characteristics, installation and other product characteristics. Renesas Electronics shall have no liability for malfunctions or
damages arising out of the use of Renesas Electronics products beyond such specified ranges.
Although Renesas Electronics endeavors to improve the quality and reliability of its products, semiconductor products have
specific characteristics such as the occurrence of failure at a certain rate and malfunctions under certain use conditions. Further,
Renesas Electronics products are not subject to radiation resistance design. Please be sure to implement safety measures to
guard them against the possibility of physical injury, and injury or damage caused by fire in the event of the failure of a
Renesas Electronics product, such as safety design for hardware and software including but not limited to redundancy, fire
control and malfunction prevention, appropriate treatment for aging degradation or any other appropriate measures. Because
the evaluation of microcomputer software alone is very difficult, please evaluate the safety of the final products or system
manufactured by you.
Please contact a Renesas Electronics sales office for details as to environmental matters such as the environmental
compatibility of each Renesas Electronics product. Please use Renesas Electronics products in compliance with all applicable
laws and regulations that regulate the inclusion or use of controlled substances, including without limitation, the EU RoHS
Directive. Renesas Electronics assumes no liability for damages or losses occurring as a result of your noncompliance with
applicable laws and regulations.
This document may not be reproduced or duplicated, in any form, in whole or in part, without prior written consent of Renesas
Electronics.
Please contact a Renesas Electronics sales office if you have any questions regarding the information contained in this
document or Renesas Electronics products, or if you have any other inquiries.
(Note 1) “Renesas Electronics” as used in this document means Renesas Electronics Corporation and also includes its majorityowned subsidiaries.
(Note 2) “Renesas Electronics product(s)” means any product developed or manufactured by or for Renesas Electronics.
User’s Manual
Renesas Starter Kit for M16C/26A
User’s Manual
RENESAS 16-BIT SINGLE-CHIP
MICROCOMPUTER
M16C FAMILY / M16C/Tiny SERIES
Rev.3.00 2007.08
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 ............................................................................................................................................... 8
6.4. Serial port ..................................................................................................................................................... 8
6.5. LCD Module.................................................................................................................................................. 8
6.6. Option Links.................................................................................................................................................. 9
6.7. Oscillator Sources ...................................................................................................................................... 13
6.8. Reset Circuit ............................................................................................................................................... 13
Chapter 7. Modes.................................................................................................................................................. 14
7.1. Boot mode .................................................................................................................................................. 14
7.2. Single chip mode ........................................................................................................................................ 14
Chapter 8. Programming Methods........................................................................................................................ 15
Chapter 9. Headers............................................................................................................................................... 16
9.1. Microcontroller Headers ............................................................................................................................. 16
9.2. Application Headers ................................................................................................................................... 17
Chapter 10. Code Development ........................................................................................................................... 19
10.1. Overview................................................................................................................................................... 19
10.2. Mode Support ........................................................................................................................................... 19
10.3. Breakpoint Support................................................................................................................................... 19
10.4. Memory Map............................................................................................................................................. 20
Chapter 11. Component Placement...................................................................................................................... 21
Chapter 12. Additional Information ....................................................................................................................... 22
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 Corp. 2007. All rights reserved.
© Renesas Technology Corp. 2007. All rights reserved.
Website:
http://www.eu.renesas.com/
(Europe)
http://www.renesas.com/
(Global)
Glossary
ADC
Analog Digital Converter
IRQ
Interrupt ReQuest
CPU
Central Processing Unit
LED
Light Emitting Diode
DAC
Digital Analog Converter
LSI
Large Scale Integration
E8a
E8a On-chip debugger module
MCU
Microcontroller
HEW
High-performance Embedded Workshop
1
Chapter 2. Purpose
This Renesas Starter Kit 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 Renesas Starter Kit board contains all the circuitry required for microcontroller operation.
NOTE: This manual describes the technical details of the Renesas Starter Kit for M16C/26A hardware. The Quick Start Guide
and Tutorial Manual provide details of the software installation and debugging environment.
2
Chapter 3. Power Supply
3.1. Requirements
This Renesas Starter Kit operates from a 3V to 5V power supply.
A diode provides reverse polarity protection only if a current limiting power supply is used.
All Renesas Starter Kit boards are supplied with an E8a debugger. This product is able to power the Renesas Starter Kit board with up to
300mA. When the Renesas Starter Kit is connected to another system then that system should supply power to the Renesas Starter Kit.
All Renesas Starter Kit boards have an optional centre positive supply connector using a 2.1mm barrel power jack.
Warning
The Renesas Starter Kit is neither under nor over voltage protected. Use a centre positive supply for this board.
3.2. Power – Up Behaviour
When the Renesas Starter Kit is purchased the Renesas Starter Kit 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.
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.
45.00mm
JA1
14.00mm
MCU
JA2
27.00mm
50.80mm
80.00mm
85.00mm
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
Application Board
Interface
D-type
Latch
RESET pin
Microcontroller
E8a
IRQ pins
Serial Connector Option
ADC Input
I/O
SW3
SW2
SW1
BOOT
RES
Switches
Potentiometer
LCD Display
Data x4
Control x2
User LED x4
1Green, 1Orange, 2Red
LEDs
Figure 5-1: Block Diagram
Figure 5-2 is representative of the connections required to the Renesas Starter Kit.
USB Cable
Personal Computer
E8a emulator
User Interface Cable
Pin 1
E8a
MCU
CPU Board
Figure 5-2 : Renesas Starter Kit Connections
6
POWER: Green
BOOT: Orange
BOOT & BOOTn signals
Microcontroller Pin
Headers
BOOT
Circuitry
Boot mode pins
Chapter 6. User Circuitry
6.1. Switches
There are four switches located on the Renesas Starter Kit. The function of each switch and its connection are shown in Table 6-1.
Switch
Function
Microcontroller
RES
When pressed, the board microcontroller is reset.
RESET Pin 7
SW1/BOOT*
Connects to an IRQ input for user controls.
INT0 Pin14
The switch is also used in conjunction with the RES switch to place
(Port 8, pin 3)
the device in BOOT mode when not using the E8a debugger.
SW2*
Connects to an IRQ input for user controls.
INT1 Pin17
(Port 8, pin 4)
SW3*
Connects to the ADC trigger input. Option link allows connection to
IRQ input. The option is a pair of 0R links.
ADTRG Pin 36
(Port 1, pin 5)
OR
INT3 Pin34
(Port 1, pin 7)
Table 6-1: Switch Functions
*Refer to schematic for detailed connectivity information.
6.2. LEDs
There are six LEDs on the Renesas Starter Kit 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
Colour
Microcontroller Port Pin function
Microcontroller Pin
(As shown on silkscreen)
Number
LED0
Green
Port 10.4
40
LED1
Orange
Port 10.5
39
LED2
Red
Port 10.6
38
LED3
Red
Port 10.7
37
Table 6-2: LED Port
7
6.3. Potentiometer
A single turn potentiometer is connected to AN2.4 (P9.3) of the microcontroller. This may be used to vary the input analog voltage value to
this pin between AVCC and Ground.
6.4. Serial port
The microcontroller programming serial port 1 is connected to the E8a connector. This serial port can optionally be connected to the RS232
transceiver as well by fitting zero Ohm option resistors and fitting the D connector. In addition the RS232 transceiver should be enabled.
The connections to be moved are listed in the table 6-3.
Description
Function
Fit for RS232
TxD1
Programming Serial Port
R51
RxD1
Programming Serial Port
R52
Table 6-3: Serial Port settings
A Secondary serial port is connected to the application headers.
6.5. LCD Module
A LCD module is supplied to be connected to the connector J8. This should be fitted so that the LCD module lies over J1. Care should be
taken to ensure the pins are inserted correctly into J8.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 Renesas Starter Kit only supports
5V operation.
Table 6-4 shows the pin allocation and signal names used on this connector.
J8
Pin
Circuit Net Name
Device
Pin
Circuit Net Name
Device
Pin
Pin
1
Ground
-
2
5V Only
-
3
No Connection
-
4
LCD_RS
3
5
R/W (Wired to Write only)
-
6
LCD_E
2
7
No Connection
-
8
No Connection
-
9
No Connection
-
10
No Connection
-
11
LCD_D4
33
12
LCD_D5
32
13
LCD_D6
31
14
LCD_D7
30
Table 6-4: LCD Module Connections
8
6.6.Option Links
Table 6-5 below describes the function of the option links associated with Power configuration. The default configuration is indicated by
BOLD text.
Option Link Settings
Reference
R16
Function
Power Supply
Fitted
Alternative (Removed)
Connects J5 to Board_VCC
J5 disconnected from
Related To
R18
Board_VCC
R17
MCU Power Supply
Supply to MCU
Fit Low ohm resistor to measure
R18, R19, R20
current
R18
R19
R20
R21
Power Supply
Connects Board_VCC to
Board_VCC disconnected from
board voltage line
board voltage line
Power Supply
Connects CON_5V (external
CON_5V disconnected from
(External 5V)
5V) to Board_VCC
Board_VCC
Power Supply
Connects CON_3V3 (external
CON_3V3 disconnected from
(External 3V3)
3.3V) to Board_VCC
Board_VCC
User I/O Power
Connects Board_VCC to
Board_VCC disconnected
Supply
SW2, 3 and LED0-3
from SW2, 3 and LED0-3
Table 6-5: Power Configuration Links
9
R16, R17, R19, R20
R17, R18, R20
R17, R18, R19
Table 6-6 below describes the function of the option links associated with Clock configuration. The default configuration is indicated by
BOLD text.
Option Link Settings
Reference
R1
Function
Oscillator
Fitted
Alternative (Removed)
Related To
Connects X1 (or X2) to MCU
Connects external clock to MCU
R2, R3, R4
Connects X1 (or X2) to MCU
Connects external clock to MCU
R1, R3, R4
Connects external clock to MCU
Connects X1 (or X2) to MCU
R1, R2, R4
Connects external clock to MCU
Connects X1 (or X2) to MCU
R1, R2, R3
Connects X3 to MCU
Connects external sub clock to
R6, R7, R8
(Main clock)
R2
Oscillator
(Main clock)
R3
Oscillator
(Main clock)
R4
Oscillator
(Main clock)
R5
Oscillator
(Sub clock)
R6
Oscillator
MCU
Connects X3 to MCU
Connects external sub clock to
(Sub clock)
R7
R8
R5, R7, R8
MCU
Oscillator
Connects external sub clock to
(Sub clock)
MCU
Oscillator
Connects external sub clock to
(Sub clock)
MCU
Connects X3 to MCU
R5, R6, R8
Connects X3 to MCU
R5, R6, R7
Table 6-6: Clock Configuration Links
Table 6-7 below describes the function of the option links associated with Serial configuration. The default configuration is indicated by
BOLD text.
Option Link Settings
Reference
R50
R51
Function
RS232 Serial
Fitted
Alternative (Removed)
Disables RS232 Serial
Enables RS232 Serial
Transceiver
Transceiver
Programming Serial
Connect programming serial
Only E8a connected
Port
port TX1 to RS232 Serial port
(E8a remains connected)
R52
Programming Serial
Connect programming serial
Port
port RX1 to RS232 Serial port
Only E8a connected
(E8a remains connected)
Table 6-7: Serial Configuration Links
10
Related To
R51, R52
Table 6-8 below describes the function of the option links associated with Analog configuration. The default configuration is indicated by
BOLD text.
Option Link Settings
Reference
R10
R11
R12
R13
R14
Function
Fitted
ADC
ADC
ADC
ADC
ADC
Alternative (Removed)
Related To
Connects Board_VCC to
Disconnects Board_VCC from
R11, R12, R13,
AVCC
AVCC
R14,R15
Connects CON_AVCC to
Disconnects CON_AVCC
R10, R12, R13,
AVCC
from AVCC
R14, R15
Connects Board_VCC to
Disconnects Board_VCC from
R10, R11, R13,
VREF
VREF
R14, R15
Connects CON_VREF to
Disonnects CON_VREF from
R10, R11, R12,
VREF
VREF
R14, R15
Connects Ground to AVSS
Disconnects Ground from AVSS
R10, R11, R12,
R13, R15
R15
R65
ADC
Potentiometer
Connects CON_AVSS to
Disonnects CON_AVSS from
R10, R11, R12,
AVSS
AVSS
R13, R14
Connects AD_POT to MCU
Disconnected
port P9_3
(P9_3 connected to IO_3)
Table 6-8: Analog Configuration Links
Table 6-9 below describes the function of the option links associated with microcontroller pin function select configuration. The default
configuration is indicated by BOLD text.
Option Link Settings
Reference
R59
R60
R61
R62
R63
R64
Function
Fitted
Alternative (Removed)
MCU Pin Function
Connects IIC_SDA to MCU
Select
port P7_0
MCU Pin Function
Connects TMR0 to MCU port
Select
P7_0
MCU Pin Function
Connects IIC_SCL to MCU
Select
port P7_1
MCU Pin Function
Connects TRIGa to MCU port
Select
P7_1
MCU Pin Function
Connects TRISTn to MCU
Select
port P10_4
MCU Pin Function
Connects IO_4 to MCU port
Select
P10_4
Disconnected
R60
Disconnected
R59
Disconnected
R62
Disconnected
R61
Disconnected
R64
Disconnected
R63
Table 6-9: MCU Pin Function Select Configuration Links
11
Related To
Table 6-10 below describes the function of the option links associated with other options. The default configuration is indicated by BOLD
text.
Option Link Settings
Reference
Function
Fitted
Alternative (Removed)
R53
E8a
Enables E8a
Do not fit the option resistor
R56
SW1
Connects SW1 to MCU port
Disconnected
Related To
P8_3
R57
R58
R66
SW3
Connects SW3 to MCU port
(ADTRG input)
P1_5(ADTRG pin)
SW3
Connects SW3 to MCU port
(IRQ input)
P1_7(IRQ pin)
LCD
Connects LCD_D4 to MCU
Disconnected
R58
Disconnected
R57
Disconnected
R67, R68, R69,
R70, R71
port P6_0
(P6_0 connected to CTSRTS)
R67
LCD
Connects LCD_D5 to MCU
Disconnected
R66, R68, R69,
R70, R71
port P6_1
(P6_1 connected to SCIaCK)
R68
LCD
Connects LCD_D6 to MCU
Disconnected
R66, R67, R69,
R70, R71
port P6_2
(P6_1 connected to SCIaRX)
R69
LCD
Connects LCD_D7 to MCU
Disconnected
R66, R67, R68,
R70, R71
port P6_3
(P6_3 connected to SCIaTX)
R70
LCD
Connects LCD_RS to MCU
Disconnected
R66, R67, R68,
R69, R71
port P9_0
(P9_0 connected to IO_0)
R71
LCD
Connects LCD_E to MCU port
Disconnected
R66, R67, R68,
R69, R70
P9_1
(P9_1 connected to IO_1)
Table 6-10: Other Option Links
12
6.7.Oscillator Sources
A crystal oscillator or ceramic resonator is fitted on the Renesas Starter Kit and used to supply the main clock input to the Renesas
microcontroller. A crystal oscillator is fitted on the Renesas Starter Kit and used to supply the sub clock input.
Table 6-11: Oscillators / Resonators details the oscillators that are fitted and alternative footprints provided on this Renesas Starter Kit:
Component
Main clock (X1)
Fitted
10 MHz (HC/49U package)
Main clock (X2)
Not Fitted
10 MHz (e.g. Murata CSTCE10M0G55)
Sub clock (X3)
Fitted
32.768kHz (90SMX package)
Table 6-11: Oscillators / Resonators
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 and Single chip 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 Renesas Starter Kit. 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.
13
Chapter 7. Modes
The Renesas Starter Kit supports Boot mode and Single chip mode.
Details of programming the FLASH memory is described in the M16C/26A Group Hardware Manual.
7.1. Boot mode
The boot mode settings for this Renesas Starter Kit are shown in Table 7-1: Boot Mode pin settings below:
CNVSS
RP/
P1_6
LSI State after Reset End
P8_5
High
Low
High
Boot Mode
Table 7-1: Boot Mode pin settings
The software supplied with this Renesas Starter Kit supports Boot mode using an E8a and High-performance Embedded Workshop only.
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 as above, the P1_6 pin and RP/P8_5 pins are pulled high by 100k
resistors and the CNVSS is pulled low by a 100k resistor.
When an E8a is used these three pins are controlled by the E8a.
7.2. Single chip mode
As CNVSS is being pulled down by a 100k resistor, this Renesas Starter Kit will always boot in Single chip mode when the E8a is not
connected and the boot switch is not depressed. Refer to M16C/26A Group Hardware Manual for details of Single chip mode.
CNVSS
RP/
P1_6
LSI State after Reset End
P8_5
Low
High
High
Single chip Mode
Table 7-2: Single chip Mode pin settings
14
Chapter 8. Programming Methods
The board is intended for use with High-performance Embedded Workshop and the supplied E8a debugger. Refer to M16C/26A Group
Hardware Manual for details of programming the microcontroller without using these tools.
15
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. * Marked pins are subject to option links.
J1
Pin
Circuit Net Name
Device
Pin
Circuit Net Name
Device Pin
Pin
1
IO_2
1
2
IO_1*
2
3
IO_0*
3
4
CNVSS_E8C
4
5
XCIN
5
6
XCOUT
6
7
RESn
7
8
CON_XOUT
8
9
Ground
9
10
CON_XIN
10
11
UC_VCC
11
12
RP_E8A
12
Table 9-1: J1
J2
Pin
Circuit Net Name
Device
Pin
Circuit Net Name
Device Pin
Pin
1
IRQ1*
13
2
IRQ0*
14
3
MO_UD
15
4
MO_Un
16
5
MO_Up
17
6
TRIGb
18
7
TMR1
19
8
MO_Wn
20
9
MO_Wp
21
10
MO_Vn
22
11
MO_Vp
23
12
IIC_SCL/TRIGa*
24
Table 9-2: J2
J3
Pin
Circuit Net Name
Device
Pin
Circuit Net Name
Device Pin
Pin
1
IIC_SDA/TMR0*
25
2
E8_TTX
26
3
E8_TRX
27
4
SCLK_E8D
28
5
E8_BUSY
29
6
SCIaTX*
30
7
SCIaRX*
31
8
SCIaCK*
32
9
CTSRTS*
33
10
IRQ3*
34
11
P16_E8B
35
12
ADTRG*
36
Table 9-3: J3
16
J4
Pin
Circuit Net Name
Device
Pin
Circuit Net Name
Device Pin
Pin
1
IO_7
37
2
IO_6
38
3
IO_5
39
4
TRISTn/IO_4*
40
5
AD3
41
6
AD2
42
7
AD1
43
8
R_AVSS
44
9
AD0
45
10
R_VREF
46
11
R_AVCC
47
12
IO_3*
48
Table 9-4: J4
9.2. Application Headers
Table 9-5 and Table 9-6 below show the standard application header connections.
JA1
Pin
Header Name
Circuit Net
Device
Name
Pin
Pin
Header Name
Circuit Net
Device
Name
Pin
1
Regulated Supply 1
CON_5V
-
2
Regulated Supply 1
Ground
-
3
Regulated Supply 2
CON_3V3
-
4
Regulated Supply 2
Ground
-
5
Analogue Supply
CON_AVCC
47
6
Analogue Supply
CON_AVSS
44
7
Analogue Reference
CON_VREF
46
8
ADTRG
ADTRG*
36
9
ADC0
AD0
45
10
ADC1
AD1
43
11
ADC2
AD2
42
12
ADC3
AD3
41
13
DAC0
NC
-
14
DAC1
NC
-
15
IOPort0
IO_0*
3
16
IOPort1
IO_1*
2
17
IOPort2
IO_2
1
18
IOPort3
IO_3*
48
19
IOPort4
IO_4*
40
20
IOPort5
IO_5
39
21
IOPort8
IO_6
38
22
IOPort7
IO_7
37
23
IRQ3
IRQ3*
34
24
NC
NC
-
25
I²C Bus
IIC_SDA*
25
26
I²C Bus
IIC_SCL*
24
Table 9-5: JA1 Standard Generic Header
17
JA2
Pin
Header Name
Circuit Net
Device
Name
Pin
Pin
Header Name
Circuit Net
Device
Name
Pin
1
Reset
RESn
7
2
External Clock Input
CON_XIN*
10
3
Interrupt
RP_E8A
12
4
Regulated Supply 1
GND
-
5
WDT overflow
NC
-
6
Serial Port
SCIaTX*
30
7
Interrupt
IRQ0*
14
8
Serial Port
SCIaRX*
31
9
Interrupt
IRQ1*
13
10
Serial Port
SCIaCK*
32
11
Motor up/down
MO_UD
15
12
Serial Port Handshake
CTSRTS*
33
13
Motor control
MO_Up
17
14
Motor control
MO_Un
16
15
Motor control
MO_Vp
23
16
Motor control
MO_Vn
22
17
Motor control
MO_Wp
21
18
Motor control
MO_Wn
20
19
Timer Output
TMR0*
25
20
Timer Output
TMR1
19
21
Timer Input
TRIGa*
24
22
Timer Input
TRIGb
18
23
Interrupt
P16_E8B
35
24
Tristate Control
TRISTn*
40
25
SPARE
XCOUT*
6
26
SPARE
XCIN*
5
Table 9-6: JA2 Standard Generic Header
18
Chapter 10.Code Development
10.1. Overview
Note: For all code debugging using Renesas software tools, the Renesas Starter Kit board must be connected to a Personal Computer
USB port via an E8a. An E8a is supplied with the Renesas Starter Kit product.
10.2. Mode Support
High-performance Embedded Workshop connects to the Microcontroller and programs it via the E8a. Mode support is handled
transparently to the user.
10.3. Breakpoint Support
High-performance Embedded Workshop 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.
19
10.4. Memory Map
Figure 10-1: Memory Map
20
Chapter 11. Component Placement
Figure 11-1: Component Placement
21
Chapter 12. Additional Information
For details on how to use High-performance Embedded Workshop, refer to the High-performance Embedded Workshop manual available
on the CD or from the web site.
For information about the M16C/26A series microcontrollers refer to the M16C/26A Group Hardware Manual.
For information about the M16C/26A assembly language, refer to the M16C/60, M16C/20, M16C/Tiny Series Software Programming
Manual.
Online technical support and information is available at: http://www.renesas.com/renesas_starter_kits
Technical Contact Details
America:
[email protected]
Europe:
[email protected]
Japan:
[email protected]
General information on Renesas Microcontrollers can be found on the Renesas website at: http://www.renesas.com/.
22
Renesas Starter Kit for M16C/26A
User's Manual
Publication Date
Rev.3.00
Aug.31,2007
Published by:
Renesas Technology Europe Ltd.
Duke’s Meadow, Millboard Road, Bourne End
Buckinghamshire SL8 5FH, United Kingdom
©2007 Renesas Technology Europe and Renesas Solutions Corp. and Renesas Technology Corp.
All Rights Reserved.
Renesas Starter Kit for M16C/26A
User’s Manual
1753, Shimonumabe, Nakahara-ku, Kawasaki-shi, Kanagawa 211-8668 Japan
REG10J0040-0300
Was this manual useful for you? yes no
Thank you for your participation!

* Your assessment is very important for improving the work of artificial intelligence, which forms the content of this project

Download PDF

advertisement