16-/32-bit CISC M16C Platform M16C/Tiny - M16C - M32C

October 2006 www.renesas.eu Renesas Technology is one of the largest semiconductor companies in the world • Established on April 1st, 2003 as a joint venture between Ltd and Mitsubishi Electric Corp. • Headquartered in Tokyo, Japan with over 26000 employees worldwide • Designs and manufactures highly integrated semiconductor solutions for industrial, consumer, automotive and telecoms markets • Ranked the No. 1 supplier globally and the No. 1 global supplier of embedded flash MCU’s

Renesas Technology owes its success, to its outstanding technology, its excellent quality and to its drive and commitment to listen and meet our customers’ needs. As a result, today Renesas Technology is the world’s leading microcontroller company offering a huge range of 8-, 16- and 32-bit microcontrollers. These feature: • A complete product line-up • Outstanding memory integration • World leading embedded Flash technology • Leading peripheral integration • High performance CPU’s • Low power consumption • Low EMS / EMI • Advanced packaging options

Renesas microcontroller families Today, Renesas offer the H8 and M16C CISC microcontroller families and the high-performance SH RISC microcontroller family.

H8 Microcontroller families The H8 family comprises of a wide range of CISC micro- controllers from low-cost 8-bit to the most sophisticated, high performance 32-bit. • The H8/300L Super Low Power series of 8-bit micro- controllers has been developed to meet the demands of the next generation of power critical applications. • The H8/300H Tiny provides design engineers with a low cost 16-bit alternative to many 8-bit microcontrollers available today. The SH Microcontroller Families • The H8/300H provides a highly competitive 16-bit Flash The SH microcontroller families offer the highest performan- microcontroller family for consumer and industrial ce levels found on microcontrollers today. In particular SH-2A applications. offers up to 480 DMIPS today and also interrupt response • The H8S leading edge 16-bit family combines high times of just 30ns. Renesas developed world's fastest and peripheral integration with high performance. technology - called MONOS Flash - to support such high • The H8SX family now provides an H8 code-compatible speed with no wait states. The family ranges from: roadmap to 32-bit performance. • The low cost SH-Tiny series with 64KB and 128KB Flash options and in 48-/64-pin packages. Aimed for example M16C Microcontroller families at white goods motor control. The M16C platform consists of a wide range of 16-bit micro- • The mid-class SH2-based SH708xF and SH714xF series controllers featuring high efficiency ‘C’programming, high- with up to 80MHz (zero wait) 512KB MONOS Flash and speed processing and low power consumption. 176 pins, triple fast ADC as well as strong timer resour- • The Tiny comes as an ultra low-cost, Flash family in ces to drive up to two motors. Available in 3V and 5V. small pin-count packages addressing the classic 8-bit • The highend SH-2A products with 512KB MONOS Flash market. in the SH7211F as well as a line-up of highly integrated • The M16C/2x and M16C/6x high performance families rom-less versions with 4 x SCI, 3 x IIC, 2 x CAN, USB provide high peripheral integration, low power consump- host and function and TFT drive on the SH7203, for tion and low EMS/EMI. example. At 200MHz and with additional FPU this device • The M32C family with its rich set of peripherals builds the competes with industrial PC, yet is a fraction of the cost performance bridge between the 16-bit CISC and 32-bit and power consumption, available long term and in RISC world. Renesas' best-in-class quality. 2 The M16C Platform Introduction

The M16C Platform is part of Renesas Technology’s microcontroller product line up. It comprises of a wide range of 16- and 32-bit microcontrollers, and offers code and pin compatibility throughout the families. Within the M16C Platform the M16C/Tiny provides the low pin count entry level; 100-pin solutions are supported by the industrial standard M16C; and the M32C, with its rich set of peripherals and memory integration, builds the perfor- mance bridge between the 16-bit CISC and 32-bit RISC world.

Key benefits for your success Easy Powerful Fast Versatile Compatible Silent Power Wise

With hundreds of different package and memory options the M16C Platform is the perfect foundation for your application designs. M16C Platform Flash Roadmap

24MHz @ 3-5V 128-512KB Flash @ 5-31KB RAM 192-256KB Mask @ 16-20KB RAM 100P6Q, 512KB 128P6Q 20MHz @ 3-5V Flash 1MB 1 or 2 CAN 96-128KB Flash Flash @ 8-12KB RAM M16C/6N 64-128KB Mask M32C/87 @ 4-12KB RAM 64P6Q, 80P6Q 32MHz @ 5V 1 CAN 128KB Flash 24MHz @ 3V 512KB M16C Flash 384-1MB Flash /29 @ 24-48KB RAM 64KB M16C/62P 384-512KB Mask Flash @ 24-31KB RAM M16C 128KB 100P6Q, 100P6S, /26A Flash 24MHz @ 3-5V 144P6Q M16C 64-512KB Flash 1,2 or no CAN 20MHz @ 3-5V /28 @ 4-31KB RAM 24-64KB Flash 20MHz @ 3-5V 48-348KB Mask @ 1-2KB RAM @ 3-31KB RAM 24-64KB Mask 48-128KB Flash @ 4-12KB RAM ROMless @ 1-2KB RAM @ 4-31KB RAM 42P2R, 48P6Q 64-128KB Mask @ 4-12KB RAM 80P6S, 100P6Q, 100P6S, 128P6Q 64P6Q, 80P6Q, 85F0G 3 Key Benefits of M16C Platform

Platform of Products - Learn Once, Use Everywhere Easy After designing with the M16C Platform development environment and the embedded peripherals for the first time, this knowledge and experience can then be adapted to any other member of the M16C Platform easily. Therefore there is no need to change microcontroller cores for new designs and engineers can fully utilise the platform concept of the M16C.

Packed with Peripherals – Minimum External Components Powerful The members of the M16C Platform provide a high level of embedded peripherals to reduce the total system cost and to support you with ready to use devices. Typical peripherals are:

• Virtual EEPROM Data Memory • CPU External Memory Interface • PWM & Three Phase Motor Control • 16-bit Timers • Hardware Multiplier • U(S)ART, USB, CAN/LIN • 10-bit A/D Converter • D/A Converter • Input Capture/Output Compare • Watchdog Timer • On-Chip Oscillator • Interrupt Handler

CISC, but with RISC like Speed – Fast, Efficient Code Execution Fast • M16C provides an average instruction time of three clock cycles at 50ns • M32C provides an average instruction time of two clock cycles. at 31ns • Optimized code size is achieved by the instruction set being optimised to support programming in C language • Hardware multiplier is embedded • Sum-of-products operation for one data is executed in two cycles for M32C and nine cycles for M16C.

Flash – Mask – ROMless Memory – Various Packages Versatile • Package options are available for 42-, 48-, 64-, 80-, 100-,128- and 144-pin • Wide range of Flash memory line-up from 24K – 1Mbyte • Wide range of Mask memory line-up from 24K – 512kbytes • ROMless versions available

Pin Compatibility - One PCB Design For Multiple MCU’s Compatible The M16C Platform provides pin-compatibility through the whole family within the same package type. This provides easy upgrading without the need for hardware re-design.

Excellent Noise Characteristics Silent The M16C Platform utilises several design techniques aimed at providing the best EMI/EMS performance without the need for external components. Using the M16C Platform makes the CE marking for your end product to an easy task.

Low Power Operation Power Wise The M16C Platform members feature low power operation by the provision of several different operation modes. • In normal operation mode the M16C gives a power consumption of around 0.75mA/MHz • During wait mode the power consumption is reduced to 3µA • During stop mode the power consumption drops down to 0.8µA

4 M16C Platform Product Line-up (focus flash types)

The M16C Platform encompass hundreds of different MCUs, all based on the same core. One architecture spans from 42-pin to 144-pin packages and from 24kBytes to 1MByte Flash giving you a world wide unique platform for your success. Flash Size

1024KB M32C/87 M32C/87

768KB M32C/87 M32C/87 M16C/62P /6N 512KB M32C/87 M16C/62P /6N M32C/87 M16C/62P /6N 384KB M16C/62P /6N M32C/87 M32C/87

256KB M16C/62P /6N M16C/62P M32C/87* M32C/87 192KB M16C/62P 128KB M16C/28 /29 M16C/28 /29 M16C/62P /6N

96KB M16C/28 /29 M16C/28 /29

64KB M16C/26A M16C/26A M16C/28 M16C/28 /62P M16C/62P

48KB M16C/26A M16C/26A M16C/28 M16C/28

32KB

24KB M16C/26A M16C/26A M16C/62P * Under Development ROMless M32C/84 /80 M32C/84

42 48 64 80 100 128 144 Pin Count M16C Platform Nomenclature Below you can find an easy to use part name decoder. The below product code sample shows a quite successful M16C/62P device in a 100-pin, 0.5pitch, LQFP package with 256KB embedded Flash and 20KB RAM. M 3 0 6 2 L F G P G P # U 3 Product suffix code

Package Type e.g.: ”FP” > 100P6S-A “GP”> 80P6S-A, 100P6Q-A, 128P6Q-A, 144P6Q-A “HP” > 64P6Q-A, 80P6Q-A Classification e.g.: optional identifier ”P” > 62P Type “A” > 26A Type Memory Capacity e.g.: ”6” > 48kB “G” > 256kB “8” > 64kB “W”> 320kB “A” > 96kB “H” > 384kB “C” > 128kB “J” > 512kB “E” > 192kB “L” > 1MB Memory Type e.g.: ”M”> Mask ROM “F” > Flash “S” > ROMless RAM Capacity, pin count M16C Group definition e.g.: ”28” > M16C/28 “62” > M16C/62 “87” > M32C/87

Renesas M16C Platform 5 The M16C/Tiny Series

Low cost, low power consumption, small package

The M16C/Tiny Series with a wide range of memory and M16C/26A block diagram (48QFP package) package types is subdivided into the M16C/26A, M16C/28 Timer A Main clock and M16C/29 device groups. These application optimised (5ch, 16-bit M16C CPU Sub clock general purpose MCUs combine small foot print with high CPU performance, thus providing an excellent solution Timer B 20MHz On-chip clock (3ch, 16-bit) (24MHz) @3-5V PLL for cost sensitive applications in home appliances and industrial applications. Renesas Technology focuses with Three-phase 2ch USART motor control DMA 2ch 1ch USART, I2C, the M16C/Tiny Series devices mainly on home appliances timer IEBus and industrial applications, which require high computing A/D Watchdog CRC unit power in a small package. It is primarily targeted at motor (10-bit, 12 ch) Timer 15-bit control, metering and sensor applications. To meet the constantly increasing requirements of modern home Multiplier appliances the M16C/Tiny Series has the familiar M16C 16-Bit CISC register core architecture. Two direct memory Flash VEEPROM Ram access controller channels (DMAC) are implemented to up to 64kB 2x2kB block up to 2kB speed up the processing. 39 I/O pins

Main Features: M16C/28 block diagram (80QFP package) • Up to 128kbytes full-speed Flash with up to 12kbytes Timer A Main clock RAM (5ch, 16-bit) M16C CPU Core Sub clock • Various mask options are available Timer B 20MHz On-chip clock • 2x2kbytes embedded Virtual EEPROM (3ch, 16-bit) (24MHz) @3-5V PLL • 42-, 48-, 64- and 80-pin package options • 2 DMA channels Three-phase 2ch USART motor control DMA 2ch 1ch USART, I2C, • PLL, Main-, Sub- and On-Chip-oscillator timer IEBus 2ch SIO • 8 channels of 16-bit Timer A/D Watchdog • 3-phase motor control function (10-bit, 24 ch) Timer 15-bit • Up to 5 serial interfaces that offer support for 1ch Multi 2 synchronous, asynchronous and I C communication Master I2C Multiplier LVD • Multi-Master I2C-bus interface (1ch, 16-bit) • Optional 1 CAN channel 2.OB compliant Timer S • 10-bit ADC multiple channels (2 S/H circuits) (1ch, 16-bit) • Timer S featuring InputCapture/OutputCompare Flash VEEPROM Ram • 71 I/O pins available with the 80-pin package up to 128kB 2x2kB block up to 12kB • High efficient M16C family low power modes 71 I/O pins Focus Products: M16C/29 block diagram (80QFP package) • M16C/26A Timer A Main clock • M16C/28 (5ch, 16-bit M16C • M16C/29 (1x CAN2.0B) CPU Core Sub clock Timer B 20MHz @3-5V On-chip clock StarterKits: (3ch, 16-bit PLL RSKM16C26A (supporting M16C/26A) Three-phase 2ch USART RSKM16C29 (supporting M16C/28 and /29) motor control DMA 2ch 1ch USART, I2C, timer IEBus 2ch SIO

A/D Watchdog CRC unit (10-bit, 24 ch Timer 15-bit 1ch Multi Master I2C Multiplier LVD (1ch, 16-bit)

Timer S 1ch CAN (1ch, 16-bit)

Flash VEEPROM Ram up to 128kB 2x2kB block up to 12kB 71 I/O pins

6 The M16C/60 Series

The industrial standard microcontroller

The M16C is an easy to design-in 16-bit industrial quasi- M16C/62P block diagram (100QFP package) standard microcontroller, utilized in endless applications Timer A Main clock worldwide. It provides a high level of performance, com- (5ch, 16-bit) M16C CPU Core Sub clock bined with internal peripherals, which reduce the need for 24MHz @3-5V external components. Timer B On-chip clock (6ch, 16-bit) PLL The M16C core has been designed to take advantage of the best features of both accumulator and register based Three-phase 3ch USART motor control DMA 2ch IEBus architectures. The CPU has a total of thirteen 16-bit timer 2ch SIO registers, seven of which come in two sets of register A/D Watchdog CRC unit banks. A hardware multiplier circuit is also implemented. (10-bit, 26 ch) Timer 15-bit The architecture makes it fast with efficient code execu- D/A tion. The CPU requires one machine cycle for minimum (8-bit, 2 ch) Multiplier LVD operation and two machine cycles for a register to regi- ster operation. Multiple sizes of embedded Flash memory Flash VEEPROM Ram make it extremely versatile. And several internal design up to 512kB 2x4kB block up to 31kB features are included in the M16C to provide low EMI 87 I/O pins plus one input and high EMS protection making it the best solution for effective designs for electrically noisy environments. M16C/6N4/6N5 block diagram (100QFP package)

Timer A Main clock Main Features: (5ch, 16-bit) M16C CPU Core Sub clock • High CPU performance 24MHz at 3 to 5V Timer B 24MHz @3-5V On-chip clock • Up to 512kbytes full-speed Flash with up to 31kbytes (6ch, 16-bit) PLL RAM • Various mask options are available Three-phase 3ch USART motor control DMA 2ch I2C, IEBus • 2x4kbytes embedded virtual EEPROM timer 1ch SIO • 80-, 100- and 128-pin package options A/D Watchdog CRC unit • 2 DMA channels (10-bit, 26 ch) Timer 15-bit • PLL, Main-, Sub- and On-Chip-oscillator • 11 channels of 16-bit Timer D/A Multiplier (8-bit, 2 ch) • 3-phase motor control function • Up to 5 serial interfaces that offer support for syn- up to 2ch CAN chronous, asynchronous and I2C communication • 1 CAN or 2 CAN options CAN2.0B compliant Flash VEEPROM Ram • 10-bit ADC multiple channels up to 256kB 2x4kB block up to 10kB • PWM generation and measurement by Timer Unit 87 I/O pins plus one input • 87 available I/O pins and one additional pure input pin with the 100-pin package M16C/6NL/6NK block diagram (100QFP package) • Allows mixed 5V and 3V IC connection to external bus Timer A Main clock • High efficient M16C family low power modes (5ch, 16-bit) M16C CPU Core Sub clock Focus Products: Timer B 20MHz @3-5V On-chip clock • M16C/62P (6ch, 16-bit) PLL • M16C/6N4 /6N5 (/6N4 2x CAN2.0B/6N5 1x CAN2.0B) Three-phase 3ch USART • M16C/6NK /6NM (2x CAN2.0B) motor control DMA 2ch I2C, IEBus timer SIO • M16C/6NL /6NN (1x CAN2.0B) A/D Watchdog CRC unit (10-bit, 26 ch) Timer 15-bit StarterKits: • RSKM16C62P (supporting M16C/62P) D/A Multiplier • RSKM16C6NK (supporting all M16C/6Nx) (8-bit, 2 ch)

2ch CAN

Flash VEEPROM Ram up to 512kB 2x4kB block up to 31kB 87 I/O pins plus one input

7 8 9 The M32C/80 Series

The upward compatible path for performance requirements

With a high performance 32MHz CPU, large memory M32C/80 block diagram (100QFP package) integration and enhanced peripheral functions for highly Timer A (5ch, 16-bit M32C/80 Main clock sophisticated applications, the M32C closes the gap CPU Core Sub clock between the 16-bit and 32-bit microcontroller market. On-chip clock Timer B PLL (6ch, 16-bit 32MHz @5V

The M32C Series is upwards code compatible with the Three-phase 5ch USART, I2C, motor control DMA 4ch M16C Series. All M16C 16-bit instructions have been timer IEBus maintained and added to by a set of complimentary 32-bit A/D Watchdog CRC unit instructions. 32-bit registers are implemented by using (10-bit, 10ch) Timer 15-bit 16-bit register pairs along a hardware barrel shifter. The D/A Multiplier DMA II numbers of cycles per instruction are reduced from three (8-bit, 2ch) to an average of two. This ensures RISC like performance whilst maintaining excellent code density. DSP function- X-Y converter ality is also provided with a two cycle multiply accumulate instruction to allow functions such as software modem, LVD speech compression & telecommunication software stacks. A high level of communication channels is ROMless RAM 8K supported, such as full CAN controllers and various separate hardware UARTS. Also four independent DMA 47 I/O pins plus one input channels are integrated on the M32C/80 Series. M32C/84 block diagram (100QFP package) Timer A Main Features: (5ch, 16-bit M32C/80 Main clock CPU Core Sub clock • High CPU performance 32MHz@ 5V and 24MHz@ On-chip clock Timer B PLL 3.3V. (6ch, 16-bit 32MHz @5V • Up to 1MByte full-speed Flash with up to 48kbytes Three-phase 5ch USART, I2C, RAM motor control DMA 4ch timer IEBus • Various mask options as well as ROMless A/D Watchdog CRC unit • 2x4kbytes embedded virtual EEPROM (10-bit, 26 ch Timer 15-bit • 100- and 144--pin package options • 4 DMA channels D/A Multiplier DMA II (8-bit, 2ch) • PLL, Main-, Sub- and On-Chip-oscillator • 11 channels of 16-bit Timer X-Y converter 1ch CAN Intelligent I/O • 3-phase motor control function • Up to seven serial ports (IIC and IrDA supported) LVD • No CAN,1CAN or 2CAN options (CAN2.0B compliant)

• 10-bit ADC multiple channels ROMless RAM • 8-bit DAC 2 channels 10K • Intelligent I/O supporting various communication 47 I/O pins plus one input functions and InputCapture/OutputCompare feature M32C/87 (A, B) block diagram (100QFP package) • 123 available I/O pins and one additional pure input Timer A pin with the 144-pin package (5ch, 16-bit M32C/80 Main clock CPU Core Sub clock • Allows mixed 5V and 3V IC connection to external bus On-chip clock Timer B PLL • Highly efficient M16C family low power modes (6ch, 16-bit 32MHz @5V

Three-phase 6ch USART, I2C, motor control DMA 4ch Focus Products: IEBus • M32C/80 ROMless timer • M32C/84 ROMless (1x CAN2.0B) A/D Watchdog CRC unit (10-bit, 26 ch Timer 15-bit • M32C/87 (2x CAN2.0B) • M32C/87A (1x CAN2.0B) D/A Multiplier DMA II (8-bit, 2ch) • M32C/87B

X-Y converter 1, 2 or no Intelligent I/O StarterKits: CAN • RSKM32C87 (supporting M32C/84 and /80 and RTP 4ch LVD M32C/87, /87A, /87B) Flash VEEPROM RAM up to 1MB 2x4kB block up to 48kB 10 87 I/O pins plus one input Tool Support M16C Platform Tool environment

M16C Platform Tool Environment A reliable, integrated development environment is essential in today’s “fastest time-to-market” engineering climate. Wherever you are looking, the Renesas M16C Platform support tool chain provides a fitting tool to meet your requirements and speeds up the design time to market. Furthermore these tools can be reused for any other future development with a M16C Platform device.

Full specification emulator PC7501

Compact emulator On-chip debugging emulator CPE E8

Full trace, breakpoint & performance analysis spec Low cost, limited trace & breakpoint spec

Real time debug and easy connection with devices.

Performance

Compilers The key for any embedded development is the tool chain. Renesas Technolgy Europe has a number of different approaches to ensure that we offer the very best solutions to support you during you design. The selection ranges from supported third party compilers, free of charge GNU compiler and our own in house compiler.

KPIT Cummins Infosystems Limited

11 Tool Support M16C Platform Tool environment

High-performance Embedded Workshop

Renesas has developed a fully integrated development environment known as HEW (High-performance Embedded Workshop). HEW pulls together all of the development tasks into one easy-to-use application. • Code development • Project management • Integrated debugger • Compiler integration • Flash programmer

Tool selection guide

Group Development Renesas Renesas Flasher On Chip Compact Emulator Full Emulation Systerm StarterKits Environment Compiler Debugger debugging Emulator Probe (48pin package) RSKM16C26A M16C/26A M30260T2-CPE-GP (48pin package) M30260T-EPB-GP M30263T2-CPE-FP (42pin package) M30263T-EPB-FP (42pin package) (ROK33026AS000BE) E8 M30290T2-CPE-HP (80pin package) M30290T-EPB-HP (80pin package) RSKM16C29 M16C/28 S32HEWNC30-1-6 ROE000080KCE00 M30291T2-CPE-HP (64pin package) M30291T-EPB-HP (64pin package) (ROK330290S000BE) M30290T2-CPE-HP (80pin package) M30290T-EPB-HP (80pin package) RSKM16C29 M16C/29 HEW4 FDT (supplied as M30291T2-CPE-HP (64pin package) M30291T-EPB-HP (64pin package) (ROK330290S000BE) M16C/6Nx HEW4 under planning M306NKT-EPB RSKM16C6NK standard with PC7501 hardware) (ROK3306NKS000BE) RSKM16C62P M3062PT-CPE M3062PT2-EPB M16C/62P (ROK33062PS000BE) M32C/80 ROMless device M32C/84 S32HEWNC308-1-6 E8 M30850T2-CPE M30850T-EPB RSKM32C87 M32C/87FDT ROE000080KCE00 M30870T2-CPE M30870T-EPB (ROK330879S000BE)

Renesas Starter Kit (RSK)

M16C/62P Starter Kit (RSK) The kit includes: • CPU board with target microcontroller • LCD panel for user/diagnostic interaction • E8 on-chip debugger • Trial C compiler and IDE • Tutorial session • Sample peripheral driver code

12 References

Renesas Interactive Free registration Do you know that there is the Renesas Interactive Login password will be sent to you by email Webpage? Renesas Interactive gives 24/7 service with free, state of the art online training including virtual labs. So go to Renesas Interactive Webpage and give it a try! http://www.renesasinteractive.com

M16C course selection A typical M16C course M16C virtual labs, online development tools

13 References • Renesas Homepage: http://www.renesas.eu

• M16C Platform Webpage: http://www.eu.renesas.com/m16c

• Microchooser: The Microchooser is a stand-alone parametric search tool that will help you find the Renesas microcon - troller which most closely matches your requirements. It is quick and easy to use and you do not need to be connected to the Internet to use it http://www.microchooser.com

MCU browser Tool browser

www.renesas.eu

October 2006 Printed in Europe 12-005A