M37221EFSP MITSUBISHI, M37221EFSP Datasheet

no-image

M37221EFSP

Manufacturer Part Number
M37221EFSP
Description
Single-chip 8-bit CMOS microcfomputer for voltage synthesizer with on-screen display controller. ROM 62K bytes, RAM 1216K bytes
Manufacturer
MITSUBISHI
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
M37221EFSP
Manufacturer:
MIT
Quantity:
6 220
DESCRIPTION
The M37221EF-XXXSP and M37221EFSP are single-chip microcom-
puters designed with CMOS silicon gate technology. They are housed
in a 42-pin shrink plastic molded 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 M37221EF-XXXSP and M37221EFSP have a PWM output func-
tion and a OSD display function, so it is useful for a channel selection
system for TV.
FEATURES
Memory size
The minimum instruction execution time
Power source voltage .................................................. 5 V ± 10 %
Power dissipation............................................................. 165 mW
Subroutine nesting ....................................... 96 levels (maximum)
Interrupts ....................................................... 14 types, 14 vectors
8-bit timers .................................................................................. 4
Programmable I/O ports (Ports P0, P1, P2, P3
Input ports (Ports P3
Output ports (Ports P5
12 V withstand ports .................................................................... 6
LED drive ports ........................................................................... 4
Serial I/O ............................................................ 8-bit
Multi-master I
A-D comparator (6-bit resolution) ................................ 6 channels
D-A converter (6-bit resolution) ................................................... 2
PWM output circuit ......................................... 14-bit
ROM correction function ........................................... 32 bytes
Number of basic instructions ..................................................... 71
......................................... 0.5 s (at 8 MHz oscillation frequency)
(at 8 MHz oscillation frequency, V
ROM ........................................................ 62 K bytes
RAM ....................................................... 1216 bytes
ROM for display ......................................... 8 K bytes
RAM for display .......................................... 96 bytes
2
C-BUS interface ............................... 1 (2 systems)
3
, P3
2
–P5
4
) ......................................................... 2
5
) ...................................................... 4
M37221EF-XXXSP,M37221EFSP
CC
=5.5V, at CRT display)
SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER for VOLTAGE SYNTHESIZER
0
–P3
2
) .............. 27
1, 8-bit
1 channel
6
2
APPLICATION
TV
PIN CONFIGURATION (TOP VIEW)
CRT display function
P0
Number of display characters ................ 24 characters
Kinds of characters ..................................................... 256 kinds
Dot structure .......................................................... 12
Kinds of character sizes .................................................. 3 kinds
Kinds of character colors (It can be specified by the character)
Kinds of character background colors (It can be specified by the character)
Kinds of raster colors (maximum 7 kinds)
Display position
Bordering (horizontal and vertical)
6
maximum 7 kinds (R, G, B)
maximum 7 kinds (R, G, B)
Horizontal .................................................................. 64 levels
Vertical .................................................................... 128 levels
/INT2/A-D4
P0
P0
P0
P0
P0
P0
P2
P2
P0
0
1
2
3
4
5
/PWM0
/PWM1
/PWM2
/PWM3
/PWM4
/PWM5
CNV
3
4
7
H
V
/TIM3
/TIM2
/INT1
with ON-SCREEN DISPLAY CONTROLLER
X
SYNC
SYNC
D-A
P2
P2
P3
V
P2
OUT
X
SS
SS
IN
5
6
7
2
MITSUBISHI MICROCOMPUTERS
10
11
12
13
14
15
16
17
18
19
20
21
Outline 42P4B
1
2
3
4
5
6
7
8
9
42
41
40
39
38
37
36
35
34
33
32
31
30
29
28
27
26
25
24
23
22
(16 lines maximum)
P5
P5
P2
P2
P1
P1
P1
P1
P5
P2
P1
P1
P1
P1
P3
P3
OSC1/P3
OSC2/P3
V
P5
RESET
CC
3
5
0
2
0
1
2
5
2
4
1
3
4
6
7
0
1
/G
/OUT1
/S
/S
/OUT2
/SCL1
/SCL2
/A-D1/INT3
/R
/B
/S
/SDA1
/SDA2
/A-D2
/A-D3
/A-D5/DA1
/A-D6/DA2
CLK
IN
OUT
3
4
16 dots
2 lines

Related parts for M37221EFSP

M37221EFSP Summary of contents

Page 1

... 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 M37221EF-XXXSP and M37221EFSP have a PWM output func- tion and a OSD display function useful for a channel selection system for TV. ...

Page 2

... M37221EF-XXXSP,M37221EFSP SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER for VOLTAGE SYNTHESIZER with ON-SCREEN DISPLAY CONTROLLER MITSUBISHI MICROCOMPUTERS H SYNC V SYNC OUT1 OUT2 PWM0 PWM1 PWM2 PWM3 PWM4 PWM5 OUT S S CLK S IN INT1 INT2 INT3 ...

Page 3

... CRT display function Number of display characters Dot structure Kinds of characters Kinds of character sizes Kinds of character colors Display position (horizontal, vertical) M37221EF-XXXSP,M37221EFSP SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER for VOLTAGE SYNTHESIZER 71 0.5 s (the minimum instruction execution time MHz oscillation fre- quency) 8 MHz (maximum bytes ...

Page 4

... Input Clock input for CRT display Clock output for Output CRT display 4 M37221EF-XXXSP,M37221EFSP SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER for VOLTAGE SYNTHESIZER with ON-SCREEN DISPLAY CONTROLLER Functions Apply voltage ± (typical This is connected enter the reset state, the reset input pin must be kept at a “L” for more (under normal V conditions) ...

Page 5

... The input pins are in the floating state, so the values of the pins can be read. When data is written into the input pin written only into the port latch, while the pin remains in the floating state. M37221EF-XXXSP,M37221EFSP SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER for VOLTAGE SYNTHESIZER with ON-SCREEN DISPLAY CONTROLLER Ports P5 – ...

Page 6

... Note : Please beware of this bit when programming because it Fig. 1. Structure of CPU mode register 6 M37221EF-XXXSP,M37221EFSP SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER for VOLTAGE SYNTHESIZER CPU Mode Register The CPU mode register contains the stack page selection bit. The CPU mode register is allocated at address 00FB ...

Page 7

... FFDE 16 Interrupt vector area FFFF 16 Fig. 2. Memory map M37221EF-XXXSP,M37221EFSP SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER for VOLTAGE SYNTHESIZER Interrupt Vector Area The interrupt vector area contains reset and interrupt vectors. Zero Page The 256 bytes from addresses 0000 page area. The internal RAM and the special function registers (SFR) are allocated to this area ...

Page 8

... DC Serial I/O mode register (SM Serial I/O regsiter (SIO DA1 conversion register (DA1 DA2 conversion register (DA2) 16 Fig. 3. Memory map of SFR (special function register) (1) 8 M37221EF-XXXSP,M37221EFSP SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER for VOLTAGE SYNTHESIZER Bit allocation b7 DA2S DA1S P31S PW7 PW6 PW5 PW4 ...

Page 9

... FC Interrupt request register 1 (IREQ1 Interrupt request register 2 (IREQ2 Interrupt control register 1 (ICON1 Interrupt control register 2 (ICON2) 16 Fig. 4. Memory map of SFR (special function register) (2) M37221EF-XXXSP,M37221EFSP SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER for VOLTAGE SYNTHESIZER Bit allocation b7 b0 HR5 HR4 HR3 HR2 HR1 HR0 ...

Page 10

... ROM correction enable register (RCR) 16 21C 16 21D 16 21E 16 21F 16 Fig. 5. Memory map of 2 page register 10 M37221EF-XXXSP,M37221EFSP SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER for VOLTAGE SYNTHESIZER with ON-SCREEN DISPLAY CONTROLLER to 21F ) 16 16 Bit allocation b7 b0 RCR1 RCR0 MITSUBISHI MICROCOMPUTERS State immediately after reset ...

Page 11

... Timer 2 interrupt Timer 1 interrupt Serial I/O interrupt 2 Multi-master I C-BUS interface interrupt INT3 interrupt BRK instruction interrupt M37221EF-XXXSP,M37221EFSP SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER for VOLTAGE SYNTHESIZER with ON-SCREEN DISPLAY CONTROLLER Interrupt Causes (1) V and CRT interrupts SYNC The V interrupt is an interrupt request synchronized with SYNC the vertical sync signal ...

Page 12

... I (non-maskable). Interrupt request bit Interrupt enable bit Interrupt disable flag I Fig. 6. Interrupt control 12 M37221EF-XXXSP,M37221EFSP SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER for VOLTAGE SYNTHESIZER )/4096 period. Set bit C-BUS inter- BRK instruction ...

Page 13

... Negative polarity INT2 polarity switch bit 0 : Positive polarity 1 : Negative polarity INT3 polarity switch bit 0 : Positive polarity 1 : Negative polarity Fix this bit to “0.” Fig. 7. Structure of interrupt-related registers M37221EF-XXXSP,M37221EFSP SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER for VOLTAGE SYNTHESIZER with ON-SCREEN DISPLAY CONTROLLER interrupt request bit 2 ...

Page 14

... Timer 4 interrupt request occurs at timer 4 overflow. 14 M37221EF-XXXSP,M37221EFSP SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER for VOLTAGE SYNTHESIZER with ON-SCREEN DISPLAY CONTROLLER At reset, timers 3 and 4 are connected by hardware and “FF automatically set in timer 3; “07 lected as the timer 3 count source ...

Page 15

... Count start 1 : Count stop Timer 2 internal count source selection bit 0 : f(X )/ Timer 1 overflow Fix this bit to “0.” Fig. 8. Structure of timer-related registers M37221EF-XXXSP,M37221EFSP SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER for VOLTAGE SYNTHESIZER with ON-SCREEN DISPLAY CONTROLLER /TIM2 pin 4 0 Timer 34 mode register (T34M : address 00F5 ...

Page 16

... When the external clock source is selected, timers 2 and 3 are counted at a rising edge of input signal the stop mode or the wait mode, external clock inputs TIM2 and TIM3 cannot be used. Fig. 9. Timer block diagram 16 M37221EF-XXXSP,M37221EFSP SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER for VOLTAGE SYNTHESIZER with ON-SCREEN DISPLAY CONTROLLER Timer 1 latch (8) 8 ...

Page 17

... CLK SM3 P2 latch OUT SM3 SM6 Note: When the data is set in the serial I/O register (address 00DD Fig. 10. Serial I/O block diagram M37221EF-XXXSP,M37221EFSP SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER for VOLTAGE SYNTHESIZER , S ) also function OUT IN ) selects whether 16 /S pin as the Frequency divider 1/4 ...

Page 18

... OUT Serial I/O input S IN Note : When an internal clock is selected, the S Fig. 12. Serial I/O timing (for LSB first) 18 M37221EF-XXXSP,M37221EFSP SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER for VOLTAGE SYNTHESIZER with ON-SCREEN DISPLAY CONTROLLER 7 0 pin and data in IN Fig. 11. Structure of serial I/O mode register ...

Page 19

... I/O register CLK OUT SM: Serial I/O mode register Fig. 13. Signals on serial I/O common transmission/reception mode M37221EF-XXXSP,M37221EFSP 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 19 ...

Page 20

... Noise Serial Clock elimination clock control circuit (SCL) circuit 2 Fig. 14. Block diagram of multimaster I C-BUS interface 20 M37221EF-XXXSP,M37221EFSP SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER for VOLTAGE SYNTHESIZER Table 2. Multi-master I Item Format 2 C-BUS inter address reg Communication mode SCL clock frequency : System clock = f(X Note: We are not responsible for any third party’s infringement of ...

Page 21

... These bits store slave addresses. Regardless of the 7-bit address- ing mode and the 10-bit addressing mode, the address data trans- mitted from the master is compared with the contents of these bits. M37221EF-XXXSP,M37221EFSP SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER for VOLTAGE SYNTHESIZER ) is an 8-bit shift ...

Page 22

... Note: At 400 kHz in the high-speed clock mode, the duty is 40%. In the other cases, the duty is 50%. 22 M37221EF-XXXSP,M37221EFSP SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER for VOLTAGE SYNTHESIZER 2 ( Control Register 2 The I C control register (address 00DA C clock control register tion format Bits Bit counter (BC0–BC2) These bits decide the number of bits for the next 1-byte data to be transmitted ...

Page 23

... RBW), the first bytes agree. The state of this bit is changed from “1” to “0” by executing a write 2 instruction to the I C data shift register (address 00D7 M37221EF-XXXSP,M37221EFSP SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER for VOLTAGE SYNTHESIZER 7 “0” BSEL1 BSEL0 10 BIT “1” BSEL0 ...

Page 24

... TRX bit is set to “1” (transmit) if the least significant bit (R/W bit) of the address data trans- 24 M37221EF-XXXSP,M37221EFSP SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER for VOLTAGE SYNTHESIZER with ON-SCREEN DISPLAY CONTROLLER mitted by the master is “1.” When the ALS bit is “0” and the R/W bit is “ ...

Page 25

... Fig. 19. Structure status register SCL PIN IICIRQ Fig. 20. Interrupt request signal generating timing M37221EF-XXXSP,M37221EFSP SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER for VOLTAGE SYNTHESIZER with ON-SCREEN DISPLAY CONTROLLER (6) START Condition Generating Method When the ES0 bit of the I execute a write instruction to the for setting the MST, TRX and BB bits to “1.” Then a START condition occurs. After that, the bit counter becomes “ ...

Page 26

... S : START condition A : ACK bit Sr : Restart condition Fig. 24. Address data communication format 26 M37221EF-XXXSP,M37221EFSP SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER for VOLTAGE SYNTHESIZER (9) Address Data Communication There are two address data communication formats, namely, 7-bit addressing format and 10-bit addressing format. The respective ad- dress communication formats is described below. ...

Page 27

... SCL at the “H” level. Set a communication enable status by setting “48 control register (address 00DA ). 16 When a START condition is received, an address comparison is made. M37221EF-XXXSP,M37221EFSP SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER for VOLTAGE SYNTHESIZER •When all transmitted addresses are “0” (general call set to “1.” After 16 AD0 of the data shift register an interrupt request signal occurs ...

Page 28

... PWM register. A length of entirely “H” output cannot be output, i.e. 256/256. 28 M37221EF-XXXSP,M37221EFSP SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER for VOLTAGE SYNTHESIZER (4) Operating of 14-bit PWM As with 8-bit PWM, set the bit 0 of the PWM output control register 1 ...

Page 29

... D0 : Port P0 direction register PW : PWM output control register PWM output control register 2 Note : The DA-L register also functions as the low-order 6 bits of the DA latch. Fig. 25. PWM block diagram M37221EF-XXXSP,M37221EFSP SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER for VOLTAGE SYNTHESIZER with ON-SCREEN DISPLAY CONTROLLER ( 63) m Data bus ...

Page 30

... Fig. 26. 8-bit PWM timing 30 M37221EF-XXXSP,M37221EFSP SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER for VOLTAGE SYNTHESIZER with ON-SCREEN DISPLAY CONTROLLER ...

Page 31

... D5 D4 counter Fundamental waveform of smaller interval “tm” which is not specified by low-order 6 bits is not changed. 14-bit PWM output t Low-order 6-bit output of DA latch Fig. 27. 14-bit PWM output example (f(X IN M37221EF-XXXSP,M37221EFSP SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER for VOLTAGE SYNTHESIZER D [DA-L register writing of DA ...

Page 32

... PWM2 output P0 /PWM3 output selection bit PWM3 output P0 /PWM4 output selection bit PWM4 output P0 /PWM5 output selection bit PWM5 output Fig. 28. Structure of PWM-related registers 32 M37221EF-XXXSP,M37221EFSP SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER for VOLTAGE SYNTHESIZER output selection bit 4 output 4 output 0 output 1 output 2 output 3 output ...

Page 33

... Analog P1 /A-D3 7 signal P0 /INT2/A-D4 6 switch P3 /A-D5/DA1 0 P3 /A-D6/DA2 1 Fig. 31. A-D comparator block diagram M37221EF-XXXSP,M37221EFSP SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER for VOLTAGE SYNTHESIZER 7 ). Fig.30. Structure of A-D control register 2 Table 7. Relation between contents of A-D control register 2 and ) 16 reference voltage “V Bit 5 Bit not set. 1 ...

Page 34

... DA conversion set bits Refer to Table 8. Fix this bit to “0.” Fig. 32. Structure of D-A converter register Fig. 34. D-A converter block diagram 34 M37221EF-XXXSP,M37221EFSP SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER for VOLTAGE SYNTHESIZER Fig. 33. Structure of port P3 output mode register Table 8. Relation between contents of D-A conversion register and ...

Page 35

... Possible (multiline display) Raster coloring Possible (maximum 7 kinds) Character background Possible (a character unit, 1 screen : 4 kinds, maximum 7 kinds) coloring M37221EF-XXXSP,M37221EFSP SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER for VOLTAGE SYNTHESIZER Fig. 35. CRT display character configuration 7 Functions 2 lines Note: Display is controlled by logical product (AND) Fig. 36. Structure of CRT control register ...

Page 36

... Border selection register RAM for display 10 bits (Addresses 00E6 16 to 00E9 ) 16 Color registers (Address 00EC CRT port control register Data bus Fig. 37. Block diagram of CRT display control circuit 36 M37221EF-XXXSP,M37221EFSP SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER for VOLTAGE SYNTHESIZER ) 16 , 00E2 ) ROM for display ...

Page 37

... CV1 CV1 (b) Example when block 2 overlaps with block 1 Fig. 38. Display position M37221EF-XXXSP,M37221EFSP SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER for VOLTAGE SYNTHESIZER with ON-SCREEN DISPLAY CONTROLLER Block 2 is displayed after the display of block 1 is completed (refer to Figure 38 (a)). Accordingly, if the display of block 2 starts during the display of block 1, only block 1 is displayed ...

Page 38

... Note: Do not generate falling edge of H SYNC edge of V control signal in microcomputer to avoid SYNC jitter. Fig. 39. Supplement explanation for display position 38 M37221EF-XXXSP,M37221EFSP SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER for VOLTAGE SYNTHESIZER 7 signal. So interval SYNC signals can se- SYNC ). For details. 16 signal after SYNC Fig ...

Page 39

... Note: The display start position in the horizontal direction is not affected by the character size. In other words, the horizontal display start position is common to all blocks even when the character size varies with each block (refer to Figure 43). M37221EF-XXXSP,M37221EFSP SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER for VOLTAGE SYNTHESIZER ...

Page 40

... Fig. 44. Display character stored data 40 M37221EF-XXXSP,M37221EFSP SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER for VOLTAGE SYNTHESIZER The CRT display ROM has a capacity bytes. Since 32 bytes are required for 1 character data, the ROM can stores up to 256 kinds of characters. ) used to specify the The CRT display ROM space is broadly divided into 2 areas. The ...

Page 41

... Block 2 22nd character 23rd character 24th character M37221EF-XXXSP,M37221EFSP SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER for VOLTAGE SYNTHESIZER RAM for display (addresses 0600 The CRT display RAM is allocated at addresses 0600 and is divided into a display character code specification part and Right 4 dots lines display color specification part for each block ...

Page 42

... Fig. 45. Structure of CRT display RAM 42 M37221EF-XXXSP,M37221EFSP SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER for VOLTAGE SYNTHESIZER with ON-SCREEN DISPLAY CONTROLLER 7 0 Character code 1 0 Color register specification 7 0 Character code 1 0 ...

Page 43

... R, G and B outputs are set by using bits the color register. Bit 5 is used to specify whether a character output or blank output. Figure 46 shows the structure of the color register. M37221EF-XXXSP,M37221EFSP SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER for VOLTAGE SYNTHESIZER with ON-SCREEN DISPLAY CONTROLLER 7 ...

Page 44

... COn :The portion “A” in which character dots are displayed is not mixed with any TV video signal. 4 :The wavy-lined arrows in the Table denote video signals M37221EF-XXXSP,M37221EFSP SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER for VOLTAGE SYNTHESIZER G output B output OUT1 output output Same output as ...

Page 45

... Border output Fig. 47. Structure of border selection register Table 14. Relationship between set value in border selection register and character border function Border selection register MDn0 0 1 M37221EF-XXXSP,M37221EFSP SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER for VOLTAGE SYNTHESIZER with ON-SCREEN DISPLAY CONTROLLER ) 16 Fig. 48. Example of border Functions Ordinary ...

Page 46

... Block 1' (off display) No “CRT interrupt request” Block 2' (off display) Off display (CRT interrupt request does not occur at the end of block display) Fig. 49. Timing of CRT interrupt request 46 M37221EF-XXXSP,M37221EFSP SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER for VOLTAGE SYNTHESIZER with ON-SCREEN DISPLAY CONTROLLER MITSUBISHI MICROCOMPUTERS ...

Page 47

... An example in which a magenta character “I” and a red character “O” are displayed with blue raster coloring is shown in Figure 51 SYNC R B OUT1 Fig. 51. Example of raster coloring M37221EF-XXXSP,M37221EFSP SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER for VOLTAGE SYNTHESIZER 7 . Set bit 7 of the and output polarity of “RED” ...

Page 48

... CRT display and a feedback resistor • a quartz-crystal oscillator only for CRT display and a feedback resistor (Note) Note necessary to connect other ceramic resonator or quartz-crystal oscillator across the pins X 48 M37221EF-XXXSP,M37221EFSP SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER for VOLTAGE SYNTHESIZER with ON-SCREEN DISPLAY CONTROLLER 7 ...

Page 49

... Use the JMP instruction (total of 3 bytes) to return from the main program to the program for correction not set the same ROM correction address to the blocks 1 and 2. M37221EF-XXXSP,M37221EFSP SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER for VOLTAGE SYNTHESIZER ROM correction address 1 (high-order) ROM correction address 1 (low-order) ...

Page 50

... X clock cycle (Note 3) Fig. 56. Reset sequence 50 M37221EF-XXXSP,M37221EFSP SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER for VOLTAGE SYNTHESIZER or a ceramic resonator is stable and then returned to “H” level. The internal state of microcomputer at reset are shown in Figure 57. An example of the reset circuit is shown in Figure 55. ...

Page 51

... Color register 2 (00E9 Color register 3 Note : The contents of all other registers and RAM are undefined at reset, so set their initial values. : Undefined : Unused bit Fig. 57. Internal state of microcomputer at reset M37221EF-XXXSP,M37221EFSP SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER for VOLTAGE SYNTHESIZER Contents of register ) CRT control register ...

Page 52

... Data bus Port latch Ports Direction register Data bus Port latch Fig. 58. I/O pin block diagram (1) 52 M37221EF-XXXSP,M37221EFSP SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER for VOLTAGE SYNTHESIZER with ON-SCREEN DISPLAY CONTROLLER MITSUBISHI MICROCOMPUTERS N-channel open drain output Ports P0 – Note: Each port is also used as below: P0 – ...

Page 53

... SYNC SYNC Internal circuit Fig. 59. I/O pin block diagram (2) M37221EF-XXXSP,M37221EFSP SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER for VOLTAGE SYNTHESIZER with ON-SCREEN DISPLAY CONTROLLER D- OUT1, OUT2 Schmidt input SYNC SYNC Internal circuit CMOS output D- OUT1, OUT2 Note: Each pin is also used as below OUT1 : P5 5 OUT2 : P1 ...

Page 54

... Selection gate : Connected to black colored side at reset. T34M : Timer 34 mode register Fig. 62. Clock generating circuit block diagram 54 M37221EF-XXXSP,M37221EFSP SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER for VOLTAGE SYNTHESIZER stops at “H” level. )/16 IN keeps its “H” level stops in Fig. 60. Ceramic resonator circuit example M37221EF-XXXSP X ...

Page 55

... Note : Make the level change from “L” to “H” at the point at which the power source voltage exceeds the specified voltage. Fig. 64. Auto-clear circuit example M37221EF-XXXSP,M37221EFSP SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER for VOLTAGE SYNTHESIZER with ON-SCREEN DISPLAY CONTROLLER ADDRESSING MODE The memory access is reinforced with 17 kinds of addressing modes. ...

Page 56

... Functional check in target device Caution : The screening temperature is far higher than the storage temperature. Never expose to 150°C exceeding 100 hours. Fig. 65. Programming and testing of One Time PROM version 56 M37221EF-XXXSP,M37221EFSP SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER for VOLTAGE SYNTHESIZER PCA7408 MITSUBISHI MICROCOMPUTERS with ON-SCREEN DISPLAY CONTROLLER ...

Page 57

... F or more capacitor externally across the power source pins V connect 0 more capacitor externally across the pins V 5: Use a quartz-crystal oscillator or a ceramic resonator for the CPU oscillation circuit. M37221EF-XXXSP,M37221EFSP SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER for VOLTAGE SYNTHESIZER Conditions All voltages are based on V ...

Page 58

... SCL1 and SCL2, SDA1 and SDA2) Note have the hysteresis when these pins are used as interrupt input pins or timer input pins hysteresis when these pins are used as serial I/O pins. P1 interface pins. 58 M37221EF-XXXSP,M37221EFSP SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER for VOLTAGE SYNTHESIZER ( f MHz Test conditions V = 5.5 V, System operation CC ...

Page 59

... SDA t BUF t LOW p S SCL STA Fig. 66. Definition diagram of timing on multi-master I M37221EF-XXXSP,M37221EFSP SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER for VOLTAGE SYNTHESIZER = – unless otherwise noted) a Test conditions = – unless otherwise noted) a Test conditions Standard clock mode High-speed clock mode Parameter ...

Page 60

... PACKAGE OUTLINE 60 M37221EF-XXXSP,M37221EFSP SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER for VOLTAGE SYNTHESIZER with ON-SCREEN DISPLAY CONTROLLER MITSUBISHI MICROCOMPUTERS ...

Page 61

... M37221EF-XXXSP,M37221EFSP SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER for VOLTAGE SYNTHESIZER with ON-SCREEN DISPLAY CONTROLLER MITSUBISHI MICROCOMPUTERS 61 ...

Page 62

... 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 form without permission of Mitsubishi Electric Corporation. ©1996 MITSUBISHI ELECTRIC CORPORATION Printed in Japan 62 SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER for VOLTAGE SYNTHESIZER MITSUBISHI DATA BOOK SINGLE-CHIP 8-BIT MICROCOMPUTERS Vol ...

Page 63

... 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 (P54) M37221EF-XXXSP, M37221EFSP DATA SHEET Revision Description (1/1) Rev. date 9708 971130 980731 ...

Related keywords