DATASHEET SEARCH SITE | WWW.ALLDATASHEET.COM

Document overview

  • Manufacturer or author: Provided By ALLDATASHEET.COM(FREE DATASHEET DOWNLOAD SITE)
  • PDF pages: 25

Technical content

32-bit Single-chip Microcontroller Publication date: August 2014 PubNo. 232M9-010E

1.1 Overview

1.1.1 Overview

The MN103S is a 32-bit microcontroller combining ease of use intended for programs development in the C lan- guage with a simple, high-performance architecture made possible through pursuit of cost performance. Built around a compact 32-bit CPU with a basic instruction word length of 1 byte, this LSI includes internal mem- ory for instructions and data, a clock generator, bus controller, interrupt controller, watchdog timer, standard peripheral circuitry such as timers and serial interfaces, PWM circuit best suited to controlling 3-phase motors and A/D converters for motor position control. The MN103S Series’ high-speed CPU coupled with abundance of peripheral features provides an easy means of developing low-cost, high-performance and multifunctional system on chip for motor and power control applications requiring fast response - a feature previously unavailable with conventional microcontrollers.

1.1.2 Product Summary

This manual describes the following model. Table:1.1.1 Product Summary Model ROM Size RAM Size Classification MN103SFM9K 256 K 8 K Flash EEPROM version

32-bit Single-chip Microcontroller Publication date: August 2014 PubNo. 232M9-010E

1.2 Hardware Functions

4 GB of linear address space (for instructions / data)

LOAD/STORE architecture with 5-stage pipeline 46 basic instructions + 4 extension instructions 6 addressing modes Instruction set of 1 byte in word length Machine cycle: 16.7 ns (oscillation frequency: 10 MHz, 6 multiply) Operation mode: Normal mode Oscillation Circuit External high-speed oscillation (crystal/ ceramic) Clock Multiplication Circuit External high-speed oscillation is multiplied by 4, 6 and 8. Operating voltage 3.6 V to 5.5 V Guaranteed operating temperature -40 °C to 85 °C Internal Memory ROM 256 Kbytes RAM 8 Kbytes Interrupts Non-maskable interrupt: Watchdog timer overflow interrupts, System error interrupts Internal interrupts: 47 interrupts <Timer Interrupts> Timer 0 underflow interrupts Timer 1 underflow interrupts Timer 2 underflow interrupts Timer 3 underflow interrupts Timer 4 underflow interrupts Timer 5 underflow interrupts Timer 6 underflow interrupts Timer 7 underflow interrupts Timer 8 overflow/underflow interrupts Timer 8 compare/capture A interrupts Timer 8 compare/capture B interrupts Timer 9 overflow/underflow interrupts Timer 9 compare/capture A interrupts Timer 9 compare/capture B interrupts Timer 10 overflow/underflow interrupts Timer 10 compare/capture A interrupts Timer 10 compare/capture B interrupts Timer 11 overflow/underflow interrupts Timer 11 compare/capture A interrupts Timer 11 compare/capture B interrupts Timer 12 overflow/underflow interrupts Timer 12 compare/capture A interrupts Timer 12 compare/capture B interrupts

32-bit Single-chip Microcontroller Publication date: August 2014 PubNo. 232M9-010E Timer 13 overflow/underflow interrupts Timer 13 compare/capture A interrupts Timer 13 compare/capture B interrupts Timer 14 underflow interrupts Timer 15 underflow interrupts Timer 16 underflow interrupts Timer 17 underflow interrupts <Serial Interface> Serial 0 reception interrupts Serial 0 transmission interrupts Serial 1 reception interrupts Serial 1 transmission interrupts Serial 2 reception interrupts Serial 2 transmission interrupts <PWM> PWM0 overflow interrupts PWM0 underflow interrupts PWM1 overflow interrupts PWM1 underflow interrupts <A/D interrupt> A/D 0 conversion complete interrupt A/D 0 conversion complete B interrupt A/D 1 conversion complete interrupt A/D 1 conversion complete B interrupt A/D 2 conversion complete interrupt External interrupts: 9 interrupts Interrupt pins: IRQ00 to IRQ08 Interrupt detection condition: Edge (rising edge, falling edge), both edges, High-level detection, Low-level detection Noise filter’s filtering is possible at all conditions. Timer Counter 8-bit timer 12 sets 16-bit timer 6 sets Timer 0 (8-bit timer for general use) - Interval timer, Timer pulse output, Event count - Count clock source, TM0IO pin input IOCLK, IOCLK/8, IOCLK/32, IOCLK/128, Timer 1 underflow, Timer 2 underflow, TM0IO pin input Timer 1 (8-bit timer for general use) - Interval timer, Timer pulse output, Event count, Cascade connection function - Count clock source IOCLK, IOCLK/8, IOCLK/32, Timer 0 underflow, Timer 2 underflow, TM1IO pin input Timer 2 (8-bit timer for general use) - Interval timer, Timer pulse output, Event count, Cascade connection function - Count clock source IOCLK, IOCLK/8, IOCLK/32, IOCLK/128, Timer 0 underflow, Timer 1 underflow, TM2IO pin input Timer 3 (8-bit timer for general use)

32-bit Single-chip Microcontroller Publication date: August 2014 PubNo. 232M9-010E - Interval timer, Timer pulse output, Event count, Cascade connection function - Count clock source IOCLK, IOCLK/8, IOCLK/32, TM3IO pin input, Timer 0 underflow, Timer 1 underflow, Timer 2 underflow, Timer 4 (8-bit timer for general use) - Interval timer, Timer pulse output, Event count, - Count clock source IOCLK, IOCLK/8, IOCLK/32, IOCLK/128, TM4IO pin input, Timer 5 underflow, Timer 6 underflow Timer 5 (8-bit timer for general use) - Interval timer, Timer pulse output, Event count, Cascade connection function - Count clock source IOCLK, IOCLK/8, IOCLK/32, Timer 4 underflow, Timer 6 underflow, TM5IO pin input Timer 6 (8-bit timer for general use) - Interval timer, Timer pulse output, Event count, Cascade connection function - Count clock source IOCLK, IOCLK/8, IOCLK/32, IOCLK/128, TM6IO pin input, Timer 4 underflow, Timer 5 underflow Timer 7 (8-bit timer for general use) - Interval timer, Timer pulse output, Event count, Cascade connection function - Count clock source IOCLK, IOCLK/8, IOCLK/32, TM7IO pin input, Timer 4 underflow, Timer 5 underflow, Timer 6 underflow Timer 8 (16-bit timer for general use) - Interval timer, Timer pulse output, Event count, PWM output, input capture, one-shot output, external trigger start - Count clock source IOCLK, IOCLK/8, IOCLK/64, Timer 2 underflow, TM8BIO pin input Timer 9 (16-bit timer for general use) - Interval timer, Timer pulse output, Event count, PWM output, input capture, one-shot output, external trigger start - Count clock source IOCLK, IOCLK/8, IOCLK/64, Timer 3 underflow, TM9BIO pin input Timer 10 (16-bit timer for general use) - Interval timer, Timer pulse output, Event count, PWM output, input capture, one-shot output, external trigger start - Count clock source IOCLK, IOCLK/8, Timer 0 underflow, Timer 1 underflow, TM10BIO pin input Timer 11 (16-bit timer for general use) - Interval timer, Timer pulse output, Event count, PWM output, input capture, one-shot output, external trigger start - Count clock source IOCLK, IOCLK/8, Timer 4 underflow, Timer 5 underflow, TM11IO pin input Timer 12 (16-bit timer for general use)

32-bit Single-chip Microcontroller Publication date: August 2014 PubNo. 232M9-010E - Interval timer, trigger start 3-phase PWM, AD conversion start - Count clock source MCLK, MCLK/8, IOCLK, IOCLK/8, Timer 6 underflow, Timer 7 underflow Timer 13 (16-bit timer for general use) - Interval timer, trigger start 3-phase PWM, AD conversion start - Count clock source MCLK, MCLK/8, IOCLK, IOCLK/8, Timer 6 underflow, Timer 7 underflow Timer 14 (8-bit timer for general use) - Interval timer, Timer pulse output, Event count, Baud rate timer - Count clock source IOCLK, IOCLK/8, IOCLK/32, IOCLK/128, Timer 15 underflow, Timer 16 underflow, TM14IO pin input Timer 15 (8-bit timer for general use) - Interval timer, Baud rate timer, Cascade connection function - Count clock source IOCLK, IOCLK/8, IOCLK/32, Timer 14 underflow, Timer 16 underflow Timer 16 (8-bit timer for general use) - Interval timer, Timer pulse output, Event count, Baud rate timer, Cascade connection function - Count clock source IOCLK, IOCLK/8, IOCLK/32, IOCLK/128, Timer 14 underflow, Timer 15 underflow, TM16IO pin input Timer 17 (8-bit timer for general use) - Interval timer, Timer pulse output, Event count, Cascade connection function - Count clock source IOCLK, IOCLK/8, IOCLK/32, TM17IO pin input, Timer 14 underflow, Timer 15 underflow, Timer 16 underflow Watchdog Timer Detection time 6.55 ms to 1677.72 ms (oscillation frequency 10 MHz ) Generates non-maskable interrupts at detection Generates hard-reset at second consecutive overflow A /D Converter A/D0 - Resolution 10 bits - Minimum conversion time 1.0 μsec - Channels 8 channels (ADIN00 to ADIN05, ADIN18, ADIN19) - Use of 3 converters allows simultaneous sampling of 3 phases - A/D conversion start trigger is in synchronization with complementary 3-phase PWM cycle and 16-bit timer A/D1 - Resolution 10 bits - Minimum conversion time 1.0 μsec - Channels 8 channels (ADIN02 to ADIN09) - Use of 3 converters allows simultaneous sampling of 3 phases - A/D conversion start trigger is in synchronization with complementary 3-phase PWM cycle and 16-bit timer A/D2

32-bit Single-chip Microcontroller Publication date: August 2014 PubNo. 232M9-010E - Resolution 10 bits - Minimum conversion time 1.0 μsec - Channels 16 channels (ADIN00, ADIN01, ADIN06 to ADIN19) - Use of 3 converters allows simultaneous sampling of 3 phases - A/D conversion start trigger is in synchronization with complementary 3-phase PWM cycle and 16-bit timer Complementary 3-phase PWM output 2 channels - Min. resolution: 33.3 nsec - Triangular and saw-tooth waves output - Incorporates a dead time insertion circuit - Can overwrite registers by double buffer during PWM operation - PWM output protection circuit supporting external interrupts - Output timing varying function Serial Interface 3 channels Serial 0 (Full duplex UART/synchronous serial interface) Synchronous serial interface - Overrun error detection - Transfer clock source 1/2 and 1/16 of timer 14 underflow, 1/2 and 1/16 of timer 15 underflow, and 1/2 and 1/16 of timer 16 underflow, SBT0 pin - Can be selected as the first bit to be transferred, Any transfer size from 7 to 8 bits can be selected. - Maximum transfer rate: 3.0 Mbps Full duplex UART - Parity error, overrun error, and flaming error detection - Transfer clock source 1/16 of timer 14 underflow, 1/16 of timer 15 underflow, and 1/16 of timer 16 underflow, - Can be selected as the first bit to be transferred, Any transfer size from 7 to 8 bits can be selected. - Continuous transmission, reception, and transmission/reception - Maximum transfer rate: 375 kbps Serial 1 (Full duplex UART/synchronous serial interface) Synchronous serial interface - Overrun error detection - Transfer clock source 1/2 and 1/16 of timer 14 underflow, 1/2 and 1/16 of timer 15 underflow, and 1/2 and 1/16 of timer 16 underflow, SBT1 pin - Can be selected as the first bit to be transferred, Any transfer size from 7 to 8 bits can be selected. - Maximum transfer rate: 3.0 Mbps Full duplex UART - Parity error, overrun error, and flaming error detection - Transfer clock source 1/16 of timer 14 underflow, 1/16 of timer 15 underflow, and 1/16 of timer 16 underflow, - Can be selected as the first bit to be transferred, Any transfer size from 7 to 8 bits can be selected. - Continuous transmission, reception, and transmission/reception - Maximum transfer rate: 375 kbps Serial 2 (Full duplex UART/synchronous serial interface)

32-bit Single-chip Microcontroller Publication date: August 2014 PubNo. 232M9-010E Synchronous serial interface - Overrun error detection - Transfer clock source 1/2, 1/4, 1/16, and 1/64 of timer 14 underflow, 1/2, 1/4, 1/16, and 1/64 of timer 15 underflow, 1/2, 1/4, 1/16, and 1/64 of timer 16 underflow, IOCLK/2, IOCLK/4, SBT2 pin - Can be selected as the first bit to be transferred, Any transfer size from 2 to 8 bits can be selected. - Continuous transmission, reception, and transmission/reception - Maximum transfer rate: 5.0 Mbps Full duplex UART - Parity error, overrun error and flaming error detection - Transfer clock source 1/32, 1/64, 1/256, and 1/1024 of timer 14 underflow, 1/32, 1/64, 1/256, and 1/1024 of timer 15 underflow, 1/32, 1/64, 1/256, and 1/1024 of timer 16 underflow, IOCLK/32, IOCLK/64 - Can be selected as the first bit to be transferred, Any transfer size from 7 to 8 bits can be selected. - Continuous transmission, reception, and transmission/reception - Maximum transfer rate: 300 kbps Regulator incorporates regulator, and use of 5 V power supply is possible Power Supply Detection (Auto reset circuit) Detection level 3.6 V to 4.3 V When power supply voltage is under detection level, reset is generated. Port / pins I/O ports 81 pins Motor control output 12 pins External interrupt 9 pins A/D input 20 pins Special pins 17 pins Reset input pin 1 pin Oscillation pin 2 pins Test pin 3 pins Power pin 11 pins Code name QFP100-P-1818B

32-bit Single-chip Microcontroller Publication date: August 2014 PubNo. 232M9-010E

1.3 Pin Description

1.3.1 Pin Configuration

Figure:1.3.1 Pin Configuration P51/TM7IO P50/TM6IO P47/TM10BIO P56/PWM02 P55/NPWM01 P54/PWM01 P53/NPWM00 P46/TM10AIO P60 P57/NPWM02 P66/PWM12 P65/NPWM1 P64/PWM11 P63/NPWM1 P62/PWM10 P61 P52/PWM00 VSS P72/TM11IO0 VDD P67/NPWM12 P75/TM11O3 P74/TM11O2 VDD2 P73/TM11IO P17/SBO2 P23/SBT1 P22/SBO1 P21/SBI2 P20/SBT2 P27/SBI0 P26/SBT0 P25/SBO0 P24/SBI1 P33/TM3IO P32/TM2IO P31/TM1IO P30/TM0IO VSS P35/TM5IO VDD P34/TM4IO P41/TM9BO P40/TM9AO P37/TM8BIO P36/TM8AIO P45/TM10BO P44/TM10AO P43/TM9BIO P42/TM9AIO P16/TM17IO P13/IRQ07 P14/IRQ08 NRST P15/TM16IO VDD2 EXTRG0/P10/IRQ04 EXTRG1/P11/IRQ05 P12/IRQ06 VSS VPPEX VDD VDD PB2/ADIN18 PB3/ADIN19 OSCO OSCI PB1/ADIN17 TEST1 TEST2 TEST3 PA5/ADIN13 PA6/ADIN14 PA7/ADIN15 PB0/ADIN16 PA4/ADIN12 PA0/ADIN08 PA1/ADIN09 PA2/ADIN10 PA3/ADIN11 VDD P95/ADIN05 P96/ADIN06 P97/ADIN07 P92/ADIN02 P93/ADIN03 VSS P94/ADIN04 P87 P90/ADIN00 P91/ADIN01 P82/IRQ02 P83/IRQ03 P84/TM14IO TCPOUT P86 P76/TM11O4 P77/TM11O5 P80/IRQ00 P81/IRQ01 100 5150 MN103SFM9K 100pinQFP 0.65 pitch

32-bit Single-chip Microcontroller Publication date: August 2014 PubNo. 232M9-010E

1.3.2 Pin Specification

Table:1.3.1 Pin Specification Pin Special functions I/O Direction control Pin control Function description P07 NRST in/out - - Reset input P10 P11 P12 P13 P14 P15 P16 P17 IRQ04/EXTRG0 IRQ05/EXTRG1 IRQ06 IRQ07 IRQ08 TM16IO TM17IO SBO2 in/out in/out in/out in/out in/out in/out in/out in/out P10D P11D P12D P13D P14D P15D P16D P17D P10R P11R P12R P13R P14R P15R P16R P17R External interrupt input 4/ Trigger pin 0 for on-board debugging External interrupt input 5/ Trigger pin 1 for on-board debugging External interrupt input 6 External interrupt input 7 External interrupt input 8 Timer 16 input / output Timer 17 input / output Serial 2 transmission data output P20 P21 P22 P23 P24 P25 P26 P27 SBT2 SBI2 SBO1 SBT1 SBI1 SBO0 SBT0 SBI0 in/out in/out in/out in/out in/out in/out in/out in/out P20D P21D P22D P23D P24D P25D P26D P27D P20R P21R P22R P23R P24R P25R P26R P27R Serial 2 clock I/O Serial 2 reception data input Serial 1 transmission data output Serial 1 clock I/O Serial 1 reception data input Serial 0 transmission data output Serial 0 clock I/O Serial 0 reception data input P30 P31 P32 P33 P34 P35 P36 P37 TM0IO TM1IO TM2IO TM3IO TM4IO TM5IO TM8AIO TM8BIO in/out in/out in/out in/out in/out in/out in/out in/out P30D P31D P32D P33D P34D P35D P36D P37D P30R P31R P32R P33R P34R P35R P36R P37R Timer 0 I/O Timer 1 I/O Timer 2 I/O Timer 3 I/O Timer 4 I/O Timer 5 I/O Timer 8A I/O Timer 8B I/O P40 P41 P42 P43 P44 P45 P46 P47 TM9AO TM9BO TM9AIO TM9BO TM10AO TM10BO TM10AIO TM10BIO in/out in/out in/out in/out in/out in/out in/out in/out P40D P41D P42D P43D P44D P45D P46D P47D P40R P41R P42R P43R P44R P45R P46R P47R Timer 9A output Timer 9B output Timer 9A I/O Timer 9B I/O Timer 10A output Timer 10B output Timer 10A I/O Timer 10B I/O P50 P51 P52 P53 P54 P55 P56 P57 TM6IO TM7IO PWM00 NPWM00 PWM01 NPWM01 PWM02 NPWM02 in/out in/out in/out in/out in/out in/out in/out in/out P50D P51D P52D P53D P54D P55D P56D P57D P50R P51R P52R P53R P54R P55R P56R P57R Timer 6 I/O Timer 7 I/O 3-phase PWM0 signal output 0 3-phase PWM0 signal reverse output 0 3-phase PWM0 signal output 1 3-phase PWM0 signal reverse output 1 3-phase PWM0 signal output 2 3-phase PWM0 signal reverse output 2 P60 P61 P62 P63 P64 P65 P66 P67 PWM10 NPWM10 PWM11 NPWM11 PWM12 NPWM12 in/out in/out in/out in/out in/out in/out in/out in/out P60D P61D P62D P63D P64D P65D P66D P67D P60R P61R P62R P63R P64R P65R P66R P67R 3-phase PWM1 signal output 0 3-phase PWM1 signal reverse output 0 3-phase PWM1 signal output 1 3-phase PWM1 signal reverse output 1 3-phase PWM1 signal output 2 3-phase PWM1 signal reverse output 2 P72 P73 P74 P75 P76 P77 TM11IO0 TM11IO1 TM11O2 TM11O3 TM11O4 TM11O5 in/out in/out in/out in/out in/out in/out P72D P73D P74D P75D P76D P77D P72R P73R P74R P75R P76R P77R Timer 11 I/O 0 Timer 11 I/O 1 Timer 11 output 2 Timer 11 output 3 Timer 11 output 4 Timer 11 output 5

32-bit Single-chip Microcontroller Publication date: August 2014 PubNo. 232M9-010E P80 P81 P82 P83 P84 P86 P87 IRQ00 IRQ01 IRQ02 IRQ03 TM14IO in/out in/out in/out in/out in/out in/out in/out P80D P81D P82D P83D P84D P86D P87D P80R P81R P82R P83R P84R P86R P87R External interrupt input 0 External interrupt input 1 External interrupt input 2 External interrupt input 3 Timer 14 I/O P90 P91 P92 P93 P94 P95 P96 P97 ADIN00 ADIN01 ADIN02 ADIN03 ADIN04 ADIN05 ADIN06 ADIN07 in/out in/out in/out in/out in/out in/out in/out in/out P90D P91D P92D P93D P94D P95D P96D P97D P90R P91R P92R P93R P94R P95R P96R P97R AD analog signal input 0 AD analog signal input 1 AD analog signal input 2 AD analog signal input 3 AD analog signal input 4 AD analog signal input 5 AD analog signal input 6 AD analog signal input 7 PA0 PA1 PA2 PA3 PA4 PA5 PA6 PA7 ADIN08 ADIN09 ADIN10 ADIN11 ADIN12 ADIN13 ADIN14 ADIN15 in/out in/out in/out in/out in/out in/out in/out in/out PA0D PA1D PA2D PA3D PA4D PA5D PA6D PA7D PA0R PA1R PA2R PA3R PA4R PA5R PA6R PA7R AD analog signal input 8 AD analog signal input 9 AD analog signal input 10 AD analog signal input 11 AD analog signal input 12 AD analog signal input 13 AD analog signal input 14 AD analog signal input 15 PB0 PB1 PB2 PB3 ADIN16 ADIN17 ADIN18 ADIN19 in/out in/out in/out in/out PB0D PB1D PB2D PB3D PB0R PB1R PB2R PB3R AD analog signal input 16 AD analog signal input 17 AD analog signal input 18 AD analog signal input 19 Pin Special functions I/O Direction control Pin control Function description

32-bit Single-chip Microcontroller Publication date: August 2014 PubNo. 232M9-010E

1.3.3 Pin Functions

Table:1.3.2 Pin Functions Name TQFP 48 Pin No. I/O Other Function Function Description VDD VDD VDD VDD VDD - Power supply pin Power pin for 5 V, digital IO. Apply 5 V to all of pins and connect capacitor of over 10 μF between all of the VDD and VSS pins. (allocate near the pins) It is recommended that total capacitance between all of the VDD and VSS is more than 10-times capacitance between all of the VDD2 and VSS. VDD2 VDD2 - Power supply pin Power pin for 1.8 V, digital IO Connect capacitor of over 1 μF between all of the VDD2 and VSS pins. (allocate near the pins) VSS VSS VSS VSS - Power supply pin GND for digital VPPEX 39 - Power supply pin Power for flash EEPROM Connect with VDD. OSC1 OSC0 input output - Clock input pin Clock output pin Extend ceramic or crystal oscillators or input a clock to OSC1. NRST 48 input - Reset pins (negative logic) This pin resets the chip when power is turned on and contains an internal pull-up resistor. Setting this pin “L” level initialize the internal state of the device. Thereafter, setting the input to “H” level releases the reset. The hardware waits for the system clock to stabilize, then processes the reset interrupt. Connect capacitor of over 0.1 μF between NRST and VSS pins. P10 P11 P12 P13 P14 P15 P16 P17 I/O IRQ04/ EXTRG0 IRQ05/ EXTRG1 IRQ06 IRQ07 IRQ08 TM6IO TM7IO SBO2 I/O port 1 8-bit CMOS I/O port. Each bit can be set individually as either an input or output by the P1DIR register. A pull-up resistor for each bit can be selected individually by the P1PLU register. At reset, the input mode (P10 to P17) is selected, and pull-up resistor is disable. P20 P21 P22 P23 P24 P25 P26 P27 I/O SBT2 SBI2 SBO1 SBT1 SBI1 SBO0 SBT0 SBI0 I/O port 2 8-bit CMOS I/O port. Each bit can be set individually as either an input or output by the P2DIR register. A pull-up resistor for each bit can be selected individually by the P2PLU register. At reset, the input mode (P20 to P27) is selected, and pull-up resistor is disable. P30 P31 P32 P33 P34 P35 P36 P37 I/O TM0IO TM1IO TM2IO TM3IO TM4IO TM5IO TM8AIO TM8BIO I/O port 3 8-bit CMOS I/O port. Each bit can be set individually as either an input or output by the P3DIR register. A pull-up resistor for ech bit can be selected individually by the P3PLU register. At reset, the input mode (P30 to P37) is selected, pull-up resistor is disable.

32-bit Single-chip Microcontroller Publication date: August 2014 PubNo. 232M9-010E P40 P41 P42 P43 P44 P45 P46 P47 I/O TM9AIO TM9BIO TM9AIO TM9BIO TM10AO TM10BO TM10AIO TM10BIO I/O port 4 8-bit CMOS I/O port. Each bit can be set individually as either an input or output by the P4DIR register. A pull-up resistor for each bit can be selected individually by the P4PLU register. At reset, the input mode (P40 to P47) is selected and pull-up resistor is disable. P50 P51 P52 P53 P54 P55 P56 P57 I/O TM6AO TM7BO PWM00 NPWM00 PWM01 NPWM01 PWM02 NPWM02 I/O port 5 8-bit CMOS I/O port. Each bit can be set individually as either an input or output by the P5DIR register. A pull-up resistor for each bit can be selected individually by the P5PLU register. At reset, the input mode (P50 to P57) is selected and pull-up resistor is disable. P60 P61 P62 P63 P64 P65 P66 P67 I/O PWM10 NPWM10 PWM11 NPWM11 PWM12 NPWM12 I/O port 6 8-bit CMOS I/O port. Each bit can be set individually as either an input or output by the P6DIR register. A pull-up resistor for each bit can be selected individually by the P6PLU register. At reset, the input mode (P60 to P67) is selected and pull-up resistor is disable. P72 P73 P74 P75 P76 P77 100 I/O TM11IO0 TM11IO1 TM11O2 TM11O3 TM11O4 TM11O5 I/O port 7 6-bit CMOS I/O port. Each bit can be set individually as either an input or output by the P7DIR register. A pull-up resistor for each bit can be selected individually by the P7PLU register. At reset, the input mode (P72 to P77) is selected and pull-up resistor is disable. P80 P81 P82 P83 P84 P86 P87 I/O IRQ00 IRQ01 IRQ02 IRQ03 TM14IO I/O port 8 7-bit CMOS input port. Each bit can be set individually as either an input or output by the P8PLU register. A pull-up resistor for each bit can be selected individually by the P8PLU register. At reset, the input mode (P80 to P87) is selected and pull-up resistor is disable. P90 P91 P92 P93 P94 P95 P96 P97 I/O ADIN00 ADIN01 ADIN02 ADIN03 ADIN04 ADIN05 ADIN06 ADIN07 I/O port 9 8-bit CMOS input port. Each bit can be set individually as either an input or output by the P9DIR register. A pull-up resistor for each bit can be selected individually by the P9PLU register. At reset, the input mode (P90 to P97) is selected and pull-down resistor is disable. PA0 PA1 PA2 PA3 PA4 PA5 PA6 PA7 I/O ADIN08 ADIN09 ADIN10 ADIN11 ADIN12 ADIN13 ADIN14 ADIN15 I/O port A 8-bit CMOS input port. Each bit can be set individually as either an input or output by the PADIR register. A pull-up resistor for each bit can be selected individually by the PAPLU register. At reset, the input mode (PA0 to PA7) is selected and pull-down resistor is disable. PB0 PB1 PB2 PB3 I/O ADIN16 ADIN17 ADIN18 ADIN19 I/O port B 4-bit CMOS input port. Each bit can be set individually as either an input or output by the P8DIR register. A pull-up resistor for each bit can be selected individually by the P8PLU register. At reset, the input mode (P40 to P47) is selected and pull-down resistor is disable. Name TQFP 48 Pin No. I/O Other Function Function Description

32-bit Single-chip Microcontroller Publication date: August 2014 PubNo. 232M9-010E SB00 SB01 SB02 Output P25 P22 P17 Serial interface transmission out- put pin Transmission data output pins for serial interface 0, 1, and 2. Select output mode by the P1DIR and P2DIR registers and serial pin function by the P1MD and P2MD registers. These can be used as normal I/O pins when the serial interface is not used. SBI0 SBI1 SBI2 Input P27 P24 P21 Serial interface reception data input pin Reception data input pins for serial interface 0, 1, and 2. Pull-up resistor can be selected by the P2PLU register. Select input mode by the P2DIR register. These can be used as normal I/O pins when the serial interface is not used. SBT0 SBT1 SBT2 I/O P26 P23 P20 Serial interface clock I/O pin Clock I/O pins for serial interface 0, 1, and 2. Pull-up resistor can be selected by the P2PLU register. Select I/O mode by the P2DIR register and serial pin function by the P2MD register. These can be used as normal I/O pins when the serial interface is not used. TM0IO TM1IO TM2IO TM3IO TM4IO TM5IO TM6IO TM7IO TM14IO TM16IO TM17IO I/O P30 P31 P32 P33 P34 P35 P50 P51 P84 P15 P16 Timer I/O pin Event counter input and timer pulse output pin for 8-bit timer 0 to 7, and 14 to 17. To use this pin as event counter input, select input mode by the P1, 3, 5, and 8DIR regis- ters. In input mode, pull-up resistor can be selected by the P1, 3, 5, and 8PLU registers. To use this pin as timer pulse output, select timer output pin by the P1,3,5, and 8MD registers and set to output mode by the P1,3,5, and 8DIR registers. These can be used as normal I/O pins when these are not used as timer I/O pins. TM8AIO TM8BIO TM9AIO TM9BIO TM10AIO TM10BIO TM11IO0 TM11IO1 I/O P36 P37 P42 P43 P46 P47 P72 P73 Timer I/O pin Event counter input, toggle output, and PWM output pin for 16-bit timer 8 to 11. To use this pin as event counter input, select input mode by the P3, 4, and 7DIR registers. In input mode, pull-up resistor can be selected by the P3, 4, and 7PLU register. To use this as timer output and PWM output, select timer output pin by the P3, 4, and 7MD registers, and set to output mode by the P3, 4, and 7DIR register. These can be used as normal I/O pins when these are not used as timer I/O pins. TM9AO TM9BO TM10AO TM10BO Output P40 P41 P44 P45 Timer output pin PWM output pin for 16-bit timer 9 and 10. To use this pin as timer output and PWM out- put, select timer output pin by the P4MD reg- ister and set to output mode by the P4DIR register. These can be used as normal I/O pins when these are not used as timer I/O pins. TM11IO0 TM11IO1 TM11O2 TM11O3 TM11O4 TM11O5 100 Output P72 P73 P74 P75 P76 P76 P77 PWM output pin Motor control PWM signal output pin for 16- bit timer 11. PWM signal for 16-bit timer 11 is output to 6 pins simultaneously. To use this pin as PWM output, select timer output pin by the P7MD register and set to output mode by the P7DIR register. These can be used as normal I/O pins when these are not used as timer I/O pins. Name TQFP 48 Pin No. I/O Other Function Function Description

32-bit Single-chip Microcontroller Publication date: August 2014 PubNo. 232M9-010E VPPEX is a power supply for flash EEPROM rewriting. Its potential should be the same as VDD. ADIN00 ADIN01 ADIN02 ADIN03 ADIN04 ADIN05 ADIN06 ADIN07 ADIN08 ADIN09 ADIN10 ADIN11 ADIN12 ADIN13 ADIN14 ADIN15 ADIN16 ADIN17 ADIN18 ADIN19 Input P90 P91 P92 P93 P94 P95 P96 P97 PA0 PA1 PA2 PA3 PA4 PA5 PA6 PA7 PB0 PB1 PB2 PB3 Analogue input pin Analogue input pins for an 20-channel, 10-bit 3 A/D converters. These can be used as normal I/O pins when these are not used as analog input. IRQ00 IRQ01 IRQ02 IRQ03 IRQ04 IRQ05 IRQ06 IRQ07 IRQ08 Input P80 P81 P82 P83 P10/ EXTRG0 P11/ EXTRG1 P12 P13 P14 External interrupt pin External interrupt input pins. The valid edge can be selected. Set whether both edges are detected or not by the edge detection register (IRQEDGESEL). When it is set not to detect both edges, select rising edge, falling edge, H level, or L level by the external interrupt condition specification reg- ister (EXTMD0 and EXTMD1). When it is set to detect both edges, select rising edge by the external interrupt condition setting regis- ter. PWM00 PWM01 PWM02 PWM10 PWM11 PWM12 Output P52 P54 P56 P62 P64 P66 Motor control PWM signal out- put pin Motor control 3-phase PWM signal output pin Select PWM signal output pin by the P5MD and P6MD registers and set to PWM output by the PWMOFF register. These can be used as normal I/O pins when these is not used as PWM signal output pin. NPWM00 NPWM01 NPWM02 NPWM11 NPWM12 NPWM13 Output P53 P55 P57 P63 P65 P67 Motor control PWM signal reverse output pin Motor control 3-phase PWM signal revers output pin. Select PWM signal output pin by the P5MD and P6MD registers and set to PWM output by the PWMOFF register. These can be used as normal I/O pins when these is not used as PWM signal output pin. TEST1 TEST2 TEST3 TCPOUT Input - Test signal input Test signal input pin built-in pull-up resistor. Pull-up with resistor of 1 kΩ or more. Select a fixed to “L” for TCPOUT. Name TQFP 48 Pin No. I/O Other Function Function Description

32-bit Single-chip Microcontroller Publication date: August 2014 PubNo. 232M9-010E

1.4 Block Diagram

1.4.1 Block Diagram

Figure:1.4.1 Block Diagram PB3,ADIN1 PB2,ADIN1 PB1,ADIN1 PB0,ADIN1 P97,ADIN0 P96,ADIN0 P95,ADIN0 P94,ADIN0 P93,ADIN0 EXTRG0/IRQ04,P10 P92,ADIN0 EXTRG1/IRQ05,P11 P91,ADIN0 IRQ06,P12 P90,ADIN0 IRQ07,P13 IRQ08,P14 TM16IO,P15 TM17IO,P16 SBO2,P17 Crystal/ ceramic High-speed oscillation circuit CPU MN103S RAM 8 KB ROM 256 K TM9AO,P40 TM10BO,P45 TM10AIO,P46 TM10BIO,P47 TM9BO,P41 TM9AIO,P42 TM9BIO,P43 TM10AO,P44 PWM10,P62 NPWM10,P63 NPWM11,P65 PWM12,P66 PWM11,P64 NPWM12,P67 Port 6 P60 P61 Watchdog timer VDD18 OSCI OSCO VDD5 VSS Port 9 Port A Port B Port 1 Port 8 PA7,ADIN1 PA6,ADIN1 PA5,ADIN1 PA4,ADIN1 PA3,ADIN1 PA2,ADIN1 PA1,ADIN0 PA0,ADIN0 TM6IO,P50 NPWM01,P55 PWM02,P56 NPWM02,P57 Port 5TM7IO,P51 PWM00,P52 NPWM00,P53 PWM01,P54 TM11O2,P74 TM11O3,P75 TM11O5,P77 TM11O4,P76 Port 7TM11IO0,P72 TM11IO1,P73 P84,TM14I P83,IRQ03 P81,IRQ01 P82,IRQ02 P80,IRQ00 P87 P86 SBT2,P20 SBI2,P21 SBO1,P22 SBT1,P23 SBI1,P24 SBO0,P25 SBT0,P26 SBI0,P27 Port 2 TM0IO,P30 TM1IO,P31 TM2IO,P32 TM3IO,P33 TM4IO,P34 TM5IO,P35 TM8AIO,P36 TM8BIO,P37 Port 3 Port 4 Serial interface0 Serial interface1 Serial interface2 A/D conversion 0 A/D conversion 1 A/D conversion 02 PWM0 PWM1 External interrupt 16bit timer 9 16bit timer10 16bit timer11 16bit timer12 16bit timer13 16bit timer 8 PLL 8bit timer 0 8bit timer 1 8bit timer 2 8bit timer 3 8bit timer 4 8bit timer 5 8bit timer 6 8bit timer 7 8bit timer15 8bit timer14 8bit timer16 8bit timer17 Extension function

32-bit Single-chip Microcontroller Publication date: August 2014 PubNo. 232M9-010E

1.5 Electrical Characteristics

This LSI manual describes the standard specification. Electrical characteristics given in this section are preliminary and subject to change without notice. When using LSI, contact our sales office for product specifications.

1.5.1 Absolute Maximum Ratings

Application General-purpose Function CMOS 32-bit 1 chip microcontroller VSS=0.0 V Parameter Symbol Rating Unit A1 External supply voltage V DD -0.3 to +7.0 V A2 Internal supply voltage V DD2 -0.3 to +2.5 V A3 Input pin voltage V I1 -0.3 to VDD +0.3 (upper limit: 7.0) V A4 I/O pin voltage V IO -0.3 to VDD +0.3 (upper limit: 7.0) V A5 Peak output current I OPEAK ±15 mA A6 Typ. range output current I OAVG ±8 mA A7 Operating ambient temperature TOPR -40 to +85 °C A8 Storage temperature T STG -40 to +125 °C A9 Power dissipation P D 750 mW Note: The absolute maximum ratings are the limit values beyond which the LSI may be damaged. It is not guarantee the operation in these conditions. The rating of the average output current is applied for the period of any 100 ms. Note: It cannot supply the internal power supply voltage to a circuit except this LSI.

32-bit Single-chip Microcontroller Publication date: August 2014 PubNo. 232M9-010E

1.5.2 Operating Conditions

Figure:1.5.1 Oscillation VSS=0.0 V Ta= -40 °C to +85 °C Parameter Symbol Conditions Limits Unit Min. Typ. Max. B1 External supply voltage1 V DD - V RST 5.0 5.5 V Note) For power supply detection level VRST, refer to “Auto reset circuit characteristics”. Oscillation VDD = VRST to 5.5 V VSS = 0.0 V Ta= -40 °C to +85 °C Parameter Symbol Conditions Limits Unit Min. Typ. Max. B2 Input frequency F OSC - 5.0 - 15 MHz B3 Internal feedback resistor R FB - - 1.2 - M Ω Note) Capacity value differs depending on oscillators to be used. Consult the oscillator mamufacture for the appropriate circuit constant. Oscillator (ceramic, crystal) OSCI OSCO C1 C2 RFB

32-bit Single-chip Microcontroller Publication date: August 2014 PubNo. 232M9-010E Figure:1.5.2 OSCI Timing Chart VDD = 5.0 V VSS = 0.0 V Ta= -40 °C to +85 °C Parameter Symbol Conditions Limits Unit Min. Typ. Max. External clock input 1 OSCI (OSCO left open) B4 Clock frequency Fcp - 5.0 - 15.0 MHz B5 High-level pulse width twh1 Figure:1.5.2 25.0 - - ns B6 Low-level pulse width twl1 25.0 - - ns B7 Rise time twr1 Figure:1.5.2 - - 5.0 ns B8 Fall time twf1 - - 5.0 ns Note: Be sure that the clock duty ratio is 45 % to 55 %. twh1 twl1 twf1 1/Fcp twr1 0.7VDD 0.3VDD

32-bit Single-chip Microcontroller Publication date: August 2014 PubNo. 232M9-010E

1.5.3 DC Characteristics

VSS=0.0 V Ta= -40 °C to +85 °C Output pin left open Parameter Symbol Conditions Limits Unit Typ. Max. Power supply current in NORMAL mode IDD1 VDD = 5.0 V FOSC = 10 MHz, PLL is used. MCLK= 60 MHz, IOCLK =30 MHz Peripheral circuits are stopped. 20 - mA C2 IDD2 VDD = 5.0 V FOSC = 10 MHz, PLL is used. MCLK= 60 MHz, IOCLK =30 MHz Peripheral circuits are operating. -3 5 mA VDD = 5.0 V VSS = 0.0 V Ta= -40 °C to +85 °C Parameter Symbol Conditions Limits Unit Min. Typ. Max. Input pins1 NRST, TEST1, TEST2 C3 Input voltage High level VIH1 -V DD x 0.7 - V DD V C4 Input voltage Low level VIL1 -V SS -V DD x 0.3 V C5 Internal Pull-up resistor RIO1 VDD =5.0 V, VIN = 0 V 15 30 60 k Ω VDD = 5.0 V VSS = 0.0 V Ta= -40 °C to +85 °C Parameter Symbol Conditions Limits Unit Min. Typ. Max. Input pins 2 VPPEX, TEST3 C6 Input voltage High level VIH2 -V DD x 0.7 - V DD V C7 Input voltage Low level VIL2 -V SS -V DD x 0.3 V

32-bit Single-chip Microcontroller Publication date: August 2014 PubNo. 232M9-010E VDD = 5.0 V VSS = 0.0 V Ta= -40 °C to +85 °C Parameter Symbol Conditions Limits Unit Min. Typ. Max. I/O pin P10 to P17, P20 to P27, P30 to P37, P40 to P47, P50 to P57, P60 to P67, P72 to P77, P80 to P87, P90 to P97, PA0 to PA7, PB0 to PB3 C8 Input voltage High level VIH4 - VDD x 0.7 - V DD V C9 Input voltage Low level VIL4 - VSS -V DD x 0.3 V C10 Input leak current ILK4 - -- ± 5 μA C11 Internal pull-up resistor RIO4 VDD = 5.0 V, VIN = 0 V 15 30 60 k Ω C12 Output voltage High level VOH4 VDD = 5.0 V, IOH = -2.5 mA 4.5 - - V C13 Output voltage Low level VOL4 VDD = 5.0 V, IOL0 = 2.5 mA -- 0 . 5 V

32-bit Single-chip Microcontroller Publication date: August 2014 PubNo. 232M9-010E

1.5.4 Analog Characteristics

Figure:1.5.3 Auto Reset Circuit Characteristics A/D0, A/D1, A/D2 VDD = 5.0 V VSS = 0.0 V Ta= -40 °C to +85 °C Parameter Symbol Conditions Limits Unit Min. Typ. MAx. D1 Resolution - - - - 10 Bits D2 Non-linearity error INLE Sampling time ≥ 150 ns A/D conversion clock ≤ 30 MHz -- ± 2 L S B D3 Differential linearity error DNLE - - ±3 LSB D4 Zero transition voltage - -20 - 20 mV D5 Full-scale transition voltage - 4980 - 5020 mV D6 A/D conversion time - - 1.0 - - μs D7 Analog input voltage V IA -V SS -V DD V D8 Analog input leakage current IIA Unselected channel VADIN = 0 V to VDD -- ± 1 0 μA D9 Power supply current during oper- ation (VDD pin) IAD A/D conversion clock = 30 MHz -1- m A Auto-reset VSS = 0.0 V Ta= -40 °C to +85 °C Parameter Symbol Conditions Limits Unit Min. Typ. MAx. D10 Power supply voltage detection level VRST -3 . 6 - 4 . 3 V D11 Change rate of power supply voltage ΔVDD -0 . 2 - - m s / V Note: Connect 0.1 μF capacitor between NRST and VSS pins. . VDDVDD (V) (V) 5.05.0 time (ms)time (ms) 4.34.3 3.63.6 Internal reset signal Reset voltage space Operation voltage space Internal reset reaction time Internal reset reaction time

32-bit Single-chip Microcontroller Publication date: August 2014 PubNo. 232M9-010E

1.5.5 AC Characteristics

Figure:1.5.4 Reset Signal Pulse Width Reset signal input timing VDD = 5.0 V VSS = 0.0 V Ta= -40 °C to +85 °C Parameter Symbol Conditions Limits Unit Min. Typ. Max. E1 Reset signal pulse width (NRST) tNRSTW -1 - - μs NRST tNRSTW

32-bit Single-chip Microcontroller Publication date: August 2014 PubNo. 232M9-010E

1.5.6 Flash EEPROM E/W Characteristics

VSS = 0.0 V Parameter Symbol Conditions Limits Unit MIN TYP MAX F1 Power supply voltage at E/W VDDEW VRST -5 . 5 V F2 Ambient temperature at E/W VOPREW -40 - 85 °C F3 Permissible rewriting times EMAX1 Large sector (32 KB) 1,000 - - Times F4 Permissible rewriting times EMAX2 Small sector (8 KB) 100,000 - - Times F5 Data retention time THOLD 10 - - Years

32-bit Single-chip Microcontroller Publication date: August 2014 PubNo. 232M9-010E

1.6 Package Dimension

Figure:1.6.1 Package Dimension The external dimensions of the package are subject to change. Before using this product, please obtain product specifications from the sales offices.

Request for your special attention and precautions in using the technical information and semiconductors described in this book (1) If any of the products or technical information described in this book is to be exported or provided to non-residents, the laws and regulations of the exporting country, especially, those with regard to security export control, must be observed. (2) The technical information described in this book is intended only to show the main characteristics and application circuit examples of the products. No license is granted in and to any intellectual property right or other right owned by Panasonic Corporation or any other company. Therefore, no responsibility is assumed by our company as to the infringement upon any such right owned by any other company which may arise as a result of the use of technical information described in this book. (3) The products described in this book are intended to be used for general applications (such as office equipment, communications equipment, measuring instruments and household appliances), or for specific applications as expressly stated in this book. Consult our sales staff in advance for information on the following applications: – Special applications (such as for airplanes, aerospace, automotive equipment, traffic signaling equipment, combustion equipment, life support systems and safety devices) in which exceptional quality and reliability are required, or if the failure or malfunction of the products may directly jeopardize life or harm the human body. It is to be understood that our company shall not be held responsible for any damage incurred as a result of or in connection with your using the products described in this book for any special application, unless our company agrees to your using the products in this book for any special application. (4) The products and product specifications described in this book are subject to change without notice for modification and/or im- provement. At the final stage of your design, purchasing, or use of the products, therefore, ask for the most up-to-date Product Standards in advance to make sure that the latest specifications satisfy your requirements. (5) When designing your equipment, comply with the range of absolute maximum rating and the guaranteed operating conditions (operating power supply voltage and operating environment etc.). Especially, please be careful not to exceed the range of absolute maximum rating on the transient state, such as power-on, power-off and mode-switching. Otherwise, we will not be liable for any defect which may arise later in your equipment. Even when the products are used within the guaranteed values, take into the consideration of incidence of break down and failure mode, possible to occur to semiconductor products. Measures on the systems such as redundant design, arresting the spread of fire or preventing glitch are recommended in order to prevent physical injury, fire, social damages, for example, by using the products. (6) Comply with the instructions for use in order to prevent breakdown and characteristics change due to external factors (ESD, EOS, thermal stress and mechanical stress) at the time of handling, mounting or at customer's process. When using products for which damp-proof packing is required, satisfy the conditions, such as shelf life and the elapsed time since first opening the packages. (7) This book may be not reprinted or reproduced whether wholly or partially, without the prior written permission of our company. 20100202