M30622 Mitsubishi, M30622 Datasheet

no-image

M30622

Manufacturer Part Number
M30622
Description
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
Manufacturer
Mitsubishi
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
M30622-109GP
Manufacturer:
RENESAS/瑞萨
Quantity:
20 000
Part Number:
M30622ECFP
Manufacturer:
INFINEON
Quantity:
607
Part Number:
M30622ECFP
Manufacturer:
ST
0
Part Number:
M30622EECFP
Manufacturer:
MIT
Quantity:
20 000
Part Number:
M30622F8PA04GP
Manufacturer:
MIT
Quantity:
105
Part Number:
M30622F8PA04GP
Manufacturer:
RENESAS
Quantity:
1 000
Part Number:
M30622F8PA04GP
Manufacturer:
RENESAS/瑞萨
Quantity:
20 000
Part Number:
M30622F8PFP
Manufacturer:
MIT
Quantity:
20 000
Part Number:
M30622F8PFP#D5C
Manufacturer:
Renesas Electronics America
Quantity:
10 000
Part Number:
M30622F8PFP#U3C
Manufacturer:
Renesas Electronics America
Quantity:
10 000
Part Number:
M30622F8PFP#U5C
Manufacturer:
Renesas Electronics America
Quantity:
10 000
Part Number:
M30622F8PFPD5
Manufacturer:
RENESAS
Quantity:
893
Part Number:
M30622F8PFPU3C
Manufacturer:
RENESAS
Quantity:
5 002
Part Number:
M30622F8PFPU5U
Manufacturer:
STM
Quantity:
4 667
Part Number:
M30622F8PGP
Manufacturer:
MIT
Quantity:
20 000
Description
Description
Features
Applications
The M16C/62T group of single-chip microcomputers are built using the high-performance silicon gate
CMOS process using a M16C/60 Series CPU core and are packaged in a 100-pin or a 80-pin plastic
molded QFP. These single-chip microcomputers operate using sophisticated instructions featuring a high
level of instruction efficiency. With 1M bytes of address space, they are capable of executing instructions at
high speed. They also feature a built-in multiplier and DMAC, making them ideal for controlling office,
communications, industrial equipment, and other high-speed processing applications.
The M16C/62T group includes a wide range of products with different internal memory types and sizes and
various package types.
• Memory capacity ..................................M30623M4T-XXXGP : ROM 32K bytes, RAM 3K bytes
• Shortest instruction execution time ......62.5ns (f(X
• Supply voltage ..................................... Mask ROM version : 4.2 to 5.5V (f(X
• Low power consumption ......................140mW (V
• Interrupts
• Multifunction 16-bit timer ......................5 I/O timers + 6 input timers(M30622(100-pin package))
• Inside 16-bit timer ................................ 3 timers(only M30623(80-pin package))(Note 1)
• Serial I/O .............................................. • M30622(100-pin package) : 3 for UART or clock synchronous + 2 for synchronous
• DMAC .................................................. 2 channels (trigger: 24 sources)
• A-D converter ....................................... 10 bits X 8 channels (Expandable up to 26 channels)
• D-A converter ....................................... 8 bits X 2 channels
• CRC calculation circuit ......................... 1 circuit
• Watchdog timer ....................................1 line
• Programmable I/O ...............................87 lines(M30622(100-pin package)),70 lines(M30623(80-pin package))
• Input port..............................................
• Memory expansion .............................. Available (to 1.2M bytes or 4M bytes)
• Chip select output ................................ 4 lines(only M30622(100-pin package))(Note 2)
• Clock generating circuit ....................... 2 built-in clock generation circuits (built-in feedback resistor, and external ceramic or quartz oscillator)
Audio, cameras, office equipment, communications
equipment, portable equipment, cars, etc
Central Processing Unit (CPU) ..................... 12
Reset ............................................................. 15
Processor Mode ............................................ 28
Clock Generating Circuit ............................... 40
Protection ...................................................... 49
Interrupts ....................................................... 50
Watchdog Timer ............................................ 70
DMAC ........................................................... 72
Note 1: In M30623(80-pin package), these timers have no corresponding external pin can be used as
Note 2: M30623(80-pin package) has no external pin for chip select output.
internal timers.
------Table of Contents------
M30622M8T/M8V-XXXFP,M30623M8T/M8V-XXXGP : ROM 64K bytes, RAM 4K bytes
M30622MCT/MCV-XXXFP,M30623MCT/MCV-XXXGP : ROM 128K bytes, RAM 5K bytes
M30622ECT/ECV-XXXFP,M30623ECT/ECV-XXXGP : PROM 128K bytes, RAM 5K bytes
One-time PROM version : 4.5 to 5.5V (f(X
25 internal interrupt sources, 8 external interrupt sources (M30622(100-pin package))
/5 sources (M30623(80-pin package)), 4 software interrupt sources,
7 levels (including key input interrupt)
3 I/O timers + 5 input timers(M30623(80-pin package))
• M30623(80-pin package) : 3 for UART or clock synchronous(one of exclusive UART)
1 line (P8
5
CC
1
IN
shared with NMI pin)
)=16MH
= 5V, f(X
Timer ............................................................. 82
Timers’ function for three-phase motor control.......... 100
Serial I/O ..................................................... 112
A-D Converter ............................................. 146
D-A Converter ............................................. 157
CRC Calculation Circuit .............................. 159
Programmable I/O Ports ............................. 161
Electrical characteristics ............................. 176
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.
Z
+ 2 for synchronous(one of exclusive transmission)
, V
IN
_______
)=16MH
CC
=5V)
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
IN
Z
)
)=16MH
IN
)=16MH
Mitsubishi microcomputers
Z
, without software wait)
Z
, without software wait)
M16C / 62T Group

Related parts for M30622

M30622 Summary of contents

Page 1

... Multifunction 16-bit timer ......................5 I/O timers + 6 input timers(M30622(100-pin package)) • Inside 16-bit timer ................................ 3 timers(only M30623(80-pin package))(Note 1) • Serial I/O .............................................. • M30622(100-pin package for UART or clock synchronous + 2 for synchronous • DMAC .................................................. 2 channels (trigger: 24 sources) • A-D converter ....................................... 10 bits X 8 channels (Expandable channels) • ...

Page 2

... Description Pin Configuration Figures 1.1.1 show the pin configurations (top view) of M30622(100-pin package) and 1.1.2 show the pin configurations (top view) of M30623(80-pin package). PIN CONFIGURATION (top view /AN ...

Page 3

... V 77 REF / TRG IN4 P9 /ANEX1 OUT4 Figure 1.1.2. Pin configuration (top view) of M30623 (80-pin package) M16C/62T Group 3 Mitsubishi microcomputers M16C / 62T Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER /WRL/ /WRH/BHE / /BCLK ...

Page 4

... Description Block Diagram Figure 1.1.3 is block diagrams of M30622(100-pin package) and 1.1.4 is block diagrams of M30623(80-pin package). Port P0 I/O ports Internal peripheral functions Timer Timer TA0 (16 bits) Timer TA1 (16 bits) Timer TA2 (16 bits) Timer TA3 (16 bits) Timer TA4 (16 bits) Timer TB0 (16 bits) Timer TB1 (16 bits) ...

Page 5

... FLG Note 1: One of 3 channels is an exclusive UART, functions as IIC bus interface. Note 2: One of 3 channels is an exclusive transmission. Note 3: ROM size depends on MCU type. Note 4: RAM size depends on MCU type. 5 Mitsubishi microcomputers M16C / 62T Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER ...

Page 6

... Device configuration Package Performance M30622(100-pin package) 91 instructions 62.5ns(f(X )=16MH , V =5V 32Kbytes (M30623M4T-XXXGP) 64Kbytes (M30622M8T/M8V-XXXFP, M30623M8T/M8V-XXXGP) 128Kbytes (M30622MCT/MCV-XXXFP, M30623MCT/MCV-XXXGP, M30622ECT/ECV-XXXFP, M30623ECT/ECV-XXXGP) 3Kbytes (M30623M4T-XXXGP) 4Kbytes (M30622M8T/M8V-XXXFP, M30623M8T/M8V-XXXGP) 5Kbytes (M30622MCT/MCV-XXXFP, M30623MCT/MCV-XXXGP, M30622ECT/ECV-XXXFP, M30623ECT/ECV-XXXGP) 8 bits bits bits bits bits bit x 1 ...

Page 7

... QFP (4) Support for 85 C guaranteed version, 125 C guaranteed version 125 C guaranteed version M30622MxV/ECV-XXXFP, M30623MxV/ECV-XXXGP is suported. These are different from 85 C guaranteed version M30622MxT/ECT-XXXFP, M30623MxT/ECT-XXXGP on operating ambient temperature and the terms of the use, and so please inquire. ROM size ...

Page 8

... The M16C/62T group products currently supported are listed in Table 1.1.2. Table 1.1.2. M16C/62T group ROM Type No. capacity M30622M8T-XXXFP 64K bytes M30622M8V-XXXFP M30622MCT-XXXFP M30622ECT-XXXFP M30622ECTFP 128K bytes M30622MCV-XXXFP M30622ECV-XXXFP M30622ECVFP M30623M4T-XXXGP 32K bytes 3K bytes M30623M8T-XXXGP 64K bytes 4K bytes M30623M8V-XXXGP M30623MCT-XXXGP M30623ECT-XXXGP M30623ECTGP 128K bytes ...

Page 9

... These pins output 8 middle-order address bits (A Input/output If the external bus is set as a 16-bit wide multiplexed bus, these pins input and output data (D by multiplexing. They also output address (A 9 Mitsubishi microcomputers M16C / 62T Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER Function pin. Supply the pin when operating in microprocessor mode ...

Page 10

... P7 /CST /RTS /TA1 /V, P7 /TA2 Mitsubishi microcomputers M16C / 62T Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER Function ______ ______ _______ _______ –CS signals and A – selected by software. CIN ______ ...

Page 11

... Internal ROM is located as the following, in M30623M4T-XXXGP from address F8000 bytes), in M30622M8T/M8V-XXXFP and M30623M8T/M8V-XXXGP from address F0000 (64K bytes), in M30622MCT/MCV-XXXFP and M30623MCT/MCV-XXXGP from address E0000 FFFFF (128K bytes). 16 The vector table for fixed interrupts such as the reset and NMI are mapped to FFFDC starting address of the interrupt routine is stored here ...

Page 12

... INTB H b15 b0 USP b15 b0 ISP Address registers b15 b0 SB b15 b0 FLG Frame base registers IPL U 12 Mitsubishi microcomputers M16C / 62T Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER b0 Program counter b0 Interrupt table L register b0 User stack pointer b0 Interrupt stack pointer b0 Static base register b0 Flag register I O ...

Page 13

... Bit 6: Interrupt enable flag (I flag) This flag enables a maskable interrupt. An interrupt is disabled when this flag is “0”, and is enabled when this flag is “1”. This flag is cleared to “0” when the interrupt is acknowledged. Mitsubishi microcomputers SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER 13 M16C / 62T Group ...

Page 14

... 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 14 Mitsubishi microcomputers M16C / 62T Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER ...

Page 15

... Figure 1.6.2. Reset sequence 5V Vcc 0V Vcc 5V RESET 0V BCLK 24 cycles FFFFC FFFFD 16 FFFFC 16 FFFFC Content of reset vector 16 FFFFE 16 15 Mitsubishi microcomputers M16C / 62T Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER 4.0V 0.8V More than 20 cycles of X are needed. IN FFFFE 16 16 Content of reset vector FFFFE Content of reset vector 16 = Vcc. SS ...

Page 16

... RDY input (floating) Input port (floating and Mitsubishi microcomputers M16C / 62T Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER CNV = (Note 1) BYTE = V CC Data input (floating) Input port (floating) Address output (undefined) CS0 output (“H” level is output) ...

Page 17

... The content of other registers and RAM is undefined when the microcomputer is reset. The initial values must therefore be set. Note 1 : When the V level is applied to the CNV Mitsubishi microcomputers M16C / 62T Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER (004E )••• 16 (004F )••• ...

Page 18

... Undefined The content of other registers and RAM is undefined when the microcomputer is reset. The initial values must therefore be set. Note 1 : When the V level is applied to the CNV CC 18 Mitsubishi microcomputers M16C / 62T Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER (03D4 )••• ...

Page 19

... DMA1 control register (DM1CON) 003C 16 003D 16 003E 16 003F 16 Figure 1.7.1. Location of peripheral unit control registers (1) Mitsubishi microcomputers SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER 0040 16 0041 16 0042 16 0043 16 INT3 interrupt control register (INT3IC) 0044 16 Timer B5 interrupt control register (TB5IC) 0045 16 Timer B4 interrupt control register (TB4IC) ...

Page 20

... DMA0 request cause select register (DM0SL) 03B8 16 03B9 16 DMA1 request cause select register (DM1SL) 03BA 16 03BB 16 03BC 16 CRC data register (CRCD) 03BD 16 CRC input register (CRCIN) 03BE 16 03BF 16 20 Mitsubishi microcomputers M16C / 62T Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER ...

Page 21

... Port P10 direction register (PD10) 03F6 16 03F7 16 03F8 16 03F9 16 03FA 16 03FB 16 Pull-up control register 0 (PUR0) 03FC 16 Pull-up control register 1 (PUR1) 03FD 16 Pull-up control register 2 (PUR2) 03FE 16 Port control register (PCR) 03FF 16 21 Mitsubishi microcomputers M16C / 62T Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER ...

Page 22

... Figure 1.8.1. The memory maps and the chip select areas in normal mode SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER How to set PM15 and PM14 Microprocessor mode M30623M4T-XXXGP M30622M8T/M8V-XXXFP SFR area M30623M8T/M8V-XXXGP M30622MCT/MCV-XXXFP Internal RAMarea M30623MCT/MCV-XXXGP Internal area reserved CS3 (16K bytes) CS2 (128K bytes) CS1 (32K bytes) External area ...

Page 23

... Internal area reserved YYYYY 16 Internal ROM area FFFFF 16 Type No. XXXXX M30623M4T-XXXGP M30622M8T/M8V-XXXFP M30623M8T/M8V-XXXGP M30622MCT/MCV-XXXFP M30623MCT/MCV-XXXGP Figure 1.8.2. Memory location and chip select area in expansion mode 1 _______ _______ _______ _______ (176K bytes) appropriately for accessing data (CS3, CS2, CS1) 16 Microprocessor mode SFR area Internal RAM ...

Page 24

... Figure 1.8.3 shows a connection example of the MCU with the external memories in expansion mode 1. _______ In this example, CS0 is connected with a 1-M byte flash ROM and CS2 is connected with a 128-K byte SRAM. An example of connecting the MCU with external memories in expansion mode 1 (An example of using M30622MC in microprocessor mode A16 A17 A18 ...

Page 25

... Internal area reserved YYYYY 16 Internal ROM area FFFFF 16 Type No. XXXXX M30623M4T-XXXGP 00FFF M30622M8T/M8V-XXXFP 013FF M30623M8T/M8V-XXXGP M30622MCT/MCV-XXXFP 017FF M30623MCT/MCV-XXXGP Figure 1.8.5. Memory location and chip select area in expansion mode 2 ) goes effective. Figure 1.8.4 shows the data bank 16 Symbol Address DBR 000B 16 Bit symbol Bit name Nothing is assigned attempt to write to these bits, write “ ...

Page 26

... CS3 - CS1 without regard to accessing 16 2 _______ - 3FFFF ) is output depending on the address as in the past _______ An example of connecting the MCU with external memories in expansion mode 2 (M30622MC, Microprocessor mode A16 A17 A19 CS1 CS2 CS3 RD CS0 ...

Page 27

... Bank 5 2C0000 300000 Data area Bank 6 340000 380000 Program/ data area Bank 7 3C0000 Program/ data area 3FFFFF 27 Mitsubishi microcomputers M16C / 62T Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER M16C address Offset bit = 1 40000 40000 BFFFF Bank 0 40000 BFFFF 40000 BFFFF Bank 1 40000 BFFFF ...

Page 28

... SS ”. 2 pin, changing the processor mode bits selects the mode. Therefore, SS pin ” to the processor mode is selected bits. 2 pin 28 Mitsubishi microcomputers M16C / 62T Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER ) applies a (software) reset to the 16 ...

Page 29

... Reserved bit PM14 Memory area expansion bit (Note 2) PM15 Reserved bit PM17 Wait bit ) to “1” when writing new values to this register Mitsubishi microcomputers M16C / 62T Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER When reset (Note 2) 16 Function Single-chip mode ...

Page 30

... Inhibited D0000 16 YYYYY 16 Internal ROM area FFFFF 16 Type No. M30623M4T-XXXGP M30622M8T/M8V-XXXFP M30623M8T/M8V-XXXGP M30622MCT/MCV-XXXFP M30623MCT/MCV-XXXGP Figure 1.10.1. Memory maps in each processor mode (without memeory area expansion, normal mode) Memory expansion mode Microprocessor mode SFR area Internal RAM area Internally reserved area External area Internally ...

Page 31

... Switching factor Bit 6 of processor mode register 0 BYTE pin to D are multiplexed with Mitsubishi microcomputers M16C / 62T Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER ) are used to change the bus become part of the ...

Page 32

... Then, set the SS (BYTE) pin to start the program in single-chip mode, and input “H” to this pin have no corresponding external pin Mitsubishi microcomputers M16C / 62T Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER Memory expansion mode (Note 1) “00” “11” (Note 2) (separate bus) ...

Page 33

... FFFFF 16 (512K bytes 8) 33 Mitsubishi microcomputers M16C / 62T Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER pin, and the external data bus function as the data bus Bits the chip select control 4 ...

Page 34

... Not used Not used Mitsubishi microcomputers M16C / 62T Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER When reset 01 16 Function 0 : Chip select output disabled (Normal port pin Chip select output enabled 0 : Wait state inserted wait state 16 _________ ...

Page 35

... The RDY signal is invalid when setting “1” to all 16 ), but the RDY pin should be treated as properly 16 On _____ Maintain status when RDY signal received On _____ 35 Mitsubishi microcomputers M16C / 62T Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER Address 8 Address Data (Note 1) Address ________ Status ...

Page 36

... HOLD > DMAC > CPU Item _____ _______ P0, P1, P2, P3, P4, P5 P6, P7, P8, P9, P10 ______ ______ to P4 (CS0 to CS3) and Mitsubishi microcomputers M16C / 62T Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER ) tsu BCLK (RDY - ) __________ Status ON Floating Floating Maintains status when hold signal is received Output “ ...

Page 37

... Output data RD, WR, WRL, WRH output BHE output Output "H" Output "L" _____ ) to “1” Mitsubishi microcomputers M16C / 62T Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER Internal ROM/RAM accessed Maintain status before accessed address of external area Floating Undefined Output "H" ...

Page 38

... Wait bit control register Invalid Invalid 0 Invalid 1 Invalid (Note (Note) 38 Mitsubishi microcomputers M16C / 62T Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER ). 16 Bus cycle 2 BCLK cycles 1 BCLK cycle 2 BCLK cycles 1 BCLK cycle 2 BCLK cycles 2 BCLK cycles 3 BCLK cycles 3 BCLK cycles ...

Page 39

... Note 1: In M30623(80-pin package), the chip select signals have no Figure 1.12.5. Typical bus timings using software wait Bus cycle Output Address Bus cycle Output Address Bus cycle Address Data output Address corresponding external pin. 39 Mitsubishi microcomputers M16C / 62T Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER Input Address Input Address Address Address Input ...

Page 40

... X OUT (Note OUT COUT (Note COUT 40 Mitsubishi microcomputers M16C / 62T Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER Sub clock generating circuit • CPU’s operating clock source • Timer A/B’s count clock source Crystal oscillator CIN COUT Available Stopped Microcomputer ...

Page 41

... COUT 1/32 CM04 Sub clock OUT R Main clock CM02 CM05 1/2 1/2 a CM06=0 CM17,CM16=01 CM06=0 CM17,CM16= Mitsubishi microcomputers M16C / 62T Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER f C32 SIO2 SIO2 SIO2 CM07=0 a ...

Page 42

... CIN COUT pin reduces the power dissipation. This bit changes to “1” when shifting to 32SIO2 ) to “1” and then executing a WAIT instruction Mitsubishi microcomputers M16C / 62T Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER ). Stopping the 16 OUT ). Reducing the drive 16 ...

Page 43

... Division by 4 mode CM17 Division by 16 mode ) to “1” before writing to this register. 16 turns “H”, and the built-in feedback resistor turns null. OUT 43 Mitsubishi microcomputers M16C / 62T Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER 16 Function output ...

Page 44

... Retains status before stop mode “H” Retains status before stop mode Valid only in single-chip mode selected Valid only in single-chip mode ______ ______ 44 Mitsubishi microcomputers M16C / 62T Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER ) enable stops all oscillation and the microcom and f stops in stop mode, peripheral ...

Page 45

... Retains status before wait mode Retains status before wait mode Valid only in single-chip mode selected Valid only in single-chip mode ______ ______ 45 Mitsubishi microcomputers M16C / 62T Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER Single-chip mode Does not stop Does not stop when the WAIT peripheral function clock stop bit is “ ...

Page 46

... Invalid 0 0 Invalid 0 0 Invalid Invalid 0 1 Invalid Mitsubishi microcomputers M16C / 62T Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER Operating mode of BCLK Division by 2 mode Division by 4 mode Division by 8 mode Division by 16 mode No-division mode Low-speed mode Low power dissipation mode ...

Page 47

... All oscillators stop. The CPU and all built-in peripheral functions stop. This mode, among the three modes listed here, is the most effective in decreasing power consumption. Figure 1.13.5 is the state transition diagram of the above modes. Mitsubishi microcomputers SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER 47 M16C / 62T Group ...

Page 48

... CM04 = “1” )/4 BCLK : f(X )/ CM07 = “0” CM06 = “0” CM17 = “1” CM16 = “1” 48 Mitsubishi microcomputers M16C / 62T Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER CPU operation stopped WAIT instruction Wait mode Interrupt CPU operation stopped WAIT instruction ...

Page 49

... Enables writing to port P9 direction PRC2 register (address 03F3 ) (Note “0” . Other bits do not automatically return to “0” and they must therefore be reset by the program. 49 Mitsubishi microcomputers M16C / 62T Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER ), system clock control reg port P9 direction register (ad ...

Page 50

... An interrupt which can be enabled (disabled) by the interrupt enable flag (I flag) or whose interrupt priority can be changed by priority level. (I flag) or whose interrupt priority cannot be changed by priority level. 50 Mitsubishi microcomputers M16C / 62T Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER Undefined instruction (UND instruction) Overflow (INTO instruction) ...

Page 51

... When returning from the interrupt routine, the U flag is returned to the state it was before the acceptance of interrupt re- quest. So far as software numbers 32 through 63 are concerned, the stack pointer does not make a shift. Mitsubishi microcomputers SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER 51 M16C / 62T Group ...

Page 52

... In M30623 (80-pin package), can not use INT _______ P1 /D /INT ____________ _______ ___ ________ _______ to INT 3 _______ /D /INT have no corresponding external pin Mitsubishi microcomputers M16C / 62T Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER ______ _______ as the interrupt factors, because 5 ...

Page 53

... There is an address-matching interrupt enable bit FFFEF Do not use FFFF3 FFFF7 Do not use FFFFB External interrupt by input to NMI pin FFFFF Mitsubishi microcomputers M16C / 62T Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER LSB High address Remarks , program execution starts from 16 _______ ...

Page 54

... UART2 receive/ACK (Note 3) UART0 transmit UART0 receive UART1 transmit UART1 receive Timer A0 Timer A1 Timer A2 Timer A3 Timer A4 Timer B0 Timer B1 Timer B2 INT0 INT1 INT2 to Software interrupt 54 Mitsubishi microcomputers M16C / 62T Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER Remarks Cannot be masked I flag Cannot be masked I flag /D /INT ...

Page 55

... Also, the interrupt enable flag (I flag) and the IPL are located in the flag register (FLG). Figure 1.14.3 shows the memory map of the interrupt control registers. Mitsubishi microcomputers SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER 55 M16C / 62T Group ...

Page 56

... Each of INT4IC and INT5IC is shared with S3IC and S4IC, but in case of not using as S3IC and S4IC, always set to ‘‘00’’. interrupt request for that register. For details, see the precautions for interrupts. 56 Mitsubishi microcomputers M16C / 62T Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER When reset ...

Page 57

... High Mitsubishi microcomputers M16C / 62T Group Enabled interrupt priority levels Interrupt levels 1 and above are enabled Interrupt levels 2 and above are enabled Interrupt levels 3 and above are enabled Interrupt levels 4 and above are enabled Interrupt levels 5 and above are enabled ...

Page 58

... Instructions : AND, OR, BCLR, BSET SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER ; Disable interrupts. ; Four NOP instructions are required when using HOLD function. ; Enable interrupts. ; Disable interrupts. ; Dummy read. ; Enable interrupts. ; Push Flag register onto stack ; Disable interrupts. ; Enable interrupts. 58 Mitsubishi microcomputers M16C / 62T Group ...

Page 59

... Figure 1.14.4 shows the interrupt response time. Interrupt request generated Instruction (a) Figure 1.14.4. Interrupt response time Interrupt request acknowledged Interrupt sequence (b) Interrupt response time 59 Mitsubishi microcomputers M16C / 62T Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER Time Instruction in interrupt routine ...

Page 60

... Odd 20 cycles (Note 1) ________ Indeterminate SP-2 SP-2 Indeterminate contents Indeterminate 60 Mitsubishi microcomputers M16C / 62T Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER 8-Bit bus, without wait 20 cycles (Note 1) 20 cycles (Note 1) 20 cycles (Note 1) 20 cycles (Note SP-4 vec vec+2 ...

Page 61

... Stack pointer m value before interrupt occurs Stack status after interrupt request is acknowledged 61 Mitsubishi microcomputers M16C / 62T Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER Stack area LSB [SP] New stack Program counter ( pointer value Program counter (PC ) ...

Page 62

... Saved simultaneously, all 16 bits Program ) counter ( Finished saving registers in two operations. Sequence in which order registers are saved ) ( (4) Saved simultaneously, all 8 bits ) L (1) Program (2) counter ( Finished saving registers in four operations. 62 Mitsubishi microcomputers M16C / 62T Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER ...

Page 63

... Figure 1.14.8. Hardware interrupts priorities Interrupt resolution circuit When two or more interrupts are generated simultaneously, this circuit selects the interrupt with the highest priority level. Figure 1.14.9 shows the circuit that judges the interrupt priority level. Mitsubishi microcomputers SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER 63 M16C / 62T Group ...

Page 64

... Priority of peripheral I/O interrupts (if priority levels are same) Low Interrupt request accepted Note 1: In M30623 (80-pin package), can not use INT3 to INT5 as the interrupt factors, because P1 have no corresponding external pin. 64 Mitsubishi microcomputers M16C / 62T Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER /D /INT3 /INT5 ...

Page 65

... Note 1: In M30623(80-pin package), can not use INT3 to INT5 interrupts, so setting data of these bits are invalid. Note 2: In M30623(80-pin package), can not use INT3 to INT5 interrupts. 65 Mitsubishi microcomputers M16C / 62T Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER ________ ________ ...

Page 66

... Key input interrupt control register Port P10 direction 7 register direction register 7 direction 6 Interrupt control circuit direction 5 direction 4 66 Mitsubishi microcomputers M16C / 62T Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER ______ register (bit 5 at address 5 (address 004D ) 16 Key input interrupt request to 4 ...

Page 67

... RMAD0 RMAD1 Function Address setting register for address match interrupt Nothing is assigned attempt to write to these bits, write “0”. The value, if read, turns out to be indeterminated. 67 Mitsubishi microcomputers M16C / 62T Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER When reset XXXXXX00 2 Function Interrupt disabled ...

Page 68

... INT pins is changed, the interrupt request bit is sometimes set to "1" _______ _______ /D /INT have no corresponding external pin Mitsubishi microcomputers M16C / 62T Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER will then be set to “0” Accepting an interrupt 16 _______ _______ ________ 0 ...

Page 69

... Set the interrupt enable flag to “1” (Enable interrupt) ______ ; Disable interrupts. ; Four NOP instructions are required when using HOLD function. ; Enable interrupts. ; Disable interrupts. ; Dummy read. ; Enable interrupts. ; Push Flag register onto stack ; Disable interrupts. ; Enable interrupts. 69 Mitsubishi microcomputers M16C / 62T Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER ...

Page 70

... BCLK ). 16 Prescaler “CM07 = 0” “WDC7 = 0” 1/16 “CM07 = 0” “WDC7 = 1” 1/128 “CM07 = 1” 1/2 70 Mitsubishi microcomputers M16C / 62T Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER is selected for the IN ) selects the prescaler division ratio (by 16 BCLK ) and when 16 Watchdog timer Watchdog timer interrupt request Set to “ ...

Page 71

... The flag is not set to ‘‘0’’ by the software reset and the 16 0.2Vcc Set to ‘‘1’’ by software 71 Mitsubishi microcomputers M16C / 62T Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER When reset 00 XXXXX 2 Function R ...

Page 72

... DMA1 forward address pointer (20) (Note) , 0038 ) 16 16 DMA latch high-order bits Data bus low-order bits Data bus high-order bits Note: Pointer is incremented by a DMA request. 72 Mitsubishi microcomputers M16C / 62T Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER (addresses 0022 to 0020 ) 16 16 (addresses 0026 to 0024 ...

Page 73

... Can be read at any time. However, when the DMA enable bit is “1”, reading the register set up as the forward register is the same as reading the value of the forward address pointer. 73 Mitsubishi microcomputers M16C / 62T Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER to 003F ] cannot be accessed) ...

Page 74

... In an attempt to write to these bits, write “0”. The value, if read, turns out to be “0”. DMA request cause DMS expansion bit Software DMA DSR request bit 74 Mitsubishi microcomputers M16C / 62T Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER When reset 00 16 Function ...

Page 75

... DAD direction select bit (Note 3) Nothing is assigned attempt to write to these bits, write “0”. The value, if read, turns out to be “0”. cannot be set to “1” simultaneously. 75 Mitsubishi microcomputers M16C / 62T Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER When reset 00 16 Function ...

Page 76

... In an attempt to write to these bits, write “0”. The value, if read, turns out to be “0”. b0 Symbol TCR0 TCR1 Function • Transfer counter Set a value one less than the transfer count 76 Mitsubishi microcomputers M16C / 62T Group Address When reset 0022 to 0020 Indeterminate 16 16 ...

Page 77

... Note 1: M30623(80-pin package), in case of access to the external bus area, can be used only when 8-bit bus mode. Mitsubishi microcomputers SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER 77 M16C / 62T Group ...

Page 78

... Dummy Source Destination cycle Dummy Source Destination cycle Source Source + 1 Destination Source Source + 1 78 Mitsubishi microcomputers M16C / 62T Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER CPU use CPU use CPU use CPU use CPU use CPU use Dummy CPU use cycle Dummy Destination ...

Page 79

... Odd 1 Even — Odd — Even 1 Odd 2 Even — Odd — SFR area Separate bus With wait Mitsubishi microcomputers M16C / 62T Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER Memory expansion mode Microprocessor mode cycles cycles — 1 — — ...

Page 80

... INTi pin, for example). With an external factor selected, the DMA request bit is timed to turn to "0" immediately before data transfer starts similarly to the state in which an internal factor is selected. Mitsubishi microcomputers SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER 80 ...

Page 81

... DMA transmission request signals due to external factors concurrently occur. BCLK DMA0 DMA1 CPU INT0 DMA0 request bit INT1 DMA1 request bit Figure 1.16.6. An example of DMA transfer effected by external factors Mitsubishi microcomputers SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER 81 M16C / 62T Group Obtainm ent of the bus right ...

Page 82

... PWM mode filter • Event counter mode and TA2 shared with RxD and the TB5 pin Mitsubishi microcomputers M16C / 62T Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER Clock prescaler f 1/32 C32 Reset Timer A0 interrupt Timer A0 Timer A1 interrupt Timer A1 Timer A2 interrupt ...

Page 83

... Noise filter • Event counter mode as the event input, because it is not connected IN pin ( shared with RxD and the TA0 Mitsubishi microcomputers M16C / 62T Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER Clock prescaler f 1/32 C32 Reset ) set to “1” 16 Timer B0 interrupt Timer B0 ...

Page 84

... Function varies with each operation mode MR1 MR2 MR3 TCK0 Count source select bit (Function varies with each operation mode) TCK1 84 Mitsubishi microcomputers M16C / 62T Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER ”. 16 High-order 8 bits Up count/down count Always down count except in event counter mode ...

Page 85

... TA4P Timer A4 two-phase pulse signal processing select bit Note 1: M30623(80-pin package) does not have I/O pins for TA2, so set this bit to “0’’. 85 Mitsubishi microcomputers M16C / 62T Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER Address When reset 0387 ,0386 ...

Page 86

... Bit symbol Bit name Nothing is assigned attempt to write to these bits, write “0”. The value, if read, turns out to be indeterminate. CPSR Clock prescaler reset flag 86 Mitsubishi microcomputers M16C / 62T Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER When reset 00X00000 2 R Function 1 : Timer start When read, the value is “ ...

Page 87

... Note 2: The bit can be “0” or “1”. Note 3: Set the corresponding port direction register to “0”. Note 4: In timer A1 and A2 mode register of M30623(80-pin package), set these bits to “0”. 87 Mitsubishi microcomputers M16C / 62T Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER pin’s input signal IN pin’ ...

Page 88

... OUT the upcount is activated. Set the corresponding port direction register to “0”. Note 5: In Timer A1 and A2 mode register of M30623(80-pin package), set these bits to “0”. 88 Mitsubishi microcomputers M16C / 62T Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER n : Set value pin’s polarity is reversed OUT ) for timer A1 and A2 ...

Page 89

... TAi IN counts down rising and falling edges on the TAi TAi OUT Count up all edges TAi IN (i=3,4) Count up all edges ,TAi IN 89 Mitsubishi microcomputers M16C / 62T Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER or TAi pin IN OUT n : Set value pin is “H” Down Down Down count ...

Page 90

... For timer A2 and A4 mode registers, this bit can be “0” or “1”. signal processing operation select bit (address 0384 sure to set the event/trigger select bit (addresses 0382 90 Mitsubishi microcomputers M16C / 62T Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER 00 16 ...

Page 91

... If timer overflow is selected, this bit can be “1” or “0” Note 3: Set the corresponding port direction register to “0”. Note 4: Set these bits to “0”, in timer A1 and A2 mode register of M30623(80-pin package). 91 Mitsubishi microcomputers M16C / 62T Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER 16 ) for timer A1 and A2. OUT ...

Page 92

... If timer overflow is selected, this bit can be “1” or “0” Mitsubishi microcomputers M16C / 62T Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER m : values set to timer Ai register’s low-order address ) for timer A1 and A2. OUT When reset 00 ...

Page 93

... – Cleared to “0” when interrupt request is accepted, or cleaerd by software , f ) C32 Mitsubishi microcomputers M16C / 62T Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER 16 8 ...

Page 94

... Function varies with each operation mode MR1 MR2 MR3 TCK0 Count source select bit (Function varies with each operation mode) TCK1 because timer B1 has no input pin. 94 Mitsubishi microcomputers M16C / 62T Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER High-order 8 bits Low-order 8 bits Reload register (16) Counter (16) TBi Address TBj ...

Page 95

... Bit symbol Bit name Nothing is assigned attempt to write to these bits, write “0”. The value, if read, turns out to be “0”. CPSR Clock prescaler reset flag 95 Mitsubishi microcomputers M16C / 62T Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER Address When reset 0391 , 0390 Indeterminate ...

Page 96

... In an attempt to write to this bit, write “0”. The value, if read in timer mode, turns out to be indeterminate Count source select bit TCK0 TCK1 Mitsubishi microcomputers M16C / 62T Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER ) of timer B1. IN When reset 00XX0000 2 00XX0000 2 Function ...

Page 97

... Note 3: Timer B1, timer B2, timer B4, timer B5. Note 4: Set the corresponding port direction register to “0”. In M30623(80-pin package), do not use the input from TB1 because there is no TB1 pin Mitsubishi microcomputers M16C / 62T Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER ) of timer B1. IN When reset 00XX0000 ...

Page 98

... Note Timer has overflowed b7 b6 Count source select bit C32 timer Bi mode register. This flag cannot be set to “1” by software. 98 Mitsubishi microcomputers M16C / 62T Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER Function (Note 2) (Note 3) ...

Page 99

... Cleared to “0” when interrupt request is accepted, or cleared by software. Transfer Transfer Transfer (measured value) (indeterminate (measured value) value) (Note 1) (Note 1) Cleared to “0” when interrupt request is accepted, or cleared by software. 99 Mitsubishi microcomputers M16C / 62T Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER Transfer (measured value) (Note 1) (Note 2) Transfer (measured value) (Note 1) (Note 1) (Note 2) ...

Page 100

... Three-phase mode 1 Short circuit timer count 0 : Not to be used source select bit Always set to “0” 100 Mitsubishi microcomputers M16C / 62T Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER R W Description (Note 1) to output and W, and works the 5 R ...

Page 101

... Set occurrence frequency of timer B2 interrupt request phase PWM control register 0, do not change the B2 interrupt occurrences frequency set counter to deal with the timer function for three-phase motor control. 101 Mitsubishi microcomputers M16C / 62T Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER When reset 00 16 ...

Page 102

... Timer A3 count start flag TA4S Timer A4 count start flag TB0S Timer B0 count start flag TB1S Timer B1 count start flag TB2S Timer B2 count start flag 102 Mitsubishi microcomputers M16C / 62T Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER Address When reset ,0388 Indeterminate 16 16 ,038A ...

Page 103

... MR3 This bit can neither be set nor reset. When read in timer mode, its content is indeterminate Count source select bit TCK0 TCK1 103 Mitsubishi microcomputers M16C / 62T Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER Function ...

Page 104

... U phase, V phase and V phase, and W phase and W phase concurrently go to “L” result, the port become the state of set by port direction register. ). Setting “0” in this bit causes the ports to be the state 16 _______ ___ ___ 104 Mitsubishi microcomputers M16C / 62T Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER ___ , ...

Page 105

... Tentative Specifications REV.A S pecifications in this manual are tentative and subject to change. Timers’ functions for three-phase motor control Figure 1.18.5. Block diagram for three-phase waveform mode Mitsubishi microcomputers SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER 105 M16C / 62T Group ...

Page 106

... DU0 (bit 0 at 034A 16 16 ___ , the timer A4 counter starts counting the 16 , 0346 ), and starts outputting one-shot pulses. When timer A4 fin 106 Mitsubishi microcomputers M16C / 62T Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER ). In this mode, each 16 ) for setting the 16 0). ) provides the means to choose Also, set “ ...

Page 107

... U phase U phase Dead time Note: Set to triangular wave modulation mode and to three-phase mode 1. Figure 1.18.6. Timing chart of operation ( 107 Mitsubishi microcomputers M16C / 62T Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER ___ ___ The three-phase shift register p o shifts in synchronization with the falling edge of the A4 output ...

Page 108

... DUB0 (bit 1 at 034A 16 ) allows the user to output the waveforms as shown in Figure 1.18.7, that is, to ___ Timer B2 interrupt occurres. Rewriting three-phase buffer register 108 Mitsubishi microcomputers M16C / 62T Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER ), and to DU1 (bit 0 at 034B 16 ___ ...

Page 109

... DUB0 (bit 1 at 034A timer B2 generates an interrupt, and timer A4 16 ___ ___ ___ 109 Mitsubishi microcomputers M16C / 62T Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER ). In this mode, the 16 ) and the effective interrupt addition, set “0” ...

Page 110

... Interrupt occurres. phase shift register in step with the Rewriting the value of timer A4. timing of the timer B overflow 110 Mitsubishi microcomputers M16C / 62T Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER The three-phase p shift register shifts in synchronization with the falling ...

Page 111

... Interrupt occurres. Rewriting the value of timer A4. Rewriting three-phase output buffer register n 111 Mitsubishi microcomputers M16C / 62T Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER Data transfer is made from the three- phase buffer register to the three- phase shift register in step with the timing of the timer B overflow. ...

Page 112

... Possible (Note 3) Impossible Impossible CMOS output CMOS output Impossible Impossible Impossible Impossible outside. CC 112 Mitsubishi microcomputers M16C / 62T Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER UART2 M30622 M30623 (80pin-package) (100pin-package) Impossible (Note 5) Possible (Note 1) Possible (Note 2) Possible (Note 1) Impossible Impossible Possible (Note 4) Impossible Possible ...

Page 113

... CTS/RTS disabled RTS 2 Vcc CTS/RTS disabled CTS 2 and CTS /RTS have no external pin 113 Mitsubishi microcomputers M16C / 62T Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER TxD Receive Reception clock Transmit/ control circuit receive unit Transmit Transmission clock control circuit TxD ...

Page 114

... UART (9 bits) type PAR UART enabled PAR Clock UART (7 bits) synchronous disabled type UART (7 bits) UART (8 bits) “0” Clock synchronous type 114 Mitsubishi microcomputers M16C / 62T Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER UARTi receive register UARTi receive ...

Page 115

... UART(7 bits) synchronous disabled (7 bits) type UART (8 bits) “0” Clock synchronous type Error signal output disable Error signal output enable 115 Mitsubishi microcomputers M16C / 62T Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER UART2 receive register UART2 receive ...

Page 116

... U1BRG 03A9 Indeterminate 16 U2BRG 0379 Indeterminate 16 Function Assuming that set value = n, BRGi divides the count source 116 Mitsubishi microcomputers M16C / 62T Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER R W Function R W (During UART mode) Receive data Invalid overrun error 1 : Overrun error found ...

Page 117

... TxD, RxD I/O polarity reverse reverse bit 1 : Reverse Usually set to “0” ” when IIC mode is used. 2 117 Mitsubishi microcomputers M16C / 62T Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER Function (During UART mode Transfer data 7 bits long Transfer data 8 bits long ...

Page 118

... LSB first UFORM Transfer format select bit 1 : MSB first (Note 3) no external pin. 118 Mitsubishi microcomputers M16C / 62T Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER Function R (During UART mode selected ...

Page 119

... Continuous receive mode enabled Data logic select bit reverse 1 : Reverse Must be fixed to “0” enable bit 119 Mitsubishi microcomputers M16C / 62T Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER Function R W (During UART mode Transmission disabled 1 : Transmission enabled 0 : Data present in ...

Page 120

... Auto clear function Must always be “0” select bit of transmit enable bit Must always be “0” Transmit start condition select bit 120 Mitsubishi microcomputers M16C / 62T Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER 2 Function R (During UART mode Transmit buffer empty ( Transmission completed ...

Page 121

... UARTi receive buffer register is completed This error occurs when the next data is ready before contents of UARTi receive buffer register are read out to FF that is set to the UART bit rate generator 121 Mitsubishi microcomputers M16C / 62T Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER Specification , 03A8 ...

Page 122

... Whether to reverse data in writing to the transmission buffer register or reading the reception buffer register can be selected. This function is reversing TxD port output and RxD port input. All I/O data level is reversed. 122 Mitsubishi microcomputers M16C / 62T Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER Specification _______ _______ ...

Page 123

... STPS PRY Invalid in clock synchronous serial I/O mode PRYE IOPOL TxD, RxD I/O polarity reverse bit (Note) Note: Usually set to “0”. 123 Mitsubishi microcomputers M16C / 62T Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER When reset 00 16 Function Clock synchronous serial ...

Page 124

... CTS/RTS disable bit (bit 4 at address 03A4 CTS/RTS function select bit (bit 2 at address 03A4 CTS/RTS disable bit (bit 4 at address 03A4 _______ _______ 124 Mitsubishi microcomputers M16C / 62T Group _______ , 16 , 03A8 , 0378 ) = “0” ...

Page 125

... Meet the following conditions are met when the CLK input before data reception = “H” • Transmit enable bit • Receive enable bit • Dummy data write to UARTi transmit buffer register 125 Mitsubishi microcomputers M16C / 62T Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER Stopped pulsing because transfer enable bit = “0” ...

Page 126

... Note: This applies when the CLK polarity select bit = “0”. 126 Mitsubishi microcomputers M16C / 62T Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER , 03AC 16 Note 1: The CLK pin level when not 7 transferring data is “H”. 7 Note 2: The CLK pin level when not transferring data is “ ...

Page 127

... CLK ) = “1”, and writing to transmit buffer register 127 Mitsubishi microcomputers M16C / 62T Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER ). (See Figure 1.19.3 CLK , bit 5 at address 037D ...

Page 128

... This flag is set (= 1) when any of the overrun, framing, and parity errors is encountered to FF that is set to the UARTi bit rate generator 128 Mitsubishi microcomputers M16C / 62T Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER , 03A8 , 0378 03A8 , 0378 ...

Page 129

... This function is reversing logic value of transferring data. Start bit, parity bit and stop bit are not reversed I/O polarity switch X X This function is reversing T D port output and R X level is reversed. 129 Mitsubishi microcomputers M16C / 62T Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER D port input. All I/O data X ...

Page 130

... TxD, RxD I/O polarity reverse bit (Note 1) Note 1: Usually set to “0”. Note 2: In M30623(80-pin package), do not select the external clock as transfer clock, because there is no external pin of CLK 130 Mitsubishi microcomputers M16C / 62T Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER When reset 00 16 ...

Page 131

... CTS/RTS disable bit (bit 4 at address 03A4 CTS/RTS function select bit (bit 2 at address 03A4 CTS/RTS disable bit (bit 4 at address 03A4 ). 2 131 Mitsubishi microcomputers M16C / 62T Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER , 16 , 03A8 , 0378 ) = “0” 16 ...

Page 132

... frequency of BRGi count source ( frequency of BRGi count source (external clock) EXT n : value set to BRGi 132 Mitsubishi microcomputers M16C / 62T Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER Stopped pulsing because transmit enable bit = “0” ...

Page 133

... ( RTS0 ( CTS0 ( _______ _______ 133 Mitsubishi microcomputers M16C / 62T Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER Stop bit _______ ) to "1" inputs/outputs the CTS signal and 16 _______ _______ _______ _______ _______ ). OUT CTS ...

Page 134

... pin and the input level of the 134 Mitsubishi microcomputers M16C / 62T Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER Start bit P : Even parity ...

Page 135

... FF that is set to the UARTi bit rate generator. 16 pin. In M30623(80-pin package), do not select the external clock as transfer clock 135 Mitsubishi microcomputers M16C / 62T Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER = “101 16 = “0” “1” and “1” respectively “0”). ...

Page 136

... Cleared to “0” when interrupt request is accepted, or cleared by software frequency of BRGi count source ( frequency of BRGi count source (external clock) EXT n : value set to BRGi and RxD are connected 136 Mitsubishi microcomputers M16C / 62T Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER ...

Page 137

... If you choose the inverse format 137 Mitsubishi microcomputers M16C / 62T Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER ) assigned “1”, you can output an “L” Start bit P : Even Parity SP : Stop bit data is inverted ...

Page 138

... Clock asynchronous serial I/O (UART) mode Figure 1.19.24 shows the example of connecting the SIM interface. Connect T pull-up. Figure 1.19.24. Connecting the SIM interface Microcomputer TxD 2 RxD 2 138 Mitsubishi microcomputers M16C / 62T Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER D and R D and apply ...

Page 139

... Reading the terminal when 0 is assigned to the direction register H level (when 0 is assigned to the CLK polarity select bit) is not connected to external pin. 2 139 Mitsubishi microcomputers M16C / 62T Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER Function R W (During UART mode) Must always be “0” ...

Page 140

... SDA, clock input respectively. A delay circuit is added to the SDA transmission output staying “H”. The stop condition detection interrupt 1 140 Mitsubishi microcomputers M16C / 62T Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER To DMA0, DMA1 UART2 transmission/ NACK interrupt IICM=0 request ...

Page 141

... Bit 3 of the UART2 special mode register is used as SCL- and L-synchronous output enable bit. Setting this bit to “1” goes the used as the arbitration loss detecting flag control bit. 16 data register to “0” in synchronization with the SCL terminal level going to “L”. 141 Mitsubishi microcomputers M16C / 62T Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER ...

Page 142

... With "1: falling edge of RxD " selected 2 CLK TxD RxD Note 1: In M30623(80-pin package), P7 Figure 1.19.27. Some other functions added Mitsubishi microcomputers SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER level and TxD level do not match, but the nonconfor /CLK is not connected to external pin. ...

Page 143

... Note 1: Set "1" in bit 2 of the protection register (000A S I/Oi control register ( 4). Note 2: When set “0” to SMi3 ( and select input - output port, set “1” to SMi6 ( and select internal clock, or input “H” 143 Mitsubishi microcomputers M16C / 62T Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER Data bus 1/(ni+1) ...

Page 144

... S4TRR 0364 16 Indeterminate Transmission/reception starts by writing data to this register. After transmission/reception finishes, reception data is input. (Note 1) Note 1: In M30623(80-package), S I/O3 is exclusive 144 Mitsubishi microcomputers M16C / 62T Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER , 0366 = “1”): f1/2(ni+1 0366 = 0):Input from the CLKi terminal (Note 2) ...

Page 145

... terminal becomes to the high-impedance OUT of S I/O3 is not connected to external pin. IN3 145 Mitsubishi microcomputers M16C / 62T Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER S I/Oi port select bit SMi3 = 0 SOUTi initial value select bit SMi7 = Internal “H” level) OUT S I/Oi port select bit ...

Page 146

... AD 8-bit resolution: 28 cycles, 10-bit resolution exceeds 10MH , and make IN Z frequency to 250kH AD frequency to 1MH AD 146 Mitsubishi microcomputers M16C / 62T Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER also function as the analog signal input pins. The , ...

Page 147

... ADGSEL1,ADGSEL0 = 00 = 00010 OPA1,OPA0 = 11 = 00011 = 00100 = 00101 PM01,PM00 = 00 = 00110 ADGSEL1,ADGSEL0 = 10 = 00111 OPA1,OPA0 = 11 PM01,PM00 = 00 ADGSEL1,ADGSEL0 = 11 OPA1,OPA0 = 11 147 Mitsubishi microcomputers M16C / 62T Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER A-D conversion rate selection CKS1 = 1 AD CKS1 = Decoder for A-D register ) 16 V ref Decoder for channel selection ...

Page 148

... 148 Mitsubishi microcomputers M16C / 62T Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER ...

Page 149

... During 8-bit mode When read, the content is indeterminate Nothing is assigned attempt to write to these bits, write “0”. The value, if read, turns out to be “0”. 149 Mitsubishi microcomputers M16C / 62T Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER When reset 00 16 Function ...

Page 150

... OPA1 External op-amp connection mode Note 1: If the A-D control register is rewritten during A-D conversion, the conversion result is indeterminate. Note 2: Divide the frequency if f(X ) exceeds 10MHz, and make IN equal to 10MHz. 150 Mitsubishi microcomputers M16C / 62T Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER (Note ...

Page 151

... OPA1 External op-amp connection mode Note 1: If the A-D control register is rewritten during A-D conversion, the conversion result is indeterminate. Note 2: Divide the frequency if f(X ) exceeds 10MHz, and make IN equal to 10MHz. 151 Mitsubishi microcomputers M16C / 62T Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER (Note ...

Page 152

... 152 Mitsubishi microcomputers M16C / 62T Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER pins ...

Page 153

... External op-amp connection mode is indeterminate. ) exceeds 10MHz, and make IN 10MHz and can be used the same 153 Mitsubishi microcomputers M16C / 62T Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER pins pins) (Note ...

Page 154

... Note and can be used the same Note 4: Neither ‘01’ nor ‘10’ can be selected with the external op-amp connection mode bit. 154 Mitsubishi microcomputers M16C / 62T Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER ...

Page 155

... “1” and bit 7 is “1”, input via can be used the same through AN 4 REF 155 Mitsubishi microcomputers M16C / 62T Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER ) to “1”. When ...

Page 156

... 156 Mitsubishi microcomputers M16C / 62T Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER Resistor ladder Comparator and AN REF i ...

Page 157

... Figure 1.21.1. Block diagram of D-A converter X n/ 256 ( 255) REF V : reference voltage REF Performance R-2R method 8 bits 2 channels D-A register0 (8) (Address 03D8 D-A0 output enable bit D-A register1 (8) (Address 03DA D-A1 output enable bit 157 Mitsubishi microcomputers M16C / 62T Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER ) ...

Page 158

... Symbol Address When reset DAi (i = 0,1) 03D8 03DA Indeterminate Function that no current flows in the resistors Rs and 2Rs. 16 158 Mitsubishi microcomputers M16C / 62T Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER 00 16 Function LSB . 16 2R ...

Page 159

... Symbol Address b0 CRCD 03BD Function CRC calculation result output register Symbo CRCIN Function Data input register 159 Mitsubishi microcomputers M16C / 62T Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER generate CRC code. (Addresses 03BD , 03BC ) 16 16 When reset , 03BC Indeterminate 16 16 ...

Page 160

... LSB CRC input register After CRC calculation is complete b0 CRC data register 0A41 16 Stores CRC code 160 Mitsubishi microcomputers M16C / 62T Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER [03BD , 03BC ] 16 16 CRCIN [03BE ] 16 CRCD [03BD , 03BC ] 16 ...

Page 161

... Tentative Specifications REV.A S pecifications in this manual are tentative and subject to change. Programmable I/O Port Programmable I/O Ports M30622(100-pin package) has 87 programmable I/O ports P10 (excluding P8 package) has 70 (P1 Each port can be set independently for input or output using the direction register. A pull-up resistance for each block of 4 ports can be set ...

Page 162

... Pull-up selection Direction register Output Data bus Port latch Input to respective peripheral functions 162 Mitsubishi microcomputers M16C / 62T Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER (Note 1) (Note 1) (Note 1) "1" (Note 1) , and P9 are not connected to external pin ...

Page 163

... Direction register "1" Output Port latch Pull-up selection Direction register Port latch 163 Mitsubishi microcomputers M16C / 62T Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER (Note 2) (Note 1) (Note (Note 1) , and P9 are not connected to external pin ...

Page 164

... Output Port latch Analog input Pull-up selection Direction register Port latch Analog input and 164 Mitsubishi microcomputers M16C / 62T Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER (Note 1) (Note 1) (Note 1) (Note 1) are not connected to external pin. 1 ...

Page 165

... Onetime PROM version(inside dotted-line included) BYTE signal input CNV SS CNV SS Note 1: symbolizes a parasitic diode. Do not apply a voltage higher than Vcc to each pin. Figure 1.23.4. I/O pins signal input To circuit of PROM-programming 165 Mitsubishi microcomputers M16C / 62T Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER (Note 1) (Note 1) (Note 1) ...

Page 166

... Port P8 direction register Input mode Port P8 direction register 6 (Functions as an input port Output mode Port P8 direction register 7 (Functions as an output port) 166 Mitsubishi microcomputers M16C / 62T Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER Address When reset , 03E6 , 03E7 , 03EA 03EF ...

Page 167

... Port P8 register “H” level data Port P8 register 5 Port P8 register 6 Port P8 register 7 167 Mitsubishi microcomputers M16C / 62T Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER Address When reset , 03E4 , 03E5 , 03E8 Indeterminate 03ED , 03F1 , 03F4 Indeterminate 16 ...

Page 168

... P10 to P10 pull- P10 to P10 pull- inside microcomputer. so set this port for output mode. 168 Mitsubishi microcomputers M16C / 62T Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER When reset 00 16 Function Not pulled high 1 : Pulled high When reset 00 (Note 2) 16 ...

Page 169

... Bit symbol Bit name Port P1 control register Nothing is assigned attempt to write to these bits, write “0”. The value, if read, turns out to be “0”. 169 Mitsubishi microcomputers M16C / 62T Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER When reset Function 0 : When input port, read port input level ...

Page 170

... In memory expansion mode or in microprocessor mode are not connected to external pin, but exist inside long, pull-up via resistor. CC 170 Mitsubishi microcomputers M16C / 62T Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER or V via are not connected to external pin via a ...

Page 171

... Bi register after setting a value in the timer Bi register with a count halted but before the counter starts counting gets a proper value. pin is outputting an “H” level in this instance, the output level goes to “L”, and OUT 171 Mitsubishi microcomputers M16C / 62T Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER ”. Reading the 16 ” ...

Page 172

... Do not get either into stop mode with the NMI pin set to “L”. ____________ 16 by software sets enabled highest priority interrupt source request bit to “0” software. 16 _______ 172 Mitsubishi microcomputers M16C / 62T Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER will then be set to “0” Accepting an 16 _______ pin via a ...

Page 173

... Dummy read Enable interrupts. ; Push Flag register onto stack I ; Disable interrupts. #00h, 0055h ; Clear TA0IC int. priority level and int. request bit. FLG ; Enable interrupts. 173 Mitsubishi microcomputers M16C / 62T Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER _______ to INT as the interrupt factors, because 3 5 ...

Page 174

... Be especially careful during power-on. (2) One Time PROM version One Time PROM versions shipped in blank (M30622ECTFP/ECVFP, M30623ECTGP/ECVGP), of which built-in PROMs are programmed by users, are also provided. For these microcomputers, a programming test and screening are not performed in the assembly process and the following pro- cesses ...

Page 175

... Mark specification sheet (3) ROM data : EPROMs or floppy disks *: In the case of EPROMs, there sets of EPROMs are required per pattern the case of floppy disks, 3.5-inch double-sided high-density disk (IBM format) is required per pattern. Mitsubishi microcomputers SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER 175 M16C / 62T Group ...

Page 176

... Note 1: In case of One-time PROM version, 4.5V. Note 2: In case guaranteed version, - case of 125 C guaranteed version, - 125 C. Note 3: The mean output current is the mean value within 100ms. Note 4: In M30622(100-pin package), the total I total I (peak) and the total I ...

Page 177

... Ta=25 Ta=25 C when clock is stopped Ta=85 C when clock is stopped Ta=125 C when clock is stopped , and 177 Mitsubishi microcomputers M16C / 62T Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER - 125 SS Standard Typ. Max. Min 0.6Vcc 0.9Vcc 3.0 3.0 3.0 1.6 0.4Vcc 0.1Vcc 2.0 2 ...

Page 178

... IN AD f(X )=16MHz f(X )=10MHz exceeds 10 MHz, and make 16MH unless otherwise specified Measuring condition Note 178 Mitsubishi microcomputers M16C / 62T Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER = AV = 5V, Vss = Standard Min. Typ. Max ± 10MHz CC AD ±3 V ...

Page 179

... UP) IN- OUT - (85 C guaranteed version -40 Parameter _______ Parameter Parameter Parameter Parameter Parameter Parameter 179 Mitsubishi microcomputers M16C / 62T Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER 125 Standard Unit Min. Max Standard Unit Min ...

Page 180

... C(85 Parameter Parameter Parameter Parameter When external clock is selected When external clock is selected When external clock is selected When external clock is selected Parameter 180 Mitsubishi microcomputers M16C / 62T Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER o C guaranteed version Standard Unit Min. Max. 150 ns ns ...

Page 181

... Tentative Specifications REV.A S pecifications in this manual are tentative and subject to change. Timing Electrical characteristics Figure 1.26.1. Port P0 to P10 measurement circuit SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER 30pF P10 181 Mitsubishi microcomputers M16C / 62T Group ...

Page 182

... RxDi / input TRG Figure 1.26.2. Timing t w(INL) t w(INH) t c(TA) t w(TAH) t w(TAL) t c(UP) t w(UPH) t w(UPL) t h(T –UP c(TB) t w(TBH) t w(TBL) t c(CK) t w(CKH) t w(CKL su(D–C) d(C–Q) t c(AD) t w(ADL) 182 Mitsubishi microcomputers M16C / 62T Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER Vcc=5V t su(UP– h(C–Q) t h(C–D) ...

Page 183

... turn involved in CS3 7 183 Mitsubishi microcomputers M16C / 62T Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER M16C/61T group 1M byte fixed 3 channels UART/clocked SI/O · · · · · 3 channels (80-pin package: One of exclusive UART) Impossible P9 · · · · · TB0 · ...

Page 184

... MITSUBISHI SEMICONDUCTORS M16C/62T Group Tentative Specification REV.A Jan First Edition 1999 Editioned by Committee of editing of Mitsubishi Semiconductor Published by Mitsubishi Electric Corp., Kitaitami Works This book, or parts thereof, may not be reproduced in any form without permission of Mitsubishi Electric Corporation. ©1999 MITSUBISHI ELECTRIC CORPORATION ...

Related keywords