Renesas M16C/26A manual

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26

Go to page of

A good user manual

The rules should oblige the seller to give the purchaser an operating instrucion of Renesas M16C/26A, along with an item. The lack of an instruction or false information given to customer shall constitute grounds to apply for a complaint because of nonconformity of goods with the contract. In accordance with the law, a customer can receive an instruction in non-paper form; lately graphic and electronic forms of the manuals, as well as instructional videos have been majorly used. A necessary precondition for this is the unmistakable, legible character of an instruction.

What is an instruction?

The term originates from the Latin word „instructio”, which means organizing. Therefore, in an instruction of Renesas M16C/26A one could find a process description. An instruction's purpose is to teach, to ease the start-up and an item's use or performance of certain activities. An instruction is a compilation of information about an item/a service, it is a clue.

Unfortunately, only a few customers devote their time to read an instruction of Renesas M16C/26A. A good user manual introduces us to a number of additional functionalities of the purchased item, and also helps us to avoid the formation of most of the defects.

What should a perfect user manual contain?

First and foremost, an user manual of Renesas M16C/26A should contain:
- informations concerning technical data of Renesas M16C/26A
- name of the manufacturer and a year of construction of the Renesas M16C/26A item
- rules of operation, control and maintenance of the Renesas M16C/26A item
- safety signs and mark certificates which confirm compatibility with appropriate standards

Why don't we read the manuals?

Usually it results from the lack of time and certainty about functionalities of purchased items. Unfortunately, networking and start-up of Renesas M16C/26A alone are not enough. An instruction contains a number of clues concerning respective functionalities, safety rules, maintenance methods (what means should be used), eventual defects of Renesas M16C/26A, and methods of problem resolution. Eventually, when one still can't find the answer to his problems, he will be directed to the Renesas service. Lately animated manuals and instructional videos are quite popular among customers. These kinds of user manuals are effective; they assure that a customer will familiarize himself with the whole material, and won't skip complicated, technical information of Renesas M16C/26A.

Why one should read the manuals?

It is mostly in the manuals where we will find the details concerning construction and possibility of the Renesas M16C/26A item, and its use of respective accessory, as well as information concerning all the functions and facilities.

After a successful purchase of an item one should find a moment and get to know with every part of an instruction. Currently the manuals are carefully prearranged and translated, so they could be fully understood by its users. The manuals will serve as an informational aid.

Table of contents for the manual

  • Page 1

    REG10J0040-0300 Renesas Starter Ki t for M16C/26A User’s Manual RENESAS 16-BIT SINGLE- CHIP MICROCOMPUTER M16C FAMILY / M16C/Tiny SERIES Rev .3.00 Renesas T echnolog y Europe Ltd . Revision date: Aug.31,2007 www .renesas. com[...]

  • Page 2

    Table of Contents Chapter 1. Preface .................................................................................................................................................. 1 Chapter 2. Purpose ............................................................................................................................... .................[...]

  • Page 3

    Chapter 1. Preface Cautions This document may be, wholly or partially, subject to change witho ut notice. All rights reserved. Duplication of this document, either in whole or part is prohibited without the written permission of Rene sas Technology Europe Limited. Trademarks All brand or product names used in this manual are trademarks or registere[...]

  • Page 4

    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[...]

  • Page 5

    Chap ter 3. Pow er 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. Th is product is able to power the Renesas Starter Kit board w ith up to 300mA. Wh[...]

  • Page 6

    Chapter 4. Board Layo ut 4.1. Component Layout The following diagram shows the top layer component layout of the board. Figure 4-1: Board Layout 4[...]

  • Page 7

    4.2. Board Dimensions The following diagram gives the board dim ensions and connector p ositions. All through hole connect ors are on a common 0.1” grid for easy interfacing. JA2 JA1 MCU 14.00mm 45.00mm 27.0 0mm 50.8 0mm 80.0 0mm 85.0 0mm Figure 4-2 : Board D imensions 5[...]

  • Page 8

    Chapter 5. Block Diagram Figure 5-1 is representative of the CPU board components and their connectivity. Boo t mode pins BOOT Circui try D-type Latch RESET pi n RES SW1 BOOT SW2 SW3 Switche s IRQ pins POWER: Gr een BOOT: Orange LEDs User LE D x4 1Green , 1Or ange , 2Red I/O ADC In put Potenti ometer Application Board Interface Micr oc ontr olle r [...]

  • Page 9

    Chapter 6. User Ci rcuit ry 6.1. Switches There are four switches located on the Renesas Starter Kit. T he function of each switch and its conn ection are shown in Table 6 -1. Switc h Function Microcontroller RES When pressed, the board microcontroller is reset. RESET Pin 7 SW1/BOOT* Connects to an IRQ input for user controls. The switch is also us[...]

  • Page 10

    6.3. Potentiometer A single turn potentiometer is connected to AN2.4 (P9.3) of t he micr ocontroller. This may be used to vary the input analog volt age value to this pin between AVCC and Ground. 6.4. Serial port The microcontroller programming serial port 1 is connected to t he E8a connector. This serial port can optionally be connected t o the R [...]

  • Page 11

    6.6.Option Links T able 6-5 below describes the fu nction of the option links asso ciat ed with Power configuration. The default configuration is in dicated by BOLD text. Option Link Settings Reference Function Fitted Alternative (Removed) Related To R16 Power Supply Connects J5 to Board_VCC J5 disconnected from Board_VCC R18 R17 MCU Power Supply S[...]

  • Page 12

    T able 6-6 below describes the function of the option links asso ciated with Clock configuration. The default configuration is in dicated by BOLD text. Option Link Settings Reference Function Fitted Alternative (Removed) Related To R1 Oscillator (Main clock) Connects X1 (or X 2) to MCU Connects external clock to MCU R2, R3, R4 R2 Oscillator (Main c[...]

  • Page 13

    T able 6-8 below describes the fu nction of the option links asso ciated with Analog configuration. The default configuration is i ndicate d by BOLD text. Option Link Settings Reference Function Fitted Alternative (Removed) Related To R10 ADC Connects Board_VCC to AVCC Disconnects Board_VCC from AVCC R11, R12, R13, R14,R15 R11 ADC Connects CON_AVCC[...]

  • Page 14

    T able 6-10 below describes the function of the option links asso ciat ed with other options. The def ault configuration is indicat ed b y BOL D text. Option Link Settings Reference Function Fitted Alternative (Removed) Related To R53 E8a Enables E8a Do not fit the option resistor R56 SW1 Connects SW1 to MCU port P8_3 Disconnected R57 SW3 (ADTRG in[...]

  • Page 15

    6.7.Oscillator Sources A crystal oscillator or ceramic resonator is fitted on the Renes as Starter Kit and used to supply the main clock input to the R enesas microcontroller . A crystal oscillator is fitted on the R enesas Starter Kit and used to suppl y the sub clock input. T able 6-1 1: Oscillators / Resonators details the oscillators t hat are [...]

  • Page 16

    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/ P8_5 P1_6 LSI Stat e after Res et End High Lo[...]

  • Page 17

    Chapter 8. Progra mming Method s 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 t he microcontroller without using these tools. 15[...]

  • Page 18

    Chapter 9. Headers 9.1. Microcontroller Headers Table 9-1 to Table 9-4 show the microcontroller pin headers and their corresponding microcontro ller connections. The header pin s connect directly to the microcontroller pins. * Marked pins are subject to option links. J1 Pin Circuit Net Name Device Pin Pin Circuit Net Name Device Pin 1 IO_2 1 2 IO_1[...]

  • Page 19

    J4 Pin Circuit Net Name Device Pin Pin Circuit Net Name Device 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 t he standard application header connections. JA1 Pin Header Name Circuit N[...]

  • Page 20

    JA2 Pin Header Name Circuit Net Name Device Pin Pin Header Name Circuit Net Name Device 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_U[...]

  • Page 21

    Chapter 10. Cod e Development 10.1. Overview Note: For all code debugging usi ng Renesas software tool s, the R enesas Starter Kit board must be connected to a Personal Comput er 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 Microcontro ller and pr[...]

  • Page 22

    10.4. Memory Map Figure 10-1: Memory Map 20[...]

  • Page 23

    Chapter 11. Compo nent Placem ent Figure 11-1: Component P lacement 21[...]

  • Page 24

    Chapter 12. Additional Information For details on how to use High-performance E mbedded 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 languag[...]

  • Page 25

    Renesas Starter Kit f or M16C/26 A User's Manu al Publicat ion Date Rev.3.00 Aug. 31,200 7 Pu bli shed by : Renesas T echnolog y Europe Ltd . Duke’s Meadow , Millb oard Road, Bour ne En d Buck inghams hire SL8 5FH, United Ki ngdom ©2007 Renesas T echnology Europ e and Renesas Sol utions Corp. an d Renesas T ec hnology Corp. All Right s Rese[...]

  • Page 26

    Renesas Star ter Kit for M16C/26A User's Manual Renesas T e chnology Europe Ltd. Duke’s Meadow , Millb oard Road, Bour ne En d Buck inghams hire SL8 5FH, United Ki ngdom[...]