M30218FCFP MITSUBISHI, M30218FCFP Datasheet

no-image

M30218FCFP

Manufacturer Part Number
M30218FCFP
Description
Single chip 16-bit CMOS microcomputer. RAM size 12K bytes, ROM size 128K bytes
Manufacturer
MITSUBISHI
Datasheet
Description
Description
Features
Applications
The M30218 group of single-chip microcomputers are built using the high-performance silicon gate CMOS
process using a M16C/60 Series CPU core and are packaged in a 100-pin 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 musical instruments, house-
hold appliances and other high-speed processing applications.
The M30218 group includes a wide range of products with different internal memory types and sizes and
various package types.
Household appliances, office equipment, Audio etc.
Central Processing Unit (CPU) ..................... 10
Reset ............................................................. 14
Clock Generating Circuit ............................... 18
Protection ...................................................... 26
Interrupts ....................................................... 27
Watchdog Timer ............................................ 45
DMAC ........................................................... 47
FLD controller ............................................... 53
Note: Only mask ROM version.
• Basic machine instructions ............. Compatible with the M16C/60 series
• Memory capacity ............................ ROM / RAM (See figure memory expansion)
• Shortest instruction execution time . 100ns (f(X
• Supply voltage ................................ 4.0V to 5.5V (f(X
• Interrupts ........................................ 19 internal and 6 external interrupt sources, 4 software
• Multifunction 16-bit timer ................ Timer A X 5, Timer B X 3
• FLD conrtoller ................................. total 56 pins
• Serial I/O ......................................... 2 channels for UART or clock synchronous,
• DMAC ............................................. 2 channels (triggers: 15 sources)
• A-D converter ................................. 10 bits X 8 channels
• D-A converter ................................. 8 bits X 2 channels
• CRC calculation circuit ................... 1 circuit
• Watchdog timer .............................. 1 pin
• Programmable I/O .......................... 48 pins
• High-breakdown-voltage output ...... 52 pins
• Clock generating circuit .................. 2 built-in clock generation circuit
Preliminary Specifications REV.A1
Specifications in this manual are tentative and subject to change.
------Table of Contents------
(high-breakdown-voltage P-channel open-drain output : 52pins)
2.7V to 5.5V (f(X
1 channels for clock synchronous
(max.256 bytes automatic transfer function)
(built-in feedback resistor, and external ceramic or quartz oscillator)
IN
)=10MHz)
Specifications written in this manual are believed
to be accurate, but are not guaranteed to be en-
tirely free of error.
Specifications in this manual may be changed for
functional or performance improvements. Please
make sure your manual is the latest edition.
IN
IN
Timer ............................................................. 70
Serial I/O ....................................................... 87
A-D Converter ............................................. 114
D-A Converter ............................................. 124
CRC Calculation Circuit .............................. 126
Programmable I/O Ports ............................. 128
Flash memory version ................................. 152
)=10MHz)
)=3.5MHz)(Note)
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
Mitsubishi microcomputers
M30218 Group
1

Related parts for M30218FCFP

M30218FCFP Summary of contents

Page 1

... Specifications in this manual may be changed for functional or performance improvements. Please make sure your manual is the latest edition. Timer ............................................................. 70 Serial I/O ....................................................... 87 A-D Converter ............................................. 114 D-A Converter ............................................. 124 CRC Calculation Circuit .............................. 126 Programmable I/O Ports ............................. 128 Flash memory version ................................. 152 Mitsubishi microcomputers M30218 Group 1 ...

Page 2

... P10 /AN2 2 95 P10 /AN1 P10 /AN0 REF AV CC 100 FigureAA-1. Pin configuration (top view) 2 M30218MC-XXXXFP Package:100P6S-A Mitsubishi microcomputers M30218 Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER 50 P2 /FLD36 /FLD37 5 P2 /FLD38 /FLD39 /FLD40 ...

Page 3

... PC R0H R0L R1 R1L R1H R1L Vector table INTB Stack pointer ISP FB FB USP SB FLG Mitsubishi microcomputers M30218 Group Port P5 Port OUT X -X CIN COUT +1) Memory ROM (Note 1) RAM (Note 2) (includes FLDC,ASI/O RAM) ...

Page 4

... V (I/O ports : 18mA ( :high-breakdown-voltage, P-channel open-drain H - 5mA ( P10 5mA ( P10 – CMOS silicon gate 100-pin plastic mold QFP Mitsubishi microcomputers M30218 Group P10 P5, P6) 3 ...

Page 5

... Figure AA-3. ROM expansion Type No – Figure AA-4. Type No., memory size, and package SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER M30218MC-XXXXFP M30218FCFP M30217MA-XXXXFP 96K 128K Package type Package 100P6S-A ROM No. Omitted for flash memory version Shows pull-down option type ...

Page 6

... This is an 8-bit output port equivalent to P0. Pins in this port also function as FLD controller output pins as selected by software. This is an 8-bit output port equivalent to P0. Pins in this port also function as FLD controller output pins as selected by software. Mitsubishi microcomputers M30218 Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER Function pin ...

Page 7

... Pins in this port also function as A-D converter input pins as selected by software. pin in flash memory version and can be selected whether pull-down resistors are built-in or not by the 0 3 Mitsubishi microcomputers M30218 Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER Function to P7 function function as ...

Page 8

... Internal RAM area YYYYY 16 16 XXXXX 16 16 Internal ROM area 16 FFFFF 16 Mitsubishi microcomputers M30218 Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER is RAM for SIO2. From 00500 the starting addresses of subroutines FFE00 16 Special page vector table FFFDC 16 Undefined instruction Overflow ...

Page 9

... DMA1 transfer counter (TCR1) 0039 16 003A 16 003B 16 003C DMA1 control register (DM1CON) 16 003D 16 003E 16 003F 16 Figure BA-2. Location of peripheral unit control registers (1) Mitsubishi microcomputers SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER 0040 16 0041 16 0042 16 0043 16 0044 16 0045 16 0046 16 0047 16 INT3 interrupt control register (INT3IC) ...

Page 10

... CRC data register (CRCD) 03BD 16 03BE CRC input register (CRCIN) 16 03BF 16 Note: This register is only exist in flash memory version. Figure BA-3. Location of peripheral unit control registers (2) 10 Mitsubishi microcomputers SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER 03C0 16 A-D register 0 (AD0) 03C1 16 03C2 16 A-D register 1 (AD1) 03C3 16 03C4 ...

Page 11

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

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 M30218 Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER ...

Page 13

... Mitsubishi microcomputers M30218 Group 13 ...

Page 14

... Figure DA-1. Example reset circuit X IN More than 20 cycles are needed RESET BCLK BCLK (Internal clock) Address (Internal address signal) Figure DA-2. Reset sequence RESET 10MHz and 24cycles FFFFC FFFFE 16 Mitsubishi microcomputers M30218 Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER 4.0V 0.8V Content of reset vector 16 ...

Page 15

... Mitsubishi microcomputers M30218 Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER (0055 )··· (0056 )··· (0057 )··· ...

Page 16

... Mitsubishi microcomputers M30218 Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER (03E7 )··· (03EA )··· (03EF )··· (03F2 )· ...

Page 17

... When reset PM1 0005 00XXXXX0 16 Bit symbol Bit name Reserved bit Reserved bit to this register. 17 Mitsubishi microcomputers M30218 Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER ) applies a (software reset) reset to the 16 2 Function R W Must always be set to “0” The device is reset when this bit is set to “ ...

Page 18

... Externally derived clock Vcc C OUT Vss X COUT (Note COUT Vcc Vss Mitsubishi microcomputers M30218 Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER Sub clock generating circuit • CPU’s operating clock source • Timer A/B’s count clock source Crystal oscillator CIN COUT Available Stopped ...

Page 19

... C Sub clock OUT R Main clock CM02 CM05 1/2 1/2 a CM06=0 CM17,CM16=10 CM06=0 CM17,CM16= CM06=0 16 CM17,CM16=00 Mitsubishi microcomputers M30218 Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER f C32 1SIO2 8SIO2 CM07 Divider f C BCLK CM07=1 c ...

Page 20

... AD 1SIO2 8SIO2 ) to “1” and then executing a WAIT instruction. Mitsubishi microcomputers M30218 Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER ). Stopping the 16 ), the sub-clock can However, be sure the memory expan ...

Page 21

... 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 M30218 Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER Function R W /DA 7 ...

Page 22

... When the WAIT peripheral function clock stop bit is “1”, the status immediately prior to entering wait mode is maintained. Mitsubishi microcomputers M30218 Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER , stops all oscillation and the microcom- ...

Page 23

... Division by 4 mode 1 0 Invalid Division by 8 mode 0 0 Invalid Division by 16 mode 0 0 Invalid No-division mode Invalid 0 1 Low-speed mode Invalid 1 1 Low power dissipation mode Mitsubishi microcomputers M30218 Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER or vice versa, the clock to which CIN 23 ...

Page 24

... 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 WA-5 is the state transition diagram of the above modes. 24 Mitsubishi microcomputers M30218 Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER C ...

Page 25

... CM04 = “1” )/4 BCLK : f(X )/16 IN CM07 = “0” CM06 = “0” CM17 = “1” CM16 = “1” Mitsubishi microcomputers M30218 Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER CPU operation stopped Wait mode CPU operation stopped Wait mode CPU operation stopped Wait mode CM07 = “ ...

Page 26

... Mitsubishi microcomputers M30218 Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER ), system clock control reg can only be changed when ...

Page 27

... Watchdog timer Single step Address matched 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 M30218 Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER 27 ...

Page 28

... 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. 28 Mitsubishi microcomputers M30218 Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER ...

Page 29

... Timer B0 interrupt through timer B2 interrupt These are interrupts that timer B generates. ________ • INT0 interrupt through INT5 interrupt ______ An INT interrupt occurs if either a rising edge or a falling edge is input to the INT pin. ____________ ________ Mitsubishi microcomputers M30218 Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER ______ 29 ...

Page 30

... FFFEB There is an address-matching interrupt enable bit FFFEF Do not use FFFF3 FFFF7 Do not use FFFFB - FFFFF 16 16 Mitsubishi microcomputers M30218 Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER Remarks , program execution starts from 16 ...

Page 31

... UART1 receive +84 to +87 (Note) Timer A0 +88 to +91 (Note) Timer A1 +92 to +95 (Note) Timer A2 +96 to +99 (Note) Timer A3 Timer A4 Timer B0 Timer B1 Timer B2 INT0 INT1 INT2 to Software interrupt Mitsubishi microcomputers M30218 Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER Remarks Cannot be masked I flag Cannot be masked I flag 31 ...

Page 32

... The interrupt request bit and the interrupt priority level selection bit are located in the interrupt control register of each interrupt. Also, the interrupt enable flag (I flag) and the IPL are located in the flag register (FLG). Figure DD-3 shows the memory map of the interrupt control registers. 32 Mitsubishi microcomputers M30218 Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER ...

Page 33

... Polarity select bit 0 : Selects falling edge 1 : Selects rising edge Reserved bit Always set to “0” for set (= 1). generate the interrupt request for that register. For details, see the precautions for interrupts. Mitsubishi microcomputers M30218 Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER When reset XXXXX000 2 XXXXX000 2 ...

Page 34

... Interrupt levels 4 and above are enabled Interrupt levels 5 and above are enabled Interrupt levels 6 and above are enabled Interrupt levels 7 and above are enabled High All maskable interrupts are disabled Mitsubishi microcomputers M30218 Group Enabled interrupt priority levels ...

Page 35

... This will depend on the instruction. If this creates problems, use the below instructions to change the register. Instructions : AND, OR, BCLR, BSET SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER ; Disable interrupts Enable interrupts. ; Disable interrupts. ; Dummy read. ; Enable interrupts Disable interrupts. ; Enable interrupts. Mitsubishi microcomputers M30218 Group 35 ...

Page 36

... Interrupt request acknowledged Instruction (a) Interrupt response time (a) 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 DD-4. Interrupt response time 36 Instruction in Interrupt sequence interrupt routine (b) Mitsubishi microcomputers M30218 Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER Time ...

Page 37

... Odd 20 cycles (Note 1) ________ Indeterminate SP-2 SP-4 SP-2 Indeterminate contents contents Indeterminate Mitsubishi microcomputers M30218 Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER 8-Bit bus 20 cycles (Note 1) 20 cycles (Note 1) 20 cycles (Note 1) 20 cycles (Note vec vec+2 PC SP-4 vec ...

Page 38

... Flag register m – 1 [SP] Stack pointer m value before interrupt occurs Stack status after interrupt request is acknowledged Mitsubishi microcomputers M30218 Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER Stack area LSB [SP] New stack Program counter ( pointer value Program counter (PC ) ...

Page 39

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

Page 40

... Figure DD-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 DD-9 shows the circuit that judges the interrupt priority level. 40 Mitsubishi microcomputers M30218 Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER ...

Page 41

... Interrupt enable flag (I flag) Address match Watchdog timer DBC Reset Figure DD-9. Maskable interrupts priorities 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 Mitsubishi microcomputers M30218 Group Interrupt request accepted 41 ...

Page 42

... “ 0 ” Mitsubishi microcomputers M30218 Group ...

Page 43

... Clear the interrupt request bit to “0” Set the interrupt priority level to level (Enable the accepting of INTi interrupt request) Set the interrupt enable flag to “1” (Enable interrupt) ______ Mitsubishi microcomputers M30218 Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER will then be set to “0” Accepting an interrupt ...

Page 44

... This will depend on the instruction. If this creates problems, use the below instructions to change the register. Instructions : AND, OR, BCLR, BSET 44 SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER ; Disable interrupts Enable interrupts. ; Disable interrupts. ; Dummy read. ; Enable interrupts Disable interrupts. ; Enable interrupts. Mitsubishi microcomputers M30218 Group ...

Page 45

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

Page 46

... Address WDTS 000E Indeterminate 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 M30218 Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER When reset 000XXXXX 2 Function R W Must always be set to “0” ...

Page 47

... DMA1 destination pointer DAR1 (20) 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 M30218 Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER (addresses 0022 to 0020 ) 16 16 (addresses 0026 to 0024 ...

Page 48

... 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 M30218 Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER to 003F ...

Page 49

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

Page 50

... In an attempt to write to these bits, write “0”. The value, if read, turns out to be “0”. b0 Symbol Address TCR0 0029 , 0028 16 TCR1 0039 , 0038 16 Function • Transfer counter Set a value one less than the transfer count Mitsubishi microcomputers M30218 Group Address When reset to 0020 Indeterminate 0030 Indeterminate 16 16 Transfer count R W specification ...

Page 51

... Figure EC-4. Example of transfer cycles for a source read (the state of internal bus) Dummy Destination CPU use cycle Dummy Source Destination CPU use cycle Dummy Source + 1 Destination cycle Dummy Source + 1 Source Destination cycle Mitsubishi microcomputers M30218 Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER CPU use CPU use 51 ...

Page 52

... Access address 8-bit transfers (DMBIT="1") 16-bit transfers (DMBIT="0") Coefficient j, k Internal memory Internal ROM/RAM 1 52 singelchip mode No. of read cycles Even 1 Odd 1 Even 1 Odd 2 SFR area 2 Mitsubishi microcomputers M30218 Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER No. of write cycles ...

Page 53

... This function provides 16 lines of digit outputs from four ports by attaching a 4 Specification 56, digit number to P4 expansion 4 7 /32,10MHz) IN /32,10MHz CLK for the M35501. OUT expansion function decoder. Mitsubishi microcomputers M30218 Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER 56) 40, digit number 16) number of M35501 X 16) 52, digit number 16) /128,10MHz) IN /128,10MHz ...

Page 54

... FLD/P FLD/P FLD/P FLD/P FLD/P FLD/P FLD/P FLD/P 035B 16 FLD/port switch register FLD blanking interrupt Timing generator FLD digit interrupt Mitsubishi microcomputers M30218 Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER Digit output set register P6 /FLD DIG/FLD /FLD DIG/FLD /FLD DIG/FLD ...

Page 55

... Mitsubishi microcomputers M30218 Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER ...

Page 56

... FLD output port 0 : Normal port Port P2 FLD/port switch bit FLD output port 0 : Normal port Port P2 FLD/port switch bit FLD output port Mitsubishi microcomputers M30218 Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER Values that can be set Values that can be set R W ...

Page 57

... FLD output Port P5 FLD/digit switch bit Digit output 0 : FLD output Port P5 FLD/digit switch bit Digit output 0 : FLD output Port P5 FLD/digit switch bit Digit output Mitsubishi microcomputers M30218 Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER Function Function R W Function 57 ...

Page 58

... FLD/digit switch bit Digit output 0 : FLD output Port P6 FLD/digit switch bit Digit output 0 : FLD output Port P6 FLD/digit switch bit Digit output 0 : FLD output Port P6 FLD/digit switch bit Digit output Mitsubishi microcomputers M30218 Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER R W Function ...

Page 59

... DIG output : This output is connected to digit of the FLD. SEG output : This output is connected to segment of the FLD. Port output : This output is general-purpose port ( used program). Mitsubishi microcomputers M30218 Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER The contents of digit output set register (035C , 035D ...

Page 60

... Gradation display control data stored area 0570 timing display data stored area 05DF 05DF 16 Mitsubishi microcomputers M30218 Group to 05DF . For FLD, the 3 modes 05DF 056F are not used as the 32-timing mode ...

Page 61

... The last timing (The last data of FLDP1) Timing for start (The first data of FLDP1) FLDP1 data area Mitsubishi microcomputers M30218 Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER 05A0 , 05B0 , 05C0 and 05DF . 0560 , 0580 ...

Page 62

... Timing for start 056E 16 (The first data of FLDP6) 056F 16 Mitsubishi microcomputers M30218 Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER The last timing (The last data of FLDP4) FLDP4 gradation display data area Timing for start (The first data of FLDP4) ...

Page 63

... Mitsubishi microcomputers M30218 Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER The last timing (The last data of FLDP4) FLDP4 data area Timing for start (The first data of FLDP4) The last timing (The last data of FLDP3) ...

Page 64

... Low output period for blurring prevention Display output period Toff1 Tdisp Low output period for Low output period for blurring prevention dark display Display output period Toff1 Toff2 Tdisp Mitsubishi microcomputers M30218 Group = 10 MHz MHz MHz) = 576 s. IN ...

Page 65

... The RAM content at a location apart from the start address 16 ) counts down in the Tdisp interval. When the count “FF 16 Repeat synchronous Tn-1 Tn Mitsubishi microcomputers M30218 Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER ) and the 16 ) – output to each always keeps “1”, and 16 ) ...

Page 66

... Do not set “1” in the ports corresponding to digits. Tdisp Tn FLD digit output Figure KA-12B. Timing using FLD blanking interrupt Repeat synchronous Tn-1 Tn Mitsubishi microcomputers M30218 Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER ) reaches “FF ”. The FLD automatic Tscan Tn Tn-1 Tn-2 ...

Page 67

... FLD Output pulses have the function to allow for connection Toff1 Toff2 Tdisp Mitsubishi microcomputers M30218 Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER to P4 Toff disable bit (address 0350 4 7 (P9 ). The dimmer function OUT “1” ...

Page 68

... P2X Section of Toff1 is not generated because of output is same the initial state = “0”, RAM data is output to the FLD 16 Mitsubishi microcomputers M30218 Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER “H” output “H” output “L” output “ ...

Page 69

... Low-order 4bits the data pointer Fig. KA-16. Digit Pulses Output Function Mitsubishi microcomputers M30218 Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER . The contents of FLD 0 time becomes effective off2 ...

Page 70

... Timer mode • Pulse width measuring mode Noise filter • Event counter mode • Timer mode • Pulse width measuring mode Noise filter • Event counter mode Mitsubishi microcomputers M30218 Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER Clock prescaler 1/32 f C32 Reset ) set to “1” 16 ...

Page 71

... Function varies with each operation mode MR1 MR2 MR3 TCK0 Count source select bit (Function varies with each operation mode) TCK1 Mitsubishi microcomputers M30218 Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER ” ...

Page 72

... Mitsubishi microcomputers M30218 Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER ...

Page 73

... “ 0 ” ) Mitsubishi microcomputers M30218 Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER 2 ...

Page 74

... Mitsubishi microcomputers M30218 Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER pin’s input signal IN pin’s polarity is reversed OUT ...

Page 75

... “ 0 ” . Mitsubishi microcomputers M30218 Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER pin’ ...

Page 76

... If the phase relationship is such that the OUT IN pin goes “L” when the input signal on the TAi IN TAi OUT Count up all edges TAi IN (i=3,4) Count up all edges Mitsubishi microcomputers M30218 Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER or TAi pin OUT IN Down Down Down count count count pin goes “ ...

Page 77

... Mitsubishi microcomputers M30218 Group ...

Page 78

... “ 1 ” “ 0 ” Mitsubishi microcomputers M30218 Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER ...

Page 79

... “ 1 ” “ “ 0 ” . Mitsubishi microcomputers M30218 Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER ...

Page 80

... “ 0 ” Mitsubishi microcomputers M30218 Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER – ...

Page 81

... Mitsubishi microcomputers M30218 Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER Data bus high-order bits ...

Page 82

... Mitsubishi microcomputers M30218 Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER ...

Page 83

... Mitsubishi microcomputers M30218 Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER ...

Page 84

... “ 0 ” “ 1 ” . Mitsubishi microcomputers M30218 Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER ...

Page 85

... “ 1 ” Mitsubishi microcomputers M30218 Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER ...

Page 86

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

Page 87

... Clock synchronous type (when internal clock is selected) 1/2 Clock synchronous type (when external clock is selected) CTS/RTS disabled RTS CTS/RTS disabled CTS 1 Mitsubishi microcomputers M30218 Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER TxD Receive clock Reception control Transmit/ circuit receive unit Transmit clock Transmission ...

Page 88

... UART (8 bits) UART (9 bits) UART (9 bits) Clock synchronouss UART type Clock UART (7 bits) synchronous type UART (7 bits) UART (8 bits) Clock synchronous type Mitsubishi microcomputers M30218 Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER UARTi receive register UARTi receive buffer register ...

Page 89

... When reset U0BRG 03A1 Indeterminate 16 U1BRG 03A9 Indeterminate 16 Function Assuming that set value = n, BRGi divides the count source Mitsubishi microcomputers M30218 Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER R W Function R W (During UART mode) Reception data overrun error 1 : Overrun error found ...

Page 90

... Mitsubishi microcomputers M30218 Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER ...

Page 91

... CLK1 only Transfer clock output from multiple pins function selected Must always be “0” • UART1 internal/external clock select bit (bit 3 at address 03A8 Mitsubishi microcomputers M30218 Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER Function R W (During UART mode Transmission disabled ...

Page 92

... UARTi receive interrupt request bit is not set to “1”. 92 Specification ________ _______ ________ _______ _______ to FF that is set to the UART bit rate generator Mitsubishi microcomputers M30218 Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER , 03A8 = “0”) : fi/ 2(n+1) (Note 03A8 =“ ...

Page 93

... P7 direction register (bits 7 address 03EA 7 7 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 M30218 Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER When reset 00 16 Function ...

Page 94

... • • Mitsubishi microcomputers M30218 Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER “ ...

Page 95

... Note: This applies when the CLK polarity select bit = “0”. Mitsubishi microcomputers M30218 Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER , 03AC ) allows 16 16 Note 1: The CLKi pin level when not transferring data is “H”. Note 2: The CLKi pin level when not transferring data is “ ...

Page 96

... In this mode, when the receive buffer register is read out, the unit simultaneously goes to a receive enable state without having to set dummy data to the transmit buffer register back again. 96 _______ _______ IN CLK Mitsubishi microcomputers M30218 Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER ). (See Figure GA-10 CLK ) is set to “ ...

Page 97

... FF that is set to the UARTi bit rate generator Mitsubishi microcomputers M30218 Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER , 03A8 = “0” 03A8 =“1” 03AD ) = “1” 03AD ) = “0” ...

Page 98

... Port direction register (bits 7 at address 03EA 7 7 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 M30218 Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER 00 16 Function R W ...

Page 99

... Mitsubishi microcomputers M30218 Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER “ 0 ” ...

Page 100

... “ 0 ” Mitsubishi microcomputers M30218 Group ...

Page 101

... BUSY STB2 output, S output can be selected; 1-byte data transfer unit or all BUSY STB2 pin control bit OUT2 Mitsubishi microcomputers M30218 Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER ). = “0”) : selected by bits address 0348 16 pin, S pin(Note 2) CLK21 ...

Page 102

... Synchronous ” circuit “1” Serial I/O2 clock pin selection bit “0” “1” Serial transfer status flag Serial I/O2 counter Serial I/O2 register (8) Mitsubishi microcomputers M30218 Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER Main Local data bus data bus Serial I/O2 interrupt request ...

Page 103

... Mitsubishi microcomputers M30218 Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER ...

Page 104

... Data is written to a latch and read from a decrement counter. b7b6b5 Internal synchronous 000:f(X clock selection bits 001:f(X 010:f(X 011:f(X 100:f(X 101:f(X 110:f(X Mitsubishi microcomputers M30218 Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER When reset When reset ...

Page 105

... Serial I/O2 synchronous clock select bits (bits address 0342 S output • S output function select bit (bit 4 at address 0344 BUSY2 STB2 pin state at serial non-transfer by the OUT2 ). 16 Mitsubishi microcomputers M30218 Group )= “1” “0” , “1” “0” , “1” “0” “ ...

Page 106

... STB2 output. S BUSY2 output in combination as a signal for each occurrence of the STB2 Mitsubishi microcomputers M30218 Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER . Therefore, the clock needs to CLK22 . Before starting transfer, make 16 ...

Page 107

... Automatic transfer RAM 004FF 16 00452 16 00451 16 00450 16 0044F 16 0044E 16 00400 IN2 Serial I/O2 register Mitsubishi microcomputers M30218 Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER ). When an external sync clock set to “1” and the automatic transfer 16 Transfer counter 04 16 OUT2 107 ...

Page 108

... Automatic transfer interval Mitsubishi microcomputers M30218 Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER input/output, and S input/output. RDY2 ) = “0” ], the S output goes to “L” 16 STB2 reset to “0”. 16 output • S output function BUSY2 STB2 16 D ...

Page 109

... Note Note: The last output data Mitsubishi microcomputers M30218 Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER input (or a “L” BUSY2 ____________ ) input for 1.5 cycles or more BUSY2 , and transmit/receive operation is remains active until after the system input (or a “L” ...

Page 110

... S OUT2 Mitsubishi microcomputers M30218 Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER ) = “0” ], the status in 16 output goes to BUSY2 ____________ output goes to “L” (or the S BUSY2 ), regardless of 16 output goes to “H” BUSY2 output goes to “H” ...

Page 111

... BUSY2 : Automatic transfer serial I/O mode : Internal synchronous clock : Each transfer of all data Automatic Tc transfer interval Mitsubishi microcomputers M30218 Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER ...

Page 112

... OUT2 Tc : Internal synchronous clock is selected by bits address 0348 Mitsubishi microcomputers M30218 Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER ) = “0” __________ output goes to RDY2 output RDY2 input and the S RDY2 input (or a “H” ...

Page 113

... Write to serial A: I/O2 register S CLK2i ( RDY2 S RDY2 S BUSY2 S BUSY2 S CLK2i Write to serial B: I/O2 register Write to serial A: I/O2 register S CLK2i ( RDY2 S RDY2 S BUSY2 S BUSY2 S CLK2i B: ( Write to serial B: I/O2 register Mitsubishi microcomputers M30218 Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER 113 ...

Page 114

... AD • With sample and hold function 8-bit resolution: 28 cycles, 10-bit resolution frequency to 250kHz min. AD frequency to 1MHz min. AD Mitsubishi microcomputers M30218 Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER REF , f =f =f(X ) ...

Page 115

... Mitsubishi microcomputers M30218 Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER ...

Page 116

... BITS 1 : 10-bit mode Frequency select bit CKS1 Vref connect bit 0 : Vref not connected VCUT 1 : Vref connected indeterminate. Mitsubishi microcomputers M30218 Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER Function is selected 0 is selected 1 is selected 2 is selected 3 ...

Page 117

... 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 M30218 Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER When reset XXXXXXX0 2 ...

Page 118

... Any mode other than repeat sweep select bit 1 mode 1 8/10-bit mode select bit 0 : 8-bit mode 1 : 10-bit mode selected AD AD Frequency select bit1 selected AD Vref connect bit 1 : Vref connected result is indeterminate. Mitsubishi microcomputers M30218 Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER Function R W Function R W ...

Page 119

... BITS 1 : 10-bit mode CKS1 Frequency select bit selected AD VCUT Vref connect bit 1 : Vref connected result is indeterminate. Mitsubishi microcomputers M30218 Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER 2 Function selected is selected is selected is selected is selected is selected is selected is selected Function ...

Page 120

... Frequency select bit selected AD Vref connect bit 1 : Vref connected is indeterminate. Mitsubishi microcomputers M30218 Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER pins pins Function R W Function ...

Page 121

... BITS 1 : 10-bit mode Frequency select bit 1 CKS1 selected AD VCUT Vref connect bit 1 : Vref connected is indeterminate. Mitsubishi microcomputers M30218 Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER pins pins Function R W Function ...

Page 122

... Frequency select bit selected AD Vref connect bit 1 : Vref connected is indeterminate. Mitsubishi microcomputers M30218 Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER -> AN -> AN -> AN -> etc pins ...

Page 123

... When sample and hold is selected, the rate of conversion of each pin increases result, 28 cycles are achieved with 8-bit resolution and 33 can be selected in all modes. However, in all modes, be sure to specify before starting A-D conversion whether sample and hold used. Mitsubishi microcomputers SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER cycles with 10-bit resolution. Sample and hold AD M30218 Group ) to “ ...

Page 124

... Data bus low-order bits D-A register0 (8) R-2R resistor ladder D-A register1 (8) R-2R resistor ladder Figure JB-1. Block diagram of D-A converter 124 Performance R-2R method 8 bits 2 channels (Address 03D8 D-A0 output enable bit (Address 03DA D-A1 output enable bit Mitsubishi microcomputers M30218 Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER ) 16 P9 /DA /CLK /DIM 7 0 OUT OUT ) 16 ...

Page 125

... In an attempt to write to these bits, write “0”. The value, if read, turns out to be “0”. Symbol Address DAi (i = 0,1) 03D8 03DA Indeterminate Function Output value of D-A conversion Mitsubishi microcomputers M30218 Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER When reset 00 16 Function R W When reset LSB ...

Page 126

... Symbol Address b0 CRCD 03BD 16 Function CRC calculation result output register Symbo Address CRCIN 03BE Function Data input register Mitsubishi microcomputers M30218 Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER + 1) to generate CRC code. (Addresses 03BD , 03BC ) 16 16 When reset , 03BC Indeterminate 16 Values that R W ...

Page 127

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

Page 128

... There are 40 exclusive output Ports P2, P5 and P6. All ports have structure of high-breakdown-voltage P-channel open drain output. Exclusive output ports except P2 have built-in pull-down resistance. Figure UA-1 shows the configuration of the exclusive high-breakdown-voltage output ports. 128 Mitsubishi microcomputers M30218 Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER ...

Page 129

... Data bus Port latch Direction register output Port latch Pull-up selection 3 Direction register Port latch Input to respective peripheral functions Pull-up selection Direction register output Port latch Mitsubishi microcomputers M30218 Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER Output V EE “1” “1” 129 ...

Page 130

... Pull-up selection Direction register “1” output Port latch Input to respective peripheral functions Pull-up selection Direction register Port latch Analog input Pull-up selection Direction register “1” output Port latch Analog output Input to respective peripheral functions Mitsubishi microcomputers M30218 Group D-A output enabled ...

Page 131

... Port Pi register 10) Pi_5 Port Pi register 5 Pi_6 Port Pi register 6 Pi_7 Port Pi register 7 Mitsubishi microcomputers M30218 Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER ...

Page 132

... P10 pull- PU15 P10 to P10 pull- Nothing is assigned attempt to write to these bits, write “0”. The value, if read, turns out to be indeterminate. Mitsubishi microcomputers M30218 Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER When rese Function R W When rese t 00 ...

Page 133

... Leave these pins open Open Connect to V (Note 3) CC Connect to V (Note 3) SS Connect to V via resistor SS pin. IN Open Open X Open OUT V EE Open V CC (Note 2) CNV SS (Note 2) (Note Mitsubishi microcomputers M30218 Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER Connection via resistor (pull-down) SS 133 ...

Page 134

... Mitsubishi microcomputers M30218 Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER ...

Page 135

... Internal circuit power dissipation (CPU, ROM, RAM etc.) = 190.00 mW (1) + (2)+ (3) + (4) + (5) = 319.86 mW DIG0 DIG1 DIG2 DIG3 DIG13 DIG14 DIG15 Timing number Figure S-1. Digit timing waveform ( Repeat cycle Mitsubishi microcomputers M30218 Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER 16 17 Tscan 135 ...

Page 136

... Internal circuit power dissipation (CPU, ROM, RAM etc.) = 190.00 mW (1) + (2)+ (3) + (4) + (5) = 615.77 mW (There is a limit of use temperature) DIG0 DIG1 DIG2 DIG3 DIG4 DIG5 DIG6 DIG7 DIG8 DIG9 1 Timing number Figure S-2. Digit timing waveform (2) 136 Repeat cycle Mitsubishi microcomputers M30218 Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER 11 Tscan ...

Page 137

... DIG3 DIG4 DIG5 DIG6 DIG7 DIG8 DIG9 Timing number Figure S-3. Digit timing waveform ( 12 /11 = 29 310. Repeat cycle Mitsubishi microcomputers M30218 Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER 10 11 Tscan 137 ...

Page 138

... P10 to P10 RESET CNV IN Mitsubishi microcomputers M30218 Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER Standard Unit - 0 0.3 to 6.5 V Vcc - 50 to Vcc+0.3V - 0.3 to Vcc+0.3 V (Note) Vcc - 50 to Vcc+0.3 V Vcc - 50 to Vcc+0 -0.3 to Vcc+0.3 C 750 ...

Page 139

... P10 to P10 P10 to P10 Vcc=4.0V to 5.5V Vcc=2. Mitsubishi microcomputers M30218 Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER = 2. – Standard Unit Min Typ. Max. -240 mA -240 mA - -120 mA -120 mA -40 ...

Page 140

... pin. CC Mitsubishi microcomputers M30218 Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER V = ...

Page 141

... REF REF REF REF unless otherwise specified) Z Measuring condition Note ( ) Mitsubishi microcomputers M30218 Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER V = 5V, Vss = REF SS Standard Unit Min. Typ. Max input 3.3 2.8 0 ...

Page 142

... P0, P1, P2 need external resistors in mask ROM version need external resistors in flash memory version Mitsubishi microcomputers M30218 Group V =5V CC Standard Unit Min. Max. ns 100 ...

Page 143

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

Page 144

... Serial I/O input setup time t h(SCLK-SIN) Serial I/O input hold time 144 = 5V Parameter Parameter Parameter Parameter _______ Parameter Parameter Mitsubishi microcomputers M30218 Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER V = unless otherwise specified) Standard Unit Min. Max. ns 100 ...

Page 145

... OUT t c(TA) t w(TAH) t w(TAL) t c(UP) t w(UPH) t w(UPL h(T -UP) su(UP c(TB) t w(TBH) t w(TBL) t c(CK) t w(CKH) t w(CKL d(C-Q) su(D-C) t w(INL) t w(INH) t C(SCLK WL(SCLK) 0. SU(SiN-SCLK) h(SCLK-SiN) 0.8V CC 0.2V CC d(SCLK-SOUT) Mitsubishi microcomputers M30218 Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER V = h(C-Q) t h(C-D) t WH(SCLK) t V(SCLK-SOUT) 145 ...

Page 146

... C32 pin. CC Mitsubishi microcomputers M30218 Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER V = ...

Page 147

... Z Measuring condition REF 3V, REF REF 5MH unless otherwise specified) Z Measuring condition (Note) Mitsubishi microcomputers M30218 Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER V = 3V, Vss = REF SS Standard Unit Min. Typ. Max 10 Bits LSB = f(X )/ ...

Page 148

... External clock input LOW pulse width t w(L) External clock rise time External clock fall time f 148 SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER unless otherwise specified Parameter Mitsubishi microcomputers M30218 Group V =3V CC Standard Unit Min. Max. ns 200 ...

Page 149

... OUT IN t TAi input hold time h(T UP) OUT IN- SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER unless otherwise specified Parameter Parameter Parameter Parameter Parameter Mitsubishi microcomputers M30218 Group V =3V CC Standard Unit Min. Max. 150 Standard Unit Min. Max. 600 ns ...

Page 150

... Serial I/O input setup time t h(SCLK-SIN) Serial I/O input hold time 150 = 3V Parameter Parameter Parameter Parameter _______ Parameter Parameter Mitsubishi microcomputers M30218 Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER V = unless otherwise specified) Standard Unit Min. Max. 150 ...

Page 151

... OUT t c(TA) t w(TAH) t w(TAL) t c(UP) t w(UPH) t w(UPL h(T -UP) su(UP c(TB) t w(TBH) t w(TBL) t c(CK) t w(CKH) t w(CKL su(D-C) d(C-Q) t w(INL) t w(INH) t C(SCLK WL(SCLK) 0. SU(SiN-SCLK) h(SCLK-SiN) 0. d(SCLK-SOUT) Mitsubishi microcomputers M30218 Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER V = h(C-Q) t h(C-D) t WH(SCLK) t V(SCLK-SOUT) 151 ...

Page 152

... =5V ± 10% (f(X )=10MHz Three modes (parallel I/O, standard serial I/O, CPU rewrite) See Figure 1.AA.3. One division (3.5 K bytes) (Note) In units of byte Collective erase / block erase Program/erase control by software command 6 commands 100 times Standard serial I/O mode is supported. Mitsubishi microcomputers M30218 Group ...

Page 153

... Collective User ROM User ROM erasable/ erasable/ area area programmable programmable area area XXXXX YYYYY 16 16 E0000 033FF 16 16 Mitsubishi microcomputers M30218 Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER power supply for device CC E0000 16 Block 0 E8000 16 Block 1 F0000 16 Block 2 F8000 16 Block 3 FFFFF 16 153 ...

Page 154

... Mitsubishi microcomputers M30218 Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER R W Function Function ...

Page 155

... V to the port the CNV /V pin pin Mitsubishi microcomputers M30218 Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER pin low SS ), the CNV pin high(V ), the CPU CC SS PPH pin for reset release. Or the user can ...

Page 156

... Table DA-1. Software waits and bus cycles Area Wait bit SFR Invalid 0 Internal ROM/RAM 1 156 ) = 0 (without internal access wait state (with internal access wait state)(Note “1”. 16 Bus cycle 2 BCLK cycles 1 BCLK cycle 2 BCLK cycles Mitsubishi microcomputers M30218 Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER ...

Page 157

... Internal bus (with wait) > BCLK Write signal Read signal Data bus Address bus Figure DA-6. Typical bus timings using software wait SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER Bus cycle Output Input Address Address Bus cycle Output Address Mitsubishi microcomputers M30218 Group Input Address 157 ...

Page 158

... Write Write Write 03B6 Read Write Write 03B6 16 16 – bits at a time Mitsubishi microcomputers M30218 Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER Second bus cycle Data Address ( Program Program address data Verify Verify address data 03B6 20 16 ...

Page 159

... In this case, however, the user does not need to write data “00 ” to memory before erasing set in it Mitsubishi microcomputers M30218 Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER ” to the flash command 16 ” to the 16 ” to the flash command register 16 ” (not erased), the CPU must stop 16 159 ...

Page 160

... YES Write : 40 16 Write : Program data Write : C0 16 Verify OK ? FAIL Next address Write read command Write : 00 16 FAIL Mitsubishi microcomputers M30218 Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER Start All bytes = "00 " Program all bytes = "00 " 16 Address = First address Loop counter X=0 ...

Page 161

... Output exclusive use pin. O Input "H" or "L" level signal or open. I Input "H" or "L" level signal or open. I Input "H" or "L" level signal or open. I Input "H" or "L" level signal or open. I Mitsubishi microcomputers M30218 Group and IN pin IN 161 ...

Page 162

... P2 /FLD38 /FLD39 /FLD40 0 P3 /FLD41 /FLD42 2 P3 /FLD43 /FLD44 4 P3 /FLD45 41 5 M30218FCFP 40 P3 /FLD46 /FLD47 /FLD48 0 P4 /FLD49 /FLD50 35 P4 /FLD51 D0/FLD52 D0/FLD53 ...

Page 163

... I/O mode is started by clearing the reset with V mode, set CNVss to “L”.) This control program is written in the boot ROM area when shipped from Mitsubishi Electric. Therefore, if the boot ROM area is rewritten in the parallel I/O mode, the standard serial I/O mode cannot be used. Figures DD-1 shows the pin connections for the standard serial I/O mode. Serial data I/O uses three ...

Page 164

... Version Version Version 16 data data data output output output Address Data Address 16 (high) output (middle) Mitsubishi microcomputers M30218 Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER When ID is not verificate Data Data Data Not output to output output acceptable 259th byte Data input Data Data ...

Page 165

... data0 ” command code is sent in the 1st byte of the 16 CLK0 RxD0 70 16 SRD TxD0 output Mitsubishi microcomputers M30218 Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER data255 SRD1 output to 8 165 ...

Page 166

... data0 Mitsubishi microcomputers M30218 Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER (BUSY) signal changes 0 (BUSY) signal changes from the “H” data255 ...

Page 167

... the 2nd and 3rd bytes of the transmission respec ” in the 4th byte of the transmission. With the verify com Mitsubishi microcomputers M30218 Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER 167 ...

Page 168

... The result of the and the 2nd and 3rd bytes of the transmission respec Mitsubishi microcomputers M30218 Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER DQ6 ...

Page 169

... When all data has been transmitted, if the check sum matches, the downloaded program is executed. The size of the program will vary according to the internal RAM. CLK0 RxD0 TxD0 RTS0(BUSY) Figure DD-9. Timing for download Check FA 16 sum Data size (low) Data size (high) Mitsubishi microcomputers M30218 Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER Program Program data data 169 ...

Page 170

... A and the 2nd and 3rd bytes of the transmission respec –D ) for the page (256 bytes) specified with addresses data0 Mitsubishi microcomputers M30218 Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER 'R' 'X' data255 to 8 ...

Page 171

... ID4 Single step vector to 0FFFEC 16 16 ID5 Watchdog timer vector to 0FFFF0 0FFFF4 ID6 DBC vector 0FFFF8 ID7 16 16 Reset vector to 0FFFFC bytes Mitsubishi microcomputers M30218 Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER ID1 ID7 , 0FFFEF , 0FFFF3 , and 171 ...

Page 172

... Program Bit (SR4) The program bit reports the operating status of the auto write operation write error occurs set to “1”. When the program status is cleared set to “0”. 172 Mitsubishi microcomputers M30218 Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER Definition " ...

Page 173

... SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER ). 16 ” is output when power is turned ON and 16 Definition "1" "0" Update completed Not update - - - - Match Mismatch 00 Not verified 01 Verification mismatch 10 Reserved 11 Verified Time out Normal operation - - Mitsubishi microcomputers M30218 Group ). 16 173 ...

Page 174

... In this example, the microprocessor mode and standard serial I/O mode are switched via a switch. Figure DD-14. Example circuit application for the standard serial I/O mode 174 SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER CLK0 RTS0(BUSY M30218 Flash V PP memory version CNVss Mitsubishi microcomputers M30218 Group ...

Page 175

... Page 134 Add to Note 3. Revision history Contents for change (at rising edge of each edge) ---> (at rising edge of each digit) 11: ---> 10: function as) ---> (P4 and P7 function as M30218 Data sheet Mitsubishi microcomputers M30218 Group SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER Revision date 99.12.21 175 ...

Page 176

... Preliminary Specifications REV.A1 Specifications in this manual are tentative and subject to change. Version Revision history 176 SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER Contents for change M30218 Data sheet Mitsubishi microcomputers M30218 Group Revision date ...

Page 177

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

Related keywords