M30621MCM-F52GP MITSUBISHI, M30621MCM-F52GP Datasheet

no-image

M30621MCM-F52GP

Manufacturer Part Number
M30621MCM-F52GP
Description
M30621MCM-F52GPSINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
Manufacturer
MITSUBISHI
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
M30621MCM-F52GP
Manufacturer:
TI
Quantity:
1 963
Description
Description
Features
Applications
The M16C/62A (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/62A (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.3. ROM Expansion)
• Shortest instruction execution time ...... 62.5ns (f(X
• Supply voltage ..................................... 4.2V 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/62A (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
2.7V 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
5
IN
IN
IN
shared with NMI pin)
)=16MH
)=10MH
)=16MH
IN
Z
, V
)=10MH
CC
Z
Z
=3V, with software one-wait) : Mask ROM, flash memory 5V version
Timer ............................................................. 68
Serial I/O ....................................................... 86
A-D Converter ............................................. 127
D-A Converter ............................................. 137
CRC Calculation Circuit .............................. 139
Programmable I/O Ports ............................. 141
Electric Characteristics ............................... 154
Flash memory version ................................. 183
, without software wait) : Mask ROM, flash memory 5V version
with software one-wait) : Mask ROM, flash memory 5V version
Z
, V
Z
_______
, with software one-wait, V
CC
=5V)
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
M16C / 62A Group (80-pin)
Mitsubishi microcomputers
CC
= 3V)
1

Related parts for M30621MCM-F52GP

M30621MCM-F52GP 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 ............................................. 127 D-A Converter ............................................. 137 CRC Calculation Circuit .............................. 139 Programmable I/O Ports ............................. 141 Electric Characteristics ............................... 154 Flash memory version ................................. 183 Mitsubishi microcomputers M16C / 62A Group (80-pin ...

Page 2

... Figure 1.1.1. Pin configuration (top view Mitsubishi microcomputers M16C / 62A 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 / 62A 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 ...

Page 4

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

Page 5

... Description Mitsubishi plans to release the following products in the M16C/62A (80-pin version) group: (1) Support for mask ROM version and flash memory version (2) ROM capacity (3) Package 80P6S-A : Plastic molded QFP (mask ROM and flash memory versions) ROM Size (Byte) External ROM M30625MGA-XXXGP 256K ...

Page 6

... Description Type No – Figure 1.1.4. Type No., memory size, and package 6 Mitsubishi microcomputers M16C / 62A Group (80-pin) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER Package type Package 80P6S-A ROM No. Omitted for flash memory version ROM capacity 32K bytes 8 : 64K bytes ...

Page 7

... 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 / 62A 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 / 62A 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 / 62A Group (80-pin) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER Function –P10 also function as ...

Page 10

... Internal ROM area E8000 16 C0000 16 FFFFF 16 Note: Set PM13 to “1” in M30625MGA/FGA. Otherwise set PM13 to “0”. Mitsubishi microcomputers M16C / 62A Group (80-pin) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER . The vector table for fixed interrupts 16 . The starting address of the interrupt the starting addresses of subroutines ...

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 / 62A 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 ...

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

Page 16

... UART2 transmit/receive control register 0 16 (57) UART2 transmit/receive control register )··· )··· 16 Mitsubishi microcomputers M16C / 62A Group (80-pin) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER (0053 )··· (0054 )··· (0055 )· ...

Page 17

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

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

Page 19

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

Page 21

... 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 / 62A Group (80-pin) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER ) applies a (software) reset to the ...

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

Page 23

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

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

Page 25

... Note2 : The address bus and chip select may be extended depending on the CPU status such as that of the instruction queue buffer. Figure 1.8.3. Typical bus timings using software wait SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER Bus cycle (Note1) Output Address Address Bus cycle (Note1) Output Address Mitsubishi microcomputers M16C / 62A Group (80-pin) Input Input Address 25 ...

Page 26

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

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

Page 28

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

Page 34

... CM04 = “1” )/4 BCLK : f(X )/ CM07 = “0” CM06 = “0” CM17 = “1” CM16 = “1” Mitsubishi microcomputers M16C / 62A 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 / 62A 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 / 62A Group (80-pin) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER Undefined instruction (UND 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 / 62A 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 / 62A Group (80-pin) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER ______ ...

Page 39

... FFFEF Do not use FFFF3 FFFF7 Do not use FFFFB External interrupt by input to NMI pin FFFFF 16 16 Mitsubishi microcomputers M16C / 62A Group (80-pin) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER LSB High address Remarks , program execution starts from 16 _______ 39 ...

Page 40

... 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 / 62A 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 / 62A 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 and INT4IC to "00 interrupt request for that register. For details, see the precautions for interrupts. Mitsubishi microcomputers M16C / 62A Group (80-pin) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER ...

Page 43

... High Mitsubishi microcomputers M16C / 62A 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 / 62A 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 / 62A 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 / 62A 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 / 62A Group (80-pin) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER Stack area LSB [SP] New stack Program counter ( pointer value Program counter (PC ...

Page 48

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

Page 50

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

Page 54

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

Page 55

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

Page 56

... BCLK ). 16 Prescaler “CM07 = 0” “WDC7 = 0” 1/16 “CM07 = 0” “WDC7 = 1” 1/128 “CM07 = 1” 1/2 Mitsubishi microcomputers M16C / 62A 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

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

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 / 62A 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 / 62A Group (80-pin) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER When reset 00 16 Function Falling edge of INT0 pin ...

Page 61

... 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 / 62A 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 / 62A 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 / 62A 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 / 62A 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 / 62A 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 / 62A 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 / 62A 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 / 62A Group (80-pin) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER Clock prescaler f C32 1/32 Reset Timer A0 interrupt ...

Page 69

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

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 / 62A Group (80-pin) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER ”. 16 Low-order High-order 8 bits 8 bits Reload register (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 / 62A 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 / 62A Group (80-pin) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER Function 1 : Timer start When read, the value is “ ...

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 / 62A 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 / 62A Group (80-pin) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER n : Set value pin’s polarity is reversed OUT ). Function ...

Page 75

... TAi TAi OUT Count up all edges TAi IN (i=3,4) Count up all edges and TAi IN OUT Mitsubishi microcomputers M16C / 62A Group (80-pin) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER or TAi pin IN OUT n : Set value pin is “H” Down Down Down ...

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

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 / 62A 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 / 62A 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 / 62A 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 / 62A 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 / 62A 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 / 62A 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 / 62A 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 / 62A Group (80-pin) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER Function (Note 2) (Note 3) ...

Page 85

... 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 / 62A 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

... 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 / 62A 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 (U0BRG Values set to UART1 bit rate generator (U1BRG Values set to UART2 bit rate generator (U2BRG) Mitsubishi microcomputers M16C / 62A Group (80-pin) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER Receive Reception clock ...

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

Page 90

... Address U0BRG 03A1 16 U1BRG 03A9 16 U2BRG 0379 16 Function Assuming that set value = n, BRGi divides the count source Mitsubishi microcomputers M16C / 62A 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 / 62A 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/62A (80-pin version) group. Mitsubishi microcomputers M16C / 62A 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 / 62A Group (80-pin) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER Function R W (During UART mode Transmission disabled 1 : Transmission enabled ...

Page 94

... Also, when SDDS = “0”, the U2SMR3 register cannot be read or written to. only the digital delay value is effective. Mitsubishi microcomputers M16C / 62A Group (80-pin) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER ...

Page 95

... Note cycle of 1/f cycle of 1/f cycle of 1/f cycle of 1/f cycle of 1/f cycle of 1/f(X 16 Mitsubishi microcomputers M16C / 62A Group (80-pin) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER 16 Function bus exclusive use mode ...

Page 96

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

Page 97

... Whether transmission/reception begins with bit 0 or bit 7 can be selected 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 Mitsubishi microcomputers M16C / 62A Group (80-pin) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER Specification ...

Page 98

... 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 / 62A Group (80-pin) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER When reset 00 16 Function Clock synchronous serial ...

Page 99

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

Page 100

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

Page 101

... Note: This applies when the CLK polarity select bit = “0”. Mitsubishi microcomputers M16C / 62A 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 102

... IN 5 CLK Mitsubishi microcomputers M16C / 62A Group (80-pin) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER ). (See Figure 1.14.3 CLK , bit 5 at address 037D ...

Page 103

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

Page 104

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

Page 105

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

Page 106

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

Page 107

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

Page 108

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

Page 109

... UARTi receive buffer register Cleared to “0” when interrupt request is accepted, or cleared by software ) is assigned 1, data is inverted in writing to the Mitsubishi microcomputers M16C / 62A Group (80-pin) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER Stop bit ...

Page 110

... Bus collision detection “1” interrupt request bit “0” Figure 1.14.20. Detection timing of a bus collision (in UART mode) 110 SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER ST ST Mitsubishi microcomputers M16C / 62A Group (80-pin Start bit SP : Stop bit ...

Page 111

... 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 / 62A Group (80-pin) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER = “101 16 = “0” “1” and “1” respectively “ ...

Page 112

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

Page 113

... If you choose the inverse format Mitsubishi microcomputers M16C / 62A 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 114

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

Page 115

... cycle of 1/f cycle of 1/f ”. When writing to UART2 special mode 16 Mitsubishi microcomputers M16C / 62A Group (80-pin) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER 2 C bus) interface are explained mode selection bit bus (simplified I Function R ...

Page 116

... 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 / 62A Group (80-pin) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER To DMA0, DMA1 IICM=0 UART2 transmission/ or IICM2=1 NACK interrupt request ...

Page 117

... The stop condition detection interrupt 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 / 62A Group (80-pin) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER 2 C mode select bit ...

Page 118

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

Page 119

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

Page 120

... 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 / 62A Group (80-pin) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER 2 C mode select bit 2. Table 2 C mode select bit IICM2 = 1 of the final bit of the clock) ...

Page 121

... Timer mode used as the SCL wait output bit. Setting this bit to 16 Mitsubishi microcomputers M16C / 62A 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 122

... UART2 transfer clock. There can be instances in which arbitration lost detection flag is turned on. 122 M16C / 62A 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 ...

Page 123

... IN3 Figure 1.14.30. S I/O3, 4 block diagram 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 / 62A Group (80-pin) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER Data bus 1/(ni+1) S I/Oi interrupt request 8 123 ...

Page 124

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

Page 125

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

Page 126

... OUT port select bit ="1". SOU Mitsubishi microcomputers M16C / 62A 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 127

... 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 / 62A Group (80-pin) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER ) when the A-D REF , reducing the power REF to connect V 16 /divide-by ...

Page 128

... 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 / 62A 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 129

... 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 / 62A Group (80-pin) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER 2 Function R is selected 0 is selected ...

Page 130

... 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 / 62A Group (80-pin) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER When reset 0000XXX0 2 ...

Page 131

... 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 / 62A Group (80-pin) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER 2 Function selected ...

Page 132

... 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 / 62A Group (80-pin) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER 2 Function selected ...

Page 133

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

Page 134

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

Page 135

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

Page 136

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

Page 137

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

Page 138

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

Page 139

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

Page 140

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

Page 141

... 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 are not connected to external pins Mitsubishi microcomputers M16C / 62A Group (80-pin) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER 141 ...

Page 142

... 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 / 62A Group (80-pin) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER "1" Output (Note 1) (Note 1) (Note 1) (Note 1) ...

Page 143

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

Page 144

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

Page 145

... P9 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 / 62A Group (80-pin) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER (Note (Note 1) (Note2) (Note1) (Note2) (Note1) ...

Page 146

... 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 / 62A Group (80-pin) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER Address When reset , 03E6 , 03E7 , 03EA 03EF , 03F3 , 03F6 ...

Page 147

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

Page 148

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

Page 149

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

Page 150

... 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. 150 pin is outputting an “H” level in this instance, the output level goes to “L”, and OUT Mitsubishi microcomputers M16C / 62A Group (80-pin) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER ”. Reading the 16 ” ...

Page 151

... 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 _______ Mitsubishi microcomputers M16C / 62A Group (80-pin) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER will then be set to “0” Accepting an 16 _______ ...

Page 152

... 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. and V pin for noise and latch up countermeasure Mitsubishi microcomputers M16C / 62A Group (80-pin) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER and ...

Page 153

... Please submit the following when ordering masked ROM products: (1) Mask ROM confirmation form (2) Mark specification sheet (3) ROM data : Floppy disks *: In the case of floppy disks, 3.5-inch double-sided high-density disk (IBM format) is required per pattern. Mitsubishi microcomputers M16C / 62A Group (80-pin) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER 153 ...

Page 154

... OUT 1 Ta=25 Mitsubishi microcomputers M16C / 62A 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 -0.3 to Vcc+0.3 -0.3 to 6.5 C 300 - -40 to 85(Note) -65 to 150 Unit ...

Page 155

... Vcc=4.2V to 5.5V Mask ROM, Flash memory 5V Vcc=2.7V to 4.2V version (Note5) Main clock input oscillation frequency (Mask ROM, Flash memory 5V versions, With wait) 16 10.0 0.0 5.5 Mitsubishi microcomputers M16C / 62A Group (80-pin) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER = 2. – Standard Max. Min. Typ. 2.7 5.0 5.5 Vcc ...

Page 156

... – C(Note2) unless otherwise specified) Measuring condition Note ( ) VREF o = 4.2V to 5.5V unless otherwise specified) CC Min. Mitsubishi microcomputers M16C / 62A Group (80-pin) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER 2.7V to 5.5V REF o C(Note4) unless otherwise specified) Standard Min ...

Page 157

... Square wave, Division by 4 f(X )=32kHz CIN When a WAIT instruction is executed (Note1) Ta=25 C when clock is stopped Ta=85 C when clock is stopped Mitsubishi microcomputers M16C / 62A Group (80-pin) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER 4. – Standard ...

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 – Parameter Mitsubishi microcomputers M16C / 62A 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 / 62A Group (80-pin – (*) Standard Unit Min. Max. ns 100 40 ...

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 / 62A Group (80-pin) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER – (*) Standard Unit Min ...

Page 161

... Figure 1.20.1. Vcc=5V timing diagram 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 su(D–C) d(C–Q) t w(INL) t w(INH) Mitsubishi microcomputers M16C / 62A Group (80-pin su(UP– h(C–Q) t h(C–D) 161 ...

Page 162

... When a WAIT instruction is executed. Oscillation capacity Low (Note3) Ta=25 C when clock is stopped Ta=85 C when clock is stopped Mitsubishi microcomputers M16C / 62A Group (80-pin) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER 2.7V to 3.3V – Standard ...

Page 163

... External clock input LOW pulse width t External clock rise time r t External clock fall time f SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER = 3V – Parameter Mitsubishi microcomputers M16C / 62A Group (80-pin – (*) Standard Unit Min. ...

Page 164

... OUT IN t TAi input hold time h(T UP) OUT IN- 164 SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER = 3V – Parameter Parameter Parameter Parameter Parameter Mitsubishi microcomputers M16C / 62A Group (80-pin – (*) Standard Unit Min. Max. 150 ns 60 ...

Page 165

... INTi input HIGH pulse width w(INH) t INTi input LOW pulse width w(INL – Parameter Parameter Parameter Parameter Parameter _______ Parameter Mitsubishi microcomputers M16C / 62A Group (80-pin) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER – (*) Standard Unit Min ...

Page 166

... Figure 1.20.2. Vcc=3V timing diagram 166 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 / 62A Group (80-pin su(UP– h(C–Q) t h(C–D) ...

Page 167

... Check sheet 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 168

... GZZ-SH13-56B<98A0> MITSUBISHI ELECTRIC-CHIP 16-BIT MICROCOMPUTER M30621M8A-XXXGP MASK ROM CONFIRMATION FORM (2) Which kind CIN COUT Ceramic resonator External clock input What frequency do not use? f CIN (3) Which operating supply voltage do you use? (Circle the operating voltage range of use) 2.4 2.7 3.0 3.3 (4) Which operating ambient temperature do you use? ...

Page 169

... Check sheet 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-SH13-57B<98A0> MITSUBISHI ELECTRIC-CHIP 16-BIT MICROCOMPUTER M30621MAA-XXXGP MASK ROM CONFIRMATION FORM (2) Which kind CIN COUT Ceramic resonator External clock input What frequency do not use? f CIN (3) Which operating supply voltage do you use? (Circle the operating voltage range of use) 2.4 2.7 3.0 3.3 3.5 (4) Which operating ambient temperature do you use? ...

Page 171

... Check sheet 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 172

... GZZ-SH13-29B<95A0> MITSUBISHI ELECTRIC-CHIP 16-BIT MICROCOMPUTER M30621MCA-XXXGP MASK ROM CONFIRMATION FORM (2) Which kind CIN COUT Ceramic resonator External clock input What frequency do not use? f CIN (3) Which operating supply voltage do you use? (Circle the operating voltage range of use) 2.4 2.7 3.0 3.3 3.5 (4) Which operating ambient temperature do you use? ...

Page 173

... Check sheet 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 174

... GZZ-SH13-61B<98A0> MITSUBISHI ELECTRIC-CHIP 16-BIT MICROCOMPUTER M30623M4A-XXXGP MASK ROM CONFIRMATION FORM (2) Which kind CIN COUT Ceramic resonator External clock input What frequency do not use? f CIN (3) Which operating supply voltage do you use? (Circle the operating voltage range of use) 2.4 2.7 3.0 3.3 3.5 (4) Which operating ambient temperature do you use? ...

Page 175

... Check sheet 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-SH13-58B<98A0> MITSUBISHI ELECTRIC-CHIP 16-BIT MICROCOMPUTER M30623M8A-XXXGP MASK ROM CONFIRMATION FORM (2) Which kind CIN COUT Ceramic resonator External clock input What frequency do not use? f CIN (3) Which operating supply voltage do you use? (Circle the operating voltage range of use) 2.4 2.7 3.0 3.3 (4) Which operating ambient temperature do you use? ...

Page 177

... Check sheet 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 178

... GZZ-SH13-59B<98A0> MITSUBISHI ELECTRIC-CHIP 16-BIT MICROCOMPUTER M30623MAA-XXXGP MASK ROM CONFIRMATION FORM (2) Which kind CIN COUT Ceramic resonator External clock input What frequency do not use? f CIN (3) Which operating supply voltage do you use? (Circle the operating voltage range of use) 2.4 2.7 3.0 3.3 (4) Which operating ambient temperature do you use? ...

Page 179

... Check sheet 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 180

... GZZ-SH13-60B<98A0> MITSUBISHI ELECTRIC-CHIP 16-BIT MICROCOMPUTER M30623MCA-XXXGP MASK ROM CONFIRMATION FORM (2) Which kind CIN COUT Ceramic resonator External clock input What frequency do not use? f CIN (3) Which operating supply voltage do you use? (Circle the operating voltage range of use) 2.4 2.7 3.0 3.3 3.5 (4) Which operating ambient temperature do you use? ...

Page 181

... Check sheet 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-SH13-31B<95A0> MITSUBISHI ELECTRIC-CHIP 16-BIT MICROCOMPUTER M30625MGA-XXXGP MASK ROM CONFIRMATION FORM (2) Which kind CIN COUT Ceramic resonator External clock input What frequency do not use? f CIN (3) Which operating supply voltage do you use? (Circle the operating voltage range of use) 2.4 2.7 3.0 3.3 3.5 (4) Which operating ambient temperature do you use? ...

Page 183

... One division (8 Kbytes) (Note) In units of pages (in units of 256 bytes) Collective erase/block erase Program/erase control by software command Protected for each block by lock bit 8 commands 100 times 10 years Parallel I/O and standard serial modes are supported. Mitsubishi microcomputers M16C / 62A Group (80-pin) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER 183 ...

Page 184

... Block byte 0FC000 16 0FE000 Block 0 : 16K byte 0FFFFF 0FFFFF 16 User ROM area Mitsubishi microcomputers M16C / 62A 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 ...

Page 185

... 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. M16C / 62A 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 185 ...

Page 186

... When the CPU is shifted to the stop or wait modes, power to the internal flash memory is automatically shut off reconnected automatically when CPU operation is restored. Therefore not particularly neces- sary to set flash memory control register 1. 186 M16C / 62A Group (80-pin) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER ) is set to “1”, transition to CPU rewrite mode 16 _____ Mitsubishi microcomputers ...

Page 187

... Bit name Must always be set to “0” 0: Flash memory power supply is Flash memory power supply-OFF bit (Note) 1: Flash memory power supply-off Must always be set to “0” Mitsubishi microcomputers M16C / 62A Group (80-pin) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER When reset XX000001 2 Function R 0: Busy (being written or erased) ...

Page 188

... 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 / 62A Group (80-pin) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER *1 End ): *1 Wait until the X ...

Page 189

... 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 / 62A Group (80-pin) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER ): 16 in the user ROM block also is set to 1 automati- ...

Page 190

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

Page 191

... 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 / 62A Group (80-pin) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER ) is written or the 191 ...

Page 192

... Read Lock Bit Status command (71 16 Start Write 20 16 Write D0 16 Block address NO RY/BY status flag = 1? YES Check full status check Block erase completed Mitsubishi microcomputers M16C / 62A Group (80-pin) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER ) is written or the 16 ” 16 ...

Page 193

... Start Write 77 16 Write D0 16 block address NO RY/BY status flag = 1? YES NO Lock bit program in SR4 = 0? YES Lock bit program completed Mitsubishi microcomputers M16C / 62A Group (80-pin) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER error ” 16 ” 16 193 ...

Page 194

... SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER ) 16 ” in the first bus cycle and then the block address of a flash 16 Start Write 71 16 Enter block address NO (Note YES Blocks locked Blocks not locked Note: Data bus bit 6. Mitsubishi microcomputers M16C / 62A Group (80-pin) ...

Page 195

... The erase status informs the operating status of auto erase operation to the CPU. When an erase error occurs set to 1. The erase status is reset to 0 when cleared. M16C / 62A Group (80-pin) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER ). Table 1.22.2 details the status register. 16 .” 16 Mitsubishi microcomputers ). 16 195 ...

Page 196

... Reserved 196 16 / not the Status name Terminated in error Terminated in error Terminated in error Mitsubishi microcomputers M16C / 62A Group (80-pin) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER ), both the program status and erase status /D0 ), block erase However ” is output; when writing fails, 16 ” ...

Page 197

... After erasing the block in error, execute write Program error operation one more time. If the same error still (block) occurs, the block in error cannot be used. ) before executing these commands. 16 Mitsubishi microcomputers M16C / 62A Group (80-pin) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER ) 197 ...

Page 198

... ROM code protect level ROMCP2 2 set bit (Note 1, 2) ROM code protect reset ROMCR bit (Note 3) ROM code protect level ROMCP1 1 set bit (Note 1) Mitsubishi microcomputers M16C / 62A Group (80-pin) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER FF 16 Function Always set this bit 00: Protect enabled ...

Page 199

... ID5 Watchdog timer vector 0FFFF7 ID6 DBC vector 16 16 ID7 NMI vector 0FFFF8 to 0FFFFB 16 16 Reset vector to 0FFFFF bytes Mitsubishi microcomputers M16C / 62A Group (80-pin) SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER , 0FFFE3 16 . Write a program which has had the ID code , 16 199 ...

Page 200

... In the boot ROM area, an erase block operation is applied to only one 8 Kbyte block. The boot ROM area has had a standard serial I/O mode control program stored in it when shipped from the Mitsubishi factory. Therefore, using the device in standard serial input/output mode, you do not need to write to the boot ROM area ...

Related keywords