Renesas M16C/20 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
27
28
29
30
31
32

Go to page of

A good user manual

The rules should oblige the seller to give the purchaser an operating instrucion of Renesas M16C/20, 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/20 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/20. 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/20 should contain:
- informations concerning technical data of Renesas M16C/20
- name of the manufacturer and a year of construction of the Renesas M16C/20 item
- rules of operation, control and maintenance of the Renesas M16C/20 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/20 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/20, 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/20.

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/20 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

    RENE S A S 1 6 -BIT S IN G LE- C HIP MI C R OCO MP U TE R M1 6C F AMIL Y / M1 6C/ 2 0 S ERIE S M16C/26 Group 16 Rev. 0.90 Revision date: December. 28, 2003 Usage Notes Reference Book www.renesas.com Before using this material, please visit our website to confirm that this is the most current document available. REJ09B0130-0090Z For the most current[...]

  • Page 2

    Keep safety first in your circuit designs! Notes regarding these materials • Renesas T echnology Corporation puts the maximum effort into making semiconductor prod- ucts better and more reliable, but there is always the possibility that trouble may occur with them. T rouble with semiconductors may lead to personal injury , fire or property damage[...]

  • Page 3

    Preface The “Usage Notes Reference Book” is a compilation of usage notes from the Hardware Manual as well as technical news related to this product.[...]

  • Page 4

    A-1 Table of contents 1. Usage Precaution .......................................................................................... 1 1.1 Precautions for Power Control .................................................................................... 1 1.2 Precautions for Protect ..................................................................[...]

  • Page 5

    A-2 1.10 Precautions for Flash Memory V ersion .................................................................. 22 1.10.1 Precautions for Functions to Inhibit Rewriting Flash Memory Rewrite ...................................... 22 1.10.2 Precautions for Stop mode ...................................................................................[...]

  • Page 6

    M16C/26 Group Rev.0.90 2003.12.28 page 1 of 28 Under development Preliminary specification Specifications in this manual are tentative and subject to change. 1. Usage Precaution 1.1 Precautions for Power Control ____________ 1. When exiting stop mode by hardware reset, set RESET pin to “ L ” until a main clock oscillation is stabilized. 2. Inse[...]

  • Page 7

    M16C/26 Group Rev.0.90 2003.12.28 page 2 of 28 Under development Preliminary specification Specifications in this manual are tentative and subject to change. 1.2 Precautions for Protect Set the PRC2 bit to “ 1 ” (write enabled) and then write to any address, and the PRC2 bit will be cleared to “ 0 ” (write protected). The registers protecte[...]

  • Page 8

    M16C/26 Group Rev.0.90 2003.12.28 page 3 of 28 Under development Preliminary specification Specifications in this manual are tentative and subject to change. 1.3 Precautions for Interrupts 1.3 Precautions for Interrupts 1.3.1 Reading address 00000 16 Do not read the address 00000 16 in a program. When a maskable interrupt request is accepted, the C[...]

  • Page 9

    M16C/26 Group Rev.0.90 2003.12.28 page 4 of 28 Under development Preliminary specification Specifications in this manual are tentative and subject to change. 1.3 Precautions for Interrupts ______ 1.3.5 INT Interrupt 1. Either an “ L ” level of at least t W ( INH ) or an “ H ” level of at least t W ( INL ) width is necessary for the signal _[...]

  • Page 10

    M16C/26 Group Rev.0.90 2003.12.28 page 5 of 28 Under development Preliminary specification Specifications in this manual are tentative and subject to change. 1.3 Precautions for Interrupts 1.3.6 Rewrite the Interrupt Control Register (1) The interrupt control register for any interrupt should be modified in places where no requests for that interru[...]

  • Page 11

    M16C/26 Group Rev.0.90 2003.12.28 page 6 of 28 Under development Preliminary specification Specifications in this manual are tentative and subject to change. 1.3.7 Watchdog Timer Interrupt Initialize the watchdog timer after the watchdog timer interrupt occurs. 1.3 Precautions for Interrupts[...]

  • Page 12

    M16C/26 Group Rev.0.90 2003.12.28 page 7 of 28 Under development Preliminary specification Specifications in this manual are tentative and subject to change. 1.4 Precautions for DMAC 1.4.1 Write to DMAE Bit in DMiCON Register When both of the conditions below are met, follow the steps below. Conditions • The DMAE bit is set to “ 1 ” again whi[...]

  • Page 13

    M16C/26 Group Rev.0.90 2003.12.28 page 8 of 28 Under development Preliminary specification Specifications in this manual are tentative and subject to change. 1.5 Precautions for Timers 1.5.1 Timer A 1.5.1.1 Timer A (Timer Mode) 1. The timer remains idle after reset. Set the mode, count source, counter value, etc. using the TAiMR (i = 0 to 4) regist[...]

  • Page 14

    M16C/26 Group Rev.0.90 2003.12.28 page 9 of 28 Under development Preliminary specification Specifications in this manual are tentative and subject to change. 1.5.1.2 Timer A (Event Counter Mode) 1. The timer remains idle after reset. Set the mode, count source, counter value, etc. using the TAiMR (i = 0 to 4) register, the TAi register, the UDF reg[...]

  • Page 15

    M16C/26 Group Rev.0.90 2003.12.28 page 10 of 28 Under development Preliminary specification Specifications in this manual are tentative and subject to change. 1.5.1.3 Timer A (One-shot Timer Mode) 1. The timer remains idle after reset. Set the mode, count source, counter value, etc. using the TAiMR (i = 0 to 4) register, the TAi register, the ONSF [...]

  • Page 16

    M16C/26 Group Rev.0.90 2003.12.28 page 11 of 28 Under development Preliminary specification Specifications in this manual are tentative and subject to change. 1.5.1.4 Timer A (Pulse Width Modulation Mode) 1. The timer remains idle after reset. Set the mode, count source, counter value, etc. using the TAiMR (i = 0 to 4) register, the TAi register, t[...]

  • Page 17

    M16C/26 Group Rev.0.90 2003.12.28 page 12 of 28 Under development Preliminary specification Specifications in this manual are tentative and subject to change. 1.5.2 Timer B 1.5.2.1 Timer B (Timer Mode) 1. The timer remains idle after reset. Set the mode, count source, counter value, etc. using the TBiMR (i = 0 to 2) register and TBi register before[...]

  • Page 18

    M16C/26 Group Rev.0.90 2003.12.28 page 13 of 28 Under development Preliminary specification Specifications in this manual are tentative and subject to change. 1.5.2.2 Timer B (Event Counter Mode) 1. The timer remains idle after reset. Set the mode, count source, counter value, etc. using the TBiMR (i = 0 to 2) register and TBi register before setti[...]

  • Page 19

    M16C/26 Group Rev.0.90 2003.12.28 page 14 of 28 Under development Preliminary specification Specifications in this manual are tentative and subject to change. 1.5 Precautions for Timers 1.5.2.3 Timer B (Pulse Period/pulse Width Measurement Mode) 1. The timer remains idle after reset. Set the mode, count source, etc. using the TBiMR (i = 0 to 2) reg[...]

  • Page 20

    M16C/26 Group Rev.0.90 2003.12.28 page 15 of 28 Under development Preliminary specification Specifications in this manual are tentative and subject to change. 1.6 Precautions for Serial I/O (Clock-synchronous Serial I/O) 1.6 Precautions for Serial I/O (Clock-synchronous Serial I/O) 1.6.1 Transmission/reception _______ ________ 1. With an external c[...]

  • Page 21

    M16C/26 Group Rev.0.90 2003.12.28 page 16 of 28 Under development Preliminary specification Specifications in this manual are tentative and subject to change. 1.6.2 Transmission When an external clock is selected, the conditions must be met while if the UiC0 register ’ s CKPOL bit = “ 0 ” (transmit data output at the falling edge and the rece[...]

  • Page 22

    M16C/26 Group Rev.0.90 2003.12.28 page 17 of 28 Under development Preliminary specification Specifications in this manual are tentative and subject to change. 1.6.3 Reception 1. In operating the clock-synchronous serial I/O, operating a transmitter generates a shift clock. Fix set- tings for transmission even when using the device only for receptio[...]

  • Page 23

    M16C/26 Group Rev.0.90 2003.12.28 page 18 of 28 Under development Preliminary specification Specifications in this manual are tentative and subject to change. 1.7 Precautions for Serial I/O (UART Mode) 1.7 Precautions for Serial I/O (UART Mode) 1.7.1 Special Mode 2 _______ _____ If a low-level signal is applied to the P8 5 /NMI/SD pin when the TB2S[...]

  • Page 24

    M16C/26 Group Rev.0.90 2003.12.28 page 19 of 28 Under development Preliminary specification Specifications in this manual are tentative and subject to change. 1.8 Precautions for A-D Converter 1.8 Precautions for A-D Converter 1. Set ADCON0 (except bit 6), ADCON1 and ADCON2 registers when A-D conversion is stopped (before a trigger occurs). 2. When[...]

  • Page 25

    M16C/26 Group Rev.0.90 2003.12.28 page 20 of 28 Under development Preliminary specification Specifications in this manual are tentative and subject to change. 1.8 Precautions for A-D Converter 8. If the CPU reads the ADi register (i = 0 to 7) at the same time the conversion result is stored in the ADi register after completion of A-D conversion, an[...]

  • Page 26

    M16C/26 Group Rev.0.90 2003.12.28 page 21 of 28 Under development Preliminary specification Specifications in this manual are tentative and subject to change. 1.9 Precautions for Programmable I/O Ports 1.9 Precautions for Programmable I/O Ports _______ _____ 1. If a low-level signal is applied to the P8 5 /NMI/SD pin when the TB2SC register IVPCR1 [...]

  • Page 27

    M16C/26 Group Rev.0.90 2003.12.28 page 22 of 28 Under development Preliminary specification Specifications in this manual are tentative and subject to change. 1.10 Precautions for Flash Memory Version 1.10 Precautions for Flash Memory Version 1.10.1 Precautions for Functions to Inhibit Rewriting Flash Memory Rewrite ID codes are stored in addresses[...]

  • Page 28

    M16C/26 Group Rev.0.90 2003.12.28 page 23 of 28 Under development Preliminary specification Specifications in this manual are tentative and subject to change. 1.10 Precautions for Flash Memory Version 1.10.7 Operation speed Before entering CPU rewrite mode (EW0 or EW1 mode), select 10 MHz or less for CPU clock using the CM0 register ’ s CM06 bit [...]

  • Page 29

    M16C/26 Group Rev.0.90 2003.12.28 page 24 of 28 Under development Preliminary specification Specifications in this manual are tentative and subject to change. 1.10 Precautions for Flash Memory Version 1.10.12 DMA transfer In EW1 mode, make sure that no DMA transfers will occur while the FMR0 register ’ s FMR00 bit = 0 (during the auto program or [...]

  • Page 30

    M16C/26 Group Rev.0.90 2003.12.28 page 25 of 28 Under development Preliminary specification Specifications in this manual are tentative and subject to change. 2. Differences Made Depending on Manufactured Time 2.1 RESET Input Ensure that pin RESET must hold valid-low state during powering-up. When using a reset IC, use a CMOS type IC. When using an[...]

  • Page 31

    RENESAS 16-BIT SINGLE-CHIP MICROCOMPUTER USAGE NOTES REFERENCE BOOK M16C/26 Group Rev.0.90 Editioned by Committee of editing of RENESAS Semiconductor Usage Notes Reference Book This book, or parts thereof, may not be reproduced in any form without permission of Renesas Technology Corporation. Copyright © 2003. Renesas Technology Corporation, All r[...]

  • Page 32

    M16C/26 Group Usage Notes Reference Book 2- 6 -2, Ote-machi, Chiyoda-ku, Tokyo, 1 00-0004, Japan[...]