Page 1
REJ09B0130-0090Z M16C/26 Group Usage Notes Reference Book RENESAS 16-BIT SINGLE-CHIP MICROCOMPUTER M16C FAMILY / M16C/20 SERIES For the most current Usage Notes Reference Book, please visit our website. Before using this material, please visit our website to confirm that this is the most current document available.
Page 2
• The prior written approval of Renesas Technology Corporation is necessary to reprint or reproduce in whole or in part these materials.
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.
Table of contents 1. Usage Precaution ..................1 1.1 Precautions for Power Control ..................1 1.2 Precautions for Protect ....................2 1.3 Precautions for Interrupts .................... 3 1.3.1 Reading address 0000016 ........................3 1.3.2 Setting the SP ............................3 _______ 1.3.3 The NMI Interrupt ..........................
Page 5
1.10 Precautions for Flash Memory Version ..............22 1.10.1 Precautions for Functions to Inhibit Rewriting Flash Memory Rewrite ........22 1.10.2 Precautions for Stop mode ......................22 1.10.3 Precautions for Wait mode ......................22 1.10.4 Precautions for Low power dissipation mode, ring oscillator low power dissipation mode ... 22 1.10.5 Writing command and data ......................
Under development Preliminary specification Specifications in this manual are tentative and subject to change. 1.1 Precautions for Power Control M16C/26 Group 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.
Under development Preliminary specification Specifications in this manual are tentative and subject to change. M16C/26 Group 1.2 Precautions for Protect 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).
Under development Preliminary specification Specifications in this manual are tentative and subject to change. 1.3 Precautions for Interrupts M16C/26 Group 1.3 Precautions for Interrupts 1.3.1 Reading address 00000 Do not read the address 00000 in a program. When a maskable interrupt request is accepted, the CPU reads interrupt information (interrupt number and interrupt request priority level) from the address 00000 during the interrupt sequence.
Under development Preliminary specification Specifications in this manual are tentative and subject to change. M16C/26 Group 1.3 Precautions for Interrupts 1.3.4 Changing the Interrupt Generate Factor If the interrupt generate factor is changed, the IR bit in the interrupt control register for the changed interrupt may inadvertently be set to “1”...
Under development Preliminary specification Specifications in this manual are tentative and subject to change. 1.3 Precautions for Interrupts M16C/26 Group 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 interrupt may occur.
Under development Preliminary specification Specifications in this manual are tentative and subject to change. M16C/26 Group 1.3 Precautions for Interrupts 1.3.7 Watchdog Timer Interrupt Initialize the watchdog timer after the watchdog timer interrupt occurs. 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.4 Precautions for DMAC M16C/26 Group 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 •...
Under development Preliminary specification Specifications in this manual are tentative and subject to change. M16C/26 Group 1.5 Precautions for Timers 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) register and the TAi register before setting the TAiS bit in the TABSR register to “1”...
Under development Preliminary specification Specifications in this manual are tentative and subject to change. 1.5 Precautions for Timers M16C/26 Group 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 register, the ONSF register TAZIE, TA0TGL and TA0TGH bits and the TRGSR register before setting the TAiS bit in the TABSR register to “1”...
Under development Preliminary specification Specifications in this manual are tentative and subject to change. M16C/26 Group 1.5 Precautions for Timers 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 register TA0TGL and TA0TGH bits and the TRGSR register before setting the TAiS bit in the TABSR register to “1”...
Under development Preliminary specification Specifications in this manual are tentative and subject to change. 1.5 Precautions for Timers M16C/26 Group 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, the ONSF register TA0TGL and TA0TGH bits and the TRGSR register before setting the TAiS bit in the TABSR register to “1”...
Under development Preliminary specification Specifications in this manual are tentative and subject to change. M16C/26 Group 1.5 Precautions for Timers 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 setting the TBiS bit in the TABSR register to “1”...
Under development Preliminary specification Specifications in this manual are tentative and subject to change. 1.5 Precautions for Timers M16C/26 Group 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 setting the TBiS bit in the TABSR register to “1”...
Under development Preliminary specification Specifications in this manual are tentative and subject to change. M16C/26 Group 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) register before setting the TBiS bit in the TABSR register to “1”...
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) M16C/26 Group 1.6 Precautions for Serial I/O (Clock-synchronous Serial I/O) 1.6.1 Transmission/reception _______ ________ 1. With an external clock selected, and choosing the RTS function, the output level of the RTSi pin goes to “L”...
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) M16C/26 Group 1.6.2 Transmission When an external clock is selected, the conditions must be met while if the UiC0 register’s CKPOL bit = “0”...
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) M16C/26 Group 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 reception.
Under development Preliminary specification Specifications in this manual are tentative and subject to change. 1.7 Precautions for Serial I/O (UART Mode) M16C/26 Group 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 /NMI/SD pin when the TB2SC register IVPCR1 bit = 1 (three- _____ _________...
Under development Preliminary specification Specifications in this manual are tentative and subject to change. 1.8 Precautions for A-D Converter M16C/26 Group 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).
Page 25
Under development Preliminary specification Specifications in this manual are tentative and subject to change. M16C/26 Group 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 incorrect value may be stored in the ADi register.
Under development Preliminary specification Specifications in this manual are tentative and subject to change. 1.9 Precautions for Programmable I/O Ports M16C/26 Group 1.9 Precautions for Programmable I/O Ports _______ _____ 1. If a low-level signal is applied to the P8 /NMI/SD pin when the TB2SC register IVPCR1 bit = “1”...
Page 27
Under development Preliminary specification Specifications in this manual are tentative and subject to change. 1.10 Precautions for Flash Memory Version M16C/26 Group 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 0FFFDF , 0FFFE3 , 0FFFEB , 0FFFEF...
Page 28
Under development Preliminary specification Specifications in this manual are tentative and subject to change. 1.10 Precautions for Flash Memory Version M16C/26 Group 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 and CM1 register’s CM17–6 bits.
Page 29
Under development Preliminary specification Specifications in this manual are tentative and subject to change. 1.10 Precautions for Flash Memory Version M16C/26 Group 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 auto erase period).
Page 30
Under development Preliminary specification Specifications in this manual are tentative and subject to change. 2. Difference Made Depending on Manufactured Time M16C/26 Group 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.
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.
Page 32
M16C/26 Group Usage Notes Reference Book 2-6-2, Ote-machi, Chiyoda-ku, Tokyo, 100-0004, Japan...