Under development This document is under development and its contents are subject to change M16C/6N Group (M16C/6NK, M16C/6NM) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER REJ03B0058-0110 Rev.1.10 Jul 01, 2005 1. Overview The M16C/6N Group (M16C/6NK, M16C/6NM) of single-chip microcomputers are built using the high-performance silicon gate CMOS process using an M16C/60 Series CPU core and are packaged in 100-pin and 128-pin plastic molded LQFP. These single-chip microcomputers operate using sophisticated instructions featuring a high level of instruction efficiency. With 1 Mbyte of address space, they are capable of executing instructions at high speed. Being equipped with two CAN (Controller Area Network) modules in M16C/6N Group (M16C/6NK, M16C/6NM), the microcomputer is suited to car audio and industrial control systems. The CAN modules comply with the 2.0B specification. In addition, this microcomputer contains a multiplier and DMAC which combined with fast instruction processing capability, makes it suitable for control of various OA and communication equipment which requires high-speed arithmetic/logic operations. 1.1 Applications Car audio and industrial control systems, other Specifications written in this manual are believed to be accurate, but are not guaranteed to be entirely free of error. Specifications in this manual may be changed for functional or performance improvements. Please make sure your manual is the latest edition. Rev.1.10 Jul 01, 2005 REJ03B0058-0110 page 1 of 39 Under development This document is under development and its contents are subject to change. M16C/6N Group (M16C/6NK, M16C/6NM) 1. Overview 1.2 Performance Outline Tables 1.1 and 1.2 list a performance outline of M16C/6N Group (M16C/6NK, M16C/6NM). Table 1.1 Performance Outline of M16C/6N Group (100-pin Version: M16C/6NK) Performance Item Normal-ver. T/V-ver. CPU Number of Basic Instructions 91 instructions Minimum Instruction 41.7ns (f(BCLK) = 24MHz, 50.0ns (f(BCLK) = 20MHz, Execution Time 1/1 prescaler, without software wait) 1/1 prescaler, without software wait) Operation Mode Single-chip mode Address Space 1 Mbyte Memory Capacity See Table 1.3 Product List Peripheral Port Input/Output: 87 pins, Input: 1 pin Function Multifunction Timer Timer A: 16 bits 5 channels Timer B: 16 bits 6 channels Three-phase motor control circuit Serial I/O 3 channels Clock synchronous, UART, I2C-bus (1), IEBus (2) 2 channels Clock synchronous A/D Converter 10-bit A/D converter: 1 circuit, 26 channels D/A Converter 8 bits 2 channels DMAC 2 channels CRC Calculation Circuit CRC-CCITT CAN Module 2 channels with 2.0B specification Watchdog Timer 15 bits 1 channel (with prescaler) Interrupt Internal: 32 sources, External: 9 sources Software: 4 sources, Priority level: 7 levels Clock Generating Circuit 4 circuits * Main clock oscillation circuit (*) * Sub clock oscillation circuit (*) * On-chip oscillator * PLL frequency synthesizer (*) Equipped with a built-in feedback resistor Oscillation Stop Detection Main clock oscillation stop and re-oscillation detection function Function Electrical Supply Voltage VCC = 3.0 to 5.5V (f(BCLK) = 24MHz, VCC = 4.2 to 5.5V (f(BCLK) = 20MHz, Characteristics 1/1 prescaler, without software wait) 1/1 prescaler, without software wait) Power Mask ROM 21mA (f(BCLK) = 24MHz, Consumption PLL operation, no division) Flash Memory 23mA (f(BCLK) = 24MHz, 21mA (f(BCLK) = 20MHz, PLL operation, no division) PLL operation, no division) Mask ROM 3A (f(BCLK) = 32kHz, Wait mode, Oscillation capacity Low) Flash Memory 0.8A (Stop mode, Topr = 25C) Flash Memory Program/Erase Supply Voltage 3.0 0.3V or 5.0 0.5V 5.0 0.5V Version Program and Erase Endurance 100 times I/O I/O Withstand Voltage 5.0V Characteristics Output Current 5mA Operating Ambient Temperature -40 to 85C T version: -40 to 85C V version: -40 to 125C (option) Device Configuration CMOS high performance silicon gate Package 100-pin plastic mold LQFP NOTES: 1. I2C-bus is a registered trademark of Koninklijke Philips Electronics N.V. 2. IEBus is a registered trademark of NEC Electronics Corporation. option: All options are on request basis. Rev.1.10 Jul 01, 2005 REJ03B0058-0110 page 2 of 39 Under development This document is under development and its contents are subject to change. M16C/6N Group (M16C/6NK, M16C/6NM) 1. Overview Table 1.2 Performance Outline of M16C/6N Group (128-pin Version: M16C/6NM) Performance Item Normal-ver. T/V-ver. CPU Number of Basic Instructions 91 instructions Minimum Instruction 41.7ns (f(BCLK) = 24MHz, 50.0ns (f(BCLK) = 20MHz, Execution Time 1/1 prescaler, without software wait) 1/1 prescaler, without software wait) Operation Mode Single-chip mode Address Space 1 Mbyte Memory Capacity See Table 1.3 Product List Peripheral Port Input/Output: 113 pins, Input: 1 pin Function Multifunction Timer Timer A: 16 bits 5 channels Timer B: 16 bits 6 channels Three-phase motor control circuit Serial I/O 3 channels Clock synchronous, UART, I2C-bus (1), IEBus (2) 4 channels Clock synchronous A/D Converter 10-bit A/D converter: 1 circuit, 26 channels D/A Converter 8 bits 2 channels DMAC 2 channels CRC Calculation Circuit CRC-CCITT CAN Module 2 channels with 2.0B specification Watchdog Timer 15 bits 1 channel (with prescaler) Interrupt Internal: 34 sources, External: 12 sources Software: 4 sources, Priority level: 7 levels Clock Generating Circuit 4 circuits * Main clock oscillation circuit (*) * Sub clock oscillation circuit (*) * On-chip oscillator * PLL frequency synthesizer (*) Equipped with a built-in feedback resistor Oscillation Stop Detection Main clock oscillation stop and re-oscillation detection function Function Electrical Supply Voltage VCC = 3.0 to 5.5V (f(BCLK) = 24MHz, VCC = 4.2 to 5.5V (f(BCLK) = 20MHz, Characteristics 1/1 prescaler, without software wait) 1/1 prescaler, without software wait) Power Mask ROM 21mA (f(BCLK) = 24MHz, Consumption PLL operation, no division) Flash Memory 23mA (f(BCLK) = 24MHz, 21mA (f(BCLK) = 20MHz, PLL operation, no division) PLL operation, no division) Mask ROM 3A (f(BCLK) = 32kHz, Wait mode, Oscillation capacity Low) Flash Memory 0.8A (Stop mode, Topr = 25C) Flash Memory Program/Erase Supply Voltage 3.0 0.3V or 5.0 0.5V 5.0 0.5V Version Program and Erase Endurance 100 times I/O I/O Withstand Voltage 5.0V Characteristics Output Current 5mA Operating Ambient Temperature -40 to 85C T version: -40 to 85C V version: -40 to 125C (option) Device Configuration CMOS high performance silicon gate Package 128-pin plastic mold LQFP NOTES: 1. I2C-bus is a registered trademark of Koninklijke Philips Electronics N.V. 2. IEBus is a registered trademark of NEC Electronics Corporation. option: All options are on request basis. Rev.1.10 Jul 01, 2005 REJ03B0058-0110 page 3 of 39 Under development This document is under development and its contents are subject to change. M16C/6N Group (M16C/6NK, M16C/6NM) 1. Overview 1.3 Block Diagram Figure 1.1 shows a block diagram of M16C/6N Group (M16C/6NK, M16C/6NM). 8 Port P0 8 8 Port P1 Port P3 SB ROM (1) A0 A1 FB INTB PC Rev.1.10 Jul 01, 2005 REJ03B0058-0110 page 4 of 39 Port P13 (3) (3) 2 8 Port P12 (3) 8 Port P11 (3) 8 8 Figure 1.1 Block Diagram Multiplier FLG Port P14 NOTES: 1: ROM size depends on microcomputer type. 2: RAM size depends on microcomputer type. 3: Ports P11 to P14 are only in the 128-pin version. 4: 8 bits 2 channels in the 100-pin version. RAM (2) ISP 8 R2 R3 USP Port P10 D/A converter (8 bits 2 channels) R0L R1L 7 Memory Port P9 DMAC (2 channels) CAN module (2 channels) M16C/60 series CPU core R0H R1H Port P8_5 Watchdog timer (15 bits) Port P6 8 CRC arithmetic circuit (CCITT) (Polynomial: X16+X12+X5+1) Clock synchronous serial I/O (8 bits 4 channels) (4) 8 Port P8 Three-phase motor control circuit Port P5 XIN-XOUT XCIN-XCOUT PLL frequency synthesizer On-chip oscillator Timer (16 bits) UART or Clock synchronous serial I/O (3 channels) Port P4 8 System clock generating circuit A/D converter (10 bits 8 channels Expandable up to 26 channels) Output (timer A): 5 Input (timer B): 6 8 Port P7 Internal peripheral functions Port P2 8 Under development This document is under development and its contents are subject to change. M16C/6N Group (M16C/6NK, M16C/6NM) 1. Overview 1.4 Product List Table 1.3 lists the M16C/6N Group (M16C/6NK, M16C/6NM) products and Figure 1.2 shows the type numbers, memory sizes and packages. Table 1.3 Product List Type No. M306NKFHGP M306NMFHGP M306NKFJGP (D) M306NMFJGP M306NKFHTGP (D) M306NMFHTGP (D) M306NKFJTGP (D) M306NMFJTGP (D) M306NKFHVGP (D) M306NMFHVGP (D) M306NKFJVGP (D) M306NMFJVGP (D) M306NKME-XXXGP M306NMME-XXXGP M306NKMG-XXXGP M306NMMG-XXXGP (D): Under development ROM Capacity RAM Capacity Package Type PLQP0100KB-A 384 K + 4 Kbytes 31 Kbytes PLQP0128KB-A PLQP0100KB-A 512 K + 4 Kbytes 31 Kbytes PLQP0128KB-A PLQP0100KB-A 384 K + 4 Kbytes 31 Kbytes PLQP0128KB-A PLQP0100KB-A 512 K + 4 Kbytes 31 Kbytes PLQP0128KB-A PLQP0100KB-A 384 K + 4 Kbytes 31 Kbytes PLQP0128KB-A PLQP0100KB-A 512 K + 4 Kbytes 31 Kbytes PLQP0128KB-A 16 Kbytes PLQP0100KB-A 192 Kbytes PLQP0128KB-A 20 Kbytes PLQP0100KB-A 256 Kbytes PLQP0128KB-A As of Jul. 2005 Remarks Normal-ver. Flash memory version T-ver. V-ver. Mask ROM version Normal-ver. Type No. M30 6N K M G T - XXX GP Package type: GP: Package PLQP0100KB-A, PLQP0128KB-A ROM No. Omitted on flash memory version Characteristics (no) : Normal-ver. T : T-ver. (Automotive 85C version) V : V-ver. (Automotive 125C version) ROM capacity: E : 192 Kbytes G: 256 Kbytes H : 384 Kbytes J : 512 Kbytes Memory type: M : Mask ROM version F : Flash memory version Shows the number of CAN module, pin count, etc. 6N Group M16C Family Figure 1.2 Type No., Memory Size, and Package Rev.1.10 Jul 01, 2005 REJ03B0058-0110 page 5 of 39 Under development This document is under development and its contents are subject to change. M16C/6N Group (M16C/6NK, M16C/6NM) 1. Overview 1.5 Pin Configuration Figures 1.3 and 1.4 show the pin configuration (top view). P1_3 P1_4 P1_5/INT3 P1_6/INT4 P1_7/INT5 P2_0/AN2_0 P2_1/AN2_1 P2_2/AN2_2 P2_3/AN2_3 P2_4/AN2_4 P2_5/AN2_5 P2_6/AN2_6 P2_7/AN2_7 VSS P3_0 VCC2 P3_1 P3_2 P3_3 P3_4 P3_5 P3_6 P3_7 P4_0 P4_1 PIN CONFIGURATION (top view) 75 74 73 72 71 70 69 68 67 66 65 64 63 62 61 60 59 58 57 56 55 54 53 52 51 P1_2 P1_1 P1_0 P0_7/AN0_7 P0_6/AN0_6 P0_5/AN0_5 P0_4/AN0_4 P0_3/AN0_3 P0_2/AN0_2 P0_1/AN0_1 P0_0/AN0_0 P10_7/AN7/KI3 P10_6/AN6/KI2 P10_5/AN5/KI1 P10_4/AN4/KI0 P10_3/AN3 P10_2/AN2 P10_1/AN1 AVSS P10_0/AN0 VREF AVCC P9_7/ADTRG/SIN4 P9_6/ANEX1/CTX0/SOUT4 P9_5/ANEX0/CRX0/CLK4 76 77 78 79 80 50 49 48 47 46 45 44 43 81 82 83 84 85 86 87 88 M16C/6N Group (M16C/6NK) 89 90 91 92 93 94 95 96 97 98 99 42 41 40 39 38 37 36 35 34 33 32 31 30 29 28 27 26 100 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 P9_4/DA1/TB4IN P9_3/DA0/TB3IN P9_2/TB2IN/SOUT3 (1) P9_1/TB1IN/SIN3 P9_0/TB0IN/CLK3 BYTE CNVSS P8_7/XCIN P8_6/XCOUT RESET XOUT VSS XIN VCC1 P8_5/NMI P8_4/INT2/ZP P8_3/INT1 P8_2/INT0 P8_1/TA4IN/U P8_0/TA4OUT/U/(SIN4) P7_7/TA3IN/CRX1 P7_6/TA3OUT/CTX1 P7_5/TA2IN/W/(SOUT4) P7_4/TA2OUT/W/(CLK4) P7_3/CTS2/RTS2/TA1IN/V 1 2 P4_2 P4_3 P4_4 P4_5 P4_6 P4_7 P5_0 P5_1 P5_2 P5_3 P5_4 P5_5 P5_6 P5_7/CLKOUT P6_0/CTS0/RTS0 P6_1/CLK0 P6_2/RXD0/SCL0 P6_3/TXD0/SDA0 P6_4/CTS1/RTS1/CTS0/CLKS1 P6_5/CLK1 P6_6/RXD1/SCL1 P6_7/TXD1/SDA1 P7_0/TXD2/SDA2/TA0OUT P7_1/RXD2/SCL2/TA0IN/TB5IN (1) P7_2/CLK2/TA1OUT/V NOTE: 1. P7_1 and P9_1 are N channel open-drain pins. Figure 1.3 Pin Configuration (Top View) (1) Rev.1.10 Jul 01, 2005 REJ03B0058-0110 page 6 of 39 Package: PLQP0100KB-A Under development This document is under development and its contents are subject to change. M16C/6N Group (M16C/6NK, M16C/6NM) 1. Overview P1_1 P1_2 P1_3 P1_4 P1_5/INT3 P1_6/INT4 P1_7/INT5 P2_0/AN2_0 P2_1/AN2_1 P2_2/AN2_2 P2_3/AN2_3 P2_4/AN2_4 P2_5/AN2_5 P2_6/AN2_6 P2_7/AN2_7 VSS P3_0 VCC2 P12_0 P12_1 P12_2 P12_3 P12_4 P3_1 P3_2 P3_3 P3_4 P3_5 P3_6 P3_7 P4_0 P4_1 P4_2 P4_3 P4_4 P4_5 P4_6 P4_7 PIN CONFIGURATION (top view) 102 101 100 99 98 97 96 95 94 93 92 91 90 89 88 87 86 85 84 83 82 81 80 79 78 77 76 75 74 73 72 71 70 69 68 67 66 65 P1_0 P0_7/AN0_7 P0_6/AN0_6 P0_5/AN0_5 P0_4/AN0_4 P0_3/AN0_3 P0_2/AN0_2 P0_1/AN0_1 P0_0/AN0_0 P11_7/SIN6 P11_6/SOUT6 P11_5/CLK6 P11_4 P11_3 P11_2/SOUT5 P11_1/SIN5 P11_0/CLK5 P10_7/AN7/KI3 P10_6/AN6/KI2 P10_5/AN5/KI1 P10_4/AN4/KI0 P10_3/AN3 P10_2/AN2 P10_1/AN1 AVSS P10_0/AN0 103 64 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 63 62 61 60 59 58 57 56 55 54 53 52 51 50 M16C/6N Group (M16C/6NM) 49 48 47 46 45 44 43 42 41 40 39 P12_5 P12_6 P12_7 P5_0 P5_1 P5_2 P5_3 P13_0 P13_1 P13_2 P13_3 P5_4 P5_5 P5_6 P5_7/CLKOUT P13_4 P13_5/INT6 P13_6/INT7 P13_7/INT8 P6_0/CTS0/RTS0 P6_1/CLK0 P6_2/RXD0/SCL0 P6_3/TXD0/SDA0 P6_4/CTS1/RTS1/CTS0/CLKS1 P6_5/CLK1 VSS VREF AVCC P9_7/ADTRG/SIN4 P9_6/ANEX1/CTX0/SOUT4 P9_5/ANEX0/CRX0/CLK4 P9_4/DA1/TB4IN P9_3/DA0/TB3IN P9_2/TB2IN/SOUT3 (1) P9_1/TB1IN/SIN3 P9_0/TB0IN/CLK3 P14_1 P14_0 BYTE CNVSS P8_7/XCIN P8_6/XCOUT RESET XOUT VSS XIN VCC1 P8_5/NMI P8_4/INT2/ZP P8_3/INT1 P8_2/INT0 P8_1/TA4IN/U P8_0/TA4OUT/U/(SIN4) P7_7/TA3IN/CRX1 P7_6/TA3OUT/CTX1 P7_5/TA2IN/W/(SOUT4) P7_4/TA2OUT/W/(CLK4) P7_3/CTS2/RTS2/TA1IN/V P7_2/CLK2/TA1OUT/V (1) P7_1/RXD2/SCL2/TA0IN/TB5IN P7_0/TXD2/SDA2/TA0OUT P6_7/TXD1/SDA1 VCC1 P6_6/RXD1/SCL1 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 33 34 35 36 37 38 NOTE: 1. P7_1 and P9_1 are N channel open-drain pins. Figure 1.4 Pin Configuration (Top View) (2) Rev.1.10 Jul 01, 2005 REJ03B0058-0110 page 7 of 39 Package: PLQP0128KB-A Under development This document is under development and its contents are subject to change. M16C/6N Group (M16C/6NK, M16C/6NM) 1. Overview 1.6 Pin Description Tables 1.4 and 1.5 list the pin descriptions. Table 1.4 Pin Description (100-pin and 128-pin Versions) (1) Signal Name Pin Name Power supply input Analog power supply input Reset input VCC1, VCC2, VSS AVCC, AVSS CNVSS External data bus width select input Main clock input Main clock output Sub clock input Sub clock output Clock output ______ INT interrupt input _______ NMI interrupt input Key input interrupt input Timer A Description I Apply 3.0 to 5.5V to the VCC1 and VCC2 pins and 0V to the VSS pin. The VCC apply condition is that VCC2 = VCC1 (1). Applies the power supply for the A/D converter. Connect the AVCC pin to VCC1. Connect the AVSS pin to VSS. The microcomputer is in a reset state when applying "L" to the this pin. Connect this pin to VSS. Connect this pin to VSS. I _____________ RESET I CNVSS BYTE I I XIN I XOUT O XCIN I XCOUT O CLKOUT ________ ________ INT0 to INT8 (3) ________ NMI O I I I/O pins for the main clock oscillation circuit. Connect a ceramic (2) resonator or crystal oscillator between XIN and XOUT . To use the external clock, input the clock from XIN and leave XOUT open. I/O pins for a sub clock oscillation circuit. Connect a crystal oscillator between XCIN and XCOUT (2). To use the external clock, input the clock from XCIN and leave XCOUT open. The clock of the same cycle as fC, f8, or f32 is output. ______ Input pins for the_______ INT interrupt. Input pin for the NMI interrupt. I Input pins for the key input interrupt. ______ ______ KI0 to KI3 TA0OUT to TA4OUT TA0IN to TA4IN ZP Timer B TB0IN to___TB5IN ___ ____ Three-phase motor U, U, V, V, W, W control output __________ __________ Serial I/O CTS0 to CTS2 __________ __________ RTS0 to RTS2 CLK0 to CLK6 (3) RXD0 to RXD2 SIN3 to SIN6 (3) TXD0 to TXD2 SOUT3 to SOUT6 (3) CLKS1 2 I C mode SDA0 to SDA2 SCL0 to SCL2 I: Input I/O Type O: Output I/O I I I O These are timer A0 to timer A4 I/O pins. These are timer A0 to timer A4 input pins. Input pin for the Z-phase. These are timer B0 to timer B5 input pins. These are Three-phase motor control output pins. These are send control input pins. These are receive control output pins. These are transfer clock I/O pins. These are serial data input pins. These are serial data input pins. These are serial data output pins. These are serial data output pins. This is output pin for transfer clock output from multiple pins function. These are serial data I/O pins. These are transfer clock I/O pins. (except SCL2 for the N-channel open drain output.) I/O: Input/Output I O I/O I I O O O I/O I/O NOTES: 1. In this manual, hereafter, VCC refers to VCC1 unless otherwise noted. 2. Ask the ________ oscillator maker the oscillation characteristic. ________ 3. INT6 to INT8, CLK5, CLK6, SIN5, SIN6, SOUT5, SOUT6 are only in the 128-pin version. Rev.1.10 Jul 01, 2005 REJ03B0058-0110 page 8 of 39 Under development This document is under development and its contents are subject to change. M16C/6N Group (M16C/6NK, M16C/6NM) 1. Overview Table 1.5 Pin Description (100-pin and 128-pin Versions) (2) Signal Name Reference Pin Name VREF I/O Type Description Applies the reference voltage for the A/D converter and D/A I voltage input A/D converter converter. AN0 to AN7 I Analog input pins for the A/D converter. ADTRG I This is an A/D trigger input pin. ANEX0 I/O AN0_0 to AN0_7 AN2_0 to AN2_7 _____________ This is the extended analog input pin for the A/D converter, and is the output in external op-amp connection mode. ANEX1 I This is the extended analog input pin for the A/D converter. D/A converter DA0, DA1 O These are the output pins for the D/A converter. CAN module CRX0, CRX1 I These are the input pins for the CAN module. CTX0, CTX1 O These are the output pins for the CAN module. P0_0 to P0_7 I/O 8-bit I/O ports in CMOS, having a direction register to select I/O port P1_0 to P1_7 an input or output. P2_0 to P2_7 Each pin is set as an input port or output port. An input port P3_0 to P3_7 P4_0 to P4_7 can be set for a pull-up or for no pull-up in 4-bit unit by P5_0 to P5_7 (except P7_1 and P9_1 for the N-channel open drain output.) program. P6_0 to P6_7 P7_0 to P7_7 P8_0 to P8_4 P8_6, P8_7 P9_0 to P9_7 P10_0 to P10_7 P11_0 to P11_7 (1) P12_0 to P12_7 (1) P13_0 to P13_7 (1) P14_0, P14_1 (1) _______ Input port P8_5 I Input pin for the NMI interrupt. Pin states can be read by the P8_5 bit in the P8 register. I: Input O: Output I/O: Input/Output NOTE: 1. Ports P11 to P14 are only in the 128-pin version. Rev.1.10 Jul 01, 2005 REJ03B0058-0110 page 9 of 39 Under development This document is under development and its contents are subject to change. M16C/6N Group (M16C/6NK, M16C/6NM) 2. Central Processing Unit (CPU) 2. Central Processing Unit (CPU) Figure 2.1 shows the CPU registers. The CPU has 13 registers. Of these, R0, R1, R2, R3, A0, A1 and FB comprise a register bank. There are two register banks. b31 b15 b8 b7 b0 R2 R0H (R0's high bits) R0L (R0's low bits) R3 R1H (R1's high bits) R1L (R1's low bits) Data Registers (1) R2 R3 A0 Address Registers (1) A1 FB b19 Frame Base Registers (1) b15 b0 INTBH Interrupt Table Register INTBL The upper 4 bits of INTB are INTBH and the lower 16 bits of INTB are INTBL. b19 b0 Program Counter PC b15 b0 USP User Stack Pointer ISP Interrupt Stack Pointer SB Static Base Register b15 b0 FLG b15 Flag Register b8 b7 IPL U b0 I O B S Z D C Carry Flag Debug Flag Zero Flag Sign Flag Register Bank Select Flag Overflow Flag Interrupt Enable Flag Stack Pointer Select Flag Reserved Area Processor Interrupt Priority Level Reserved Area NOTE: 1. These registers comprise a register bank. There are two register banks. Figure 2.1 CPU Registers 2.1 Data Registers (R0, R1, R2, and R3) The R0 register consists of 16 bits, and is used mainly for transfers and arithmetic/logic operations. R1 to R3 are the same as R0. The R0 register can be separated between high (R0H) and low (R0L) for use as two 8-bit data registers. R1H and R1L are the same as R0H and R0L. Conversely R2 and R0 can be combined for use as a 32-bit data register (R2R0). R3R1 is the same as R2R0. 2.2 Address Registers (A0 and A1) The A0 register consists of 16 bits, and is used for address register indirect addressing and address register relative addressing. They also are used for transfers and arithmetic/logic operations. A1 is the same as A0. In some instructions, A1 and A0 can be combined for use as a 32-bit address register (A1A0). Rev.1.10 Jul 01, 2005 REJ03B0058-0110 page 10 of 39 Under development This document is under development and its contents are subject to change. M16C/6N Group (M16C/6NK, M16C/6NM) 2. Central Processing Unit (CPU) 2.3 Frame Base Register (FB) FB is configured with 16 bits, and is used for FB relative addressing. 2.4 Interrupt Table Register (INTB) INTB is configured with 20 bits, indicating the start address of an interrupt vector table. 2.5 Program Counter (PC) PC is configured with 20 bits, indicating the address of an instruction to be executed. 2.6 User Stack Pointer (USP), Interrupt Stack Pointer (ISP) Stack pointer (SP) comes in two types: USP and ISP, each configured with 16 bits. Your desired type of stack pointer (USP or ISP) can be selected by the U flag of FLG. 2.7 Static Base Register (SB) SB is configured with 16 bits, and is used for SB relative addressing. 2.8 Flag Register (FLG) FLG consists of 11 bits, indicating the CPU status. 2.8.1 Carry Flag (C Flag) This flag retains a carry, borrow, or shift-out bit that has occurred in the arithmetic/logic unit. 2.8.2 Debug Flag (D Flag) This flag is used exclusively for debugging purpose. During normal use, it must be set to "0". 2.8.3 Zero Flag (Z Flag) This flag is set to "1" when an arithmetic operation resulted in 0; otherwise, it is "0". 2.8.4 Sign Flag (S Flag) This flag is set to "1" when an arithmetic operation resulted in a negative value; otherwise, it is "0". 2.8.5 Register Bank Select Flag (B Flag) Register bank 0 is selected when this flag is "0" ; register bank 1 is selected when this flag is "1". 2.8.6 Overflow Flag (O Flag) This flag is set to "1" when the operation resulted in an overflow; otherwise, it is "0". 2.8.7 Interrupt Enable Flag (I Flag) This flag enables a maskable interrupt. Maskable interrupts are disabled when the I flag is "0", and are enabled when the I flag is "1". The I flag is set to "0" when the interrupt request is accepted. 2.8.8 Stack Pointer Select Flag (U Flag) ISP is selected when the U flag is "0" ; USP is selected when the U flag is "1". The U flag is set to "0" when a hardware interrupt request is accepted or an INT instruction for software interrupt Nos. 0 to 31 is executed. 2.8.9 Processor Interrupt Priority Level (IPL) IPL is configured with three bits, for specification of up to eight processor interrupt priority levels from level 0 to level 7. If a requested interrupt has priority greater than IPL, the interrupt request is enabled. 2.8.10 Reserved Area When white to this bit, write "0". When read, its content is indeterminate. Rev.1.10 Jul 01, 2005 REJ03B0058-0110 page 11 of 39 Under development This document is under development and its contents are subject to change. M16C/6N Group (M16C/6NK, M16C/6NM) 3. Memory 3. Memory Figure 3.1 shows a memory map of the M16C/6N Group (M16C/6NK, M16C/6NM). The address space extends the 1 Mbyte from address 00000h to FFFFFh. The internal ROM is allocated in a lower address direction beginning with address FFFFFh. For example, a 512-Kbyte internal ROM is allocated to the addresses from 80000h to FFFFFh. As for the flash memory version, 4-Kbyte space (block A) exists in 0F000h to 0FFFFh. 4-Kbyte space is mainly for storing data. In addition to storing data, 4-Kbyte space also can store programs. The fixed interrupt vector table is allocated to the addresses from FFFDCh to FFFFFh. Therefore, store the start address of each interrupt routine here. The internal RAM is allocated in an upper address direction beginning with address 00400h. For example, a 31-Kbyte internal RAM is allocated to the addresses from 00400h to 07FFFh. In addition to storing data, the internal RAM also stores the stack used when calling subroutines and when interrupts are generated. The SFR is allocated to the addresses from 00000h to 003FFh. Peripheral function control registers are located here. Of the SFR, any area which has no functions allocated is reserved for future use and cannot be used by users. The special page vector table is allocated to the addresses from FFE00h to FFFDBh. This vector is used by the JMPS or JSRS instruction. For details, refer to M16C/60 and M16C/20 Series Software Manual. 00000h SFR 00400h FFE00h Internal RAM XXXXXh Reserved area 0F000h Special page vector table Internal ROM (data area) (1) 0FFFFh 10000h FFFDCh Internal RAM Internal ROM Capacity Address XXXXXh Capacity Address YYYYYh 16 Kbytes 043FFh 192 Kbytes D0000h 20 Kbytes 053FFh 256 Kbytes C0000h 31 Kbytes 07FFFh 384 Kbytes A0000h 512 Kbytes 80000h BRK instruction Address match Single step Oscillation stop and re-oscillation detection / watchdog timer YYYYYh Internal ROM (program area) (3) FFFFFh FFFFFh NOTES: 1. As for the flash memory version, 4-Kbyte space (block A) exists. 2. Shown here is a memory map for the case where the PM13 bit in the PM1 register is "1". If the PM13 bit is set to "0", 15 Kbytes of the internal RAM and 192 Kbytes of the internal ROM can be used. 3. When using the masked ROM version, write nothing to internal ROM area. Figure 3.1 Memory Map Rev.1.10 Jul 01, 2005 REJ03B0058-0110 page 12 of 39 Undefined instruction Overflow Reserved area (1) DBC NMI Reset Under development This document is under development and its contents are subject to change. M16C/6N Group (M16C/6NK, M16C/6NM) 4. Special Function Register (SFR) 4. Special Function Register (SFR) SFR (Special Function Register) is the control register of peripheral functions. Tables 4.1 to 4.16 list the SFR information. Table 4.1 SFR Information (1) Address 0000h 0001h 0002h 0003h 0004h 0005h 0006h 0007h 0008h 0009h 000Ah 000Bh 000Ch 000Dh 000Eh 000Fh 0010h 0011h 0012h 0013h 0014h 0015h 0016h 0017h 0018h 0019h 001Ah 001Bh 001Ch 001Dh 001Eh 001Fh 0020h 0021h 0022h 0023h 0024h 0025h 0026h 0027h 0028h 0029h 002Ah 002Bh 002Ch 002Dh 002Eh 002Fh 0030h 0031h 0032h 0033h 0034h 0035h 0036h 0037h 0038h 0039h 003Ah 003Bh 003Ch 003Dh 003Eh 003Fh Register Symbol After Reset Processor Mode Register 0 Processor Mode Register 1 System Clock Control Register 0 System Clock Control Register 1 PM0 PM1 CM0 CM1 Address Match Interrupt Enable Register Protect Register AIER PRCR XXXXXX00b XX000000b Oscillation Stop Detection Register (1) CM2 0X000000b Watchdog Timer Start Register Watchdog Timer Control Register WDTS WDC Address Match Interrupt Register 0 RMAD0 XXh 00XXXXXXb 00h 00h X0h Address Match Interrupt Register 1 RMAD1 PLL Control Register 0 PLC0 0001X010b Processor Mode Register 2 PM2 XXX00000b DMA0 Source Pointer SAR0 XXh XXh XXh DMA0 Destination Pointer DAR0 XXh XXh XXh DMA0 Transfer Counter TCR0 XXh XXh DMA0 Control Register DM0CON DMA1 Source Pointer SAR1 XXh XXh XXh DMA1 Destination Pointer DAR1 XXh XXh XXh DMA1 Transfer Counter TCR1 XXh XXh DMA1 Control Register DM1CON X: Undefined NOTES: 1. The CM20, CM21, and CM27 bits in the CM2 register do not change at oscillation stop detection reset. 2. The blank areas are reserved and cannot be accessed by users. Rev.1.10 Jul 01, 2005 REJ03B0058-0110 page 13 of 39 00h 00001000b 01001000b 00100000b 00h 00h X0h 00000X00b 00000X00b Under development This document is under development and its contents are subject to change. M16C/6N Group (M16C/6NK, M16C/6NM) 4. Special Function Register (SFR) Table 4.2 SFR Information (2) Address 0040h 0041h 0042h 0043h 0044h 0045h 0046h 0047h 0048h 0049h 004Ah 004Bh 004Ch 004Dh 004Eh 004Fh 0050h 0051h 0052h 0053h 0054h 0055h 0056h 0057h 0058h 0059h 005Ah 005Bh 005Ch 005Dh 005Eh 005Fh 0060h 0061h 0062h 0063h 0064h 0065h 0066h 0067h 0068h 0069h 006Ah 006Bh 006Ch 006Dh 006Eh 006Fh 0070h 0071h 0072h 0073h 0074h 0075h 0076h 0077h 0078h 0079h 007Ah 007Bh 007Ch 007Dh 007Eh 007Fh Register CAN0/1 Wake-up Interrupt Control Register CAN0 Successful Reception Interrupt Control Register CAN0 Successful Transmission Interrupt Control Register INT3 Interrupt Control Register Timer B5 Interrupt Control Register SI/O5 Interrupt Control Register (1) Timer B4 Interrupt Control Register UART1 Bus Collision Detection Interrupt Control Register Timer B3 Interrupt Control Register UART0 Bus Collision Detection Interrupt Control Register CAN1 Successful Reception Interrupt Control Register SI/O4 Interrupt Control Register INT5 Interrupt Control Register CAN1 Successful Transmission Interrupt Control Register SI/O3 Interrupt Control Register INT4 Interrupt Control Register UART2 Bus Collision Detection Interrupt Control Register DMA0 Interrupt Control Register DMA1 Interrupt Control Register CAN0/1 Error Interrupt Control Register A/D Conversion Interrupt Control Register Key Input Interrupt Control Register UART2 Transmit Interrupt Control Register UART2 Receive Interrupt Control Register UART0 Transmit Interrupt Control Register UART0 Receive Interrupt Control Register UART1 Transmit Interrupt Control Register UART1 Receive Interrupt Control Register Timer A0 Interrupt Control Register Timer A1 Interrupt Control Register Timer A2 Interrupt Control Register INT7 Interrupt Control Register (1) Timer A3 Interrupt Control Register INT6 Interrupt Control Register (1) Timer A4 Interrupt Control Register Timer B0 Interrupt Control Register SI/O6 Interrupt Control Register (1) Timer B1 Interrupt Control Register INT8 Interrupt Control Register (1) Timer B2 Interrupt Control Register INT0 Interrupt Control Register INT1 Interrupt Control Register INT2 Interrupt Control Register CAN0 Message Box 0: Identifier / DLC CAN0 Message Box 0: Data Field CAN0 Message Box 0: Time Stamp CAN0 Message Box 1: Identifier / DLC CAN0 Message Box 1: Data Field CAN0 Message Box 1: Time Stamp X: Undefined NOTES: 1. These registers exist only in the 128-pin version. 2. The blank area is reserved and cannot be accessed by users. Rev.1.10 Jul 01, 2005 REJ03B0058-0110 page 14 of 39 Symbol C01WKIC C0RECIC C0TRMIC INT3IC TB5IC S5IC TB4IC U1BCNIC TB3IC U0BCNIC C1RECIC S4IC INT5IC C1TRMIC S3IC INT4IC U2BCNIC DM0IC DM1IC C01ERRIC ADIC KUPIC S2TIC S2RIC S0TIC S0RIC S1TIC S1RIC TA0IC TA1IC TA2IC INT7IC TA3IC INT6IC TA4IC TB0IC S6IC TB1IC INT8IC TB2IC INT0IC INT1IC INT2IC After Reset XXXXX000b XXXXX000b XXXXX000b XX00X000b XXXXX000b XXXXX000b XXXXX000b XX00X000b XX00X000b XXXXX000b XXXXX000b XXXXX000b XXXXX000b XXXXX000b XXXXX000b XXXXX000b XXXXX000b XXXXX000b XXXXX000b XXXXX000b XXXXX000b XXXXX000b XX00X000b XX00X000b XXXXX000b XXXXX000b XX00X000b XXXXX000b XX00X000b XX00X000b XX00X000b XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh Under development This document is under development and its contents are subject to change. M16C/6N Group (M16C/6NK, M16C/6NM) 4. Special Function Register (SFR) Table 4.3 SFR Information (3) Address 0080h 0081h 0082h 0083h 0084h 0085h 0086h 0087h 0088h 0089h 008Ah 008Bh 008Ch 008Dh 008Eh 008Fh 0090h 0091h 0092h 0093h 0094h 0095h 0096h 0097h 0098h 0099h 009Ah 009Bh 009Ch 009Dh 009Eh 009Fh 00A0h 00A1h 00A2h 00A3h 00A4h 00A5h 00A6h 00A7h 00A8h 00A9h 00AAh 00ABh 00ACh 00ADh 00AEh 00AFh 00B0h 00B1h 00B2h 00B3h 00B4h 00B5h 00B6h 00B7h 00B8h 00B9h 00BAh 00BBh 00BCh 00BDh 00BEh 00BFh Register CAN0 Message Box 2: Identifier / DLC CAN0 Message Box 2: Data Field CAN0 Message Box 2: Time Stamp CAN0 Message Box 3: Identifier / DLC CAN0 Message Box 3: Data Field CAN0 Message Box 3: Time Stamp CAN0 Message Box 4: Identifier / DLC CAN0 Message Box 4: Data Field CAN0 Message Box 4: Time Stamp CAN0 Message Box 5: Identifier / DLC CAN0 Message Box 5: Data Field CAN0 Message Box 5: Time Stamp X: Undefined Rev.1.10 Jul 01, 2005 REJ03B0058-0110 page 15 of 39 Symbol After Reset XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh Under development This document is under development and its contents are subject to change. M16C/6N Group (M16C/6NK, M16C/6NM) 4. Special Function Register (SFR) Table 4.4 SFR Information (4) Address 00C0h 00C1h 00C2h 00C3h 00C4h 00C5h 00C6h 00C7h 00C8h 00C9h 00CAh 00CBh 00CCh 00CDh 00CEh 00CFh 00D0h 00D1h 00D2h 00D3h 00D4h 00D5h 00D6h 00D7h 00D8h 00D9h 00DAh 00DBh 00DCh 00DDh 00DEh 00DFh 00E0h 00E1h 00E2h 00E3h 00E4h 00E5h 00E6h 00E7h 00E8h 00E9h 00EAh 00EBh 00ECh 00EDh 00EEh 00EFh 00F0h 00F1h 00F2h 00F3h 00F4h 00F5h 00F6h 00F7h 00F8h 00F9h 00FAh 00FBh 00FCh 00FDh 00FEh 00FFh Register CAN0 Message Box 6: Identifier / DLC CAN0 Message Box 6: Data Field CAN0 Message Box 6: Time Stamp CAN0 Message Box 7: Identifier / DLC CAN0 Message Box 7: Data Field CAN0 Message Box 7: Time Stamp CAN0 Message Box 8: Identifier / DLC CAN0 Message Box 8: Data Field CAN0 Message Box 8: Time Stamp CAN0 Message Box 9: Identifier / DLC CAN0 Message Box 9: Data Field CAN0 Message Box 9: Time Stamp X: Undefined Rev.1.10 Jul 01, 2005 REJ03B0058-0110 page 16 of 39 Symbol After Reset XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh Under development This document is under development and its contents are subject to change. M16C/6N Group (M16C/6NK, M16C/6NM) 4. Special Function Register (SFR) Table 4.5 SFR Information (5) Address 0100h 0101h 0102h 0103h 0104h 0105h 0106h 0107h 0108h 0109h 010Ah 010Bh 010Ch 010Dh 010Eh 010Fh 0110h 0111h 0112h 0113h 0114h 0115h 0116h 0117h 0118h 0119h 011Ah 011Bh 011Ch 011Dh 011Eh 011Fh 0120h 0121h 0122h 0123h 0124h 0125h 0126h 0127h 0128h 0129h 012Ah 012Bh 012Ch 012Dh 012Eh 012Fh 0130h 0131h 0132h 0133h 0134h 0135h 0136h 0137h 0138h 0139h 013Ah 013Bh 013Ch 013Dh 013Eh 013Fh Register CAN0 Message Box 10: Identifier / DLC CAN0 Message Box 10: Data Field CAN0 Message Box 10: Time Stamp CAN0 Message Box 11: Identifier / DLC CAN0 Message Box 11: Data Field CAN0 Message Box 11: Time Stamp CAN0 Message Box 12: Identifier / DLC CAN0 Message Box 12: Data Field CAN0 Message Box 12: Time Stamp CAN0 Message Box 13: Identifier / DLC CAN0 Message Box 13: Data Field CAN0 Message Box 13: Time Stamp X: Undefined Rev.1.10 Jul 01, 2005 REJ03B0058-0110 page 17 of 39 Symbol After Reset XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh Under development This document is under development and its contents are subject to change. M16C/6N Group (M16C/6NK, M16C/6NM) 4. Special Function Register (SFR) Table 4.6 SFR Information (6) Address 0140h 0141h 0142h 0143h 0144h 0145h 0146h 0147h 0148h 0149h 014Ah 014Bh 014Ch 014Dh 014Eh 014Fh 0150h 0151h 0152h 0153h 0154h 0155h 0156h 0157h 0158h 0159h 015Ah 015Bh 015Ch 015Dh 015Eh 015Fh 0160h 0161h 0162h 0163h 0164h 0165h 0166h 0167h 0168h 0169h 016Ah 016Bh 016Ch 016Dh 016Eh 016Fh 0170h 0171h 0172h 0173h 0174h 0175h 0176h 0177h 0178h 0179h 017Ah 017Bh 017Ch 017Dh 017Eh 017Fh Register Symbol CAN0 Message Box 14: Identifier /DLC CAN0 Message Box 14: Data Field CAN0 Message Box 14: Time Stamp CAN0 Message Box 15: Identifier /DLC CAN0 Message Box 15: Data Field CAN0 Message Box 15: Time Stamp CAN0 Global Mask Register C0GMR CAN0 Local Mask A Register C0LMAR CAN0 Local Mask B Register C0LMBR X: Undefined NOTE: 1. The blank areas are reserved and cannot be accessed by users. Rev.1.10 Jul 01, 2005 REJ03B0058-0110 page 18 of 39 After Reset XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh Under development This document is under development and its contents are subject to change. M16C/6N Group (M16C/6NK, M16C/6NM) 4. Special Function Register (SFR) Table 4.7 SFR Information (7) Address 0180h 0181h 0182h 0183h 0184h 0185h 0186h 0187h 0188h 0189h 018Ah 018Bh 018Ch 018Dh 018Eh 018Fh 0190h 0191h 0192h 0193h 0194h 0195h 0196h 0197h 0198h 0199h 019Ah 019Bh 019Ch 019Dh 019Eh 019Fh 01A0h 01A1h 01A2h 01A3h 01A4h 01A5h 01A6h 01A7h 01A8h 01A9h 01AAh 01ABh 01ACh 01ADh 01AEh 01AFh 01B0h 01B1h 01B2h 01B3h 01B4h 01B5h 01B6h 01B7h 01B8h 01B9h 01BAh 01BBh 01BCh 01BDh 01BEh 01BFh Register Symbol After Reset Flash Memory Control Register 1 (1) FMR1 0X00XX0Xb Flash Memory Control Register 0 (1) FMR0 Address Match Interrupt Register 2 RMAD2 Address Match Interrupt Enable Register 2 AIER2 Address Match Interrupt Register 3 RMAD3 00000001b 00h 00h X0h XXXXXX00b 00h 00h X0h X: Undefined NOTES: 1. These registers are included in the flash memory version. Cannot be accessed by users in the mask ROM version. 2. The blank areas are reserved and cannot be accessed by users. Rev.1.10 Jul 01, 2005 REJ03B0058-0110 page 19 of 39 Under development This document is under development and its contents are subject to change. M16C/6N Group (M16C/6NK, M16C/6NM) 4. Special Function Register (SFR) Table 4.8 SFR Information (8) Address 01C0h 01C1h 01C2h 01C3h 01C4h 01C5h 01C6h 01C7h 01C8h 01C9h 01CAh 01CBh 01CCh 01CDh 01CEh 01CFh 01D0h 01D1h 01D2h 01D3h 01D4h 01D5h 01D6h 01D7h 01D8h 01D9h 01DAh 01DBh 01DCh 01DDh 01DEh 01DFh 01E0h 01E1h 01E2h 01E3h 01E4h 01E5h 01E6h 01E7h 01E8h 01E9h 01EAh 01EBh 01ECh 01EDh 01EEh 01EFh 01F0h 01F1h 01F2h 01F3h 01F4h 01F5h 01F6h 01F7h 01F8h 01F9h 01FAh 01FBh 01FCh 01FDh 01FEh 01FFh Timer B3, B4, B5 Count Start Flag Register Symbol TBSR Timer A1-1 Register TA11 Timer A2-1 Register TA21 Timer A4-1 Register TA41 Three-Phase PWM Control Register 0 Three-Phase PWM Control Register 1 Three-Phase Output Buffer Register 0 Three-Phase Output Buffer Register 1 Dead Time Timer Timer B2 Interrupt Occurrence Frequency Set Counter INVC0 INVC1 IDB0 IDB1 DTT ICTB2 Interrupt Cause Select Register 2 IFSR2 Timer B3 Register TB3 Timer B4 Register TB4 After Reset 000XXXXXb XXh XXh XXh XXh XXh XXh 00h 00h 00h 00h XXh XXh S6TRR X0000000b XXh XXh XXh XXh XXh XXh XXh SI/O6 Control Register (1) SI/O6 Bit Rate Generator (1) SI/O3, 4, 5, 6 Transmit/Receive Register (2) Timer B3 Mode Register Timer B4 Mode Register Timer B5 Mode Register Interrupt Cause Select Register 0 Interrupt Cause Select Register 1 SI/O3 Transmit/Receive Register S6C S6BRG S3456TRR TB3MR TB4MR TB5MR IFSR0 IFSR1 S3TRR 01000000b XXh XXXX0000b 00XX0000b 00XX0000b 00XX0000b 00h 00h XXh SI/O3 Control Register SI/O3 Bit Rate Generator SI/O4 Transmit/Receive Register S3C S3BRG S4TRR 01000000b XXh XXh SI/O4 Control Register SI/O4 Bit Rate Generator SI/O5 Transmit/Receive Register (1) S4C S4BRG S5TRR 01000000b XXh XXh SI/O5 Control Register (1) SI/O5 Bit Rate Generator (1) UART0 Special Mode Register 4 UART0 Special Mode Register 3 UART0 Special Mode Register 2 UART0 Special Mode Register UART1 Special Mode Register 4 UART1 Special Mode Register 3 UART1 Special Mode Register 2 UART1 Special Mode Register UART2 Special Mode Register 4 UART2 Special Mode Register 3 UART2 Special Mode Register 2 UART2 Special Mode Register UART2 Transmit/Receive Mode Register UART2 Bit Rate Generator S5C S5BRG U0SMR4 U0SMR3 U0SMR2 U0SMR U1SMR4 U1SMR3 U1SMR2 U1SMR U2SMR4 U2SMR3 U2SMR2 U2SMR U2MR U2BRG UART2 Transmit Buffer Register U2TB UART2 Transmit/Receive Control Register 0 UART2 Transmit/Receive Control Register 1 U2C0 U2C1 UART2 Receive Buffer Register U2RB 01000000b XXh 00h 000X0X0Xb X0000000b X0000000b 00h 000X0X0Xb X0000000b X0000000b 00h 000X0X0Xb X0000000b X0000000b 00h XXh XXh XXh 00001000b 00000010b XXh XXh Timer B5 Register SI/O6 Transmit/Receive Register TB5 (1) X: Undefined NOTES: 1. These registers exist only in the 128-pin version. 2. The S5TRF and S6TRF bits in the S3456TRR register are used in the 128-pin version. 3. The blank areas are reserved and cannot be accessed by users. Rev.1.10 Jul 01, 2005 REJ03B0058-0110 page 20 of 39 Under development This document is under development and its contents are subject to change. M16C/6N Group (M16C/6NK, M16C/6NM) 4. Special Function Register (SFR) Table 4.9 SFR Information (9) Address 0200h 0201h 0202h 0203h 0204h 0205h 0206h 0207h 0208h 0209h 020Ah 020Bh 020Ch 020Dh 020Eh 020Fh 0210h 0211h 0212h 0213h 0214h 0215h 0216h 0217h 0218h 0219h 021Ah 021Bh 021Ch 021Dh 021Eh 021Fh 0220h 0221h 0222h 0223h 0224h 0225h 0226h 0227h 0228h 0229h 022Ah 022Bh 022Ch 022Dh 022Eh 022Fh 0230h 0231h 0232h 0233h 0234h 0235h 0236h 0237h 0238h 0239h 023Ah 023Bh 023Ch 023Dh 023Eh 023Fh CAN0 Message Control Register 0 CAN0 Message Control Register 1 CAN0 Message Control Register 2 CAN0 Message Control Register 3 CAN0 Message Control Register 4 CAN0 Message Control Register 5 CAN0 Message Control Register 6 CAN0 Message Control Register 7 CAN0 Message Control Register 8 CAN0 Message Control Register 9 CAN0 Message Control Register 10 CAN0 Message Control Register 11 CAN0 Message Control Register 12 CAN0 Message Control Register 13 CAN0 Message Control Register 14 CAN0 Message Control Register 15 Register Symbol C0MCTL0 C0MCTL1 C0MCTL2 C0MCTL3 C0MCTL4 C0MCTL5 C0MCTL6 C0MCTL7 C0MCTL8 C0MCTL9 C0MCTL10 C0MCTL11 C0MCTL12 C0MCTL13 C0MCTL14 C0MCTL15 CAN0 Control Register C0CTLR CAN0 Status Register C0STR CAN0 Slot Status Register C0SSTR CAN0 Interrupt Control Register C0ICR CAN0 Extended ID Register C0IDR CAN0 Configuration Register C0CONR CAN0 Receive Error Count Register CAN0 Transmit Error Count Register C0RECR C0TECR CAN0 Time Stamp Register C0TSR CAN1 Message Control Register 0 CAN1 Message Control Register 1 CAN1 Message Control Register 2 CAN1 Message Control Register 3 CAN1 Message Control Register 4 CAN1 Message Control Register 5 CAN1 Message Control Register 6 CAN1 Message Control Register 7 CAN1 Message Control Register 8 CAN1 Message Control Register 9 CAN1 Message Control Register 10 CAN1 Message Control Register 11 CAN1 Message Control Register 12 CAN1 Message Control Register 13 CAN1 Message Control Register 14 CAN1 Message Control Register 15 C1MCTL0 C1MCTL1 C1MCTL2 C1MCTL3 C1MCTL4 C1MCTL5 C1MCTL6 C1MCTL7 C1MCTL8 C1MCTL9 C1MCTL10 C1MCTL11 C1MCTL12 C1MCTL13 C1MCTL14 C1MCTL15 CAN1 Control Register C1CTLR CAN1 Status Register C1STR CAN1 Slot Status Register C1SSTR CAN1 Interrupt Control Register C1ICR CAN1 Extended ID Register C1IDR CAN1 Configuration Register C1CONR CAN1 Receive Error Count Register CAN1 Transmit Error Count Register C1RECR C1TECR CAN1 Time Stamp Register C1TSR X: Undefined Rev.1.10 Jul 01, 2005 REJ03B0058-0110 page 21 of 39 After Reset 00h 00h 00h 00h 00h 00h 00h 00h 00h 00h 00h 00h 00h 00h 00h 00h X0000001b XX0X0000b 00h X0000001b 00h 00h 00h 00h 00h 00h XXh XXh 00h 00h 00h 00h 00h 00h 00h 00h 00h 00h 00h 00h 00h 00h 00h 00h 00h 00h 00h 00h X0000001b XX0X0000b 00h X0000001b 00h 00h 00h 00h 00h 00h XXh XXh 00h 00h 00h 00h Under development This document is under development and its contents are subject to change. M16C/6N Group (M16C/6NK, M16C/6NM) 4. Special Function Register (SFR) Table 4.10 SFR Information (10) Address 0240h 0241h 0242h 0243h 0244h 0245h 0246h 0247h 0248h 0249h 024Ah 024Bh 024Ch 024Dh 024Eh 024Fh 0250h 0251h 0252h 0253h 0254h 0255h 0256h 0257h 0258h 0259h 025Ah 025Bh 025Ch 025Dh 025Eh 025Fh 0260h 0261h 0262h 0263h 0264h 0265h 0266h 0267h 0268h 0269h 026Ah 026Bh 026Ch 026Dh 026Eh 026Fh 0270h 0271h 0272h 0273h 0274h 0275h 0276h 0277h 0278h 0279h 027Ah 027Bh 027Ch 027Dh 027Eh 027Fh Register Symbol CAN0 Acceptance Filter Support Register C0AFS CAN1 Acceptance Filter Support Register C1AFS Peripheral Clock Select Register CAN0/1 Clock Select Register PCLKR CCLKR CAN1 Message Box 0: Identifier / DLC CAN1 Message Box 0: Data Field CAN1 Message Box 0:Time Stamp CAN1 Message Box 1: Identifier / DLC CAN1 Message Box 1: Data Field CAN1 Message Box 1:Time Stamp X: Undefined NOTE: 1. The blank areas are reserved and cannot be accessed by users. Rev.1.10 Jul 01, 2005 REJ03B0058-0110 page 22 of 39 After Reset XXh XXh XXh XXh 00h 00h XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh Under development This document is under development and its contents are subject to change. M16C/6N Group (M16C/6NK, M16C/6NM) 4. Special Function Register (SFR) Table 4.11 SFR Information (11) Address 0280h 0281h 0282h 0283h 0284h 0285h 0286h 0287h 0288h 0289h 028Ah 028Bh 028Ch 028Dh 028Eh 028Fh 0290h 0291h 0292h 0293h 0294h 0295h 0296h 0297h 0298h 0299h 029Ah 029Bh 029Ch 029Dh 029Eh 029Fh 02A0h 02A1h 02A2h 02A3h 02A4h 02A5h 02A6h 02A7h 02A8h 02A9h 02AAh 02ABh 02ACh 02ADh 02AEh 02AFh 02B0h 02B1h 02B2h 02B3h 02B4h 02B5h 02B6h 02B7h 02B8h 02B9h 02BAh 02BBh 02BCh 02BDh 02BEh 02BFh Register CAN1 Message Box 2: Identifier / DLC CAN1 Message Box 2: Data Field CAN1 Message Box 2: Time Stamp CAN1 Message Box 3: Identifier / DLC CAN1 Message Box 3: Data Field CAN1 Message Box 3: Time Stamp CAN1 Message Box 4: Identifier / DLC CAN1 Message Box 4: Data Field CAN1 Message Box 4: Time Stamp CAN1 Message Box 5: Identifier / DLC CAN1 Message Box 5: Data Field CAN1 Message Box 5: Time Stamp X: Undefined Rev.1.10 Jul 01, 2005 REJ03B0058-0110 page 23 of 39 Symbol After Reset XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh Under development This document is under development and its contents are subject to change. M16C/6N Group (M16C/6NK, M16C/6NM) 4. Special Function Register (SFR) Table 4.12 SFR Information (12) Address 02C0h 02C1h 02C2h 02C3h 02C4h 02C5h 02C6h 02C7h 02C8h 02C9h 02CAh 02CBh 02CCh 02CDh 02CEh 02CFh 02D0h 02D1h 02D2h 02D3h 02D4h 02D5h 02D6h 02D7h 02D8h 02D9h 02DAh 02DBh 02DCh 02DDh 02DEh 02DFh 02E0h 02E1h 02E2h 02E3h 02E4h 02E5h 02E6h 02E7h 02E8h 02E9h 02EAh 02EBh 02ECh 02EDh 02EEh 02EFh 02F0h 02F1h 02F2h 02F3h 02F4h 02F5h 02F6h 02F7h 02F8h 02F9h 02FAh 02FBh 02FCh 02FDh 02FEh 02FFh Register CAN1 Message Box 6: Identifier / DLC CAN1 Message Box 6: Data Field CAN1 Message Box 6: Time Stamp CAN1 Message Box 7: Identifier / DLC CAN1 Message Box 7: Data Field CAN1 Message Box 7: Time Stamp CAN1 Message Box 8: Identifier / DLC CAN1 Message Box 8: Data Field CAN1 Message Box 8: Time Stamp CAN1 Message Box 9: Identifier / DLC CAN1 Message Box 9: Data Field CAN1 Message Box 9: Time Stamp X: Undefined Rev.1.10 Jul 01, 2005 REJ03B0058-0110 page 24 of 39 Symbol After Reset XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh Under development This document is under development and its contents are subject to change. M16C/6N Group (M16C/6NK, M16C/6NM) 4. Special Function Register (SFR) Table 4.13 SFR Information (13) Address 0300h 0301h 0302h 0303h 0304h 0305h 0306h 0307h 0308h 0309h 030Ah 030Bh 030Ch 030Dh 030Eh 030Fh 0310h 0311h 0312h 0313h 0314h 0315h 0316h 0317h 0318h 0319h 031Ah 031Bh 031Ch 031Dh 031Eh 031Fh 0320h 0321h 0322h 0323h 0324h 0325h 0326h 0327h 0328h 0329h 032Ah 032Bh 032Ch 032Dh 032Eh 032Fh 0330h 0331h 0332h 0333h 0334h 0335h 0336h 0337h 0338h 0339h 033Ah 033Bh 033Ch 033Dh 033Eh 033Fh Register CAN1 Message Box 10: Identifier / DLC CAN1 Message Box 10: Data Field CAN1 Message Box 10: Time Stamp CAN1 Message Box 11: Identifier / DLC CAN1 Message Box 11: Data Field CAN1 Message Box 11: Time Stamp CAN1 Message Box 12: Identifier / DLC CAN1 Message Box 12: Data Field CAN1 Message Box 12: Time Stamp CAN1 Message Box 13: Identifier / DLC CAN1 Message Box 13: Data Field CAN1 Message Box 13: Time Stamp X: Undefined Rev.1.10 Jul 01, 2005 REJ03B0058-0110 page 25 of 39 Symbol After Reset XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh Under development This document is under development and its contents are subject to change. M16C/6N Group (M16C/6NK, M16C/6NM) 4. Special Function Register (SFR) Table 4.14 SFR Information (14) Address 0340h 0341h 0342h 0343h 0344h 0345h 0346h 0347h 0348h 0349h 034Ah 034Bh 034Ch 034Dh 034Eh 034Fh 0350h 0351h 0352h 0353h 0354h 0355h 0356h 0357h 0358h 0359h 035Ah 035Bh 035Ch 035Dh 035Eh 035Fh 0360h 0361h 0362h 0363h 0364h 0365h 0366h 0367h 0368h 0369h 036Ah 036Bh 036Ch 036Dh 036Eh 036Fh 0370h 0371h 0372h 0373h 0374h 0375h 0376h 0377h 0378h 0379h 037Ah 037Bh 037Ch 037Dh 037Eh 037Fh Register Symbol CAN1 Message Box 14: Identifier / DLC CAN1 Message Box 14: Data Field CAN1 Message Box 14: Time Stamp CAN1 Message Box 15: Identifier / DLC CAN1 Message Box 15: Data Field CAN1 Message Box 15: Time Stamp CAN1 Global Mask Register C1GMR CAN1 Local Mask A Register C1LMAR CAN1 Local Mask B Register C1LMBR X: Undefined NOTE: 1. The blank areas are reserved and cannot be accessed by users. Rev.1.10 Jul 01, 2005 REJ03B0058-0110 page 26 of 39 After Reset XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh Under development This document is under development and its contents are subject to change. M16C/6N Group (M16C/6NK, M16C/6NM) 4. Special Function Register (SFR) Table 4.15 SFR Information (15) Address 0380h 0381h 0382h 0383h 0384h 0385h 0386h 0387h 0388h 0389h 038Ah 038Bh 038Ch 038Dh 038Eh 038Fh 0390h 0391h 0392h 0393h 0394h 0395h 0396h 0397h 0398h 0399h 039Ah 039Bh 039Ch 039Dh 039Eh 039Fh 03A0h 03A1h 03A2h 03A3h 03A4h 03A5h 03A6h 03A7h 03A8h 03A9h 03AAh 03ABh 03ACh 03ADh 03AEh 03AFh 03B0h 03B1h 03B2h 03B3h 03B4h 03B5h 03B6h 03B7h 03B8h 03B9h 03BAh 03BBh 03BCh 03BDh 03BEh 03BFh Count Start Flag Clock Prescaler Reset Flag One-Shot Start Flag Trigger Select Register Up/Down Flag Register Symbol TABSR CPSRF ONSF TRGSR UDF After Reset 00h 0XXXXXXXb 00h 00h 00h (1) Timer A0 Register TA0 Timer A1 Register TA1 Timer A2 Register TA2 Timer A3 Register TA3 Timer A4 Register TA4 Timer B0 Register TB0 Timer B1 Register TB1 Timer B2 Register TB2 Timer A0 Mode Register Timer A1 Mode Register Timer A2 Mode Register Timer A3 Mode Register Timer A4 Mode Register Timer B0 Mode Register Timer B1 Mode Register Timer B2 Mode Register Timer B2 Special Mode Register TA0MR TA1MR TA2MR TA3MR TA4MR TB0MR TB1MR TB2MR TB2SC UART0 Transmit/Receive Mode Register UART0 Bit Rate Generator U0MR U0BRG UART0 Transmit Buffer Register U0TB UART0 Transmit/Receive Control Register 0 UART0 Transmit/Receive Control Register 1 U0C0 U0C1 UART0 Receive Buffer Register U0RB UART1 Transmit/Receive Mode Register UART1 Bit Rate Generator U1MR U1BRG UART1 Transmit Buffer Register U1TB UART1 Transmit/Receive Control Register 0 UART1 Transmit/Receive Control Register 1 U1C0 U1C1 UART1 Receive Buffer Register U1RB UART Transmit/Receive Control Register 2 UCON 00h XXh XXh XXh 00001000b 00XX0010b XXh XXh 00h XXh XXh XXh 00001000b 00XX0010b XXh XXh X0000000b DMA0 Request Cause Select Register DM0SL 00h DMA1 Request Cause Select Register DM1SL 00h CRC Data Register CRCD CRC Input Register CRCIN XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh 00h 00h 00h 00h 00h 00XX0000b 00XX0000b 00XX0000b XXXXXX00b XXh XXh XXh X: Undefined NOTES: 1. The TA2P to TA4P bits in the UDF register are set to "0" after reset. However, the contents in these bits are indeterminate when read. 2. The blank areas are reserved and cannot be accessed by users. Rev.1.10 Jul 01, 2005 REJ03B0058-0110 page 27 of 39 Under development This document is under development and its contents are subject to change. M16C/6N Group (M16C/6NK, M16C/6NM) 4. Special Function Register (SFR) Table 4.16 SFR Information (16) Address 03C0h 03C1h 03C2h 03C3h 03C4h 03C5h 03C6h 03C7h 03C8h 03C9h 03CAh 03CBh 03CCh 03CDh 03CEh 03CFh 03D0h 03D1h 03D2h 03D3h 03D4h 03D5h 03D6h 03D7h 03D8h 03D9h 03DAh 03DBh 03DCh 03DDh 03DEh 03DFh 03E0h 03E1h 03E2h 03E3h 03E4h 03E5h 03E6h 03E7h 03E8h 03E9h 03EAh 03EBh 03ECh 03EDh 03EEh 03EFh 03F0h 03F1h 03F2h 03F3h 03F4h 03F5h 03F6h 03F7h 03F8h 03F9h 03FAh 03FBh 03FCh 03FDh 03FEh 03FFh Register Symbol After Reset XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh XXh A/D Register 0 AD0 A/D Register 1 AD1 A/D Register 2 AD2 A/D Register 3 AD3 A/D Register 4 AD4 A/D Register 5 AD5 A/D Register 6 AD6 A/D Register 7 AD7 A/D Control Register 2 ADCON2 00h A/D Control Register 0 A/D Control Register 1 D/A Register 0 ADCON0 ADCON1 DA0 00000XXXb 00h 00h D/A Register 1 DA1 00h D/A Control Register DACON 00h Port P14 Control Register (1) Pull-Up Control Register 3 (1) Port P0 Register Port P1 Register Port P0 Direction Register Port P1 Direction Register Port P2 Register Port P3 Register Port P2 Direction Register Port P3 Direction Register Port P4 Register Port P5 Register Port P4 Direction Register Port P5 Direction Register Port P6 Register Port P7 Register Port P6 Direction Register Port P7 Direction Register Port P8 Register Port P9 Register Port P8 Direction Register Port P9 Direction Register Port P10 Register Port P11 Register (1) Port P10 Direction Register Port P11 Direction Register (1) Port P12 Register (1) Port P13 Register (1) Port P12 Direction Register (1) Port P13 Direction Register (1) Pull-up Control Register 0 Pull-up Control Register 1 Pull-up Control Register 2 Port Control Register PC14 PUR3 P0 P1 PD0 PD1 P2 P3 PD2 PD3 P4 P5 PD4 PD5 P6 P7 PD6 PD7 P8 P9 PD8 PD9 P10 P11 PD10 PD11 P12 P13 PD12 PD13 PUR0 PUR1 PUR2 PCR X: Undefined NOTES: 1. These registers exist only in the128-pin version. 2. The blank areas are reserved and cannot be accessed by users. Rev.1.10 Jul 01, 2005 REJ03B0058-0110 page 28 of 39 XX00XXXXb 00h XXh XXh 00h 00h XXh XXh 00h 00h XXh XXh 00h 00h XXh XXh 00h 00h XXh XXh 00X00000b 00h XXh XXh 00h 00h XXh XXh 00h 00h 00h 00h 00h 00h Under development This document is under development and its contents are subject to change. M16C/6N Group (M16C/6NK, M16C/6NM) 5. Electric Characteristics 5. Electrical Characteristics Table 5.1 Absolute Maximum Ratings Condition Rated Value Unit VCC Supply Voltage (VCC1 = VCC2) VCC = AVCC -0.3 to 6.5 V AVCC Analog Supply Voltage VCC = AVCC VI Input RESET, CNVSS, BYTE, Voltage P0_0 to P0_7, P1_0 to P1_7, P2_0 to P2_7, Symbol Parameter -0.3 to 6.5 V -0.3 to VCC+0.3 V -0.3 to 6.5 V -0.3 to VCC+0.3 V _____________ P3_0 to P3_7, P4_0 to P4_7, P5_0 to P5_7, P6_0 to P6_7, P7_0, P7_2 to P7_7, P8_0 to P8_7, P9_0, P9_2 to P9_7, P10_0 to P10_7, P11_0 to P11_7, P12_0 to P12_7, P13_0 to P13_7, P14_0, P14_1, VREF, XIN P7_1, P9_1 VO Output P0_0 to P0_7, P1_0 to P1_7, P2_0 to P2_7, Voltage P3_0 to P3_7, P4_0 to P4_7, P5_0 to P5_7, P6_0 to P6_7, P7_0, P7_2 to P7_7, P8_0 to P8_4, P8_6, P8_7, P9_0, P9_2 to P9_7, P10_0 to P10_7, P11_0 to P11_7, P12_0 to P12_7, P13_0 to P13_7, P14_0, P14_1, XOUT P7_1, P9_1 Pd Power Dissipation Topr Operating Ambient When the Microcomputer is Operating Temperature Tstg Topr = 25C Flash Program Erase Storage Temperature NOTE: 1. Ports P11 to P14 are only in the 128-pin version. Rev.1.10 Jul 01, 2005 REJ03B0058-0110 page 29 of 39 -0.3 to 6.5 V 700 mW -40 to 85 C 0 to 60 -65 to 150 C Under development This document is under development and its contents are subject to change. M16C/6N Group (M16C/6NK, M16C/6NM) 5. Electric Characteristics Table 5.2 Recommended Operating Conditions (1) Symbol (1) Parameter VCC Supply Voltage (VCC1 = VCC2) AVCC Analog Supply Voltage VSS Supply Voltage AVSS Analog Supply Voltage VIH HIGH Input P0_0 to P0_7, P1_0 to P1_7, P2_0 to P2_7, P3_0 to P3_7, Voltage P4_0 to P4_7, P5_0 to P5_7, P6_0 to P6_7, P7_0, P7_2 to P7_7, Min. 3.0 Standard Max. Typ. 5.0 VCC 5.5 0 0 Unit V V V V 0.8V CC VCC V 0.8V CC 0 6.5 0.2VCC V -10.0 mA -5.0 mA 10.0 mA 5.0 mA P8_0 to P8_7, P9_0, P9_2 to P9_7, P10_0 to P10_7, P11_0 to P11_7, P12_0 to P12_7, P13_0 to P13_7, _____________ P14_0, P14_1, XIN, RESET, CNVSS, BYTE P7_1, P9_1 VIL LOW Input Voltage P0_0 to P0_7, P1_0 to P1_7, P2_0 to P2_7, P3_0 to P3_7, P4_0 to P4_7, P5_0 to P5_7, P6_0 to P6_7, P7_0 to P7_7, V P8_0 to P8_7, P9_0 to P9_7, P10_0 to P10_7, P11_0 to P11_7, P12_0 to P12_7, P13_0 to P13_7, _____________ P14_0, P14_1, XIN, RESET, CNVSS, BYTE IOH(peak) HIGH Peak P0_0 to P0_7, P1_0 to P1_7, P2_0 to P2_7, P3_0 to P3_7, Output Current P4_0 to P4_7, P5_0 to P5_7, P6_0 to P6_7, P7_0, P7_2 to P7_7, P8_0 to P8_4, P8_6, P8_7, P9_0, P9_2 to P9_7, P10_0 to P10_7, P11_0 to P11_7, P12_0 to P12_7, P13_0 to P13_7, P14_0, P14_1 IOH(avg) HIGH Average P0_0 to P0_7, P1_0 to P1_7, P2_0 to P2_7, P3_0 to P3_7, Output Current P4_0 to P4_7, P5_0 to P5_7, P6_0 to P6_7, P7_0, P7_2 to P7_7, P8_0 to P8_4, P8_6, P8_7, P9_0, P9_2 to P9_7, P10_0 to P10_7, P11_0 to P11_7, P12_0 to P12_7, P13_0 to P13_7, P14_0, P14_1 IOL(peak) LOW Peak P0_0 to P0_7, P1_0 to P1_7, P2_0 to P2_7, P3_0 to P3_7, Output Current P4_0 to P4_7, P5_0 to P5_7, P6_0 to P6_7, P7_0 to P7_7, P8_0 to P8_4, P8_6, P8_7, P9_0 to P9_7, P10_0 to P10_7, P11_0 to P11_7, P12_0 to P12_7, P13_0 to P13_7, P14_0, P14_1 IOL(avg) LOW Average P0_0 to P0_7, P1_0 to P1_7, P2_0 to P2_7, P3_0 to P3_7, Output Current P4_0 to P4_7, P5_0 to P5_7, P6_0 to P6_7, P7_0 to P7_7, P8_0 to P8_4, P8_6, P8_7, P9_0 to P9_7, P10_0 to P10_7, P11_0 to P11_7, P12_0 to P12_7, P13_0 to P13_7, P14_0, P14_1 NOTES: 1. Referenced to VCC = 3.0 to 5.5V at Topr = -40 to 85C unless otherwise specified. 2. The mean output current is the mean value within 100 ms. 3. The total IOL(peak) for ports P0, P1, P2, P8_6, P8_7, P9, P10, P11, P14_0 and P14_1 must be 80mA max. The total IOL(peak) for ports P3, P4, P5, P6, P7, P8_0 to P8_4, P12 and P13 must be 80mA max. The total IOH(peak) for ports P0, P1, and P2 must be -40mA max. The total IOH(peak) for ports P3, P4, P5, P12 and P13 must be -40mA max. The total IOH(peak) for ports P6, P7 and P8_0 to P8_4 must be -40mA max. The total IOH(peak) for ports P8_6, P8_7, P9, P10, P11, P14_0 and P14_1 must be -40mA max. 4. P11 to P14 are only in the 128-pin version. Rev.1.10 Jul 01, 2005 REJ03B0058-0110 page 30 of 39 Under development This document is under development and its contents are subject to change. M16C/6N Group (M16C/6NK, M16C/6NM) 5. Electric Characteristics Table 5.3 Recommended Operating Conditions (2) Symbol f(XIN) (1) Parameter Min. Main Clock Input Oscillation No Wait Mask ROM Version VCC = 3.0 to 5.5V Frequency (2) (3) (4) Standard Max. Typ. 0 Unit 16 MHz 50 kHz Flash Memory Version f(XCIN) Sub Clock Oscillation Frequency f(Ring) On-chip Oscillation Frequency f(PLL) PLL Clock Oscillation Frequency f(BCLK) CPU Operation Clock tsu(PLL) PLL Frequency Synthesizer Stabilization Wait Time 20 ms f(ripple) Power Supply Ripple Allowable Frequency (VCC) 10 kHz VP-P(ripple) Power Supply Ripple Allowable Amplitude Voltage VCC = 5V 0.5 0.3 V 0.3 0.3 V/ms 32.768 1 VCC = 3.0 to 5.5V VCC = 3V VCC(|V/T|) Power Supply Ripple Rising/Falling Gradient VCC = 5V VCC = 3V MHz 16 24 MHz 0 24 MHz 1. Referenced to VCC = 3.0 to 5.5V at Topr = -40 to 85C unless otherwise specified. 2. Relationship between main clock oscillation frequency and supply voltage is shown right. 3. Execute program/erase of flash memory by VCC = 3.3 0.3 V or VCC = 5.0 0.5 V. 4. When using 16MHz and over, use PLL clock. PLL clock oscillation frequency which can be used is 16MHz, 20MHz or 24MHz. f(ripple) Power Supply Ripple Allowable Frequency (VCC) VP-P(ripple) Power Supply Ripple Allowable Amplitude Voltage page 31 of 39 Main clock input oscillation frequency 16.0 0.0 3.0 5.5 VCC [V] (main clock: no division) f(ripple) VCC Figure 5.1 Timing of Voltage Fluctuation Rev.1.10 Jul 01, 2005 REJ03B0058-0110 f(XIN) operating maximum frequency [MHz] NOTES: VP-P(ripple) Under development This document is under development and its contents are subject to change. M16C/6N Group (M16C/6NK, M16C/6NM) Table 5.4 Electrical Characteristics (1) (1) Parameter Symbol VOH 5. Electric Characteristics HIGH Output Voltage P0_0 to P0_7, P1_0 to P1_7, P2_0 to P2_7, P3_0 to P3_7, P4_0 to P4_7, P5_0 to P5_7, P6_0 to P6_7, P7_0, P7_2 to P7_7, P8_0 to P8_4, P8_6, P8_7, P9_0, P9_2 to P9_7, P10_0 to P10_7, P11_0 to P11_7, P12_0 to P12_7, P13_0 to P13_7, P14_0, P14_1 P0_0 to P0_7, P1_0 to P1_7, P2_0 to P2_7, HIGH Output VOH Voltage P3_0 to P3_7, P4_0 to P4_7, P5_0 to P5_7, P6_0 to P6_7, P7_0, P7_2 to P7_7, P8_0 to P8_4, P8_6, P8_7, P9_0, P9_2 to P9_7, P10_0 to P10_7, P11_0 to P11_7, P12_0 to P12_7, P13_0 to P13_7, P14_0, P14_1 XOUT HIGHPOWER HIGH Output VOH Voltage LOWPOWER XCOUT HIGHPOWER HIGH Output Voltage LOWPOWER P0_0 to P0_7, P1_0 to P1_7, P2_0 to P2_7, LOW Output VOL Voltage P3_0 to P3_7, P4_0 to P4_7, P5_0 to P5_7, P6_0 to P6_7, P7_0 to P7_7, P8_0 to P8_4, P8_6, P8_7, P9_0 to P9_7, P10_0 to P10_7, P11_0 to P11_7, P12_0 to P12_7, P13_0 to P13_7, P14_0, P14_1 P0_0 to P0_7, P1_0 to P1_7, P2_0 to P2_7, LOW Output VOL Voltage P3_0 to P3_7, P4_0 to P4_7, P5_0 to P5_7, P6_0 to P6_7, P7_0 to P7_7, P8_0 to P8_4, P8_6, P8_7, P9_0 to P9_7, P10_0 to P10_7, P11_0 to P11_7, P12_0 to P12_7, P13_0 to P13_7, P14_0, P14_1 XOUT HIGHPOWER VOL LOW Output Voltage LOWPOWER XCOUT HIGHPOWER LOW Output Voltage LOWPOWER _________ _________ TA0IN to TA4IN, TB0IN to TB5IN, INT0 to INT8, VT+-VT- Hysteresis ________ ______________ __________ __________ NMI, ADTRG, CTS0 to CTS2, SCL0 to SCL2, SDA0 to______ SDA2, CLK0 to CLK6, TA0OUT to TA4OUT, ______ KI0 to KI3, RXD0 to RXD2, SIN3 to SIN6 _____________ VT+-VT- Hysteresis RESET VT+-VT- Hysteresis XIN P0_0 to P0_7, P1_0 to P1_7, P2_0 to P2_7, IIH HIGH Input P3_0 to P3_7, P4_0 to P4_7, P5_0 to P5_7, Current P6_0 to P6_7, P7_0 to P7_7, P8_0 to P8_7, P9_0 to P9_7, P10_0 to P10_7, P11_0 to P11_7, P12_0____________ to P12_7, P13_0 to P13_7, P14_0, P14_1, XIN, RESET, CNVSS, BYTE P0_0 to P0_7, P1_0 to P1_7, P2_0 to P2_7, IIL LOW Input P3_0 to P3_7, P4_0 to P4_7, P5_0 to P5_7, Current P6_0 to P6_7, P7_0 to P7_7, P8_0 to P8_7, P9_0 to P9_7, P10_0 to P10_7, P11_0 to P11_7, P12_0____________ to P12_7, P13_0 to P13_7, P14_0, P14_1, XIN, RESET, CNVSS, BYTE P0_0 to P0_7, P1_0 to P1_7, P2_0 to P2_7, RPULLUP Pull-up P3_0 to P3_7, P4_0 to P4_7, P5_0 to P5_7, Resistance P6_0 to P6_7, P7_0, P7_2 to P7_7, P8_0 to P8_4, P8_6, P8_7, P9_0, P9_2 to P9_7, P10_0 to P10_7, P11_0 to P11_7, P12_0 to P12_7, P13_0 to P13_7, P14_0, P14_1 XIN RfXIN Feedback Resistance XCIN RfXCIN Feedback Resistance VRAM RAM Retention Voltage IOH = -5mA Standard Min. Typ. Max. VCC VCC-2.0 IOH = -200A VCC-0.3 VCC V 3.0 3.0 VCC VCC V Measuring Condition IOH = -1mA IOH = -0.5mA With no load applied With no load applied IOL = 5mA 2.5 1.6 Unit V V 2.0 V IOL = 200A 0.45 V IOL = 1mA IOL = 0.5mA With no load applied With no load applied 2.0 2.0 V 0 0 V 0.2 1.0 V 0.2 0.2 VI = 5V 2.5 0.8 5.0 V V A VI = 0V -5.0 A 170 k VI = 0V 30 50 1.5 15 At stop mode 2.0 M M V NOTES: 1. Referenced to VCC =________ 3.0 to 5.5V, VSS = 0V at Topr = -40 to 85C, f(BCLK) = 24MHz unless otherwise specified. ________ 2. P11 to P14, INT6 to INT8, CLK5, CLK6, SIN5 and SIN6 are only in the 128-pin version. Rev.1.10 Jul 01, 2005 REJ03B0058-0110 page 32 of 39 Under development This document is under development and its contents are subject to change. M16C/6N Group (M16C/6NK, M16C/6NM) Table 5.5 Electrical Characteristics (2) Symbol ICC 5. Electric Characteristics (1) Parameter Measuring Condition Min. Power Supply Output pins are open Mask ROM f(BCLK) = 24MHz, Current and other pins are VSS. PLL operation, (VCC = 3.0 to 5.5V) Standard Typ. Max. 21 37 Unit mA No division On-chip oscillation, No division Flash Memory f(BCLK) = 24MHz, 1 23 mA 39 mA PLL operation, No division On-chip oscillation, No division Flash Memory f(BCLK) = 10MHz, Program Mask ROM mA 15 mA 25 mA 25 A 25 A 420 A 50 A 8.5 A 3.0 A VCC = 5V Flash Memory f(BCLK) = 10MHz, Erase 1.8 VCC = 5V f(BCLK) = 32kHz, Low power dissipation mode, ROM (2) Flash Memory f(BCLK) = 32kHz, Low power dissipation mode, RAM (2) f(BCLK) = 32kHz, Low power dissipation mode, Flash memory (2) Mask ROM On-chip oscillation, Flash Memory Wait mode f(BCLK) = 32kHz, Wait mode (3), Oscillation capacity High f(BCLK) = 32kHz, Wait mode (3), Oscillation capacity Low Stop mode, 0.8 3.0 A Topr = 25C NOTES: 1. Referenced to VCC = 3.0 to 5.5V, VSS = 0V at Topr = -40 to 85C, f(BCLK) = 24MHz unless otherwise specified. 2. This indicates the memory in which the program to be executed exists. 3. With one timer operated using fC32. Rev.1.10 Jul 01, 2005 REJ03B0058-0110 page 33 of 39 Under development This document is under development and its contents are subject to change. M16C/6N Group (M16C/6NK, M16C/6NM) Table 5.6 A/D Conversion Characteristics Symbol (1) Parameter - Resolution INL Integral 10 bits Error 8 bits Absolute Measuring Condition Min. VREF = VCC VREF ANEX0, ANEX1 input, AN0 to AN7 input, Standard Typ. Max. 10 = VCC AN0_0 to AN0_7 input, AN2_0 to AN2_7 input = 5V External operation amp connection mode Nonlinearity - 5. Electric Characteristics 10 bits 8 bits Bit 3 LSB 7 LSB VREF ANEX0, ANEX1 input, AN0 to AN7 input, = VCC AN0_0 to AN0_7 input, AN2_0 to AN2_7 input 5 LSB = 3.3V External operation amp connection mode 7 LSB VREF = AVCC = VCC = 3.3V VREF ANEX0, ANEX1 input, AN0 to AN7 input, 2 LSB 3 LSB = VCC AN0_0 to AN0_7 input, AN2_0 to AN2_7 input = 5V External operation amp connection mode Accuracy Unit 7 LSB VREF ANEX0, ANEX1 input, AN0 to AN7 input, = VCC AN0_0 to AN0_7 input, AN2_0 to AN2_7 input 5 LSB = 3.3V External operation amp connection mode 7 LSB VREF = AVCC = VCC = 3.3V 2 LSB DNL Differential Nonlinearity Error 1 LSB - Offset Error 3 LSB - Gain Error 3 LSB RLADDER Resistor Ladder VREF = VCC 10 40 k tCONV 10-bit Conversion Time, VREF = VCC = 5V, AD = 10MHz 3.3 s VREF = VCC = 5V, AD = 10MHz 2.8 s Sample & Hold function Available 8-bit Conversion time, Sample & Hold function Available tSAMP Sampling Time VREF Reference Voltage VIA Analog Input Voltage s 0.3 2.0 VCC V 0 V REF V NOTES: 1. Referenced to VCC = AVCC = VREF = 3.3 to 5.5V, VSS = AVSS = 0V, -40 to 85C unless otherwise specified. 2. AD frequency must be 10MHz or less. 3. When sample & hold function is disabled, AD frequency must be 250kHz or more in addition to a limit of NOTE 2. When sample & hold function is enabled, AD frequency must be 1MHz or more in addition to a limit of NOTE 2. Table 5.7 D/A conversion Characteristics Symbol (1) Parameter - Resolution - Absolute Accuracy tsu RO Setup Time IVREF Reference Power Supply Input Current Measuring Condition Min. 4 Output Resistance (NOTE 2) Standard Typ. Max. 8 10 Unit Bits 1.0 % 3 s 20 k 1.5 mA NOTES: 1. Referenced to VCC = AVCC = VREF = 3.3 to 5.5V, VSS = AVSS = 0V, -40 to 85C unless otherwise specified. 2. This applies when using one D/A converter, with the DAi register (i = 0, 1) for the unused D/A converter set to "00h". The resistor ladder of the A/D converter is not included. Also, the current IVREF always flows even though VREF may have been set to be unconnected by the ADCON1 register. Rev.1.10 Jul 01, 2005 REJ03B0058-0110 page 34 of 39 Under development This document is under development and its contents are subject to change. M16C/6N Group (M16C/6NK, M16C/6NM) 5. Electric Characteristics Table 5.8 Flash Memory Version Electrical Characteristics Parameter Symbol (1) Min. Standard Typ. Max. - Word Program Time 30 200 - Block Erase Time 1 4 - Erase All Unlocked Blocks Time - Lock Bit Program Time tps Flash Memory Circuit Stabilization Wait Time 1n 30 s s 4n (2) Unit (2) s 200 s 15 s NOTES: 1. Referenced to VCC = 4.5 to 5.5V, 3.0 to 3.6V, Topr = 0 to 60C unless otherwise specified. 2. n denotes the number of blocks to erase. Table 5.9 Flash Memory Version Program/Erase Voltage and Read Operation Voltage Characteristics (at Topr = 0 to 60C) Flash Program, Erase Voltage Flash Read Operation Voltage VCC = 3.3 0.3V or 5.0 0.5V VCC = 3.0 to 5.5V Table 5.10 Power Supply Circuit Timing Characteristics Symbol Measuring Condition Parameter Min. Standard Typ. Max. 2 Unit td(P-R) Time for Internal Power Supply Stabilization During Powering-On VCC = 3.0 to 5.5V td(R-S) STOP Release Time 150 s td(W-S) Low Power Dissipation Mode Wait Mode Release Time 150 s td(P-R) Time for Internal Power Supply VCC Stabilization During Powering-On td(P-R) CPU clock td(R-S) STOP Release Time Interrupt for (a) Stop mode release or (b) Wait mode release td(W-S) Low Power Dissipation Mode CPU clock Wait Mode Release Time (a) (b) Figure 5.2 Power Supply Circuit Timing Diagram Rev.1.10 Jul 01, 2005 REJ03B0058-0110 page 35 of 39 td(R-S) td(W-S) ms Under development This document is under development and its contents are subject to change. M16C/6N Group (M16C/6NK, M16C/6NM) 5. Electric Characteristics Timing Requirements (Referenced to VCC = 5V, VSS = 0V, at Topr = -40 to 85C unless otherwise specified) Table 5.11 External Clock Input (XIN Input) Symbol Parameter Standard Min. Max. 62.5 tC External Clock Input Cycle Time tw(H) External Clock Input HIGH Pulse Width tw(L) External Clock Input LOW Pulse Width tr External Clock Rise Time 15 tf External Clock Fall Time 15 Unit ns ns ns 25 25 ns ns Table 5.12 Timer A Input (Counter Input in Event Counter Mode) Parameter Symbol tc(TA) TAiIN Input Cycle Time tw(TAH) TAiIN Input HIGH Pulse Width tw(TAL) TAiIN Input LOW Pulse Width Standard Min. Max. 100 40 40 Unit ns ns ns Table 5.13 Timer A Input (Gating Input in Timer Mode) Parameter Symbol tc(TA) TAiIN Input Cycle Time tw(TAH) TAiIN Input HIGH Pulse Width tw(TAL) TAiIN Input LOW Pulse Width Standard Min. Max. 400 200 200 Unit ns ns ns Table 5.14 Timer A Input (External Trigger Input in One-shot Timer Mode) tc(TA) TAiIN Input Cycle Time tw(TAH) TAiIN Input HIGH Pulse Width Standard Min. Max. 200 100 tw(TAL) TAiIN Input LOW Pulse Width 100 Symbol Parameter Unit ns ns ns Table 5.15 Timer A Input (External Trigger Input in Pulse Width Modulation Mode) tw(TAH) TAiIN Input HIGH Pulse Width Standard Min. Max. 100 tw(TAL) TAiIN Input LOW Pulse Width 100 Symbol Parameter Unit ns ns Table 5.16 Timer A Input (Counter Increment/decrement Input in Event Counter Mode) Symbol Parameter Standard Min. Max. 2000 1000 tc(UP) TAiOUT Input Cycle Time tw(UPH) TAiOUT Input HIGH Pulse Width tw(UPL) TAiOUT Input LOW Pulse Width tsu(UP-TIN) TAiOUT Input Setup Time 1000 400 TAiOUT Input Hold Time 400 th(TIN-UP) Unit ns ns ns ns ns Table 5.17 Timer A Input (Two-phase Pulse Input in Event Counter Mode) Symbol tc(TA) Parameter TAiIN Input Cycle Time tsu(TAIN-TAOUT) TAiOUT Input Setup Time tsu(TAOUT-TAIN) TAiIN Input Setup Time Rev.1.10 Jul 01, 2005 REJ03B0058-0110 page 36 of 39 Standard Max. Min. 800 200 200 Unit ns ns ns Under development This document is under development and its contents are subject to change. M16C/6N Group (M16C/6NK, M16C/6NM) 5. Electric Characteristics Timing Requirements (Referenced to VCC = 5V, VSS = 0V, at Topr = -40 to 85C unless otherwise specified) Table 5.18 Timer B Input (Counter Input in Event Counter Mode) Symbol tc(TB) tw(TBH) tw(TBL) tc(TB) tw(TBH) tw(TBL) Parameter TBiIN Input Cycle Time (counted on one edge) TBiIN Input HIGH Pulse Width (counted on one edge) TBiIN Input LOW Pulse Width (counted on one edge) Standard Min. Max. 100 40 40 TBiIN Input HIGH Pulse Width (counted on both edges) 200 80 TBiIN Input LOW Pulse Width (counted on both edges) 80 TBiIN Input Cycle Time (counted on both edges) Unit ns ns ns ns ns ns Table 5.19 Timer B Input (Pulse Period Measurement Mode) TBiIN Input HIGH Pulse Width Standard Min. Max. 400 200 TBiIN Input LOW Pulse Width 200 Symbol tc(TB) tw(TBH) tw(TBL) Parameter TBiIN Input Cycle Time Unit ns ns ns Table 5.20 Timer B Input (Pulse Width Measurement Mode) Symbol tc(TB) tw(TBH) tw(TBL) Parameter TBiIN Input Cycle Time TBiIN Input HIGH Pulse Width Standard Min. Max. 400 200 200 TBiIN Input LOW Pulse Width Unit ns ns ns Table 5.21 A/D Trigger Input Symbol tC(AD) tw(ADL) Parameter _____________ ADTRG Input Cycle Time (trigger able minimum) Standard Min. Max. 1000 _____________ ADTRG Input LOW Pulse Width 125 Unit ns ns Table 5.22 Serial I/O CLKi Input HIGH Pulse Width Standard Min. Max. 200 100 CLKi Input LOW Pulse Width 100 Symbol tc(CK) tw(CKH) tw(CKL) td(C-Q) th(C-Q) tsu(D-C) th(C-D) Parameter CLKi Input Cycle Time 80 TXDi Output Delay Time RXDi Input Setup Time 0 70 RXDi Input Hold Time 90 TXDi Hold Time Unit ns ns ns ns ns ns ns _______ Table 5.23 External Interrupt INTi Input Symbol tw(INH) tw(INL) Parameter _______ INTi Input HIGH Pulse Width _______ INTi Input LOW Pulse Width Rev.1.10 Jul 01, 2005 REJ03B0058-0110 page 37 of 39 Standard Min. Max. 250 250 Unit ns ns Under development This document is under development and its contents are subject to change. M16C/6N Group (M16C/6NK, M16C/6NM) 5. Electric Characteristics XIN input tr tr tw(H) tw(L) tc tc(TA) tw(TAH) TAiIN input tw(TAL) tc(UP) tw(UPH) TAiOUT input tw(UPL) TAiOUT input (Up/down input) During event counter mode TAiIN input (When count on falling edge is selected) th(TIN--UP) tsu(UP--TIN) TAiIN input (When count on rising edge is selected) Two-phase pulse input in event counter mode tC(TA) TAiIN input tsu(TAIN--TAOUT) tsu(TAIN--TAOUT) tsu(TAOUT--TAIN) TAiOUT input tsu(TAOUT--TAIN) tc(TB) tw(TBH) TBiIN input tw(TBL) tc(AD) tw(ADL) ADTRG input tc(CK) tw(CKH) CLKi tw(CKL) th(C--Q) TXDi td(C--Q) tsu(D--C) RXDi tw(INL) INTi input Figure 5.3 Timing Diagram Rev.1.10 Jul 01, 2005 REJ03B0058-0110 page 38 of 39 tw(INH) th(C--D) Under development This document is under development and its contents are subject to change. M16C/6N Group (M16C/6NK, M16C/6NM) Appendix 1. Package Dimensions Appendix 1. Package Dimensions JEITA Package Code RENESAS Code P-LQFP100-14x14-0.50 PLQP0100KB-A Previous Code MASS[Typ.] 100P6Q-A / FP-100U / FP-100UV 0.6g HD *1 D 51 75 NOTE) 1. DIMENSIONS "*1" AND "*2" DO NOT INCLUDE MOLD FLASH. 2. DIMENSION "*3" DOES NOT INCLUDE TRIM OFFSET. 50 76 bp c1 Reference Symbol c E *2 HE b1 Terminal cross section 26 Nom Max D 13.9 14.0 14.1 E 13.9 14.0 14.1 1.4 A2 ZE 100 Dimension in Millimeters Min HD 15.8 16.0 16.2 HE 15.8 16.0 16.2 A1 0.05 0.1 0.15 bp 0.15 0.20 0.25 A 1 25 Index mark ZD F 1.7 0.18 b1 A2 0.09 *3 e A1 e y bp 0.08 0.08 1.0 ZD Detail F 1.0 ZE L 0.35 RENESAS Code Previous Code MASS[Typ.] PLQP0128KB-A 128P6Q-A 0.9g 0.5 0.65 1.0 L1 JEITA Package Code 8 y L1 0.20 0.5 x L x P-LQFP128-14x20-0.50 0.145 0.125 0 c A c c1 HD *1 D 102 65 103 64 NOTE) 1. DIMENSIONS "*1" AND "*2" DO NOT INCLUDE MOLD FLASH. 2. DIMENSION "*3" DOES NOT INCLUDE TRIM OFFSET. bp E c *2 HE c1 b1 Reference Symbol ZE Terminal cross section Dimension in Millimeters Min Nom Max D 19.9 20.0 20.1 E 13.9 14.0 14.1 A2 128 39 38 A Index mark c ZD HD 21.8 22.0 22.2 HE 15.8 16.0 16.2 A1 0.05 0.125 0.2 bp 0.17 0.22 0.27 0.09 0.145 A A2 1 1.4 F 1.7 0.20 b1 A1 c L e y *3 bp 0 L1 x e DetailF 8 0.5 0.10 x y 0.10 0.75 ZD 0.75 ZE L L1 Rev.1.10 Jul 01, 2005 REJ03B0058-0110 page 39 of 39 0.20 0.125 c1 0.35 0.5 1.0 0.65 REVISION HISTORY Rev. Date M16C/6N Group (M16C/6NK, M16C/6NM) Data Sheet Description Page Summary 1.00 Jul. 20, 2004 - First edition issued 1.01 Nov. 01, 2004 - Revised edition issued * Revised parts and revised contents are as follows (except for expressional change). 30 Table 5.2 Recommended Operating Conditions (1) 31 Table 5.3 Recommended Operating Conditions (2) 32 Table 5.4 IIH, IIL: "P3_3" is revised to "P3_7" in Parameter. 35 Table 5.9: VCC = 3.0 0.3 V" is revised to "VCC = 3.3 0.3 V" in Flash Program, Erase * IOH(peak): Unit is revised from "V" to "mA". * NOTE 3: "VCC = 3.0 0.3 V" is revised to "VCC = 3.3 0.3 V". Voltage. 1.10 Jul. 01, 2005 - Revised edition issued * The contents of product are revised. (T/V-ver. is added.) * Revised parts and revised contents are as follows (except for expressional change). 2 Table 1.1 Performance outline of M16C/6N Group (100-pin Version: M16C/6NM) * Performance outline of T/V-ver. is added. 3 Table 1.2 Performance outline of M16C/6N Group (128-pin Version: M16C/6NN) * Performance outline of T/V-ver. is added. 5 Table 1.3 Product List is revised. (T/V-ver. is added.) Figure 1.2 Type No., Memory Size, and Package: "Characteristics" is added. 13 FIgure 4.1 SFR Information (1): The value of After Reset in CM2 Register is revised. 19 Figure 4.7 SFR Information (7): NOTE 1 is revised. 32 Table 21.4 Electrical Characteristics (1) 33 Table 21.5 Electrical Characteristics (2): Mask ROM (5th item) * Measuring Condition of VOL is revised from "LOL = -200A" to "LOL = 200A". * "f(XCIN)" is changed to "(f(BCLK)). 34 Table 21.6 A/D Conversion Characteristics: "Tolerance Level Impedance" is deleted. A-1 Sales Strategic Planning Div. Nippon Bldg., 2-6-2, Ohte-machi, Chiyoda-ku, Tokyo 100-0004, Japan Keep safety first in your circuit designs! 1. Renesas Technology Corp. puts the maximum effort into making semiconductor products better and more reliable, but there is always the possibility that trouble may occur with them. Trouble with semiconductors may lead to personal injury, fire or property damage. Remember to give due consideration to safety when making your circuit designs, with appropriate measures such as (i) placement of substitutive, auxiliary circuits, (ii) use of nonflammable material or (iii) prevention against any malfunction or mishap. Notes regarding these materials 1. These materials are intended as a reference to assist our customers in the selection of the Renesas Technology Corp. product best suited to the customer's application; they do not convey any license under any intellectual property rights, or any other rights, belonging to Renesas Technology Corp. or a third party. 2. Renesas Technology Corp. assumes no responsibility for any damage, or infringement of any third-party's rights, originating in the use of any product data, diagrams, charts, programs, algorithms, or circuit application examples contained in these materials. 3. All information contained in these materials, including product data, diagrams, charts, programs and algorithms represents information on products at the time of publication of these materials, and are subject to change by Renesas Technology Corp. without notice due to product improvements or other reasons. It is therefore recommended that customers contact Renesas Technology Corp. or an authorized Renesas Technology Corp. product distributor for the latest product information before purchasing a product listed herein. The information described here may contain technical inaccuracies or typographical errors. Renesas Technology Corp. assumes no responsibility for any damage, liability, or other loss rising from these inaccuracies or errors. Please also pay attention to information published by Renesas Technology Corp. by various means, including the Renesas Technology Corp. Semiconductor home page (http://www.renesas.com). 4. When using any or all of the information contained in these materials, including product data, diagrams, charts, programs, and algorithms, please be sure to evaluate all information as a total system before making a final decision on the applicability of the information and products. Renesas Technology Corp. assumes no responsibility for any damage, liability or other loss resulting from the information contained herein. 5. Renesas Technology Corp. semiconductors are not designed or manufactured for use in a device or system that is used under circumstances in which human life is potentially at stake. Please contact Renesas Technology Corp. or an authorized Renesas Technology Corp. product distributor when considering the use of a product contained herein for any specific purposes, such as apparatus or systems for transportation, vehicular, medical, aerospace, nuclear, or undersea repeater use. 6. The prior written approval of Renesas Technology Corp. is necessary to reprint or reproduce in whole or in part these materials. 7. If these products or technologies are subject to the Japanese export control restrictions, they must be exported under a license from the Japanese government and cannot be imported into a country other than the approved destination. Any diversion or reexport contrary to the export control laws and regulations of Japan and/or the country of destination is prohibited. 8. Please contact Renesas Technology Corp. for further details on these materials or the products contained therein. http://www.renesas.com RENESAS SALES OFFICES Refer to "http://www.renesas.com/en/network" for the latest and detailed information. Renesas Technology America, Inc. 450 Holger Way, San Jose, CA 95134-1368, U.S.A Tel: <1> (408) 382-7500, Fax: <1> (408) 382-7501 Renesas Technology Europe Limited Dukes Meadow, Millboard Road, Bourne End, Buckinghamshire, SL8 5FH, U.K. Tel: <44> (1628) 585-100, Fax: <44> (1628) 585-900 Renesas Technology Hong Kong Ltd. 7th Floor, North Tower, World Finance Centre, Harbour City, 1 Canton Road, Tsimshatsui, Kowloon, Hong Kong Tel: <852> 2265-6688, Fax: <852> 2730-6071 Renesas Technology Taiwan Co., Ltd. 10th Floor, No.99, Fushing North Road, Taipei, Taiwan Tel: <886> (2) 2715-2888, Fax: <886> (2) 2713-2999 Renesas Technology (Shanghai) Co., Ltd. Unit2607 Ruijing Building, No.205 Maoming Road (S), Shanghai 200020, China Tel: <86> (21) 6472-1001, Fax: <86> (21) 6415-2952 Renesas Technology Singapore Pte. Ltd. 1 Harbour Front Avenue, #06-10, Keppel Bay Tower, Singapore 098632 Tel: <65> 6213-0200, Fax: <65> 6278-8001 Renesas Technology Korea Co., Ltd. Kukje Center Bldg. 18th Fl., 191, 2-ka, Hangang-ro, Yongsan-ku, Seoul 140-702, Korea Tel: <82> 2-796-3115, Fax: <82> 2-796-2145 Renesas Technology Malaysia Sdn. Bhd. Unit 906, Block B, Menara Amcorp, Amcorp Trade Centre, No.18, Jalan Persiaran Barat, 46050 Petaling Jaya, Selangor Darul Ehsan, Malaysia Tel: <603> 7955-9390, Fax: <603> 7955-9510 (c) 2005. Renesas Technology Corp., All rights reserved. Printed in Japan. Colophon .3.0