M30625FGLGP MITSUBISHI, M30625FGLGP Datasheet

no-image

M30625FGLGP

Manufacturer Part Number
M30625FGLGP
Description
Single-chip 16-bit CMOS microcomputer. ROM 256 Kbytes, RAM 20K Kbytes
Manufacturer
MITSUBISHI
Datasheet

Specifications of M30625FGLGP

Case
QFP
Dc
00+
Description
Description
Features
Applications
The M16C/62 (80-pin version) 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 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, communi-
cations, industrial equipment, and other high-speed processing applications.
The M16C/62 (80-pin version) group includes a wide range of products with different internal memory types
and sizes and various package types.
• Memory capacity .................................. ROM (See Figure 1.1.4. ROM Expansion)
• Shortest instruction execution time ...... 62.5ns (f(X
• Supply voltage ..................................... 4.2 to 5.5V (f(X
• Low power consumption ...................... 25.5mW ( f(X
• Interrupts .............................................. 25 internal and 5 external interrupt sources, 4 software
• Multifunction 16-bit timer ...................... 5 output timers + 6 input timers (3 for timer function only)
• Serial I/O .............................................. 5 channels (2 for UART or clock synchronous, 1 for UART, 2 for clock synchronous)
• DMAC .................................................. 2 channels (trigger: 24 sources)
• A-D converter ....................................... 10 bits X 8 channels (Expandable up to 10 channels)
• D-A converter ....................................... 8 bits X 2 channels
• CRC calculation circuit ......................... 1 circuit
• Watchdog timer .................................... 1 line
• Programmable I/O ............................... 70 lines
• Input port ..............................................
• Clock generating circuit ....................... 2 built-in clock generation circuits
Note: Memory expansion mode and microprocessor mode are not supported.
Audio, cameras, office equipment, communications equipment, portable equipment
About the M16C/62 (80-pin version) group ..... 7
Central Processing Unit (CPU) ..................... 11
Reset ............................................................. 14
Processor Mode ............................................ 21
Clock Generating Circuit ............................... 26
Protection ...................................................... 35
Interrupts ....................................................... 36
Watchdog Timer ............................................ 56
DMAC ........................................................... 58
------Table of Contents------
RAM 3K to 20K bytes
100ns (f(X
142.9ns (f(X
4.5 to 5.5V (f(X
2.7 to 5.5V (f(X
2.7 to 5.5V (f(X
interrupt sources; 7 levels (including key input interrupt)
1 line (P8
(built-in feedback resistor, and external ceramic or quartz oscillator)
IN
)=10MH
IN
5
IN
IN
IN
)=7MH
)=16MH
)=10MH
shared with NMI pin)
)=16MH
IN
IN
IN
Z
, V
)=16MH
)=7MH
)=10MH
CC
Z
Z
Z
, without software wait) : Mask ROM, flash memory 5V version
, V
with software one-wait) : Mask ROM, flash memory 5V version
=3V, with software one-wait) : Mask ROM, flash memory 5V version
Timer ............................................................. 68
Serial I/O ....................................................... 86
A-D Converter ............................................. 126
D-A Converter ............................................. 136
CRC Calculation Circuit .............................. 138
Programmable I/O Ports ............................. 140
Electric Characteristics ............................... 154
Flash memory version ................................. 192
CC
Z
Z
Z
=3V, with software one-wait) : One-time PROM version
with software one-wait) : One-time PROM version
, V
, without software wait) : One-time PROM version
Z
_______
, with software one-wait, V
CC
=5V)
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
M16C / 62 Group (80-pin)
Mitsubishi microcomputers
CC
= 3V)
1

Related parts for M30625FGLGP

M30625FGLGP Summary of contents

Page 1

... NMI pin) 5 (built-in feedback resistor, and external ceramic or quartz oscillator) Timer ............................................................. 68 Serial I/O ....................................................... 86 A-D Converter ............................................. 126 D-A Converter ............................................. 136 CRC Calculation Circuit .............................. 138 Programmable I/O Ports ............................. 140 Electric Characteristics ............................... 154 Flash memory version ................................. 192 Mitsubishi microcomputers M16C / 62 Group (80-pin ...

Page 2

... Figure 1.1.1. Pin configuration (top view Mitsubishi microcomputers M16C / 62 Group (80-pin) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER ...

Page 3

... R1H R1L Vector table R2 R2 INTB Stack pointer A0 A1 ISP A1 FB USP FB Flag register SB FLG Mitsubishi microcomputers M16C / 62 Group (80-pin) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER Port P4 Port P5 Port P6 System clock generator OUT X -X CIN COUT Clock synchronous SI/O (8 bits 2 channels) ...

Page 4

... Mask ROM, flash memory 5V version 2.7 to 5.5V (f(X )=7MH IN : One-time PROM version 25.5mW (f 10MH IN 5V 5mA CMOS high performance silicon gate 100-pin plastic mold QFP Mitsubishi microcomputers M16C / 62 Group (80-pin =5V) CC =3V, with software one-wait) CC =3V, with software one-wait without software wait without software wait) ...

Page 5

... Kbytes 128 Kbytes M30621MC-XXXGP M30625MG-XXXGP 256 Kbytes M30621ECGP 128 Kbytes 256 Kbytes M30625FGGP 256 Kbytes M30625FGLGP SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER M30625FGGP M30625FGLGP M30621ECGP One-time PROM version Flash memory version RAM capacity Package type 3 Kbytes 80P6S-A 4 Kbytes 80P6S-A 5 Kbytes 80P6S-A 5 Kbytes 80P6S-A ...

Page 6

... Description Type No – Figure 1.1.4. Type No., memory size, and package 6 Mitsubishi microcomputers M16C / 62 Group (80-pin) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER Package type Package 80P6S-A ROM No. Omitted for blank one-time PROM version, EPROM version and flash memory version ...

Page 7

... Keep the INT3 interrupt control register TA1 , TA2 IN OUT ______ ______ cannot be used. With timer B1 under this state, use 1 cannot be used. In connection with this, use serial 1 Mitsubishi microcomputers M16C / 62 Group (80-pin) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER and TA2 - allocated OUT 2 and P7 cannot be used cannot be used ...

Page 8

... The NMI function cannot be cancelled using software. The pull-up cannot be set for this pin. Mitsubishi microcomputers M16C / 62 Group (80-pin) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER Function pin. Supply the V pin ...

Page 9

... A-D converter extended input pins, or A-D trigger input pins as selected by software. I/O This is an 8-bit I/O port equivalent to P0. Pins in this port also function as A-D converter input pins. Furthermore, P10 input pins for the key input interrupt function. Mitsubishi microcomputers M16C / 62 Group (80-pin) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER Function –P10 also function as ...

Page 10

... YYYYY 16 E0000 16 Internal ROM area E8000 16 C0000 16 FFFFF 16 Note: Set PM13 to “1” in M30625MG/FG. Otherwise set PM13 to “0”. Mitsubishi microcomputers M16C / 62 Group (80-pin) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER . If the starting addresses of subroutines 16 FFE00 16 Special page vector table FFFDC 16 Undefined instruction Overflow ...

Page 11

... INTB H b15 b0 USP b15 b0 ISP Address registers b15 b0 SB b15 b0 FLG Frame base registers IPL U Mitsubishi microcomputers M16C / 62 Group (80-pin) 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 12

... 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. 12 Mitsubishi microcomputers M16C / 62 Group (80-pin) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER ...

Page 13

... 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 Mitsubishi microcomputers M16C / 62 Group (80-pin) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER 13 ...

Page 14

... Figure 1.6.1. Example reset circuit X IN More than 20 cycles are needed Single chip mode RESET BCLK BCLK Address Figure 1.6.2. Reset sequence RESET 24cycles FFFFC Content of reset vector 16 FFFFE 16 Mitsubishi microcomputers M16C / 62 Group (80-pin) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER 4.0V 0.8V ...

Page 15

... Table 1.6.1. Pin status when RESET pin level is “L” Pin name P0, P2, P3 P5, P6 P10 ____________ ____________ Status CNV = Input port (floating) Mitsubishi microcomputers M16C / 62 Group (80-pin) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER 15 ...

Page 16

... SS 16 Mitsubishi microcomputers M16C / 62 Group (80-pin) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER (0053 )··· (0054 )··· (0055 )··· ...

Page 17

... The content of other registers and RAM is undefined when the microcomputer is reset. The initial values must therefore be set. Note1: When the V level is applied to the CNV pin Note2: This register is only exist in flash memory version. Mitsubishi microcomputers M16C / 62 Group (80-pin) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER (03D7 )··· (03DC )· ...

Page 18

... Note 2: Locations in the SFR area where nothing is allocated are reserved areas. Do not access these areas for read or write. Figure 1.7.1. Location of peripheral unit control registers (1) 18 Mitsubishi microcomputers M16C / 62 Group (80-pin) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER 0040 ...

Page 19

... Flash memory control register 0 (FMR0) 03B7 16 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 . Mitsubishi microcomputers M16C / 62 Group (80-pin) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER (Note2) (Note2) 19 ...

Page 20

... But the relevant registers need to be dealt with as given on page 7. Note 2: Locations in the SFR area where nothing is allocated are reserved areas. Do not access these areas for read or write. Figure 1.7.3. Location of peripheral unit control registers (3) 20 M16C / 62 Group (80-pin) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER * * * * * * * * Mitsubishi microcomputers ...

Page 21

... In single-chip mode, only internal memory space (SFR, internal RAM, and internal ROM) can be ac- cessed. Ports P0 to P10 can be used as programmable I/O ports or as I/O ports for the internal peripheral functions. Figure 1.8.1 shows the processor mode register 0 and 1. Figure 1.8.2 shows the memory map. Mitsubishi microcomputers M16C / 62 Group (80-pin) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER ) applies a (software) reset to the 16 ...

Page 22

... ROM of more than 192K bytes, set this bit the beginning of user program. Specify D0000 or a subsequent address, which becomes an internal ROM area 16 if PM13 is set the time reset is revoked, for the reset vector table of user program. Mitsubishi microcomputers M16C / 62 Group (80-pin) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER When reset 00 16 ...

Page 23

... E0000 16 16 02BFF F0000 16 16 02BFF E0000 16 16 02BFF E8000 16 16 053FF C0000 16 16 Mitsubishi microcomputers M16C / 62 Group (80-pin) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER Single-chip mode 00000 16 SFR area 00400 16 Internal RAM area XXXXX 16 Reserved area YYYYY 16 Internal ROM area FFFFF ...

Page 24

... Note: Before attempting to change the contents of the processor mode register 1, set bit 1 of the protect register (address 000A Table 1.8.1. Software waits and bus cycles Area Wait bit SFR Invalid 0 Internal ROM/RAM “1”. 16 Bus cycle 2 BCLK cycles 1 BCLK cycle 2 BCLK cycles Mitsubishi microcomputers M16C / 62 Group (80-pin) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER ...

Page 25

... After this bus cycle sometimes come read and write cycles in succession. Figure 1.8.3. Typical bus timings using software wait SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER Bus cycle (Note) Output Input Address Address Bus cycle (Note) Output Address Mitsubishi microcomputers M16C / 62 Group (80-pin) Input Address 25 ...

Page 26

... Externally derived clock can be input OUT (Note OUT (Note COUT Mitsubishi microcomputers M16C / 62 Group (80-pin) 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 ...

Page 27

... CIN 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 / 62 Group (80-pin) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER f C32 SIO2 SIO2 SIO2 CM07=0 a ...

Page 28

... WAIT instruction. 16 Mitsubishi microcomputers M16C / 62 Group (80-pin) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER ). Stopping the 16 ), the sub-clock can However, be sure the memory expan changes to “1” when shifting from high- ...

Page 29

... Division by 2 mode Division by 4 mode Division by 16 mode ) to “1” before writing to this register. 16 turns “H”, and the built-in feedback resistor is cut off. X OUT Mitsubishi microcomputers M16C / 62 Group (80-pin) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER Function R 7 generation ...

Page 30

... When shifting from low-speed/low power dissipation mode 16 Single-chip mode Retains status before stop mode “H” Retains status before stop mode Mitsubishi microcomputers M16C / 62 Group (80-pin) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER ) enable stops all oscillation and the microcom- ...

Page 31

... Does not stop when the WAIT peripheral function clock stop bit 32 is “0”. When the WAIT peripheral function clock stop bit is “1”, the sta- tus immediately prior to entering wait mode is retained. Mitsubishi microcomputers M16C / 62 Group (80-pin) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER Single-chip mode 31 ...

Page 32

... Invalid 0 0 Invalid Invalid 0 1 Invalid 1 1 Mitsubishi microcomputers M16C / 62 Group (80-pin) or vice versa, the clock to which CIN 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 33

... 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.9.5 is the state transition diagram of the above modes. Mitsubishi microcomputers M16C / 62 Group (80-pin) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER ...

Page 34

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

Page 35

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

Page 36

... Peripheral I/O (Note) 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. Mitsubishi microcomputers M16C / 62 Group (80-pin) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER Undefined instruction (UND instruction) Overflow (INTO instruction) ...

Page 37

... 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 M16C / 62 Group (80-pin) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER 37 ...

Page 38

... These are interrupts that timer B generates. ________ • INT0 interrupt through INT2 interrupt ______ An INT interrupt occurs if either a rising edge or a falling edge or a both edge is input to the INT pin. 38 ____________ _______ ___ ________ Mitsubishi microcomputers M16C / 62 Group (80-pin) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER ______ ...

Page 39

... 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 16 16 Mitsubishi microcomputers M16C / 62 Group (80-pin) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER LSB High address Remarks , program execution starts from 16 _______ 39 ...

Page 40

... UART2 transmit/NACK (Note 2) UART2 receive/ACK (Note 2) 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 Mitsubishi microcomputers M16C / 62 Group (80-pin) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER Remarks Cannot be masked I flag Cannot be masked I flag ). 16 ...

Page 41

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

Page 42

... INT5IC are shared with S3IC and S4IC respectively. When not using as S3IC and S4IC, must set INT3IC to "00 ". 16 interrupt request for that register. For details, see the precautions for interrupts. Mitsubishi microcomputers M16C / 62 Group (80-pin) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER When reset XXXXX000 ...

Page 43

... High Mitsubishi microcomputers M16C / 62 Group (80-pin) 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 44

... Instructions : AND, OR, BCLR, BSET 44 ; 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. Mitsubishi microcomputers M16C / 62 Group (80-pin) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER ...

Page 45

... Time from interrupt request is generated to when the instruction then under execution is completed. (b) Time in which the instruction sequence is executed. Figure 1.10.4. Interrupt response time Interrupt request acknowledged Interrupt sequence (a) (b) Interrupt response time Mitsubishi microcomputers M16C / 62 Group (80-pin) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER Time Instruction in interrupt routine 45 ...

Page 46

... Odd 20 cycles (Note 1) ________ Indeterminate SP-2 SP-2 Indeterminate contents Indeterminate Mitsubishi microcomputers M16C / 62 Group (80-pin) 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 ...

Page 47

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

Page 48

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

Page 49

... Figure 1.10.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.10.9 shows the circuit that judges the interrupt priority level. Mitsubishi microcomputers M16C / 62 Group (80-pin) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER 49 ...

Page 50

... NMI Reset Figure 1.10.9. Maskable interrupts priorities (peripheral I/O interrupts) 50 SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER Level 0 (initial value) High Priority of peripheral I/O interrupts (if priority levels are same) Low Interrupt request level judgment output To clock generating circuit (Fig.1.9.3) Mitsubishi microcomputers M16C / 62 Group (80-pin) Interrupt request accepted ...

Page 51

... INT5 interrupt polarity switching bit (Note 1) IFSR6 Interrupt request cause select bit IFSR7 Interrupt request cause select bit the setting value of these bits are invalid. Mitsubishi microcomputers M16C / 62 Group (80-pin) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER When reset Function 0 : One edge ...

Page 52

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

Page 53

... 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. Mitsubishi microcomputers M16C / 62 Group (80-pin) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER When reset XXXXXX00 2 Function Interrupt disabled ...

Page 54

... Reading the contents of the P8 register 5 _______ _______ _______ _______ Mitsubishi microcomputers M16C / 62 Group (80-pin) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER will then be set to “0” Accepting an interrupt 16 _______ ________ ...

Page 55

... 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. Mitsubishi microcomputers M16C / 62 Group (80-pin) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER 55 ...

Page 56

... X watchdog timer count (32768) BCLK ). 16 Prescaler “CM07 = 0” “WDC7 = 0” 1/16 “CM07 = 0” “WDC7 = 1” 1/128 “CM07 = 1” 1/2 Mitsubishi microcomputers M16C / 62 Group (80-pin) 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 57

... Symbol Address WDTS 000E 16 Function The watchdog timer is initialized and starts counting after a write instruction to this register. The watchdog timer value is always initialized to “7FFF regardless of whatever value is written. Mitsubishi microcomputers M16C / 62 Group (80-pin) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER When reset 000XXXXX 2 Function R W Must always be set to “ ...

Page 58

... 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. Mitsubishi microcomputers M16C / 62 Group (80-pin) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER (addresses 0022 to 0020 ) 16 16 (addresses 0026 to 0024 ...

Page 59

... DMA enable bit is “0”. 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. Mitsubishi microcomputers M16C / 62 Group (80-pin) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER to 003F ...

Page 60

... If software trigger is selected, a Software DMA DSR DMA request is generated by request bit setting this bit to “1” (When read, the value of this bit is always “0”) Mitsubishi microcomputers M16C / 62 Group (80-pin) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER When reset 00 16 Function Falling edge of INT0 pin ...

Page 61

... Source address direction 0 : Fixed DSD select bit (Note Forward Destination address 0 : Fixed DAD direction select bit (Note Forward cannot be set to “1” simultaneously. Mitsubishi microcomputers M16C / 62 Group (80-pin) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER When reset 00 16 Function R W /serial I/O3 (DMS=1) /serial I/O4 (DMS=1) ...

Page 62

... 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 Mitsubishi microcomputers M16C / 62 Group (80-pin) Address When reset 0022 to 0020 Indeterminate 16 ...

Page 63

... For example (2) in Figure 1.12.5, if data is being transferred in 16-bit units on an 8-bit bus, two bus cycles are required for both the source read cycle and the destination write cycle. Mitsubishi microcomputers M16C / 62 Group (80-pin) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER ...

Page 64

... Dummy Source Destination cycle Dummy Source Destination cycle Source Source + 1 Destination Source Source + 1 Mitsubishi microcomputers M16C / 62 Group (80-pin) 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 65

... Coefficient j, k Internal memory Internal ROM/RAM Internal ROM/RAM No wait 1 Access address No. of read cycles Even Odd Even Odd SFR area With wait 2 2 Mitsubishi microcomputers M16C / 62 Group (80-pin) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER Single-chip mode No. of write cycles ...

Page 66

... 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. 66 Mitsubishi microcomputers M16C / 62 Group (80-pin) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER ...

Page 67

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

Page 68

... Event counter mode • Timer mode • One-shot mode • PWM mode • Event counter mode , SCL and the TB5 pin careful Mitsubishi microcomputers M16C / 62 Group (80-pin) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER Clock prescaler f C32 1/32 Reset Timer A0 interrupt Timer A0 ...

Page 69

... Pulse width measuring mode Noise filter • Event counter mode ) is shared with RxD , SCL and the TA0 pin careful Mitsubishi microcomputers M16C / 62 Group (80-pin) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER Clock prescaler f 1/32 C32 Reset ) set to “1” Timer B0 interrupt Timer B0 ...

Page 70

... TMOD1 MR0 Function varies with each operation mode MR1 MR2 MR3 TCK0 Count source select bit (Function varies with each operation mode) TCK1 Mitsubishi microcomputers M16C / 62 Group (80-pin) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER ”. 16 Low-order High-order 8 bits 8 bits Reload register (16) Counter (16) ...

Page 71

... Timer A3 two-phase pulse signal processing select bit TA4P Timer A4 two-phase pulse signal processing select bit Note: Since timer A2 have no pin to perform input/output, must set "0" in this bit. Mitsubishi microcomputers M16C / 62 Group (80-pin) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER Address When reset 0387 ...

Page 72

... 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 Mitsubishi microcomputers M16C / 62 Group (80-pin) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER Function 1 : Timer start When read, the value is “0” ...

Page 73

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

Page 74

... When “H”, OUT the upcount is activated. Set the corresponding port direction register to “0”. Mitsubishi microcomputers M16C / 62 Group (80-pin) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER n : Set value pin’s polarity is reversed OUT ). Function ...

Page 75

... 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 and TAi IN OUT Mitsubishi microcomputers M16C / 62 Group (80-pin) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER or TAi pin IN OUT n : Set value pin is “H” Down Down Down count ...

Page 76

... 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 Mitsubishi microcomputers M16C / 62 Group (80-pin) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER 00 16 ...

Page 77

... C32 pin is selected by the event/trigger select bit iIN (addresses 0382 and 0383 ). If timer overflow is selected, this bit can be “1” or “0” Mitsubishi microcomputers M16C / 62 Group (80-pin) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER Function pin is a normal port pin) ...

Page 78

... C32 pin is selected by the event/trigger select bit iIN (addresses 0382 and 0383 ). If timer overflow is selected, this bit can be “1” or “0” Mitsubishi microcomputers M16C / 62 Group (80-pin) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER m : values set to timer Ai register’s low-order address ). ...

Page 79

... – Cleared to “0” when interrupt request is accepted, or cleaerd by software , f ) C32 and TAi IN Mitsubishi microcomputers M16C / 62 Group (80-pin) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER ). 8 ). OUT 79 ...

Page 80

... Function varies with each operation mode MR1 MR2 MR3 TCK0 Count source select bit (Function varies with each operation mode) TCK1 Mitsubishi microcomputers M16C / 62 Group (80-pin) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER Data bus high-order bits Data bus low-order bits High-order 8 bits Low-order 8 bits Reload register (16) ...

Page 81

... Timer B5 count start flag Symbol Address When reset CPSRF 0381 0XXXXXXX 16 Bit symbol Bit name effect CPSR Clock prescaler reset flag 1 : Prescaler is reset Mitsubishi microcomputers M16C / 62 Group (80-pin) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER Address When reset , 0390 Indeterminate 0392 Indeterminate 0394 ...

Page 82

... 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 / 62 Group (80-pin) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER When reset 00XX0000 2 00XX0000 2 Function R ...

Page 83

... Note 2: Timer B0, timer B3. Note 3: Timer B1, timer B2, timer B4, timer B5. Note 4: Set the corresponding port direction register to “0”. Since Timer B1 does not have TB1 pin, do not use TB1 pin as event clock Mitsubishi microcomputers M16C / 62 Group (80-pin) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER 2 2 Function R W ...

Page 84

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

Page 85

... 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. Mitsubishi microcomputers M16C / 62 Group (80-pin) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER Transfer (measured value) (Note 1) (Note 2) Transfer (measured value) (Note 1) (Note 1) (Note 2) ...

Page 86

... Impossible Possible (Note 3) Possible Impossible Impossible CMOS output CMOS output Impossible Impossible Impossible Impossible do not connect to outside, this function cannot be used. 2 Mitsubishi microcomputers M16C / 62 Group (80-pin) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER UART1 UART2 (Note 1) Possible (Note 5) (Note 1) Possible (Note 2) (Note 1) Possible (Note 1) ...

Page 87

... Clock synchronous type (when internal clock is selected) 1 Values set to UART0 bit rate generator (BRG0 Values set to UART1 bit rate generator (BRG1 Values set to UART2 bit rate generator (BRG2) Mitsubishi microcomputers M16C / 62 Group (80-pin) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER Receive Reception clock Transmit/ ...

Page 88

... 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 Mitsubishi microcomputers M16C / 62 Group (80-pin) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER UARTi receive register UARTi receive ...

Page 89

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

Page 90

... Symbol Address U0BRG 03A1 16 U1BRG 03A9 16 U2BRG 0379 16 Function Assuming that set value = n, BRGi divides the count source Mitsubishi microcomputers M16C / 62 Group (80-pin) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER When reset Indeterminate Indeterminate Indeterminate Function When reset Indeterminate Indeterminate Indeterminate Function Function ...

Page 91

... Odd/even parity select bit Parity enable bit TxD, RxD I/O polarity reverse bit 2 ” when I C mode is used. 2 Mitsubishi microcomputers M16C / 62 Group (80-pin) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER Function R W (During UART mode Transfer data 7 bits long Transfer data 8 bits long ...

Page 92

... Transmit data is output at rising edge of transfer clock and receive data is input at falling edge 0 : LSB first select bit (Note MSB first M16C/62 (80-pin version) group. Mitsubishi microcomputers M16C / 62 Group (80-pin) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER Function R W (During UART mode ...

Page 93

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

Page 94

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

Page 95

... 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 Mitsubishi microcomputers M16C / 62 Group (80-pin) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER Specification , 03A8 16 16 ...

Page 96

... Reception is enabled simultaneously by a read from the receive buffer register UART1 transfer clock can be chosen by software to be output from one of the two pins set _______ _______ _______ _______ UART0 CTS and RTS pins each can be assigned to separate pins Mitsubishi microcomputers M16C / 62 Group (80-pin) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER Specification _______ _______ ...

Page 97

... CKDIR Internal/external clock select bit STPS PRY Invalid in clock synchronous serial I/O mode PRYE SLEP 0 (Must always be “0” in clock synchronous serial I/O mode) Mitsubishi microcomputers M16C / 62 Group (80-pin) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER When reset 00 16 Function Clock synchronous serial ...

Page 98

... 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 _______ _______ Mitsubishi microcomputers M16C / 62 Group (80-pin) _______ )= “0” 03A8 ) = “0” ...

Page 99

... 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 Mitsubishi microcomputers M16C / 62 Group (80-pin) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER Stopped pulsing because transfer enable bit = “0” D ...

Page 100

... Note: This applies when the CLK polarity select bit = “0”. Mitsubishi microcomputers M16C / 62 Group (80-pin) 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 101

... Clock asynchronous serial I/O (UART) mode.” Note that this function is invalid if the transfer clock output from the multiple pins function is selected. _______ _______ ) CLK Mitsubishi microcomputers M16C / 62 Group (80-pin) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER ). (See Figure 1.14.3 CLK , bit 5 at address 037D ...

Page 102

... 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 _______ _______ Mitsubishi microcomputers M16C / 62 Group (80-pin) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER , 03A8 , 0378 03A8 =“ ...

Page 103

... This function is reversing logic value of transferring data. Start bit, parity bit and stop bit are not reversed. This function is reversing TxD port output and RxD port input. All I/O data level is reversed. Mitsubishi microcomputers M16C / 62 Group (80-pin) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER 103 ...

Page 104

... PRY Odd / even parity select bit PRYE Parity enable bit IOPOL TxD, RxD I/O polarity reverse bit (Note) Note: Usually set to “0”. Mitsubishi microcomputers M16C / 62 Group (80-pin) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER When reset Function Transfer data 7 bits long ...

Page 105

... 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 ) does not have external port, select CTS/RTS function inhavit (bit 4 at address Mitsubishi microcomputers M16C / 62 Group (80-pin) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER , 03A8 ) = “ ...

Page 106

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

Page 107

... Cleared to “0” when interrupt request is accepted, or cleared by software frequency of BRG2 count source ( value set to BRG2 Mitsubishi microcomputers M16C / 62 Group (80-pin) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER ...

Page 108

... RTS0 ( CTS0 ( _______ _______ Mitsubishi microcomputers M16C / 62 Group (80-pin) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER Stop bit _______ ) to “1” inputs/outputs the CTS signal and 16 _______ _______ _______ _______ _______ ). OUT CTS RTS ...

Page 109

... Figure 1.14.21. Detection timing of a bus collision (in UART mode assigned 1, data is inverted in writing to the Mitsubishi microcomputers M16C / 62 Group (80-pin) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER Start bit P : Even parity SP : Stop bit Start bit SP : Stop bit 109 ...

Page 110

... On the transmission side, a parity error is detected by the level of input to the RxD pin when a transmission interrupt occurs that is set to the UARTi bit rate generator Mitsubishi microcomputers M16C / 62 Group (80-pin) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER = “101 16 = “0” “1” and “1” respectively “ ...

Page 111

... Read to receive buffer Cleared to “0” when interrupt request is accepted, or cleared by software frequency of BRG2 count source ( value set to BRG2 Mitsubishi microcomputers M16C / 62 Group (80-pin) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER Note ...

Page 112

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

Page 113

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

Page 114

... Reading the terminal when 0 is assigned to the direction register H level (when 0 is assigned to the CLK polarity select bit mode is in use. Mitsubishi microcomputers M16C / 62 Group (80-pin) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER 16 Function (During UART mode) Must always be “0” Must always be “0” ...

Page 115

... SDA, clock input respectively. A delay circuit is added to the SDA transmission output staying “H”. The stop condition detection interrupt 1 Mitsubishi microcomputers M16C / 62 Group (80-pin) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER 2 C bus) interface are explained mode selection bit. ...

Page 116

... 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 P7 1 116 ) is used as the arbitration loss detecting flag control bit. 16 data register to “0” in synchronization with the SCL terminal level going to “L”. Mitsubishi microcomputers M16C / 62 Group (80-pin) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER ...

Page 117

... CLK TxD Enabling transmission With "1: falling edge of RxD " selected 2 CLK TxD RxD Figure 1.14.28. Some other functions added M16C / 62 Group (80-pin) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER level and TxD level do not match, but the nonconfor Timer A0 overflow Mitsubishi microcomputers 117 ...

Page 118

... SCL wait output bit 2 0: UART2 clock 1: 0 output 0: Enabled SDA output disable bit 1: Disabled (high impedance) Start/stop condition Set this bit to “1” control bit (refer to Table 1.14.11) Mitsubishi microcomputers M16C / 62 Group (80-pin) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER 2 C mode, but is not Function 2 ...

Page 119

... The rising edge of the final bit of the reception clock ) of the main clock. IN Duration for Duration for setting up holding Mitsubishi microcomputers M16C / 62 Group (80-pin mode selection bit mode IICM2 = 1 of the final bit of the clock) UART2 reception (the falling edge ...

Page 120

... Timer mode used as the SCL wait output bit. Setting this bit to 16 Mitsubishi microcomputers M16C / 62 Group (80-pin) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER To DMA0, DMA1 IICM=0 UART2 transmission/ or IICM2=1 NACK interrupt request IICM=1 and IICM2=0 ...

Page 121

... UART2 transfer clock. There can be instances in which arbitration lost detection flag is turned on. M16C / 62 Group (80-pin) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER ) is used as the UART2 initialization bit used as the SCL pin wait output bit 2. Setting this used as the SDA output disable bit. Setting this bit 16 Mitsubishi microcomputers 121 ...

Page 122

... IN3 Figure 1.14.31. S I/O3, 4 block diagram 122 SMi1 SMi0 Synchronous 1/2 circuit SMi3 Transfer rate register (8) SMi6 SMi6 S I/O counter i (3) SMi2 SMi3 SMi5 LSB MSB S I/Oi transmission/reception register (8) , 0367 ). 16 16 Mitsubishi microcomputers M16C / 62 Group (80-pin) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER Data bus 1/(ni+1) S I/Oi interrupt request 8 ...

Page 123

... Symbol Address S3BRG 0363 16 S4BRG 0367 16 Indeterminate Symbol Address S3TRR 0360 16 S4TRR 0364 16 Indeterminate Mitsubishi microcomputers M16C / 62 Group (80-pin) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER 40 16 Description output i output disable (high impedance) i output, CLK function ) in advance to write to the 16 . "1" ...

Page 124

... OUTi through FF set in the S I/Oi transfer rate register ( 4). 16 initial value set bit), make sure the CLKi pin input is held high. OUTi Mitsubishi microcomputers M16C / 62 Group (80-pin) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER , 0366 = “1”): f1/2(ni+1 0366 ...

Page 125

... OUT port select bit ="1". SOU Mitsubishi microcomputers M16C / 62 Group (80-pin) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER pin output level during a non-transfer OUTi S I/Oi port select bit SMi3 = 0 SOUTi initial value select bit ...

Page 126

... AD 8-bit resolution: 28 cycles, 10-bit resolution exceeds 10MHz, and make IN frequency to 250kHz min. AD frequency to 1MHz min. AD Mitsubishi microcomputers M16C / 62 Group (80-pin) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER ) when the A-D REF , reducing the power REF to connect V 16 /divide-by =f(X ...

Page 127

... A-D control register 0 (address 03D6 16 Decoder CH2,CH1,CH0=000 CH2,CH1,CH0=001 CH2,CH1,CH0=010 CH2,CH1,CH0=011 OPA1,OPA0=0,0 CH2,CH1,CH0=100 CH2,CH1,CH0=101 CH2,CH1,CH0=110 CH2,CH1,CH0=111 OPA1,OPA0=1,1 OPA0=1 OPA1,OPA0=0,1 OPA1=1 Mitsubishi microcomputers M16C / 62 Group (80-pin) AD A-D conversion rate selection ) ) V ref Comparator V IN OPA1, OPA0 Normal operation ANEX0 ANEX1 External op-amp mode ...

Page 128

... OPA0 ANEX0 and ANEX1 are not used connection mode bit ANEX0 input is A-D converted ANEX1 input is A-D converted OPA1 External op-amp connection mode indeterminate. Mitsubishi microcomputers M16C / 62 Group (80-pin) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER 2 Function R is selected 0 is selected ...

Page 129

... Two high-order bits of A-D conversion result • 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”. Mitsubishi microcomputers M16C / 62 Group (80-pin) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER When reset 0000XXX0 2 ...

Page 130

... ANEX0 and ANEX1 are not used connection mode bit ANEX0 input is A-D converted ANEX1 input is A-D converted OPA1 External op-amp connection mode Note: If the A-D control register is rewritten during A-D conversion, the conversion result is indeterminate. Mitsubishi microcomputers M16C / 62 Group (80-pin) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER 2 Function selected ...

Page 131

... ANEX0 and ANEX1 are not used connection mode bit ANEX0 input is A-D converted ANEX1 input is A-D converted OPA1 External op-amp connection mode Note: If the A-D control register is rewritten during A-D conversion, the conversion result is indeterminate. Mitsubishi microcomputers M16C / 62 Group (80-pin) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER 2 Function selected ...

Page 132

... OPA0 ANEX0 and ANEX1 are not used connection mode ANEX0 input is A-D converted bit (Note ANEX1 input is A-D converted OPA1 External op-amp connection mode is indeterminate. Mitsubishi microcomputers M16C / 62 Group (80-pin) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER pins ...

Page 133

... OPA0 ANEX0 and ANEX1 are not used connection mode ANEX0 input is A-D converted bit (Note ANEX1 input is A-D converted OPA1 External op-amp connection mode is indeterminate. Mitsubishi microcomputers M16C / 62 Group (80-pin) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER pins ...

Page 134

... 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: Neither ‘01’ nor ‘10’ can be selected with the external op-amp connection mode bit. Mitsubishi microcomputers M16C / 62 Group (80-pin) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER AN ...

Page 135

... AN 16 Resistor ladder Successive conversion register ANEX0 ANEX1 Mitsubishi microcomputers M16C / 62 Group (80-pin) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER ) to “1”. When Comparator is 7 135 ...

Page 136

... Figure 1.16.1. Block diagram of D-A converter 136 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 Mitsubishi microcomputers M16C / 62 Group (80-pin) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER ) ...

Page 137

... DA1E D-A1 output enable bit 1 : Output enabled Symbol Address DAi (i = 0,1) 03D8 03DA Indeterminate Function Output value of D-A conversion Mitsubishi microcomputers M16C / 62 Group (80-pin) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER When reset 00 16 Function R W When reset ...

Page 138

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

Page 139

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

Page 140

... The pull-up control register can be set to apply a pull-up resistance to each block of 4 ports. When ports are set to have a pull-up resistance, the pull-up resistance is connected only when the direction register is set for input. 140 is input port are not connected to external pins Mitsubishi microcomputers M16C / 62 Group (80-pin) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER ...

Page 141

... Pull-up selection Direction register Data bus Port latch Input to respective peripheral functions are not connected to external pins, but are present within the 5 1 Mitsubishi microcomputers M16C / 62 Group (80-pin) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER "1" Output (Note 1) (Note 1) (Note 1) (Note 1) 141 ...

Page 142

... Pull-up selection "1" Output Port latch NMI interrupt input "1" Output Port latch , are not connected to external pins, but are present Mitsubishi microcomputers M16C / 62 Group (80-pin) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER (Note1) (Note1) (Note1) (Note1) (Note2) ...

Page 143

... Do not apply a voltage higher than Vcc to each port are not connected to external pins, but are present within the microcomputer. Mitsubishi microcomputers M16C / 62 Group (80-pin) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER (Note 1) (Note 1) (Note 1) (Note 1) 143 ...

Page 144

... are not connected to external pins, but are present within the microcomputer. symbolizes a parasitic diode. side is added to the mask ROM version. CC Mitsubishi microcomputers M16C / 62 Group (80-pin) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER (Note (Note 1) (Note2) (Note1) (Note2) (Note1) (Note1) ...

Page 145

... Output mode Port P8 direction register 3 Port P8 direction register Input mode Port P8 direction register Output mode Port P8 direction register 7 Mitsubishi microcomputers M16C / 62 Group (80-pin) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER Address When reset , 03E6 , 03E7 , 03EA 03EF , 03F3 , 03F6 16 ...

Page 146

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

Page 147

... P10 pull- P10 to P10 pull- not connected to external pins, but are present within the microcomputer set the unused pin processing. Mitsubishi microcomputers M16C / 62 Group (80-pin) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER When reset 00 16 Function R W When reset 00 (Note 2) 16 ...

Page 148

... · · · · · · Open NMI X Open OUT BYTE REF are not connected to external pins Mitsubishi microcomputers M16C / 62 Group (80-pin) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER Connection via a resistor; SS (pull-up) ...

Page 149

... 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 Mitsubishi microcomputers M16C / 62 Group (80-pin) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER ”. Reading the 16 ” ...

Page 150

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

Page 151

... Enable interrupts. line is long, you should insert an approximately 5K ohm SS pin and connect and V pin for noise and latch up countermeasure Mitsubishi microcomputers M16C / 62 Group (80-pin) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER should be a short line for improve and 151 ...

Page 152

... Figure 1.19.1. Programming and test flow for One Time PROM version 152 Programming with PROM programmer Screening (Note) (Leave at 150˚C for 40 hours) Verify test PROM programmer Function check in target device Note: Never expose to 150˚C exceeding 100 hours. Mitsubishi microcomputers M16C / 62 Group (80-pin) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER ...

Page 153

... 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 M16C / 62 Group (80-pin) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER 153 ...

Page 154

... OUT 1 Ta=25 Mitsubishi microcomputers M16C / 62 Group (80-pin) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER Rated value -0 -0.3 to 6.5 -0.3 to Vcc+0.3 -0.3 to 6.5(Note 1) -0.3 to Vcc+0.3 -0.3 to 6.5 C 300 - -40 to 85(Note 2) -65 to 150 Unit ...

Page 155

... Main clock input oscillation frequency (Mask ROM, No wait) (EPROM, One-time PROM, With wait) 16.0 7. 14.791MH 7.0 0.0 0.0 2.7 4.2 5.5 2.7 [V] Supply voltage (BCLK: no division) Mitsubishi microcomputers M16C / 62 Group (80-pin) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER = 2. – Standard Max. Min. Typ. 2.7 5.0 5.5 Vcc 0 0 0.8Vcc Vcc , 0.8Vcc 6.5 ...

Page 156

... Ta=25°C when clock is stopped 5° C32 Mitsubishi microcomputers M16C / 62 Group (80-pin) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER 5V ...

Page 157

... REF REF CC ) exceeds 10 MHz, and make ØAD equal to or lower than 10 MHz 16MHz unless otherwise specified) IN Measuring condition Note ( ) Mitsubishi microcomputers M16C / 62 Group (80-pin) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER 5V, Vss = REF SS Standard Min. Typ. Max. 10 ±3 input ± ...

Page 158

... External clock input LOW pulse width w(L) t External clock rise time External clock fall time 158 SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER unless otherwise specified Parameter Mitsubishi microcomputers M16C / 62 Group (80-pin Standard Unit Min. Max ...

Page 159

... IN OUT t TAi input hold time h(T UP) OUT IN- SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER = 5V Parameter Parameter Parameter Parameter Parameter Mitsubishi microcomputers M16C / 62 Group (80-pin unless otherwise specified) Standard Unit Min. Max. ns 100 Standard Unit Min. ...

Page 160

... INTi input HIGH pulse width t w(INL) INTi input LOW pulse width 160 = 5V Parameter Parameter Parameter Parameter Parameter _______ Parameter Mitsubishi microcomputers M16C / 62 Group (80-pin) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER unless otherwise specified) Standard Unit Min. Max. 100 ...

Page 161

... CLKi TxDi RxDi INTi input SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER 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(AD) t w(ADL) t c(CK) t w(CKH) t w(CKL d(C–Q) su(D–C) t w(INL) t w(INH) Mitsubishi microcomputers M16C / 62 Group (80-pin su(UP– h(C–Q) t h(C–D) 161 ...

Page 162

... EPROM,One-time PROM, mask ROM versions C32 Mitsubishi microcomputers M16C / 62 Group (80-pin) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER 3V ...

Page 163

... C, f 7MHz unless otherwise specified) IN Measuring condition REF REF REF 7MHz(Note2) unless otherwise specified) IN Measuring condition (Note1) Mitsubishi microcomputers M16C / 62 Group (80-pin) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER 3V REF SS Standard Min. Typ. Max 10 ±2 = 3V, = f(X )/ ...

Page 164

... CC SS Parameter One-time PROM, EPROM versions Mask ROM, Flash memory 5V versions One-time PROM, EPROM versions Mask ROM, Flash memory 5V versions One-time PROM, EPROM versions Mask ROM, Flash memory 5V versions Mitsubishi microcomputers M16C / 62 Group (80-pin unless otherwise specified) Standard Unit Min ...

Page 165

... OUT IN t TAi input hold time h(T UP) OUT IN- SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER Parameter Parameter Parameter Parameter Parameter Mitsubishi microcomputers M16C / 62 Group (80-pin unless otherwise specified) Standard Unit Min. Max. 150 Standard Unit Min. Max. ...

Page 166

... INTi input HIGH pulse width w(INH) t INTi input LOW pulse width w(INL) 166 = 3V Parameter Parameter Parameter Parameter Parameter _______ Parameter Mitsubishi microcomputers M16C / 62 Group (80-pin) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER unless otherwise specified) Standard Unit Min. Max. 150 ...

Page 167

... CLKi TxDi RxDi INTi input SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER 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(AD) t w(ADL) t c(CK) t w(CKH) t w(CKL d(C–Q) su(D–C) t w(INL) t w(INH) Mitsubishi microcomputers M16C / 62 Group (80-pin su(UP– h(C–Q) t h(C–D) 167 ...

Page 168

... Mitsubishi will create the mask using the data on the EPROMs supplied, providing the data is the same on at least two of those sets. Mitsubishi will, therefore, only accept liability if there is any discrepancy between the data on the EPROM sets and the ROM data written to the product. ...

Page 169

... In the case of floppy disks Mitsubishi processes the mask files generated by the mask file generation utilities out of those held on the floppy disks you give in to us, and forms them into masks. Hence, we assume liability provided that there is any discrepancy between the contents of these mask files and the ROM data to be burned into products we produce ...

Page 170

... GZZ SH12 59B <82A0> MITSUBISHI ELECTRIC SINGLE-CHIP 16-BIT MICROCOMPUTER M30621M8-XXXGP MASK ROM CONFIRMATION FORM (2) Which kind of X CIN Ceramic resonator External clock input What frequency do you use? f CIN (3) Which operation mode do you use? Single-chip mode Microprocessor mode (4) Which operating ambient temperature do you use? – ...

Page 171

... Mitsubishi will create the mask using the data on the EPROMs supplied, providing the data is the same on at least two of those sets. Mitsubishi will, therefore, only accept liability if there is any discrepancy between the data on the EPROM sets and the ROM data written to the product. ...

Page 172

... In the case of floppy disks Mitsubishi processes the mask files generated by the mask file generation utilities out of those held on the floppy disks you give in to us, and forms them into masks. Hence, we assume liability provided that there is any discrepancy between the contents of these mask files and the ROM data to be burned into products we produce ...

Page 173

... GZZ SH12 61B <82A0> MITSUBISHI ELECTRIC SINGLE-CHIP 16-BIT MICROCOMPUTER M30621MA-XXXGP MASK ROM CONFIRMATION FORM (2) Which kind CIN COUT Ceramic resonator External clock input What frequency do you use? f CIN (3) Which operation mode do you use? Single-chip mode Microprocessor mode (4) Which operating ambient temperature do you use? – ...

Page 174

... Mitsubishi will create the mask using the data on the EPROMs supplied, providing the data is the same on at least two of those sets. Mitsubishi will, therefore, only accept liability if there is any discrepancy between the data on the EPROM sets and the ROM data written to the product. ...

Page 175

... In the case of floppy disks Mitsubishi processes the mask files generated by the mask file generation utilities out of those held on the floppy disks you give in to us, and forms them into masks. Hence, we assume liability provided that there is any discrepancy between the contents of these mask files and the ROM data to be burned into products we produce ...

Page 176

... GZZ SH12 63B <82A0> MITSUBISHI ELECTRIC SINGLE-CHIP 16-BIT MICROCOMPUTER M30621MC-XXXGP MASK ROM CONFIRMATION FORM (2) Which kind of X CIN Ceramic resonator External clock input What frequency do you use? f CIN (3) Which operation mode do you use? Single-chip mode Microprocessor mode (4) Which operating ambient temperature do you use? – ...

Page 177

... Mitsubishi will create the mask using the data on the EPROMs supplied, providing the data is the same on at least two of those sets. Mitsubishi will, therefore, only accept liability if there is any discrepancy between the data on the EPROM sets and the ROM data written to the product. ...

Page 178

... In the case of floppy disks Mitsubishi processes the mask files generated by the mask file generation utilities out of those held on the floppy disks you give in to us, and forms them into masks. Hence, we assume liability provided that there is any discrepancy between the contents of these mask files and the ROM data to be burned into products we produce ...

Page 179

... GZZ SH12 75B <82A0> MITSUBISHI ELECTRIC SINGLE-CHIP 16-BIT MICROCOMPUTER M30623M4-XXXGP MASK ROM CONFIRMATION FORM (2) Which kind CIN Ceramic resonator External clock input What frequency do you use? f CIN (3) Which operation mode do you use? Single-chip mode Microprocessor mode (4) Which operating ambient temperature do you use? – ...

Page 180

... Mitsubishi will create the mask using the data on the EPROMs supplied, providing the data is the same on at least two of those sets. Mitsubishi will, therefore, only accept liability if there is any discrepancy between the data on the EPROM sets and the ROM data written to the product. ...

Page 181

... In the case of floppy disks Mitsubishi processes the mask files generated by the mask file generation utilities out of those held on the floppy disks you give in to us, and forms them into masks. Hence, we assume liability provided that there is any discrepancy between the contents of these mask files and the ROM data to be burned into products we produce ...

Page 182

... GZZ SH12 65B <82A0> MITSUBISHI ELECTRIC SINGLE-CHIP 16-BIT MICROCOMPUTER M30623M8-XXXGP MASK ROM CONFIRMATION FORM (2) Which kind of X CIN Ceramic resonator External clock input What frequency do you use? f CIN (3) Which operation mode do you use? Single-chip mode Microprocessor mode (4) Which operating ambient temperature do you use? – ...

Page 183

... Mitsubishi will create the mask using the data on the EPROMs supplied, providing the data is the same on at least two of those sets. Mitsubishi will, therefore, only accept liability if there is any discrepancy between the data on the EPROM sets and the ROM data written to the product. ...

Page 184

... In the case of floppy disks Mitsubishi processes the mask files generated by the mask file generation utilities out of those held on the floppy disks you give in to us, and forms them into masks. Hence, we assume liability provided that there is any discrepancy between the contents of these mask files and the ROM data to be burned into products we produce ...

Page 185

... GZZ SH12 67B <82A0> MITSUBISHI ELECTRIC SINGLE-CHIP 16-BIT MICROCOMPUTER M30623MA-XXXGP MASK ROM CONFIRMATION FORM (2) Which kind CIN COUT Ceramic resonator External clock input What frequency do you use? f CIN (3) Which operation mode do you use? Single-chip mode Microprocessor mode (4) Which operating ambient temperature do you use? – ...

Page 186

... Mitsubishi will create the mask using the data on the EPROMs supplied, providing the data is the same on at least two of those sets. Mitsubishi will, therefore, only accept liability if there is any discrepancy between the data on the EPROM sets and the ROM data written to the product. ...

Page 187

... In the case of floppy disks Mitsubishi processes the mask files generated by the mask file generation utilities out of those held on the floppy disks you give in to us, and forms them into masks. Hence, we assume liability provided that there is any discrepancy between the contents of these mask files and the ROM data to be burned into products we produce ...

Page 188

... GZZ SH12 04B <77A0> MITSUBISHI ELECTRIC SINGLE-CHIP 16-BIT MICROCOMPUTER M30623MC-XXXGP MASK ROM CONFIRMATION FORM (2) Which kind of X CIN Ceramic resonator External clock input What frequency do you use? f CIN (3) Which operation mode do you use? Single-chip mode Microprocessor mode (4) Which operating ambient temperature do you use? – ...

Page 189

... Mitsubishi will create the mask using the data on the EPROMs supplied, providing the data is the same on at least two of those sets. Mitsubishi will, therefore, only accept liability if there is any discrepancy between the data on the EPROM sets and the ROM data written to the product. ...

Page 190

... In the case of floppy disks Mitsubishi processes the mask files generated by the mask file generation utilities out of those held on the floppy disks you give in to us, and forms them into masks. Hence, we assume liability provided that there is any discrepancy between the contents of these mask files and the ROM data to be burned into products we produce ...

Page 191

... GZZ SH12 79B <83A0> MITSUBISHI ELECTRIC SINGLE-CHIP 16-BIT MICROCOMPUTER M30625MG-XXXGP MASK ROM CONFIRMATION FORM (2) Which kind CIN Ceramic resonator External clock input What frequency do you use? f CIN (3) Which operation mode do you use? Single-chip mode Microprocessor mode (4) Which operating ambient temperature do you use? – ...

Page 192

... RAM] CC CIN =3V, f(X )=32kHz, square wave, without wait) [operate in flash memory] CC CIN 2.7 3.6 Standard (Typ.) Read Program Erase 35mA 28mA 25mA 13.5mA - - 12mA 17mA 14mA Mitsubishi microcomputers M16C / 62 Group (80-pin) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER Remark Division program/erase Division program/erase ...

Page 193

... Block byte 0FC000 16 0FE000 Block 0 : 16K byte 0FFFFF 0FFFFF 16 User ROM area Mitsubishi microcomputers M16C / 62 Group (80-pin) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER only parallel input/output mode. (Access to any other areas is inhibited.) address in the block that is an even address byte 16 Boot ROM area ...

Page 194

... Block addresses refer to the maximum even address of each block. These addresses are used in the block erase command, lock bit program command, and read lock status command. 194 M16C / 62 Group (80-pin) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER pin low, the CNV pin high, and the Mitsubishi microcomputers pin low pin high, the 0 ...

Page 195

... When in boot mode, the function of this bit is effective regardless of whether the CPU rewrite mode off. Use the control program except in the internal flash memory to rewrite this bit. M16C / 62 Group (80-pin) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER ) is set to “1”, transition to CPU rewrite mode 16 _____ Mitsubishi microcomputers 195 ...

Page 196

... This is necessary to ensure that no interrupt or DMA transfer will be executed during the interval. Use the control program except in the internal flash memory for write to this bit. During parallel I/O mode,programming,erase or read of flash memory is not controlled by this bit,only by external pins. Mitsubishi microcomputers M16C / 62 Group (80-pin) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER ...

Page 197

... Set flash memory power supply-OFF bit to “0” Wait time until the internal circuit stabilizes (Set NOP instruction about twice vice versa, the clock to which IN CIN Mitsubishi microcomputers M16C / 62 Group (80-pin) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER *1 End *1 Wait until the X has stabilized ...

Page 198

... FFFFF 16 ). However, if the CPU rewrite mode select bit (bit 1 at address 03B7 16 ) also is set to 0 automatically. 16 Mitsubishi microcomputers M16C / 62 Group (80-pin) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER ): 16 in the user ROM block also is set to 1 automati- ...

Page 199

... Mitsubishi microcomputers M16C / 62 Group (80-pin) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER ignored Third bus cycle Data Mode Address ( ...

Page 200

... When the system finishes loading the data Read Lock Bit Status command (71 16 Start Write Write address n and data YES NO RY/BY status flag = 1? YES Check full status Page program completed Mitsubishi microcomputers M16C / 62 Group (80-pin) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER ) is written or the ...

Related keywords