M37220M3-010SP MITSUBISHI [Mitsubishi Electric Semiconductor], M37220M3-010SP Datasheet
![no-image](/images/no-image-200.jpg)
M37220M3-010SP
Available stocks
Related parts for M37220M3-010SP
M37220M3-010SP Summary of contents
Page 1
... DIP. In addition to their simple instruction sets, the ROM, RAM and I/O addresses are placed on the same memory map to enable easy pro- gramming. The M37220M3-XXXSP has a PWM output function and a OSD dis- play function useful for a channel selection system for TV. FEATURES • ...
Page 2
... SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER for VOLTAGE SYNTHESIZER with ON-SCREEN DISPLAY CONTROLLER MITSUBISHI MICROCOMPUTERS M37220M3-XXXSP SYNC SYNC OUT CLK IN ...
Page 3
... DIP 20 characters 2 lines (maximum 16 lines by software dots 128 kinds 3 kinds Maximum 7 kinds (R, G, B); can be specified by the character 64 levels (horizontal) 128 levels (vertical) MITSUBISHI MICROCOMPUTERS M37220M3-XXXSP Functions 4, Serial I/O interrupt interrupt 1, SYNC = 8 MHz MHz) CPU CRT ...
Page 4
... Pin P3 is also used as CRT display clock input pin OSC1. 3 Pin P3 is also used as CRT display clock output pin OSC2.The output structure is CMOS 4 output. MITSUBISHI MICROCOMPUTERS M37220M3-XXXSP , and and IN pin and respectively. The OUT IN ...
Page 5
... CRT output pins OUT respectively. The output structure zero page) which can be used to program each bit as an input (“0” output (“1”). The pins MITSUBISHI MICROCOMPUTERS M37220M3-XXXSP with ON-SCREEN DISPLAY CONTROLLER of zero page. Port P0 has the port ...
Page 6
... FUNCTIONAL DESCRIPTION Central Processing Unit (CPU) The M37220M3-XXXSP uses the standard 740 family instruction set. Refer to the table of 740 family addressing modes and machine in- structions or the SERIES 740 <Software> User’s Manual for details on the instruction set. Machine-resident 740 family instructions are as follows: The FST, SLW instruction cannot be used ...
Page 7
... ROM for display Zero page (4 K bytes) SFR area Not used Not used Special page MITSUBISHI MICROCOMPUTERS M37220M3-XXXSP with ON-SCREEN DISPLAY CONTROLLER to 00FF are called the zero FFFF are called the spe 10000 ...
Page 8
... PW5 PW4 PW3 PW2 PW1 PN4 PN3 PN2 SM6 SM5 SM3 SM2 SM1 DA15 DA14 DA13 DA12 DA11 DA25 DA24 DA23 DA22 DA21 MITSUBISHI MICROCOMPUTERS M37220M3-XXXSP with ON-SCREEN DISPLAY CONTROLLER State immediately after reset ...
Page 9
... IT3R VSCR CRTR TM4R TM3R TM2R TM1R MSR CK0 S1R 1T2R 1T1R IT3E VSCE CRTE TM4E TM3E TM2E TM1E 1T2E 1T1E MSE S1E MITSUBISHI MICROCOMPUTERS M37220M3-XXXSP with ON-SCREEN DISPLAY CONTROLLER State immediately after reset ...
Page 10
... FFEF , FFEE FFED , FFEC FFEB , FFEA FFE9 , FFE8 FFE5 , FFE4 FFDF , FFDE MITSUBISHI MICROCOMPUTERS M37220M3-XXXSP )/4096 period. Set bit 0 IN Remarks Non-maskable Active edge selectable Active edge selectable Active edge selectable Non-maskable (software interrupt) ...
Page 11
... Interrupt request issued interrupt enable bit 0 : Interrupt disabled 1 : Interrupt enabled ) 16 MITSUBISHI MICROCOMPUTERS M37220M3-XXXSP with ON-SCREEN DISPLAY CONTROLLER 0 Interrupt request register 2 (IREQ2 : address 00FD ) 16 INT1 interrupt request bit INT2 interrupt request bit Serial I/O interrupt request bit X /4096 interrupt request bit IN Fix this bit to “ ...
Page 12
... Interrupt request bit Interrupt enable bit Interrupt disable flag I Fig. 6. Interrupt control 12 SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER for VOLTAGE SYNTHESIZER with ON-SCREEN DISPLAY CONTROLLER BRK instruction Reset MITSUBISHI MICROCOMPUTERS M37220M3-XXXSP Interrupt request ...
Page 13
... TIMERS The M37220M3-XXXSP has 4 timers: timer 1, timer 2, timer 3, and timer 4. All timers are 8-bit timers with the 8-bit timer latch. The timer block diagram is shown in Figure 8. All of the timers count down and their divide ratio is 1/(n+1), where n is the value of timer latch. The value is set to a timer at the same time ...
Page 14
... Fix this bit to “0.” Fig. 7. Structure of timer-related registers 14 SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER for VOLTAGE SYNTHESIZER with ON-SCREEN DISPLAY CONTROLLER /TIM2 pin 4 MITSUBISHI MICROCOMPUTERS M37220M3-XXXSP 0 Timer 34 mode register (T34M : address 00F5 ) 16 Timer 3 count source selection bit 0 : f(X )/ External clock ...
Page 15
... Timer 2 latch (8) 8 Timer 2 (8) T12M1 T12M3 T34M5 Timer 3 latch (8) 8 Timer 3 (8) T34M0 T34M2 T34M1 Timer 4 latch (8) 8 Timer 4 (8) T34M4 T34M3 MITSUBISHI MICROCOMPUTERS M37220M3-XXXSP Data bus 8 Timer 1 interrupt request 8 8 Timer 2 interrupt request 8 8 Reset STP FF 16 instruction Timer 3 interrupt request ...
Page 16
... SERIAL I/O The M37220M3-XXXSP has a built-in serial I/O which can either trans- mit or receive 8-bit data in serial in the clock synchronous mode. The serial I/O block diagram is shown in Figure 9. The synchronizing clock I/O pin (S ), and data I/O pins (S CLK OUT port P2. Bit 2 of the serial I/O mode register (address 00DC ...
Page 17
... IN Fig. 10. Structure of serial I/O mode register pin is at high-impedance after transfer is completed. OUT MITSUBISHI MICROCOMPUTERS M37220M3-XXXSP with ON-SCREEN DISPLAY CONTROLLER 0 Serial I/O mode register 0 (SM : address 00DC Internal synchronizing clock selection bits f(X )/ f(X ...
Page 18
... CLK OUT SM: Serial I/O mode register Fig. 12. Signals on serial I/O common transmission/reception mode 18 SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER for VOLTAGE SYNTHESIZER with ON-SCREEN DISPLAY CONTROLLER and IN ” to the serial 16 Clock “1” Serial I/O shift register (8) “0” SM6 MITSUBISHI MICROCOMPUTERS M37220M3-XXXSP ...
Page 19
... PWM OUTPUT FUNCTION The M37220M3-XXXSP is equipped with a 14-bit PWM (DA) and six 8-bit PWMs (PWM0–PWM5). DA has a 14-bit resolution with the minimum resolution bit width of 0.25 s (for f(X repeat period of 4096 s. PWM0–PWM5 have the same circuit struc- ture and an 8-bit resolution with minimum resolution bit width (for f MHz) and repeat period of 1024 s ...
Page 20
... PN3 8-bit PWM circuit PWM1 register (Address : 00D1 ) 16 PWM2 register (Address : 00D2 ) 16 PWM3 register (Address : 00D3 ) 16 PWM4 register (Address : 00D4 ) 16 PWM5 register (Address : 00F6 ) 16 MITSUBISHI MICROCOMPUTERS M37220M3-XXXSP DA-L register (Note) (Address : 00CF ) 16 LSB 6 PN4 PN2 DA D-A PW1 PWM0 PW2 PWM1 D0 ...
Page 21
... Fig. 14. 8-bit PWM timing SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER for VOLTAGE SYNTHESIZER with ON-SCREEN DISPLAY CONTROLLER MITSUBISHI MICROCOMPUTERS M37220M3-XXXSP 21 ...
Page 22
... counter = 0. Repeat period T = 4096 MHz) MITSUBISHI MICROCOMPUTERS M37220M3-XXXSP with ON-SCREEN DISPLAY CONTROLLER Set “28 ” to DA-L register Undefined 0. 0.25 s … … ...
Page 23
... MITSUBISHI MICROCOMPUTERS M37220M3-XXXSP with ON-SCREEN DISPLAY CONTROLLER 0 PWM output control register 2 (PN: address 00D6 ) 16 DA output polarity selection bit 0 : Positive polarity 1 : Negative polarity PWM output polarity selection bit 0 : Positive polarity ...
Page 24
... Do not set Data bus A-D control register 1 Compa- Bit 4 Bit 5 Bit 4 rator MITSUBISHI MICROCOMPUTERS M37220M3-XXXSP with ON-SCREEN DISPLAY CONTROLLER 0 A-D control register 2 (AD2: address 00EF D-A converter set bits Refer to Table 3. ” ref A-D control register 2 Reference Bit 3 Bit 2 Bit 1 Bit 0 voltage “V ...
Page 25
... D-A CONVERTER The M37220M3-XXXSP has 2 D-A converters with 6-bit resolution. D-A converter block diagram is shown in Figure 22. D-A conversion is performed by setting the value in the DA conver- sion register. The result of D-A conversion is output from the DA pin by setting “1” to the DA output enable bit of the port P3 output mode control register (bits 2 and 3 at address 00CD The output analog voltage V is determined with the value n (n: deci- mal number) in the DA conversion register ...
Page 26
... CRT DISPLAY FUNCTIONS (1) Outline of CRT Display Functions Table 5 outlines the CRT display functions of the M37220M3-XXXSP. The M37220M3-XXXSP incorporates a CRT display control circuit of 20 characters 2 lines. CRT display is controlled by the CRT con- trol register 128 kinds of characters can be displayed. The colors can be specified for each character and kinds of colors can be displayed on one screen ...
Page 27
... SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER for VOLTAGE SYNTHESIZER OSC1 Display oscillation ) 16 Display position control circuit ROM for display 12 bits 16 128 Shift register 12 bits R MITSUBISHI MICROCOMPUTERS M37220M3-XXXSP with ON-SCREEN DISPLAY CONTROLLER OSC2 H V SYNC SYNC circuit Display control circuit Shift register 12 bits Output circuit G ...
Page 28
... Figure 28 shows the structure of the vertical position regis- 16 ter. (HR) CV1 Block 1 CV2 Block 2 (a) Example when each block is separated CV1 Block 1 CV2 Block 2 CV1 Block 1 (second) (b) Example when block 2 overlaps with block 1 MITSUBISHI MICROCOMPUTERS M37220M3-XXXSP with ON-SCREEN DISPLAY CONTROLLER ” to “ display No display ” 16 and 16 ...
Page 29
... Figure 29 signal near rising Fig. 29. Structure of horizontal position register MITSUBISHI MICROCOMPUTERS M37220M3-XXXSP with ON-SCREEN DISPLAY CONTROLLER 0 Vertical position registers 1, 2 (CV1 : address 00E1 ) 16 (CV2 : address 00E2 ) 16 Vertical display start positions 128 steps from “ ...
Page 30
... Fig. 31. Display start position of each character size (horizontal direction) Character Width (horizontal) direction size T : oscillating cycle for display C Minimum Medium Large This is not available MITSUBISHI MICROCOMPUTERS M37220M3-XXXSP 0 Character size register (CS : address 00E4 ) 16 Character size of block 1 selection bits Minimum size Medium size Large size not set. ...
Page 31
... MITSUBISHI MICROCOMPUTERS M37220M3-XXXSP with ON-SCREEN DISPLAY CONTROLLER [horizontal (left side) 8 dots] data of display char- to 107FF ; the [vertical 10FFF (refer to Figure 32). Note 10FFF must be set to “1” (by writing data “ ...
Page 32
... MITSUBISHI MICROCOMPUTERS M37220M3-XXXSP with ON-SCREEN DISPLAY CONTROLLER to 06B3 ) 06B3 16 and write the color 16 Color specification 0680 16 0681 16 0682 16 : 0691 16 0692 16 0693 16 0694 16 to 069F 16 06A0 16 06A1 ...
Page 33
... Color register specification 7 0 Character code 1 0 Color register specification MITSUBISHI MICROCOMPUTERS M37220M3-XXXSP Specify 128 characters (“00 ” to “7F ” Specifying color register Specifying color register Specifying color register Specifying color register 3 Specify 128 characters (“00 ” ...
Page 34
... Bit 5 is used to specify whether a character output or blank output. Figure 34 shows the structure of the color register. 34 SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER for VOLTAGE SYNTHESIZER with ON-SCREEN DISPLAY CONTROLLER Fig. 34. Structure of color registers MITSUBISHI MICROCOMPUTERS M37220M3-XXXSP 0 Color register (CO0 : address 00E6 ) 16 (CO1 : address 00E7 ) 16 (CO2 : address 00E8 ...
Page 35
... Table 9. Relationship between set value in border selection register and character border function Border selection register MDn0 0 1 SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER for VOLTAGE SYNTHESIZER ) 16 Fig. 36. Example of border Functions Ordinary Border including character MITSUBISHI MICROCOMPUTERS M37220M3-XXXSP with ON-SCREEN DISPLAY CONTROLLER Example of output output OUT output output OUT output 35 ...
Page 36
... Multiline Display The M37220M3-XXXSP can ordinarily display 2 lines on the CRT screen by displaying 2 blocks at different vertical positions. In addi- tion, it can display lines by using CRT interrupts. A CRT interrupt request occurs at the point at which display of each block has been completed. In other words, when a scanning line ...
Page 37
... SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER for VOLTAGE SYNTHESIZER 7 and output polarity of “RED” “BLUE” A' Fig. 38. Structure of CRT port control register Signals across A – A' MITSUBISHI MICROCOMPUTERS M37220M3-XXXSP with ON-SCREEN DISPLAY CONTROLLER 0 CRT port control register (CRTP : address 00EC 16 H input polarity switch SYNC bit 0 : Positive polarity ...
Page 38
... SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER for VOLTAGE SYNTHESIZER with ON-SCREEN DISPLAY CONTROLLER Fig. 40. Structure of CRT clock selection register Functions and P3 respectively MITSUBISHI MICROCOMPUTERS M37220M3-XXXSP 0 CRT clock selection register (CK : address 00ED ) 16 Display clock selection bits Refer to Table 10. Fix these bits to “0.” CRT oscillation frequency = f ...
Page 39
... RESET CIRCUIT The M37220M3-XXXSP is reset according to the sequence shown in Figure 41. It starts the program from the address formed by using the content of address FFFF as the high-order address and the 16 content of the address FFFE as the low-order address, when the 16 RESET pin is held at “L” level for more while the power source voltage ± ...
Page 40
... Interrupt control register Processor status register Program counter ) MITSUBISHI MICROCOMPUTERS M37220M3-XXXSP with ON-SCREEN DISPLAY CONTROLLER Address Contents of register (00EA ) 16 0 (00EC ) (00ED ) 16 (00EE ) (00EF ) 16 FF (00F0 ...
Page 41
... Direction register Data bus Port latch Fig. 44. I/O pin block diagram (1) SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER for VOLTAGE SYNTHESIZER with ON-SCREEN DISPLAY CONTROLLER MITSUBISHI MICROCOMPUTERS M37220M3-XXXSP N-channel open drain output Port P0 – Note: Each port is also used as below: P0 –P0 : PWM0– ...
Page 42
... Fig. 45. I/O pin block diagram (2) 42 SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER for VOLTAGE SYNTHESIZER D- OUT Schmidt input SYNC SYNC Data bus MITSUBISHI MICROCOMPUTERS M37220M3-XXXSP with ON-SCREEN DISPLAY CONTROLLER CMOS output D- OUT Note: Each pin is also used as below ...
Page 43
... IN 19 External oscillation circuit Fig. 47. External clock input circuit example pin Reset WIT instruction STP instruction R 1/2 1/8 T34M0 T34M2 OUT MITSUBISHI MICROCOMPUTERS M37220M3-XXXSP with ON-SCREEN DISPLAY CONTROLLER M 37220M 3- XXXSP Vcc Vss Reset ...
Page 44
... The following are necessary when ordering a mask ROM produc- tion: (1) Mask ROM Order Confirmation Form (2) Mark Specification Form (3) Data to be written to ROM, in EPROM form (32-pin DIP type Vcc 27C101, three identical copies) Vss Vcc Vss MITSUBISHI MICROCOMPUTERS M37220M3-XXXSP pin–V pin and the V pin– ...
Page 45
... CLK + I ) must less. OL2 – must less –CNV . CC SS MITSUBISHI MICROCOMPUTERS M37220M3-XXXSP with ON-SCREEN DISPLAY CONTROLLER Ratings –0 –0 –0 0.3 CC –0 0.3 CC –0 (Note (Note (Note 2) ...
Page 46
... –10 ° °C, unless otherwise noted) a Test conditions = –10 ° °C, unless otherwise noted) a Test conditions MITSUBISHI MICROCOMPUTERS M37220M3-XXXSP with ON-SCREEN DISPLAY CONTROLLER = –10 ° °C, unless otherwise noted) a Limits Min. Typ. Max ...
Page 47
... PACKAGE OUTLINE SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER for VOLTAGE SYNTHESIZER with ON-SCREEN DISPLAY CONTROLLER MITSUBISHI MICROCOMPUTERS M37220M3-XXXSP 47 ...
Page 48
... Mark specification Mark specification must be submitted using the correct form for the type package being ordered fill out the appropriate mark specification form (42P4B for M37220M3-XXXSP) and attach to the mask ROM confirmation form. 3. Comments 48 SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER for VOLTAGE SYNTHESIZER ...
Page 49
... If the name of the product contained in the EPROMs does not match the name on the mask ROM confirmation form, the ROM processing is disabled. Write the data correctly. 1. Inputting the name of the product with the ASCII code ASCII codes ‘M37220M3-’ are listed on the right. The addresses and data are in hexadecimal notation. 2. Inputting the character ROM Input the character ROM data by dividing it into character ROM1 and character ROM2 ...
Page 50
... GZZ–SH09–72B< 56A0 > SINGLE-CHIP MICROCOMPUTER M37220M3-XXXSP The structure of character ROM (divided dots font) Example Character code b 7 Example 101A0 101AF SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER for VOLTAGE SYNTHESIZER 740 FAMILY MASK ROM CONFIRMATION FORM MITSUBISHI ELECTRIC “ ...
Page 51
... SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER for VOLTAGE SYNTHESIZER with ON-SCREEN DISPLAY CONTROLLER MITSUBISHI MICROCOMPUTERS M37220M3-XXXSP 51 ...
Page 52
MITSUBISHI DATA BOOK SINGLE-CHIP 8-BIT MICROCOMPUTERS Vol.3 Sep. First Edition 1996 H-DF319-B Editioned by Committee of editing of Mitsubishi Semiconductor Data Book Published by Mitsubishi Electric Corp., Semiconductor Division This book, or parts thereof, may not be reproduced in any ...
Page 53
... REVISION DESCRIPTION LIST Rev. No. 1.0 First Edition 2.0 Information about copywright note, revision number, release data added (last page). 2.1 Correct note (P43) M37220M3-XXXSP DATA SHEET Revision Description (1/1) Rev. date 9708 971130 980731 ...