![]() |
|
If you can't view the Datasheet, Please click here to try to view without PDF Reader . |
|
Datasheet File OCR Text: |
1. description the M37280MFCxxxsp and m37280mk-xxxsp are single-chip microcomputers designed with cmos silicon gate technology. they have a osd function and a data slicer function, so it is useful for a channel selection system for tv with a closed caption decoder. the feautures of the m37280eksp is similar to those of the m37280mk-xxxsp except that the chip has a built-in prom which can be written electrically. the difference between m37280mk-xxxsp and M37280MF-xxxsp are the rom size and ram size. accord- ingly, the following descriptions will be for the m37280mk-xxxsp. 2. features l number of basic instructions .................................................... 71 l memory size rom ..................... 60k bytes (M37280MF-xxxsp) 80k bytes (m37280mk-xxxsp, m37280eksp) ram ..................... 1024 bytes (M37280MF-xxxsp) 1472 bytes (m37280mk-xxxsp, m37280eksp) rom correction memory ............................ 64 bytes l minimum instruction execution time ......................................... 0.5 m s (at 8 mhz oscillation frequency) l power source voltage ................................................. 5 v 10 % l subroutine nesting ............................................. 128 levels (max.) l interrupts ....................................................... 19 types, 16 vectors l 8-bit timers .................................................................................. 6 l programmable i/o ports (ports p0, p1, p2, p3 0 , p3 1 ) ............. 26 l input ports (ports p4 0 Cp4 6 , p6 3 , p6 4 , p7 0 Cp7 2 ) ...................... 12 l output ports (ports p3 2 , p4 7, p5 , p6 0 Cp6 2, p6 5 Cp6 7 ) .............. 16 l 12 v withstand ports ................................................................... 8 l led drive ports ........................................................................... 2 l serial i/o ............................................................ 8-bit 5 1 channel l multi-master i 2 c-bus interface .............................. 1 (2 systems) l a-d converter (8-bit resolution) .................................... 8 channels l pwm output circuit ......................................................... 8-bit 5 8 l power dissipation in high-speed mode ......................................................... 165 mw (at v cc = 5.5v, 8 mhz oscillation frequency, crt on, and data slicer on) in low-speed mode ......................................................... 0.33 mw (at v cc = 5.5v, 32 khz oscillation frequency) l rom correction function single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37280MFCxxxsp, m37280mkCxxxsp m37280eksp preliminary notice: this is not a final specification. some paramentic limits are subject to change. mitsubishi microcomputers ? ? ? ? ? ? ? ? ? ? ? t ? ? ? ? ? ? ? ? ? ? rev. 1.0 l closed caption data slicer l osd function display characters .... 32 characters 5 16 lines + ram font (1 character) (cc/osd mode)(cdosd mode)(ram font) kinds of characters ......... 510 kinds + 62 kinds + 1 kind (coloring unit) (a character) (a dot) (a dot) triple layer function ....................................................................... 2 layers selected from cc/cdosd/osd mode + ram font layer character display area .............. cc/cdosd mode: 16 5 26 dots osd mode/ram font: 16 5 20 dots kinds of character sizes .................... cc mode/ram font: 4 kinds osd/cdosd mode: 14 kinds kinds of character colors .............................................................. 64 colors (4 adjustment levels for each r, g, b) coloring unit ............ dot, character, character background, raster blanking output out1, out2 display position horizontal: 256 levels vertical :1024 levels (ram font can be set independently) attribute ........................................................................................ cc mode: smooth italic, underline, flash, automatic solid space osd mode: border, shadow window/blank function 3. application tv with a closed caption decoder 4. pin configuration refer to page 3. 5. block diagram refer to page 4. 6. performance overview refer to pages 5 and 6. 7. pin description refer to pages 7 to 11.
2 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37280MFCxxxsp, m37280mkCxxxsp m37280eksp mitsubishi microcomputers preliminary notice: this is not a final specification. some paramentic limits are subject to change. rev. 1.0 table of contents 8. pin configuration ........................................................................................................... ........................................................................ 3 9. functional block diagram .................................................................................................... .............................................................. 4 10. performance overview ....................................................................................................... ............................................................... 5 11. pin description ............................................................................................................ ........................................................................... 7 12. functional description ..................................................................................................... ............................................................... 12 12.1 central processing unit (cpu) ............................................................................................. .............................................. 12 12.2 memory .................................................................................................................... ..................................................................... 13 12.3 interrupts ................................................................................................................ .................................................................. 21 12.4 timers .................................................................................................................... ........................................................................ 26 12.5 serial i/o ................................................................................................................ ....................................................................... 30 12.6 multi-master i 2 c-bus interface ................................................................................................................ .......................... 33 12.7 pwm output circuit ........................................................................................................ ......................................................... 46 12.8 a-d converter ............................................................................................................. ............................................................... 50 12.9 rom correction function ................................................................................................... ................................................. 54 12.10 data slicer .............................................................................................................. .................................................................. 55 12.11 osd functions ............................................................................................................ .............................................................. 66 13. software runaway detect function ........................................................................................... .............................................. 117 14. reset circuit .............................................................................................................. .......................................................................... 118 15. clock generating circuit................................................................................................... ............................................................ 119 15.1 oscillation control ....................................................................................................... ....................................................... 119 16. display oscillation circuit ................................................................................................ ........................................................... 122 17. auto-clear circuit......................................................................................................... ................................................................... 122 18. addressing mode ............................................................................................................ ................................................................... 122 19. machine instructions ....................................................................................................... .............................................................. 122 20. programming notes .......................................................................................................... ............................................................... 122 21. absolute maximum ratings ................................................................................................... ......................................................... 123 22. recommended operating conditions ........................................................................................... ............................................. 123 23. electric characteristics ................................................................................................... .......................................................... 124 24. analog r, g, b output characteristics ...................................................................................... .............................................. 126 25. a-d convereter characteristics ............................................................................................. .................................................. 126 26. multi-master i 2 c-bus bus line characteristics ................................................................................................. ................... 127 27. data required for mask orders .............................................................................................. ................................................... 128 28. prom programming method .................................................................................................... ...................................................... 128 29. mask confirmation form ..................................................................................................... ........................................................... 129 30. mark specification form .................................................................................................... ............................................................ 135 31. appendix ................................................................................................................... ............................................................................. 136 32. package outline ............................................................................................................ .................................................................... 176 3 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37280MFCxxxsp, m37280mkCxxxsp m37280eksp mitsubishi microcomputers preliminary notice: this is not a final specification. some paramentic limits are subject to change. rev. 1.0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 64 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49 48 47 46 45 44 p5 0 /pwm 7 hlf/ad6 h sync v sync p4 0 ad4 p4 1 /int2 p4 2 /tim2 p4 3 /tim3 p2 4 /ad3 p2 5 /ad2 p0 1 /pwm5 p4 7 p0 2 /pwm6 p5 1 p1 7 /s in /r0 p3 2 p4 4 /int1 p5 6 p4 6 /s clk av cc p7 2 /(s in ) p5 2 /r/r1 p5 3 /g/g1 p5 4 /b/b1 p5 5 /out1 p0 4 /pwm0 p0 5 /pwm1 p6 0 p1 0 /out2 p1 1 /scl1 p1 2 /scl2 p1 3 /sda1 p1 4 /sda2 p1 5 /g0 p1 6 /int3/b0 p3 0 /ad7 p3 1 /ad8 reset p6 4 /osc2/x cout p6 3 /osc1/x cin v cc p0 3 /pwm7 p2 6 /ad1 p2 7 /ad5 p0 0 /pwm 4 p4 5 /s out p5 7 p0 6 /pwm2 p6 1 p2 1 p2 2 p2 3 22 23 24 25 26 43 42 41 40 39 M37280MF-xxxsp, m37280mk-xxxsp, m37280eksp p7 0 /cv in p7 1 /v hold cnv ss x out x in v ss 27 28 29 30 31 32 38 37 36 35 34 33 p0 7 /pwm3 p6 2 p2 0 p6 5 p6 6 p6 7 8. pin configuration outline 64p4b fig. 8.1 pin configuration (top view) 4 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37280MFCxxxsp, m37280mkCxxxsp m37280eksp mitsubishi microcomputers preliminary notice: this is not a final specification. some paramentic limits are subject to change. rev. 1.0 9. functional block diagram fig. 9.1 functional block diagram of m37280 clock input clock output x in x out reset input av cc v cc v ss cnv ss pins for data slicer clock output for osd/ sub-clock output input ports p6 3 , p6 4 osc1 osc2 clock input for osd/sub-clock input p1 (8) multi-master i 2 c-bus interface p3 (3) sda1 scl2 scl1 sda2 p2 (8) p0 (8) p4 (8) s in s clk s out si/o (8) p6 (8) int1 int2 pwm6 pwm5 pwm4 pwm3 pwm2 pwm1 pwm0 p5 (8) out1 b g r h sync v sync a-d converter 8-bit pwm circuit 8-bit arithmetic and logical unit accumulator a (8) timer 6 t6 (8) timer 5 t5 (8) timer 4 t4 (8) timer 3 t3 (8) timer 2 t2 (8) timer 1 t1 (8) timer count source selection circuit tim2 tim3 data slicer instruction register (8) instruction decoder control signal osd circuit processor status register ps (8) stack pointer s (8) index register y (8) index register x (8) rom program counter pc l (8) progam counter pc h (8) ram data bus clock generating circuit 30 31 36 reset 24 33 32 29 cv in 28 27 25 26 v hold rvco hlf 34 35 address bus 36 17 40 41 42 43 45 47 49 10 9 8 7 50 51 52 53 55 57 59 60 39 15 13 11 23 21 19 6 5 4 3 61 62 63 64 2 1 i/o ports p3 0 , p3 1 i/o port p1 i/o port p2 i/o port p0 input ports p4 0 ?4 6 output port p5 sync signal input output port p4 7 20 22 16 12 56 58 44 output ports p6 0 ?6 2 , p6 5 ?4 7 14 18 output port p3 2 int3 pwm7 37 48 54 46 input ports p7 0 p7 2 a-d converter si/o p7 (3) 5 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37280MFCxxxsp, m37280mkCxxxsp m37280eksp mitsubishi microcomputers preliminary notice: this is not a final specification. some paramentic limits are subject to change. rev. 1.0 number of basic instructions instruction execution time clock frequency memory size input/output ports serial i/o multi-master i 2 c-bus interface a-d converter pwm output circuit timers subroutine nesting interrupt clock generating circuit data slicer rom ram rom correction memory osd rom (character font) osd rom (color dot font) osd ram (sprite) osd ram (character) p0 0 Cp0 2 , p0 4 Cp0 7 p0 3 p1 0 , p1 5 Cp1 7 p1 1 Cp1 4 p2 p3 0 , p3 1 p3 2 p4 0 Cp4 4 p4 5 , p4 6 p4 7 p5 0 , p5 1 , p5 6 , p5 7 p5 2 Cp5 5 p6 0 Cp6 2 , p6 5 Cp6 7 p6 3 p6 4 p7 0 Cp7 2 i/o i/o i/o i/o i/o i/o output input input output output output output input input input 71 0.5 m s (the minimum instruction execution time, at 8 mhz oscillation fre- quency) 8 mhz (maximum) 60k bytes 80k bytes 1024 bytes 1472 bytes 64 bytes 20400 bytes 9672 bytes 120 bytes 1536 bytes 7-bit 5 1 (n-channel open-drain output structure, can be used as 8-bit pwm output pins) 1-bit 5 1 (cmos input/output structure, can be used as 14-bit pwm output pin) 4-bit 5 1 (cmos input/output structure, can be used as osd output pin, int input pin, serial input pin) 4-bit 5 1 (n-channel open-drain output structure, can be used as multi- master i 2 c-bus interface) 8-bit 5 1 (cmos input/output structure, can be used as a-d input pins) 2-bit 5 1 (cmos input/output structure, can be used as a-d input pins) 1-bit 5 1 (n-channel open-drain output structure) 5-bit 5 1 (can be used as a-d input pins, int input pins, external clock input pins) 2-bit 5 1 (n-channel open-drain output structure when serial i/o is used, can be used as serial i/o pins) 1-bit 5 1 (n-channel open-drain output structure) 4-bit 5 1 (n-channel open-drain output structure, can be used as pwm output pin) 4-bit 5 1 (cmos output structure, can be used as osd output pins) 6-bit 5 1 (n-channel open-drain output structure) 1-bit 5 1 (can be used as sub-clock input pin, osd clock input pin) 1-bit 5 1 (cmos output structure when lc is oscillating, can be used as sub-clock output pin, osd clock output pin) 3-bit 5 1 (can be used as data slicer input/output, serial input pin) 8-bit 5 1 1 (2 systems) 8 channels (8-bit resolution) 8-bit 5 8 8-bit timer 5 6 128 levels (maximum) <19 types> external interrupt 5 3, internal timer interrupt 5 6, serial i/o interrupt 5 1, osd interrupt 5 1, multi-master i 2 c-bus interface interrupt 5 1, data slicer interrupt 5 1, f(x in )/4096 interrupt 5 1, sprite osd interrupt 5 1, v sync interrupt 5 1, a-d conversion interrupt 5 1, brk instruction interrupt 5 1 2 built-in circuits (externally connected to a ceramic resonator or a quartz- crystal oscillator) built in parameter 10. performance overview M37280MF-xxxsp m37280mk-xxxsp, m37280eksp M37280MF-xxxsp m37280mk-xxxsp, m37280eksp table 10.1 performance overview functions 6 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37280MFCxxxsp, m37280mkCxxxsp m37280eksp mitsubishi microcomputers preliminary notice: this is not a final specification. some paramentic limits are subject to change. rev. 1.0 power source voltage power dissipation number of display characters character display area kinds of characters kinds of character sizes kinds of character colors display position (horizontal, vertical) functions table 10.2 performance overview osd function 32 characters 5 16 lines cc mode: 16 5 26 dots (dot structure: 16 5 20 dots) osd mode: 16 5 20 dots exosd mode: 16 5 26 dots sprite display: 16 5 20 dots cc/osd mode: 510 kinds cdosd mode: 62 kinds sprite display: 1 kind cc mode: 2 kinds osd/cdosd mode: 14 kinds sprite display: 8 kinds cc/cdosd mode: 8 kinds (r, g, b, out1, out2)) osd mode: 15 kinds (r, g, b, out1, out2) sprite display: 8 kinds (r, g, b, out1) 256 levels (horizontal) 5 1024 levels (vertical) sprite display: 2048 5 1024 5v 10% 275 mw typ. ( at oscillation frequency f(x in ) = 8 mhz, f osc = 27 mhz) 165 mw typ. ( at oscillation frequency f(x in ) = 8 mhz, f osc = 27 mhz ) 82.5 mw typ. ( at oscillation frequency f(x in ) = 8 mhz) 0.33 mw typ. ( at oscillation frequency f(x cin ) = 32 khz, f(x in ) = stop) 0.055 mw ( maximum ) C10 c to 70 c cmos silicon gate process 64-pin shrink plastic molded dip data slicer on data slicer off data slicer off data slicer off osd on (analog output) osd on (digital output) osd off osd off parameter in high-speed mode in low-speed mode in stop mode operating temperature range device structure package 7 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37280MFCxxxsp, m37280mkCxxxsp m37280eksp mitsubishi microcomputers preliminary notice: this is not a final specification. some paramentic limits are subject to change. rev. 1.0 v cc , av cc , v ss cnv ss reset x in x out p0 0 / pwm4C p0 2 /pwm6, p0 3 /pwm7, p0 4 / pwm0C p0 7 /pwm3 p10/out2, p11/scl1, p12/scl2, p13/sda1, p14/sda2, p15/g0, p16/int3/ b0, p17/s in /r0 p2 0 Cp2 3 p2 4 /ad3C p2 6 /ad1 , p2 7 /ad5 p3 0 /ad7, p3 1 /ad8 p3 2 p4 0 /ad4, p4 1 /int2, p4 2 /tim2, p4 3 /tim3, p4 4 /int1, p4 5 /s out , p4 6 /s clk p4 7 input input input output i/o output i/o output output input input i/o input i/o input output input input input input output i/o output apply voltage of 5 v 10 % (typical) to v cc and av cc , and 0 v to v ss . connected to v ss . to enter the reset state, the reset input pin must be kept at a low for 2 m s or more (under normal v cc conditions). if more time is needed for the quartz-crystal oscillator to stabilize, this low condition should be maintained for the required time. this chip has an internal clock generating circuit. to control generating frequency, an exter- nal ceramic resonator or a quartz-crystal oscillator is connected between pins x in and x out . if an external clock is used, the clock source should be connected to the x in pin and the x out pin should be left open. port p0 is an 8-bit i/o port with direction register allowing each i/o bit to be individually programmed as input or output. at reset, this port is set to input mode. the output structure of p0 3 is cmos output, that of p0 0 Cp0 2 and p0 4 Cp0 7 are n-channel open-drain output. see notes at end of table for full details of port p0 functions. pins p0 0 Cp0 3 and p0 4 Cp0 7 are also used as 8-bit pwm output pins pwm4Cpwm7 and pwm0Cpwm3 respectively. the output structure of pwm0Cpwm6 is n-channel open-drain output. and the output structure of pwm7 is cmos output. port p1 is an 8-bit i/o port and has basically the same functions as port p0. the output structure of p1 0 and p1 5 Cp1 7 is cmos output, that of p1 1 Cp1 4 is n-channel open-drain output. pin p1 0 , p1 5 Cp1 7 are also used as osd output pins out2, g0, b0, r0, respectively. the output structure is cmos output. pin p1 1 Cp1 4 are used as scl1, scl2, sda1 and sda2 respectively, when multi-master i 2 c-bus interface is used. the output structure is n-channel open-drain output. pin p1 6 is also used as extemal interrupt input pin int3. pin p1 7 is also used as serial i/o data input pin s in . port p2 is an 8-bit i/o port and has basically the same functions as port p0. the output structure is cmos output. pins p2 4 Cp2 6 , p2 7 are also used as analog input pins ad3Cad1, ad5 respectively. ports p3 0 and p3 1 are 2-bit i/o ports and have basically the same functions as port p0. the output structure is cmos output. pins p3 0 , p3 1 are also used as analog input pins ad7, ad8 respectively. ports p3 2 is a 1-bit output port. the output structure is n-channel open-drain output. ports p4 0 Cp4 6 are a 7-bit input port. pin p4 0 is also used as analog input pin ad4. pins p4 1 , p4 4 are also used as external interrupt input pins int2, int1. pins p4 2 and p4 3 are also used as external clock input pins tim2, tim3 respectively. pin p4 5 is used as serial i/o data output pin s out . the output structure is n-channel open- drain output. pin p4 6 is used as serial i/o synchronous clock input/output pin s clk . the output structure is n-channel open-drain output. port p4 7 is a 1-bit output port. the output structure is n-channel open-drain output. pin name functions input/ output power source cnv ss reset input clock input clock output i/o port p0 8-bit pwm output i/o port p1 osd output multi-master i 2 c-bus interface external interrupt input serial i/o data input i/o port p2 analog input i/o port p3 analog input output port p3 input port p4 analog input external interrupt input external clock input serial i/o data output serial i/o synchronous clock input/output output port p4 11. pin description table 11.1 pin description 8 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37280MFCxxxsp, m37280mkCxxxsp m37280eksp mitsubishi microcomputers preliminary notice: this is not a final specification. some paramentic limits are subject to change. rev. 1.0 table 11.2 pin description (continued) note : as shown in the memory map (figure 12.2.1), port p0 is accessed as a memory at address 00c016 of zero page. port p0 has the po rt p0 direction register (address 00c116 of zero page) which can be used to program each bit as an input (0) or an output (1). the pins programmed a s 1 in the direction register are output pins. when pins are programmed as 0, they are input pins. when pins are programmed as output pins, the output data are written into the port latch and then output. when data is read from the output pins, the output pin level is not read but the data of the port latch is read. this allows a previously- output value to be read correctly even if the output l voltage has risen, for example, because a light emitting diode was dir ectly driven. the input pins float, so the values of the pins can be read. when data is written into the input pin, it is written only into the port latch, while t he pin remains in the floating state. input/ output output port p5 pwm output osd output output port p6 input port p6 clock input for osd clock output for osd sub-clock output sub-clock input input port p7 input for data slicer serial i/o data input analog input h sync input v sync input port p5 is a 4-bit output port. the output structure of p5 0 , p5 1 , p5 6 and p5 7 is n-channel open-drain output, that of p5 2 Cp5 5 is cmos output. pin p5 0 is also used as 8-bit pwm output pin pwm7. the output structure is n-channel open-drain output. pins p5 2 Cp5 5 are also used as osd output pins r/r1, g/g1, b/b1, out1 respectively. at r, g, b output, the output structure is analog output. at r1, g1, b1 and out1 output, the output structure is cmos output. ports p6 0 Cp6 2 and p6 5 Cp6 7 are 6-bit output ports. the output structure is n-channel open- drain output. ports p6 3 and p6 4 are 2-bit input port. pin p6 3 is also used as osd clock input pin osc1. pin p6 4 is also used as osd clock output pin osc2. the output structure is cmos output. pin p6 4 is also used as sub-clock output pin x cout . the output structure is cmos output. pin p6 3 is also used as sub-clock input pin x cin . ports p7 0 Cp7 2 are 3-bit input port. pins p7 0 , p7 1 are also used as data slicer input pins cv in , v hold respectively. when using data slicer, input composite video signal through a capacitor. connect a capacitor between v hold and v ss . pins p7 2 is also used as serial i/o data input pin s in . when using data slicer, connect a filter using of a capacitor and a resistor between hlf and v ss . this is an analog input pin ad6 . this is a horizontal synchronous signal input for osd. this is a vertical synchronous signal input for osd. pin name functions output output output output input input output output input input input input input input input p7 0 /cv in, p7 1 /v hold , p7 2 /(s in ) hlf/ad6 h sync v sync p6 0C p6 2, p6 5C p6 7 p6 3 /osc1/ x cin , p6 4 /osc2/ x cout p5 0 /pwm7, p5 1 , p5 2 /r/r1, p5 3 /g/g1, p5 4 /b/b1, p5 5 /out1, p5 6 , p5 7 9 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37280MFCxxxsp, m37280mkCxxxsp m37280eksp mitsubishi microcomputers preliminary notice: this is not a final specification. some paramentic limits are subject to change. rev. 1.0 fig. 11.1 i/o pin block diagram (1) n-channel open-drain output ports p0 0 Cp0 2 , p0 4 Cp0 7 note : each port is also used as follows : p0 0 Cp0 2 : pwm4Cpwm6 p0 4 Cp0 7 : pwm0Cpwm3 n-channel open-drain output port p1 1 -p1 4 note : each port is also used as follows : p1 1 : scl1 p1 2 : scl2 p1 3 : sda1 p1 4 : sda2 cmos output ports p0 3 , p1 0 , p1 5 Cp1 7 , p2, p3 0 , p3 1 note : each port is also used as follows : p0 0 : pwm7 p1 0 : out2 p1 5 : g0 p1 6 : int3/b0 p1 7 : s in /r0 p2 4 Cp2 6 : ad3Cad1 p2 7 : ad5 p3 0 : ad7 p3 1 : ad8 ports p0 3 , p1 0 , p1 5 ?1 7 , p2, p3 0 , p3 1 data bus direction register port latch data bus direction register port latch data bus direction register port latch ports p0 0 ?0 2 , p0 4 ?0 7 ports p1 1 ?1 4 10 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37280MFCxxxsp, m37280mkCxxxsp m37280eksp mitsubishi microcomputers preliminary notice: this is not a final specification. some paramentic limits are subject to change. rev. 1.0 n-channel open-drain output ports p4 5 , p4 6 note : each pin is also used as follows : p4 5 : s out p4 6 : s clk cmos output port p5 5 note : port p5 5 is also used as pin out1. schmidt input h sync , v sync fig. 11.2 i/o pin block diagram (2) ports p4 0 Cp4 4 note : each port is also used as below : p4 0 : ad4 p4 1 : int2 p4 2 : tim2 p4 3 : tim3 p4 4 : int1 input n-chanel open drain output ports p3 2 , p4 7 , p5 1 , p5 6 , p5 7 , p6 0 Cp6 2 , p6 5 Cp6 7 n-chanel open drain output port p5 0 note : port p5 0 is also used as pin pwm7. h sync , v sync s out , s clk port p5 5 data bus direction register internal circui t data bus ports p4 0 ?4 4 internal circui t ports p3 2 , p4 7 , p5 1 , p5 6 , p5 7 , p6 0 ?6 2 , p6 5 ?6 7 data bus ports latch port p5 0 ports latch data bus 11 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37280MFCxxxsp, m37280mkCxxxsp m37280eksp mitsubishi microcomputers preliminary notice: this is not a final specification. some paramentic limits are subject to change. rev. 1.0 fig. 11.3 i/o pin block diagram (3) output ports p5 2 Cp5 4 note : each port is also used as below : p5 2 : r/r1 p5 3 : g/g1 p5 4 : b/b1 internal circuit ports p5 2 ?5 4 12 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37280MFCxxxsp, m37280mkCxxxsp m37280eksp mitsubishi microcomputers preliminary notice: this is not a final specification. some paramentic limits are subject to change. rev. 1.0 12. functional description 12.1. central processing unit (cpu) this microcomputer uses the standard 740 family instruction set. refer to the table of 740 family addressing modes and machine instructions or the series 740 13 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37280MFCxxxsp, m37280mkCxxxsp m37280eksp mitsubishi microcomputers preliminary notice: this is not a final specification. some paramentic limits are subject to change. rev. 1.0 12.2 memory 12.2.1 special function register (sfr) area the special function register (sfr) area in the zero page contains control registers such as i/o ports and timers. 12.2.2 ram ram is used for data storage and for stack area of subroutine calls and interrupts. 12.2.3 rom the M37280MF-xxxsp has 60k-byte program area. the m37280mk -xxxsp has 56k-byte program area and 24k-byte data-dedicated area. for the m37280eksp, the two area (60k, 24k + 56k) can be swithed each other by setting the bank control register. 12.2.4 osd ram ram for display is used for specifying the character codes and col- ors to display. 12.2.5 osd rom rom for display is used for storing character data. 12.2.6 interrupt vector area the interrupt vector area contains reset and interrupt vectors. 12.2.7 zero page the 256 bytes from addresses 0000 16 to 00ff 16 are called the zero page area. the internal ram and the special function registers (sfr) are allocated to this area. the zero page addressing mode can be used to specify memory and register addresses in the zero page area. access to this area with only 2 bytes is possible in the zero page addressing mode. 12.2.8 special page the 256 bytes from addresses ff00 16 to ffff 16 are called the spe- cial page area. the special page addressing mode can be used to specify memory addresses in the special page area. access to this area with only 2 bytes is possible in the special page addressing mode. 12.2.9 rom correction memory (ram) this is used as the program area for rom correction. fig. 12.2.1 memory map 0000 16 10000 16 00c0 16 00ff 16 0fff 16 ffff 16 ffde 16 ff00 16 0800 16 10800 16 rom (60k bytes) osd ram (character) (1536 bytes) (see note 2) ram (1024 bytes) for M37280MF- xxxsp 0200 16 0258 16 1000 16 0300 16 157ff 16 18000 16 osd rom (character font) (20400 bytes) 053f 16 sfr1 area zero page sfr2 area 02c0 16 02ff 16 rom correction memory (64 bytes) block 1 : addresses 02c0 16 to 02df 16 block 2 : addresses 02e0 16 to 02ff 16 0100 16 00bf 16 0700 16 07a7 16 osd ram (sprite) (120 bytes) (see note 1) 1acff 16 osd rom (color dot font) (9672 bytes) not used not used not used not used not used notes 1: refer to table 12.11.3 osd ram (sprite). 2: refer to tables 12.11.4 and 2.11.5 osd ram (character). special page interrupt vector area 1ffff 16 1b000 16 1c000 16 1d000 16 1e000 16 1f000 16 bank 11 bank 12 bank 13 bank 14 bank 15 not used 06ff 16 expansion rom (20k bytes) for m37280mk-xxxsp and m37280eksp ram (1472 bytes) for m37280mk-xxxsp and m37280eksp 14 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37280MFCxxxsp, m37280mkCxxxsp m37280eksp mitsubishi microcomputers preliminary notice: this is not a final specification. some paramentic limits are subject to change. rev. 1.0 fig. 12.2.2 bank control register 12.2.10 expansion rom (only m37280mk- xxxsp/m37280eksp) the m37280mk-xxxsp/m37280eksp can use 5-bank (total 20k bytes) expansion rom (4k bytes each bank) by setting the bank register. the expansion rom is assigned to address 1b000 16 to 1ffff 16 . the contents of each bank in the expansion rom are read by setting the bank register and accessing addresses 1000 16 to 1fff 16 . as the expansion rom is not programmable, use it as data-dedicated area. when using the expansion rom area, the internal rom at addresses 1000 16 to 1fff 16 (extra area) is not also programmable. notes 1: when using the expansion rom (bk7 = 1), the rom correction function do not operate for addresses 1000 16 to 1fff 16 . 2: when using the emulator mcu (m37280erss), as addresses 1000 16 to ffff 16 can be emulated by setting bit 7 of the bank control regis- ter to 0, the expansion rom cannot be used. addresses 2000 16 to ffff 16 can be emulated by setting it to 1. the data in specified area by the bank selection bits can be read by accessing addresses 1000 16 to 1fff 16 . 3: when using the emulator mcu, the expansion rom and the extra area cannot be emulated by setting bit 7 of the bank control register to 1. therefore, write the data to this area before using. 4: for the m37280mk-xxxsp, fix bit 7 of the bank control register to 1. for M37280MF-xxxsp, fix the address 00ed 16 to 00 16 . b7 b6 b5 b4 b3 b2 b1 b0 bank control register (bk) [address 00ed 16 ] b name functions bank control register 0 to 3 6, 7 bank control bits (bk6, bk7) bank number is selected (bank 11 to 15) bank selection bits (bk0 to bk3) 4, 5 fix these bits to 0. after reset r w 0rw 0rw 0rw b6 bank rom address 1000 16 level access 0 5 10 11 not used used used read out from extra area (programmable) read out the data from area specified by the bank selection bits read out from extra area (data-dedicated) b7 0 0 15 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37280MFCxxxsp, m37280mkCxxxsp m37280eksp mitsubishi microcomputers preliminary notice: this is not a final specification. some paramentic limits are subject to change. rev. 1.0 fig. 12.2.3 memory map of special function register 1 (sfr1) (1) d0 16 d1 16 d2 16 d3 16 d4 16 d5 16 d6 16 d7 16 d8 16 d9 16 da 16 db 16 dc 16 dd 16 de 16 df 16 c0 16 c1 16 c2 16 c3 16 c4 16 c5 16 c6 16 c7 16 c8 16 c9 16 cb 16 cc 16 cd 16 ce 16 cf 16 ca 16 address port p5 ( p5 ) osd control re g ister 1 ( oc 1 ) horizontal position re g ister ( hp ) block control register 1 (bc 1 ) port p1 ( p1 ) port p1 direction re g ister ( d1 ) port p3 ( p3 ) port p3 direction re g ister ( d3 ) port p2 ( p2 ) port p2 direction re g ister ( d2 ) registe r port p0 ( p0 ) port p0 direction re g ister ( d0 ) block control register 2 (bc 2 ) block control register 3 (bc 3 ) block control register 4 (bc 4 ) block control register 5 (bc 5 ) block control register 6 (bc 6 ) block control register 7 (bc 7 ) bit allocation state immediately after reset port p4 ( p4 ) port p4 direction re g ister ( d4 ) osd port control re g ister ( pf ) port p6 ( p6 ) block control register 8 (bc 8 ) block control register 9 (bc 9 ) block control register 10 (bc 10 ) block control register 11 (bc 11 ) block control register 12 (bc 12 ) port p7 ( p7 ) n sfr1 area (addresses c0 16 to df 16 ) : fix to this bit to 0 ( do not write to 1 ) : bit allocation state immediately after reset function bit : no function bit : fix to this bit to ?? ( do not write to ? ) name : : ??immediately after reset : indeterminate immediately after reset 0 1 ? : ??immediately after reset 1 0 block control register 13 (bc 13 ) block control register 14 (bc 14 ) block control register 15 (bc 15 ) block control register 16 (bc 16 ) b7 b0 b7 b0 ? 00 16 ? 00 16 ? 00 16 ? ? ? ? ? ? ? ? ? ? r0 g b out1 out2 0 0? 0 0? ? 0 ? ? ? ? ? ? ? oc16 oc17 oc14 oc15 oc12 oc13 oc10 oc11 00 16 bc 1 0 bc 1 1 bc 1 2 bc 1 3 bc 1 4 bc 1 5 bc 1 6 bc 2 0 bc 2 1 bc 2 2 bc 2 3 bc 2 4 bc 2 5 bc 2 6 bc 3 0 bc 3 1 bc 3 2 bc 3 3 bc 3 4 bc 3 5 bc 3 6 bc 4 0 bc 4 1 bc 4 2 bc 4 3 bc 4 4 bc 4 5 bc 4 6 bc 5 0 bc 5 1 bc 5 2 bc 5 3 bc 5 4 bc 5 5 bc 5 6 bc 6 0 bc 6 1 bc 6 2 bc 6 3 bc 6 4 bc 6 5 bc 6 6 bc 7 0 bc 7 1 bc 7 2 bc 7 3 bc 7 4 bc 7 5 bc 7 6 bc 8 0 bc 8 1 bc 8 2 bc 8 3 bc 8 4 bc 8 5 bc 8 6 bc 9 0 bc 9 1 bc 9 2 bc 9 3 bc 9 4 bc 9 5 bc 9 6 bc 10 0 bc 10 1 bc 10 2 bc 10 3 bc 10 4 bc 10 5 bc 10 6 bc 11 0 bc 11 1 bc 11 2 bc 11 3 bc 11 4 bc 11 5 bc 11 6 bc 12 0 bc 12 1 bc 12 2 bc 12 3 bc 12 4 bc 12 5 bc 12 6 hp16 hp17 hp14 hp15 hp12 hp13 hp10 hp11 00 16 0 0 00 16 ? 00 16 ? 00 16 ? t3cs bc 13 0 bc 13 1 bc 13 2 bc 13 3 bc 13 4 bc 13 5 bc 13 6 bc 14 0 bc 14 1 bc 14 2 bc 14 3 bc 14 4 bc 14 5 bc 14 6 bc 15 0 bc 15 1 bc 15 2 bc 15 3 bc 15 4 bc 15 5 bc 15 6 bc 16 0 bc 16 1 bc 16 2 bc 16 3 bc 16 4 bc 16 5 bc 16 6 p6im rgb 2bit 16 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37280MFCxxxsp, m37280mkCxxxsp m37280eksp mitsubishi microcomputers preliminary notice: this is not a final specification. some paramentic limits are subject to change. rev. 1.0 fig. 12.2.4 memory map of special function register 1 (sfr2) (2) f0 16 f1 16 f2 16 f3 16 f4 16 f5 16 f6 16 f7 16 f8 16 f9 16 fa 16 fb 16 fc 16 fd 16 fe 16 ff 16 e0 16 e1 16 e2 16 e3 16 e4 16 e5 16 e6 16 e7 16 e8 16 e9 16 eb 16 ec 16 ed 16 ee 16 ef 16 ea 16 data slicer control register 1 (dsc1) a-d conversion register (ad) a-d control register (adcon) timer 1 (t1) caption data register 1 (cd1) timer 2 (t2) timer 3 (t3) timer 4 (t4) timer mode register 1 (tm1) timer mode register 2 (tm2) i 2 c data shift register (s0) i 2 c control register (s1d) i 2 c clock control register (s2) interrupt request register 1 (ireq1) interrupt request register 2 (ireq2) interrupt control register 1 (icon1) interrupt control register 2 (icon2) cpu mode register (cm) data slicer control register 2 (dsc2) i 2 c status register (s1) i 2 c address register (s0d) n sfr1 area (addresses e0 16 to ff 16 ) address registe r bit allocation state immediately after reset : fix to this bit to 0 ( do not write to 1 ) : bit allocation state immediately after reset function bit : no function bit : fix to this bit to ?? ( do not write to ? ) name : : ??immediately after reset : indeterminate immediately after reset 0 1 ? : ??immediately after reset 1 0 caption data register 2 (cd2) caption data register 3 (cd3) caption data register 4 (cd4) caption position register (cps) data slicer test register 2 data slicer test register 1 sync signal counter register (hc) clock run-in detect register (crd) data clock position register (dps) b7 b0 b7 b0 tm20 tm21 tm22 tm23 tm24 tm10 tm11 tm12 tm13 tm14 cm2 tm1r tm2r tm3r tm4r osdr vscr adr ck0 in1r dsr sior tm1e tm2e tm3e tm4e osde vsce in1e dse sioe in2e tm25 ff 16 07 16 ff 16 07 16 tm15 tm16 tm17 tm26 tm27 ? sad0 sad1 sad2 sad3 sad4 sad5 sad6 rbw lrb ad0 aas al pin bb trx mst bc0 bc1 bc2 eso als bsel0 bsel1 ccr0 ccr1 ccr2 ccr3 ccr4 ac k 00 16 00 16 00 16 ck r in2r iicr tm56r ade cke iice tm56e tm56s 0 0 cm7 cm5 cm6 adin0 adin1 adin2 advref adstr 10bit sad 00 16 00 16 00 16 dsc10 dsc11 dsc12 dsc20 dsc23 dsc24 dsc25 crd3 crd4 crd5 crd6 crd7 dps3 dps4 dps5 dps6 dps7 cps0 cps3 cps4 cps5 cps1 cps2 cps6 cps7 hc0 hc3 hc4 hc5 hc1 hc2 0? 0? 0 ? ?? 0 00 00 0 0 0 1 0 1 0 1 00 16 cdh10 cdh13 cdh14 cdh15 cdh11 cdh12 cdh16 cdh17 cdl10 cdl13 cdl14 cdl15 cdl11 cdl12 cdl16 cdl17 00 16 00 16 00 16 00 16 00 16 00 16 00 16 00 16 00 16 d1 d2 d3 d4 d5 d6 d7 d0 0 0 00?00 0 0 0 0 01 0 0? fast mod e ack bit 0 cdh20 cdh23 cdh24 cdh25 cdh21 cdh22 cdh26 cdh27 cdl20 cdl23 cdl24 cdl25 cdl21 cdl22 cdl26 cdl27 00 16 00 16 00 16 00 16 ? ? 0 0 0? 001 0 09 16 3c 16 0 bank control register (bk) bk0 bk3 bk1 bk2 bk6 bk7 00 ? ? 00??? ? 17 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37280MFCxxxsp, m37280mkCxxxsp m37280eksp mitsubishi microcomputers preliminary notice: this is not a final specification. some paramentic limits are subject to change. rev. 1.0 fig. 12.2.5 memory map of special function register 2 (sfr2) (1) 210 1 6 211 1 6 212 1 6 213 1 6 214 1 6 215 1 6 216 1 6 217 1 6 218 1 6 219 1 6 21a 1 6 21b 1 6 21c 16 21d 16 21e 1 6 21f 1 6 200 1 6 201 1 6 202 1 6 203 1 6 204 1 6 205 1 6 206 1 6 207 1 6 208 1 6 209 1 6 20b 1 6 20c 16 20d 16 20e 1 6 20f 1 6 20a 1 6 pwm mode re g ister 1 ( pn ) timer 5 ( tm5 ) pwm2 re g ister ( pwm2 ) pwm6 re g ister ( pwm6 ) pwm4 re g ister ( pwm4 ) pwm5 re g ister ( pwm5 ) pwm0 re g ister ( pwm0 ) pwm1 re g ister ( pwm1 ) interrupt input polarity register (ip) serial i/o mode re g ister ( sm ) serial i/o re g ister ( sio ) clock control register (cs) top border control register 1 (tb1) bottom border control register 1 (bb1) top border control register 1 (tb2) bottom border control register 1 (bb2) timer 6 ( tm6 ) pwm3 re g ister ( pwm3 ) pwm mode re g ister 2 ( pw ) raster color re g ister ( rc ) i/o polarity control register (pc) n sfr2 area (addresses 200 16 to 21f 16 ) address registe r bit allocation state immediately after reset : fix to this bit to 0 ( do not write to 1 ) : bit allocation state immediately after reset function bit : no function bit : fix to this bit to ?? ( do not write to ? ) name : : ??immediately after reset : indeterminate immediately after reset 0 1 ? : ??immediately after reset 1 0 pwm7 re g ister ( pwm7 ) test re g ister osd control re g ister 2 ( oc2 ) osd control register 3(oc3) rom correction address 1 (high-order) rom correction enable register (rcr) rom correction address 2 (high-order) rom correction address 2 (low-order) rom correction address 1 (low-order) b7 b0 b7 b0 00 16 ? ? ? ? ? ? ? 00 16 00 16 00 16 pw 0 pw1 pw2 pw3 pw4 pw 5 pw 6 pn 3 re1 re2 re3 re5 int3 pol ad/int3 sel pol3 ad/int3 sel sm0 re1 re2 re3 sm4 re5 int3 pol ad/int3 sel sm1 sm2 sm3 sm5 pc0 re1 re2 re3 pc4 re5 int3 pol ad/int3 sel pc1 pc2 pc5 pc6 pc7 re1 re2 int3 pol ad/int3 sel cs0 cs1 cs2 rc0 re1 re2 re3 re5 int3 pol ad/int3 sel rc1 rc2 re1 re2 re3 tb20 tb21 bb20 bb21 ? ? ? 00 16 00 16 pn 0 pw7 0 oc30 oc31 oc32 ? ? 00 16 00 16 00 16 00 16 ff 16 ? ? bb17 bb16 bb15 bb14 bb13 bb12 bb11 bb10 tb17 tb16 tb15 tb14 tb13 tb12 tb11 tb10 07 16 oc27 oc25 oc24 oc23 oc12 oc21 oc20 oc33 oc34 rc3 rc4 re1 re2 re3 re5 int3 pol ad/int3 sel 00 00 16 ? 00 16 00 16 00 16 00 16 00 oc26 rcr0 rcr1 pn4 pol2 pol1 oc35 oc36 oc37 sm6 80 16 0 18 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37280MFCxxxsp, m37280mkCxxxsp m37280eksp mitsubishi microcomputers preliminary notice: this is not a final specification. some paramentic limits are subject to change. rev. 1.0 fig. 12.2.6 memory map of special function register 2 (sfr2) (2) 230 16 231 16 232 16 233 16 234 16 235 16 236 16 237 16 238 16 239 16 23a 16 23b 16 23c 16 23d 16 23e 16 23f 16 220 16 221 16 222 16 223 16 224 16 225 16 226 16 227 16 228 16 229 16 22b 16 22c 16 22d 16 22e 16 22f 16 22a 16 vertical position register 1 11 (vp1 11 ) vertical position register 1 3 (vp1 3 ) vertical position register 1 7 (vp1 7 ) vertical position register 1 5 (vp1 5 ) vertical position register 1 6 (vp1 6 ) vertical position register 1 1 (vp1 1 ) vertical position register 1 2 (vp1 2 ) vertical position register 1 9 (vp1 9 ) vertical position register 1 10 (vp1 10 ) vertical position register 1 4 (vp1 4 ) vertical position register 1 12 (vp1 12 ) vertical position register 1 8 (vp1 8 ) vertical position register 2 3 (vp2 3 ) vertical position register 2 7 (vp2 7 ) vertical position register 2 5 (vp2 5 ) vertical position register 2 6 (vp2 6 ) vertical position register 2 1 (vp2 1 ) vertical position register 2 9 (vp2 9 ) vertical position register 2 10 (vp2 10 ) vertical position register 2 4 (vp2 4 ) vertical position register 2 12 (vp2 12 ) vertical position register 2 8 (vp2 8 ) vertical position register 2 2 (vp2 2 ) vertical position register 2 11 (vp2 11 ) n sfr2 area (addresses 220 16 to 23f 16 ) address registe r bit allocation state immediately after reset : fix to this bit to 0 (do not write to 1) : bit allocation state immediately after reset function bit : no function bit : fix to this bit to ?? ( do not write to ? ) name : : ??immediately after reset : indeterminate immediately after reset 0 1 ? : ??immediately after reset 1 0 vertical position register 2 14 (vp2 14 ) vertical position register 2 13 (vp2 13 ) vertical position register 2 16 (vp2 16 ) vertical position register 2 15 (vp2 15 ) vertical position register 1 13 (vp1 13 ) vertical position register 1 14 (vp1 14 ) vertical position register 1 15 (vp1 15 ) vertical position register 1 16 (vp1 16 ) b7 b0 b7 b0 ? ? ? ? vp1 1 2 vp1 1 3 vp1 1 4 vp1 1 5 vp1 1 6 vp1 1 7 vp1 2 2 vp1 2 3 vp1 2 4 vp1 2 5 vp1 2 6 vp1 2 7 vp1 3 2 vp1 3 3 vp1 3 4 vp1 3 5 vp1 3 6 vp1 3 7 vp1 4 2 vp1 4 3 vp1 4 4 vp1 4 5 vp1 4 6 vp1 4 7 vp1 5 2 vp1 5 3 vp1 5 4 vp1 5 5 vp1 5 6 vp1 5 7 vp1 6 2 vp1 6 3 vp1 6 4 vp1 6 5 vp1 6 6 vp1 6 7 vp1 7 2 vp1 7 3 vp1 7 4 vp1 7 5 vp1 7 6 vp1 7 7 vp1 8 2 vp1 8 3 vp1 8 4 vp1 8 5 vp1 8 6 vp1 8 7 vp1 9 2 vp1 9 3 vp1 9 4 vp1 9 5 vp1 9 6 vp1 9 7 vp1 10 2 vp1 10 3 vp1 10 4 vp1 10 5 vp1 10 6 vp1 10 7 vp1 11 2 vp1 11 3 vp1 11 4 vp1 11 5 vp1 11 6 vp1 11 7 vp1 1 1 vp1 2 1 vp1 3 1 vp1 4 1 vp1 5 1 vp1 6 1 vp1 7 1 vp1 8 1 vp1 9 1 vp1 10 1 vp1 11 1 vp1 12 1 vp1 12 2 vp1 12 3 vp1 12 4 vp1 12 5 vp1 12 6 vp1 12 7 vp2 1 0 vp2 1 1 vp2 2 0 vp2 2 1 vp2 3 0 vp2 3 1 vp2 4 0 vp2 4 1 vp2 5 0 vp2 5 1 vp2 6 0 vp2 6 1 vp2 7 0 vp2 7 1 vp2 8 0 vp2 8 1 vp2 9 0 vp2 9 1 vp2 10 0 vp2 10 1 vp2 11 0 vp2 11 1 vp2 12 0 vp2 12 1 ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? vp1 1 0 vp1 2 0 vp1 3 0 vp1 4 0 vp1 5 0 vp1 6 0 vp1 7 0 vp1 8 0 vp1 9 0 vp1 10 0 vp1 11 0 vp1 12 0 vp2 13 0 vp2 13 1 vp2 14 0 vp2 14 1 vp2 15 0 vp2 15 1 vp2 16 0 vp2 16 1 vp1 14 2 vp1 14 3 vp1 14 4 vp1 14 5 vp1 14 6 vp1 14 7 vp1 15 2 vp1 15 3 vp1 15 4 vp1 15 5 vp1 15 6 vp1 15 7 vp1 16 2 vp1 16 3 vp1 16 4 vp1 16 5 vp1 16 6 vp1 16 7 vp1 14 0 vp1 15 0 vp1 16 0 vp1 14 1 vp1 15 1 vp1 16 1 vp1 13 1 vp1 13 2 vp1 13 3 vp1 13 4 vp1 13 5 vp1 13 6 vp1 13 7 vp1 13 0 19 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37280MFCxxxsp, m37280mkCxxxsp m37280eksp mitsubishi microcomputers preliminary notice: this is not a final specification. some paramentic limits are subject to change. rev. 1.0 fig. 12.2.7 memory map of special function register 2 (sfr2) (3) n sfr2 area (addresses 240 16 to 258 16 ) 250 16 251 16 252 16 253 16 254 16 255 16 256 16 257 16 258 16 240 16 241 16 242 16 243 16 244 16 245 16 246 16 247 16 248 16 249 16 24b 16 24c 16 24d 16 24e 16 24f 16 24a 16 : fix to this bit to 0 (do not write to 1) : bit allocation state immediately after reset function bit : no function bit : fix to this bit to ?? (do not write to ?? name : : ??immediately after reset : indeterminate immediately after reset 0 1 ? : ??immediately after reset 1 0 address registe r bit allocation state immediately after reset color pallet register 1 (cr1) color pallet register 2 (cr2) color pallet register 3 (cr3) color pallet register 4 (cr4) color pallet register 5 (cr5) color pallet register 6 (cr6) color pallet register 7 (cr7) color pallet register 9 (cr9) color pallet register10 (cr10) color pallet register 11 (cr11) color pallet register 12 (cr12) color pallet register 13 (cr13) color pallet register 14 (cr14) color pallet register 15 (cr15) left border control register 1 (lb1) left border control register 2 (lb2) right border control register 1 (rb1) right border control register 2 (rb2) sprite vertical position register 1 (vs1) sprite vertical position register 2 (vs2) sprite osd control register (sc) sprite horizontal position register 1 (hs1) sprite horizontal position register 2 (hs2) b7 b0 b7 b0 ? ? ? cr 1 2 cr 1 3 cr 1 4 cr 1 5 cr 1 6 cr 2 2 cr 2 3 cr 2 4 cr 2 5 cr 2 6 cr 3 2 cr 3 3 cr 3 4 cr 3 5 cr 3 6 cr 4 2 cr 4 3 cr 4 4 cr 4 5 cr 4 6 cr 5 2 cr 5 3 cr 5 4 cr 5 5 cr 5 6 cr 6 2 cr 6 3 cr 6 4 cr 6 5 cr 6 6 cr 7 2 cr 7 3 cr 7 4 cr 7 5 cr 7 6 cr 9 2 cr 9 3 cr 9 4 cr 9 5 cr 9 6 cr 10 2 cr 10 3 cr 10 4 cr 10 5 cr 10 6 cr 11 2 cr 11 3 cr 11 4 cr 11 5 cr 11 6 cr 1 1 cr 2 1 cr 3 1 cr 4 1 cr 5 1 cr 6 1 cr 7 1 cr 9 1 cr 10 1 cr 11 1 cr 12 1 cr 12 2 cr 12 3 cr 12 4 cr 12 5 cr 12 6 lb10 lb11 vs10 vs11 vs20 vs21 hs10 hs11 hs20 hs21 sc0 sc1 ? ? ? ? ? ? ? ? ? ? ? ? 07 16 ff 16 ? 00 16 00 16 cr 1 0 cr 2 0 cr 3 0 cr 4 0 cr 5 0 cr 6 0 cr 7 0 cr 9 0 cr 10 0 cr 11 0 cr 12 0 cr 14 2 cr 14 3 cr 14 4 cr 14 5 cr 14 6 cr 15 2 cr 15 3 cr 15 4 cr 15 5 cr 15 6 cr 14 0 cr 15 0 cr 14 1 cr 15 1 cr 13 1 cr 13 2 cr 13 3 cr 13 4 cr 13 5 cr 13 6 cr 13 0 lb12 lb13 lb14 lb15 lb16 lb17 lb20 lb21 lb22 rb10 rb11 rb12 rb13 rb14 rb15 rb16 rb17 rb20 rb21 rb22 vs12 vs13 vs14 vs15 vs16 vs17 hs12 hs13 hs14 hs15 hs16 hs17 hs22 sc2 sc3 sc4 sc5 ? 00 16 01 16 ? ? ? ? 0 0 0 0 0 20 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37280MFCxxxsp, m37280mkCxxxsp m37280eksp mitsubishi microcomputers preliminary notice: this is not a final specification. some paramentic limits are subject to change. rev. 1.0 fig. 12.2.8 internal state of processor status register and program counter at reset b7 b0 b7 b0 1 register processor status register (ps) bit allocation state immediately after reset program counter (pc h ) program counter (pc l ) contents of address ffff 16 contents of address fffe 16 i zc d b t v n?? ? ? ? ? ? : fix to this bit to 0 (do not write to 1) : bit allocation state immediately after reset function bit : no function bit : fix to this bit to 1 (do not write to 0) name : : 0 immediately after reset : indeterminate immediately after reset 0 1 ? : 1 immediately after reset 1 0 21 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37280MFCxxxsp, m37280mkCxxxsp m37280eksp mitsubishi microcomputers preliminary notice: this is not a final specification. some paramentic limits are subject to change. rev. 1.0 12.3 interrupts interrupts can be caused by 19 different sources consisting of 3 ex- ternal, 14 internal, 1 software, and reset. interrupts are vectored in- terrupts with priorities as shown in table 12.3.1. reset is also in- cluded in the table because its operation is similar to an interrupt. when an interrupt is accepted, ? the contents of the program counter and processor status regis ter are automatically stored into the stack. the interrupt disable flag i is set to 1 and the corresponding interrupt request bit is set to 0. a the jump destination address stored in the vector address enters the program counter. other interrupts are disabled when the interrupt disable flag is set to 1. all interrupts except the brk instruction interrupt have an interrupt request bit and an interrupt enable bit. the interrupt request bits are in interrupt request registers 1 and 2 and the interrupt enable bits are in interrupt control registers 1 and 2. figures 12.3.2 to 12.3.6 show the interrupt-related registers. interrupts other than the brk instruction interrupt and reset are ac- cepted when the interrupt enable bit is 1, interrupt request bit is 1, and the interrupt disable flag is 0. the interrupt request bit can be set to 0 by a program, but not set to 1. the interrupt enable bit can be set to 0 and 1 by a program. reset is treated as a non-maskable interrupt with the highest priority. figure 12.3.1 shows interrupt control. 12.3.1 interrupt causes (1) v sync and osd interrupts the v sync interrupt is an interrupt request synchronized with the vertical sync signal. the osd interrupt occurs after character block display to the crt is completed. (2) int1, int2 interrupts the int1 and int2 interrupts are external interrupt inputs, the system detects that the level of a pin changes from low to high or from high to low, and generates an interrupt request. the input active edge can be selected by bits 3 and 4 of the interrupt input polarity register (address 0212 16 ) : when this bit is 0, a change from low to high is detected; when it is 1, a change from high to low is detected. note that both bits are cleared to 0 at reset. (3) timer 1 to 4 interrupts an interrupt is generated by an overflow of timer 1, 2, 3 or 4. vector addresses ffff 16 , fffe 16 fffd 16 , fffc 16 fffb 16 , fffa 16 fff9 16 , fff8 16 fff7 16 , fff6 16 fff5 16 , fff4 16 fff3 16 , fff2 16 fff1 16 , fff0 16 ffef 16 , ffee 16 ffed 16 , ffec 16 ffeb 16 , ffea 16 ffe9 16 , ffe8 16 ffe7 16 , ffe6 16 ffe5 16 , ffe4 16 ffe3 16 , ffe2 16 ffdf 16 , ffde 16 interrupt source reset osd interrupt int1 interrupt data slicer interrupt serial i/o interrupt timer 4 ? sprite osd interrupt f(x in )/4096 interrupt v sync interrupt timer 3 interrupt timer 2 interrupt timer 1 interrupt a-d convertion ? int3 interrupt int2 interrupt multi-master i 2 c-bus interface interrupt timer 5 ? 6 interrupt brk instruction interrupt remarks non-maskable active edge selectable software switch by software (see note) active edge selectable software switch by software (see note)/ when selecting int3 interrupt, active edge selectable. active edge selectable software switch by software (see note) non-maskable (software interrupt) table 12.3.1 interrupt vector addresses and priority priority 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 note : switching a source during a program causes an unnecessary interrupt occurs. accordingly, set a source at initializing of progr am. 22 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37280MFCxxxsp, m37280mkCxxxsp m37280eksp mitsubishi microcomputers preliminary notice: this is not a final specification. some paramentic limits are subject to change. rev. 1.0 (4) serial i/o interrupt this is an interrupt request from the clock synchronous serial i/o function. (5) f(x in )/4096 ? sprite osd interrupt the f (x in )/4096 interrupt occurs regularly with a f(x in )/4096 pe- riod. set bit 0 of the pwm mode register 1 to 0. the sprite osd interrupt occurs at the completion of sprite display. since f(x in )/4096 interrupt and sprite osd interrupt share the same vector, an interrupt source is selected by bit 5 of the sprite osd control register (address 0258 16 ). (6) data slicer interrupt an interrupt occurs when slicing data is completed. (7) multi-master i 2 c-bus interface interrupt this is an interrupt request related to the multi-master i 2 c-bus interface. (8) a-d conversion ? int3 interrupt the a-d conversion interrupt occurs at the completion of a-d conversion. the int3 is an external input,the system detects that the level of a pin changes from low to high or from high to low, and generates an interrupt request. the input active edge can be selected by bit 6 of the interrupt input polarity register (address 0212 16 ) : when this bit is 0, a change from low to high is detected; when it is 1, a change from high to low is detected. note that this bit is cleared to 0 at reset. since a-d conversion interrupt and the int3 interrupt share the same vector, an interrupt source is selected by bit 7 of the inter- rupt interval determination control register (address 0212 16 ). (9) timer 5 ? 6 interrupt an interrupt is generated by an overflow of timer 5 or 6. their priorities are same, and can be switched by software. (10) brk instruction interrupt this software interrupt has the least significant priority. it does not have a corresponding interrupt enable bit, and it is not af- fected by the interrupt disable flag i (non-maskable). fig. 12.3.1 interrupt control interrupt request bi t interrupt enable bit interrupt disable flag i brk instruction reset interrupt request 23 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37280MFCxxxsp, m37280mkCxxxsp m37280eksp mitsubishi microcomputers preliminary notice: this is not a final specification. some paramentic limits are subject to change. rev. 1.0 fig. 12.3.2 interrupt request register 1 b7 b6 b5 b4 b3 b2 b1 b0 interrupt request register 1 (ireq1) [address 00fc b name functions after reset rw interrupt request register 1 0 0 : no interrupt request issued 1 : interrupt request issued timer 1 interrupt re q uest bit ( tm1r ) 1 timer 2 interrupt re q uest bit ( tm2r ) 2 timer 3 interrupt re q uest bit ( tm3r ) 3 timer 4 interrupt re q uest bit ( tm4r ) 4 osd interrupt request bit ( osdr ) 5 v sync interrupt re q uest bit ( vscr ) 6 a-d conversion ?int3 interrupt request bit (adr) 7 0 : no interrupt request issued 1 : interrupt request issued 0 : no interrupt request issued 1 : interrupt request issued 0 : no interrupt request issued 1 : interrupt request issued 0 : no interrupt request issued 1 : interrupt request issued 0 : no interrupt request issued 1 : interrupt request issued 0 : no interrupt request issued 1 : interrupt request issued 0 0 ] 0 ] 0 ] 0 ] 0 ] 0 ] 0 ] ] : 0 can be set by software, but 1 cannot be set. ? 16 ] r r r r r r r r nothing is assigned. this bit is a write disable bit. when this bit is read out , the value is 0. fig. 12.3.3 interrupt request register 2 b7 b 6 b5 b4 b3 b2 b1 b0 interrupt request register 2 (ireq2) [address 00fd b name functions after reset rw interrupt request register 2 0 int1 interrupt re q uest bit ( in1r ) 0 : no interrupt request issued 1 : interrupt request issued 1 data slicer interrupt re q uest bit ( dsr ) 2 serial i/o interrupt re q uest bit ( sior ) 3 4 int2 interrupt re q uest bit ( in2r ) 5 7 fix this bit to ?.? 0 0 : no interrupt request issued 1 : interrupt request issued 0 : no interrupt request issued 1 : interrupt request issued 0 ] : 0 can be set by software, but 1 cannot be set. 0 0 ] 0 0 ] 0 ] 0 ] 0 : no interrupt request issued 1 : interrupt request issued 16 ] r r r r ] r r ] r w f(x in )/4096 ?sprite osd interrupt request bit (ckr) 0 : no interrupt request issued 1 : interrupt request issued multi-master i 2 c-bus interrupt request bit (iicr) 0 : no interrupt request issued 1 : interrupt request issued 6 timer 5 ?6 interrupt re q uest bit ( tm56r ) 0 : no interrupt request issued 1 : interrupt request issued 0 ] r 24 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37280MFCxxxsp, m37280mkCxxxsp m37280eksp mitsubishi microcomputers preliminary notice: this is not a final specification. some paramentic limits are subject to change. rev. 1.0 fig. 12.3.4 interrupt control register 1 b7 b6 b5 b4 b3 b2 b1 b0 interrupt control register 1 (icon1) [address 00fe 16 ] b name functions after reset rw interrupt control register 1 0 timer 1 interrupt enable bit ( tm1e ) 0 : interrupt disabled 1 : interrupt enabled 1 timer 2 interrupt enable bit ( tm2e ) 2 timer 3 interrupt enable bit ( tm3e ) 3 4 osd interrupt enable bit ( osde ) 0 : interrupt disabled 1 : interrupt enabled 0 : interrupt disabled 1 : interrupt enabled 0 : interrupt disabled 1 : interrupt enabled 0 0 0 0 0 0 rw rw rw rw rw r 7 nothing is assigned. this bit is a write disable bit. when this bit is read out , the value is ?. timer 4 interrupt enable bit ( tm4e ) 0 : interrupt disabled 1 : interrupt enabled 5 v sync interrupt enable bit ( vsce ) 0 : interrupt disabled 1 : interrupt enabled 0rw 6 a-d conversion ?int3 interrupt enable bit (ade) 0 : interrupt disabled 1 : interrupt enabled 0rw fig. 12.3.5 interrupt control register 2 b7 b6 b5 b4 b3 b2 b1 b0 interrupt control register 2 (icon2) [address 00ff 16 ] b name functions after reset rw interrupt control register 2 0 int1 interrupt enable bit ( in1e ) 0 : interrupt disabled 1 : interrupt enabled 1 data slicer interrupt enable bit ( dse ) 2 serial i/o interrupt enable bit ( sioe ) 3 4 int2 interrupt enable bit ( in2e ) 0 : interrupt disabled 1 : interrupt enabled 0 : interrupt disabled 1 : interrupt enabled 0 : interrupt disabled 1 : interrupt enabled 0 0 0 0 0 rw rw rw rw rw f(x in )/4096 ?sprite osd interrupt enable bit (cke) 0 : interrupt disabled 1 : interrupt enabled 5 multi-master i 2 c-bus interface interrupt enable bit (iice) 0 : interrupt disabled 1 : interrupt enabled 0rw 6 timer 5 ?6 interrupt enable bit ( tm56e ) 0 : interrupt disabled 1 : interrupt enabled 0rw 7 timer 5 ?6 interrupt switch bit ( tm56s ) 0 : timer 5 1 : timer 6 0rw 25 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37280MFCxxxsp, m37280mkCxxxsp m37280eksp mitsubishi microcomputers preliminary notice: this is not a final specification. some paramentic limits are subject to change. rev. 1.0 fig. 12.3.6 interrupt input polarity register b7 b6 b5 b4 b3 b2 b1 b0 interrupt input polarity register (ip) [address 0212 16 ] b nam e function s after reset r w interrupt input polarity register 0 0 to 2 nothing is assigned. these bits are write disable bits. when these bits are read out, the values are ?. r int1 polarity switch bit (pol1) 0 0 3 0 : positive polarity 1 : negative polarity 4 0 : positive polarity 1 : negative polarity 6 int2 polarity switch bit (pol2) int3 polarity switch bit (pol3) r w r w r w 0 : positive polarity 1 : negative polarity 0 0 : int3 interrupt 1 : a-d conversion interrupt 7 a-d conversion ?int3 interrupt source selection bit (ad/int3sel) r w 0 5 nothing is assigned. this bit is write disable bit. when this bit is read out, the value is ?. r 0 26 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37280MFCxxxsp, m37280mkCxxxsp m37280eksp mitsubishi microcomputers preliminary notice: this is not a final specification. some paramentic limits are subject to change. rev. 1.0 12.4 timers this microcomputer has 6 timers: timer 1, timer 2, timer 3, timer 4, timer 5, and timer 6. all timers are 8-bit timers with the 8-bit timer latch. the timer block diagram is shown in figure 12.4.3. all of the timers count down and their divide ratio is 1/(n+1), where n is the value of timer latch. by writing a count value to the correspond- ing timer latch (addresses 00f0 16 to 00f3 16 : timers 1 to 4, addresses 021a 16 and 021b 16 : timers 5 and 6), the value is also set to a timer, simultaneously. the count value is decremented by 1. the timer interrupt request bit is set to 1 by a timer overflow at the next count pulse, after the count value reaches 00 16 . 12.4.1 timer 1 timer 1 can select one of the following count sources: ? f(x in )/16 or f(x cin )/16 ? f(x in )/4096 or f(x cin )/4096 ? external clock from the p4 2 /tim2 pin the count source of timer 1 is selected by setting bits 5 and 0 of timer mode register 1 (address 00f4 16 ). either f(x in ) or f(x cin ) is selected by bit 7 of the cpu mode register. timer 1 interrupt request occurs at timer 1 overflow. 12.4.2 timer 2 timer 2 can select one of the following count sources: ? f(x in )/16 or f(x cin )/16 ? timer 1 overflow signal ? external clock from the tim2 pin the count source of timer 2 is selected by setting bits 4 and 1 of timer mode register 1 (address 00f4 16 ). either f(x in ) or f(x cin ) is selected by bit 7 of the cpu mode register. when timer 1 overflow signal is a count source for the timer 2, the timer 1 functions as an 8- bit prescaler. timer 2 interrupt request occurs at timer 2 overflow. 12.4.3 timer 3 timer 3 can select one of the following count sources: ? f(x in )/16 or f(x cin )/16 ? f(x cin ) ? external clock from the tim3 pin the count source of timer 3 is selected by setting bit 0 of timer mode register 2 (address 00f5 16 ) and bit 6 at address 00c7 16 . either f(x in ) or f(x cin ) is selected by bit 7 of the cpu mode register. timer 3 interrupt request occurs at timer 3 overflow. 12.4.4 timer 4 timer 4 can select one of the following count sources: ? f(x in )/16 or f(x cin )/16 ? f(x in )/2 or f(x cin )/2 ? f(x cin ) the count source of timer 3 is selected by setting bits 1 and 4 of timer mode register 2 (address 00f5 16 ). either f(x in ) or f(x cin ) is selected by bit 7 of the cpu mode register. when timer 3 overflow signal is a count source for the timer 4, the timer 3 functions as an 8- bit prescaler. timer 4 interrupt request occurs at timer 4 overflow. 12.4.5 timer 5 timer 5 can select one of the following count sources: ? f(x in )/16 or f(x cin )/16 ? timer 2 overflow signal ? timer 4 overflow signal the count source of timer 3 is selected by setting bit 6 of timer mode register 1 (address 00f4 16 ) and bit 7 of timer mode register 2 (ad- dress 00f5 16 ). when overflow of timer 2 or 4 is a count source for timer 5, either timer 2 or 4 functions as an 8-bit prescaler. either f(x in ) or f(x cin ) is selected by bit 7 of the cpu mode register. timer 5 interrupt request occurs at timer 5 overflow. 12.4.6 timer 6 timer 6 can select one of the following count sources: ? f(x in )/16 or f(x cin )/16 ? timer 5 overflow signal the count source of timer 6 is selected by setting bit 7 of timer mode register 1 (address 00f4 16 ). either f(x in ) or f(x cin ) is selected by bit 7 of the cpu mode register. when timer 5 overflow signal is a count source for timer 6, timer 5 functions as an 8-bit prescaler. timer 6 interrupt request occurs at timer 6 overflow. at reset, timers 3 and 4 are connected by hardware and ff 16 is automatically set in timer 3; 07 16 in timer 4. the f(x in ) ] /16 is se- lected as the timer 3 count source. the internal reset is released by timer 4 overflow in this state and the internal clock is connected. at execution of the stp instruction, timers 3 and 4 are connected by hardware and ff 16 is automatically set in timer 3; 07 16 in timer 4. however, the f(x in ) ] /16 is not selected as the timer 3 count source. so set both bit 0 of timer mode register 2 (address 00f5 16 ) and bit 6 at address 00c7 16 to 0 before execution of the stp instruction (f(x in ) ] /16 is selected as the timer 3 count source). the internal stp state is released by timer 4 overflow in this state and the inter- nal clock is connected. as a result of the above procedure, the program can start under a stable clock. ] : when bit 7 of the cpu mode register (cm 7 ) is 1, f(x in ) becomes f(x cin ). the structure of timer-related registers is shown in figures 12.4.1 and 12.4.2. 27 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37280MFCxxxsp, m37280mkCxxxsp m37280eksp mitsubishi microcomputers preliminary notice: this is not a final specification. some paramentic limits are subject to change. rev. 1.0 fig. 12.4.1 timer mode register 1 b7 b6 b5 b4 b3 b2 b1 b0 timer mode register 1 (tm1) [address 00f4 16 ] b after reset w timer mode register 1 0 1 2 3 4 name functions timer 1 count source selection bit 1 (tm10) 0: f(x in )/16 or f(x cin )/16 (note) 1: count source selected by bit 5 of tm1 timer 2 count source selection bit 1 (tm11) 0: count source selected by bit 4 of tm1 1: external clock from tim2 pin timer 1 count stop bit (tm12) 0: count start 1: count stop timer 2 count stop bit (tm13) 0: count start 1: count stop timer 2 count source selection bit 2 (tm14) r 0 0 0 0 0 w r w r w r w r w r 0: f(x in )/16 or f(x cin )/16 (see note) 1: timer 1 overflow 5 timer 1 count source selection bit 2 (tm15) 0: f(x in )/4096 or f(x cin )/4096 (see note) 1: external clock from tim2 pin 0w r 6 timer 5 count source selection bit 2 (tm16) 0: timer 2 overflow 1: timer 4 overflow 0w r 7 timer 6 internal count source selection bit (tm17) 0w r 0: f(x in )/16 or f(x cin )/16 (see note) 1: timer 5 overflow note: either f(x in ) or f(x cin ) is selected by bit 7 of the cpu mode register. 28 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37280MFCxxxsp, m37280mkCxxxsp m37280eksp mitsubishi microcomputers preliminary notice: this is not a final specification. some paramentic limits are subject to change. rev. 1.0 fig. 12.4.2 timer mode register 2 b7 b6 b5 b4 b3 b2 b1 b0 timer mode register 2 (tm2) [address 00f5 16 ] b after reset rw timer mode register 2 0 name functions timer 3 count source selection bit (tm20) 0 rw 1, 4 timer 4 count source selection bits (tm21, tm24) 0 rw 2 3 0 timer 3 count stop bit (tm22) 0: count start 1: count stop timer 4 count stop bit (tm23) 0: count start 1: count stop 0 0 5 timer 5 count stop bit (tm25) 0: count start 1: count stop 0 6 timer 6 count stop bit (tm26) 0: count start 1: count stop 0 rw rw rw rw r w 7 timer 5 count source selection bit 1 (tm27) 0: f(x in )/16 or f(x cin )/16 (see note) 1: count source selected by bit 6 of tm1 b0 0 0 : f(x in )/16 or f(x cin )/16 (see note) 1 0 : f(x cin ) 01: 11 : (b6 at address 00c7 16 ) external clock from tim3 pin b4 b1 0 0 : timer 3 overflow signal 0 1 : f(x in )/16 or f(x cin )/16 (see note) 1 0 : f(x in )/2 or f(x cin )/2 (see note) 1 1 : f(x cin ) note: either f(x in ) or f(x cin ) is selected by bit 7 of the cpu mode register. 29 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37280MFCxxxsp, m37280mkCxxxsp m37280eksp mitsubishi microcomputers preliminary notice: this is not a final specification. some paramentic limits are subject to change. rev. 1.0 fig. 12.4.3 timer block diagram timer 1 (8) 1/4096 1/2 cm7 tm15 1/8 timer 1 latch (8) 8 8 8 tm10 tm12 tm14 tm11 tm13 timer 2 (8) timer 2 latch (8) 8 8 8 timer 3 (8) timer 3 latch (8) 8 8 8 timer 4 (8) timer 4 latch (8) 8 8 8 timer 5 (8) timer 5 latch (8) 8 8 8 timer 6 (8) timer 6 latch (8) 8 8 8 data bus timer 1 interrupt request timer 2 interrupt request timer 3 interrupt request reset stp instruction tm20 tm22 t3cs timer 4 interrupt request tm24 tm23 tm21 tm16 timer 5 interrupt request tm27 tm25 timer 6 interrupt request tm17 tm26 tm21 x cin x in tim 2 tim 3 selection gate : connected to black side at reset tm1 : timer mode register 1 tm2 : timer mode register 2 t3cs : timer 3 count source switch bit (address 00c7 16 ) cm : cpu mode register notes 1: high pulse width of external clock inputs tim2 and tim3 needs 4 machine cycles or more. 2: when the external clock source is selected, timers 1, 2, and 3 are counted at a rising edge of input signal. ff 16 07 16 3: in the stop mode or the wait mode, external clock inputs tim2 and tim3 cannot be used. 30 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37280MFCxxxsp, m37280mkCxxxsp m37280eksp mitsubishi microcomputers preliminary notice: this is not a final specification. some paramentic limits are subject to change. rev. 1.0 12.5 serial i/o this microcomputer has a built-in serial i/o which can either transmit or receive 8-bit data serially in the clock synchronous mode. the serial i/o block diagram is shown in figure 12.5.1. the synchro- nous clock i/o pin (s clk ), and data output pin (s out ) also function as port p4, data input pin (s in ) also functions as ports p1 and p7. bit 2 of the serial i/o mode register (address 0213 16 ) selects whether the synchronous clock is supplied internally or externally (from the s clk pin). when an internal clock is selected, bits 1 and 0 select whether f(x in ) or f(x cin ) is divided by 8, 16, 32, or 64. to use s out and s clk pins for serial i/o, set the corresponding bits of the port p4 direction register (address 00c9 16 ) to 0. to use s in pin for serial i/o, set the corresponding bit of the port p1 direction register (ad- dress 00c3 16 ) to 0. fig. 12.5.1 serial i/o block diagram the operation of the serial i/o is described below. the operation of the serial i/o differs depending on the clock source; external clock or internal clock. 8 serial i/o shift register (8) data bus serial i/o interrupt request selection g ate: connect to black side at reset. synchronous circuit frequency divider 1/8 1/4 1/16 sm1 sm0 serial i/o counter (8) sm5 : lsb msb sm2 1/2 x in s in s out s clk 1/2 (address 0214 16 ) x cin 1/2 cm7 1/2 note : when the data is set in the serial i/o register (address 0214 16 ), the register functions as the serial i/o shift register. (note) cm : cpu mode register sm : serial i/o mode register 31 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37280MFCxxxsp, m37280mkCxxxsp m37280eksp mitsubishi microcomputers preliminary notice: this is not a final specification. some paramentic limits are subject to change. rev. 1.0 internal clock : the serial i/o counter is set to 7 during the write cycle into the serial i/o register (address 0214 16 ), and the transfer clock goes h forcibly. at each falling edge of the transfer clock after the write cycle, serial data is output from the s out pin. transfer di- rection can be selected by bit 5 of the serial i/o mode register. at each rising edge of the transfer clock, data is input from the s in pin and data in the serial i/o register is shifted 1 bit. after the transfer clock has counted 8 times, the serial i/o counter becomes 0 and the transfer clock stops at high. at this time the interrupt request bit is set to 1. fig. 12.5.2 serial i/o timing (for lsb first) synchronous cloc k transfer clock serial i/o register write signal serial i/o output s out d 0 d 1 d 2 d 3 d 4 d 5 d 6 d 7 (note) serial i/o input s in note : when an internal clock is selected, the s out pin is at high-impedance after transfer is completed. interrupt request bit is set to ? external clock : the an external clock is selected as the clock source, the interrupt request is set to 1 after the transfer clock has been counted 8 counts. however, transfer operation does not stop, so the clock should be controlled externally. use the external clock of 500khz or less with a duty cycle of 50%. the serial i/o timing is shown in figure 12.5.2. when using an exter- nal clock for transfer, the external clock must be held at high for initializing the serial i/o counter. when switching between an inter- nal clock and an external clock, do not switch during transfer. also, be sure to initialize the serial i/o counter after switching. notes 1: on programming, note that the serial i/o counter is set by writing to the serial i/o register with the bit managing instructions, such as seb and clb. 2: when an external clock is used as the synchronous clock, write trans- mit data to the serial i/o register when the transfer clock input level is high. 32 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37280MFCxxxsp, m37280mkCxxxsp m37280eksp mitsubishi microcomputers preliminary notice: this is not a final specification. some paramentic limits are subject to change. rev. 1.0 fig. 12.5.3 serial i/o mode register b7 b6 b5 b4 b3 b2 b1 b0 serial i/o mode register (sm) [address 0213 16 ] b name functions after reset rw serial i/o mode register 0, 1 internal synchronous clock selection bits (sm0, sm1) b1 b0 0 0: f(x in )/8 or f(x cin )/8 0 1: f(x in )/16 or f(x cin )/16 1 0: f(x in )/32 or f(x cin )/32 1 1: f(x in )/64 or f(x cin )/64 2 synchronous clock selection bit (sm2) 3 port function selection bit (sm3) 6 5 transfer direction selection bit (sm5) 0: p1 1 , p1 3 1: scl1, sda1 0: external clock 1: internal clock 0: lsb first 1: msb first 0 0 0 0 0 0 rw rw rw r w rw rw 4 port function selection bit (sm4) 0: p1 2 , p1 4 1: scl2, sda2 7 nothing is assigned. this bit is a write disable bit. when this bit is read out, the value is ?. 0r s in pin switch bit (sm6) 0: p1 7 is s in pin. 1: p7 2 is s in pin. 33 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37280MFCxxxsp, m37280mkCxxxsp m37280eksp mitsubishi microcomputers preliminary notice: this is not a final specification. some paramentic limits are subject to change. rev. 1.0 function in conformity with philips i 2 c-bus standard: 10-bit addressing format 7-bit addressing format high-speed clock mode standard clock mode in conformity with philips i 2 c-bus standard: master transmission master reception slave transmission slave reception 16.1 khz to 400 khz (at f = 4 mhz) table 12.6.1 multi-master i 2 c-bus interface functions item format communication mode scl clock frequency f : system clock = f(x in )/2 note : we are not responsible for any third partys infringement of patent rights or other rights attributable to the use of the control function (bits 6 and 7 of the i 2 c control register at address 00f9 16 ) for connections between the i 2 c-bus interface and ports (scl1, scl2, sda1, sda2). 12.6 multi-master i 2 c-bus interface the multi-master i 2 c-bus interface is a serial communications cir- cuit, conforming to the philips i 2 c-bus data transfer format. this interface, offering both arbitration lost detection and a synchronous functions, is useful for the multi-master serial communications. figure 12.6.1 shows a block diagram of the multi-master i 2 c-bus interface and table 12.6.1 shows multi-master i 2 c-bus interface func- tions. this multi-master i 2 c-bus interface consists of the i 2 c address reg- ister, the i 2 c data shift register, the i 2 c clock control register, the i 2 c control register, the i 2 c status register and other control circuits. fig. 12.6.1 block diagram of multi-master i 2 c-bus interface i 2 c address register (s0d) b7 b0 sad6 sad5 sad4 sad3 sad2 sad1 sad0 rbw noise elimination circuit serial data (sda) address comparator b7 i c data shift register b0 data control circuit i 2 c clock control register (s2) system clock ( f ) interrupt generating circuit interrupt request signal (iicirq) b7 mst trx bb pin al aas ad0 lrb b0 i c status register (s1) b7 b0 bsel1 bsel0 10bit sad als bc2 bc1 bc0 i 2 c control register (s1d) bit counter bb circuit clock control circuit noise elimination circuit serial clock (scl) b7 b0 ack ack bit fast mode ccr4 ccr3 ccr2 ccr1 ccr0 internal data bus clock division s0 al circuit eso 2 2 34 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37280MFCxxxsp, m37280mkCxxxsp m37280eksp mitsubishi microcomputers preliminary notice: this is not a final specification. some paramentic limits are subject to change. rev. 1.0 12.6.1 i 2 c data shift register the i 2 c data shift register (s0 : address 00f6 16 ) is an 8-bit shift register to store receive data and write transmit data. when transmit data is written into this register, it is transferred to the outside from bit 7 in synchronization with the scl clock, and each time one-bit data is output, the data of this register are shifted one bit to the left. when data is received, it is input to this register from bit 0 in synchronization with the scl clock, and each time one-bit data is input, the data of this register are shifted one bit to the left. the i 2 c data shift register is in a write enable status only when the eso bit of the i 2 c control register (address 00f9 16 ) is 1. the bit counter is reset by a write instruction to the i 2 c data shift register. when both the eso bit and the mst bit of the i 2 c status register (address 00f8 16 ) are 1, the scl is output by a write instruction to the i 2 c data shift register. reading data from the i 2 c data shift regis- ter is always enabled regardless of the eso bit value. note: to write data into the i 2 c data shift register after setting the mst bit to 0 (slave mode), keep an interval of 8 machine cycles or more. fig. 12.6.2 data shift register b7 b6 b5 b4 b3 b2 b1 b0 i 2 c data shift register 1 (s0) [address 00f6 16 ] b functions after reset rw i c data shift register 0 to 7 this is an 8-bit shift register to store receive data and write transmit data. indeterminate 2 note: 2 to write data into the i c data shift register after setting the mst bit to ??(slave mode), keep an interval of 8 machine cycles or more. nam e d0 to d7 rw 35 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37280MFCxxxsp, m37280mkCxxxsp m37280eksp mitsubishi microcomputers preliminary notice: this is not a final specification. some paramentic limits are subject to change. rev. 1.0 12.6.2 i 2 c address register the i 2 c address register (address 00f7 16 ) consists of a 7-bit slave address and a read/write bit. in the addressing mode, the slave ad- dress written in this register is compared with the address data to be received immediately after the start condition are detected. (1) bit 0: read/write bit (rbw) not used when comparing addresses, in the 7-bit addressing mode. in the 10-bit addressing mode, the first address data to be received is compared with the contents (sad6 to sad0 + rbw) of the i 2 c address register. the rbw bit is cleared to 0 automatically when the stop condition is detected. (2) bits 1 to 7: slave address (sad0Csad6) 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. fig. 12.6.3 i 2 c address register b7 b6 b5 b4 b3 b2 b1 b0 0 read/write bit (rbw) 1 to 7 slave address (sad0 to sad6) 0: read 1: write 0 0 the address data transmitted from the master is compared with the contents of these bits. i 2 c address register i 2 c address register (s0d) [address 00f7 16 ] b name functions after reset r w r r w 36 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37280MFCxxxsp, m37280mkCxxxsp m37280eksp mitsubishi microcomputers preliminary notice: this is not a final specification. some paramentic limits are subject to change. rev. 1.0 12.6.3 i 2 c clock control register the i 2 c clock control register (address 00fa 16 ) is used to set ack control, scl mode and scl frequency. (1) bits 0 to 4: scl frequency control bits (ccr0Cccr4) these bits control the scl frequency. (2) bit 5: scl mode specification bit (fast mode) this bit specifies the scl mode. when this bit is set to 0, the stan- dard clock mode is set. when the bit is set to 1, the high-speed clock mode is set. (3) bit 6: ack bit (ack bit) this bit sets the sda status when an ack clock ] is generated. when this bit is set to 0, the ack return mode is set and sda goes to low at the occurrence of an ack clock. when the bit is set to 1, the ack non-return mode is set. the sda is held in the high status at the occurrence of an ack clock. however, when the slave address matches the address data in the reception of address data at ack bit = 0, the sda is automatically made low (ack is returned). if there is a mismatch between the slave address and the address data, the sda is automatically made high (ack is not returned). ] ack clock: clock for acknowledgement fig. 12.6.4 i 2 c address register (4) bit 7: ack clock bit (ack) this bit specifies a mode of acknowledgment which is an acknowl- edgment response of data transmission. when this bit is set to 0, the no ack clock mode is set. in this case, no ack clock occurs after data transmission. when the bit is set to 1, the ack clock mode is set and the master generates an ack clock upon comple- tion of each 1-byte data transmission.the device for transmitting address data and control data releases the sda at the occurrence of an ack clock (make sda high) and receives the ack bit generated by the data receiving device. note: do not write data into the i 2 c clock control register during transmission. if data is written during transmission, the i 2 c clock generator is reset, so that data cannot be transmitted normally. b7 b6 b5 b4 b3 b2 b1 b0 i 2 c clock control register (s2) [address 00fa 16 ] i 2 c clock control register 0 to 4 scl frequency control bits (ccr0 to ccr4) 7 5 6 scl mode specification bit (fast mode) 0: standard clock mode 1: high-speed clock mode 0 standard clock mode b name function s after reset r w 0 0 0 ack bit (ack bit) ack clock bit (ack) 0: ack is returned. 1: ack is not returned. 0: no ack clock 1: ack clock high speed clock mode setup disabled setup disabled 00 to 02 setup disabled 333 03 setup disabled 250 04 100 400 (see note) 05 83.3 166 06 500/ccr value 1000/ccr value ... 17.2 34.5 1d 16.6 33.3 1e 16.1 32.3 1f (at f = 4 mhz, unit : khz) note: at 400 khz in the high-speed clock mode, the duty is as below . ??period : ??period = 3 : 2 in the other cases, the duty is as below. ??period : ??period = 1 : 1 setup value of ccr4?cr0 r w r w r w r w 37 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37280MFCxxxsp, m37280mkCxxxsp m37280eksp mitsubishi microcomputers preliminary notice: this is not a final specification. some paramentic limits are subject to change. rev. 1.0 12.6.4 i 2 c control register the i 2 c control register (address 00f9 16 ) controls the data commu- nication format. (1) bits 0 to 2: bit counter (bc0Cbc2) these bits decide the number of bits for the next 1-byte data to be transmitted. an interrupt request signal occurs immediately after the number of bits specified with these bits are transmitted. when a start condition is received, these bits become 000 2 and the address data is always transmitted and received in 8 bits. (2) bit 3: i 2 c interface use enable bit (eso) this bit enables usage of the multimaster i 2 c bus interface. when this bit is set to 0, the use disable status is provided, so the sda and the scl become high-impedance. when the bit is set to 1, use of the interface is enabled. when eso = 0, the following is performed. ? pin = 1, bb = 0 and al = 0 are set (they are bits of the i 2 c status register at address 00f8 16 ). ? writing data to the i 2 c data shift register (address 00f6 16 ) is dis- abled. (3) bit 4: data format selection bit (als) this bit decides whether or not to recognize slave addresses. when this bit is set to 0, the addressing format is selected, so that ad- dress data is recognized. when a match is found between a slave address and address data as a result of comparison or when a gen- eral call (refer to 12.6.5 i 2 c status register, bit 1) is received, trans- mission processing can be performed. when this bit is set to 1, the free data format is selected, so that slave addresses are not recog- nized. (4) bit 5: addressing format selection bit (10bit sad) this bit selects a slave address specification format. when this bit is set to 0, the 7-bit addressing format is selected. in this case, only the high-order 7 bits (slave address) of the i 2 c address register (ad- dress 00f7 16 ) are compared with address data. when this bit is set to 1, the 10-bit addressing format is selected, all the bits of the i 2 c address register are compared with address data. (5) bits 6 and 7:connection control bits between i 2 c-bus inter- face and ports (bsel0, bsel1) these bits controls the connection between scl and ports or sda and ports (refer to figure 12.6.5). fig. 12.6.5 connection port control by bsel0 and bsel1 note: when using multi-master i 2 c-bus interface, set bits 3 and 4 of the serial i/o mode register (address 0213 16 ) to 1. moreover, set the corresponding direction register to 1 to use the port as multi-master i 2 c-bus interface. ? ??bsel0 scl1/p1 1 scl2/p1 2 ? ??bsel1 ? ??bsel0 sda1/p1 3 sda2/p1 4 ? ??bsel1 multi-master i 2 c-bus interface scl sda 38 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37280MFCxxxsp, m37280mkCxxxsp m37280eksp mitsubishi microcomputers preliminary notice: this is not a final specification. some paramentic limits are subject to change. rev. 1.0 fig. 12.6.6 i 2 c control register b7 b6 b5 b4 b3 b2 b1 b0 0 to 2 bit counter (number of transmit/recieve bits) (bc0 to bc2) b2 b1 b0 0 0 0: 8 0 0 1: 7 0 1 0: 6 0 1 1: 5 1 0 0: 4 1 0 1: 3 1 1 0: 2 1 1 1: 1 3i 2 c-bus interface use enable bit (eso) 0: disabled 1: enabled 4 data format selection bit(als) 0: addressing format 1: free data format 5 addressing format selection bit (10bit sad) 0: 7-bit addressing format 1: 10-bit addressing format 6, 7 connection control bits between i c-bus interface and ports (bsel0, bsel1) b7 b6 connection port (see note) 0 0: none 0 1: scl1, sda1 1 0: scl2, sda2 1 1: scl1, sda1, scl2, sda2 0 0 0 0 0 i 2 c control register (s1d) [address 00f9 16 ] i 2 c control register b name function s after reset r w 2 r w r w r w r w r w 39 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37280MFCxxxsp, m37280mkCxxxsp m37280eksp mitsubishi microcomputers preliminary notice: this is not a final specification. some paramentic limits are subject to change. rev. 1.0 12.6.5 i 2 c status register the i 2 c status register (address 00f8 16 ) controls the i 2 c-bus inter- face status. the low-order 4 bits are read-only bits and the high- order 4 bits can be read out and written to. (1) bit 0: last receive bit (lrb) this bit stores the last bit value of received data and can also be used for ack receive confirmation. if ack is returned when an ack clock occurs, the lrb bit is set to 0. if ack is not returned, this bit is set to 1. except in the ack mode, the last bit value of received data is input. the state of this bit is changed from 1 to 0 by executing a write instruction to the i 2 c data shift register (address 00f6 16 ). (2) bit 1: general call detecting flag (ad0) this bit is set to 1 when a general call ] whose address data is all 0 is received in the slave mode. by a general call of the master device, every slave device receives control data after the general call. the ad0 bit is set to 0 by detecting the stop condition or start condition. ] general call: the master transmits the general call address 00 16 to all slaves. (3) bit 2: slave address comparison flag (aas) this flag indicates a comparison result of address data. n in the slave receive mode, when the 7-bit addressing format is selected, this bit is set to 1 in one of the following conditions. ? the address data immediately after occurrence of a start con- dition matches the slave address stored in the high-order 7 bits of the i 2 c address register (address 00f7 16 ). ? a general call is received. n in the slave reception mode, when the 10-bit addressing format is selected, this bit is set to 1 with the following condition. ? when the address data is compared with the i 2 c address regis- ter (8 bits consists of slave address and rbw), the first bytes match. n the state of this bit is changed from 1 to 0 by executing a write instruction to the i 2 c data shift register (address 00f6 16 ). (4) bit 3: arbitration lost ] detecting flag (al) n the master transmission mode, when a device other than the mi- crocomputer sets the sda to l,, arbitration is judged to have been lost, so that this bit is set to 1. at the same time, the trx bit is set to 0, so that immediately after transmission of the byte whose arbitra- tion was lost is completed, the mst bit is set to 0. when arbitration is lost during slave address transmission, the trx bit is set to 0 and the reception mode is set. consequently, it becomes possible to re- ceive and recognize its own slave address transmitted by another master device. ] arbitration lost: the status in which communication as a master is disabled. (5) bit 4: i 2 c-bus interface interrupt request bit (pin) this bit generates an interrupt request signal. each time 1-byte data is transmitted, the state of the pin bit changes from 1 to 0. at the same time, an interrupt request signal is sent to the cpu. the pin bit is set to 0 in synchronization with a falling edge of the last clock (including the ack clock) of an internal clock and an interrupt re- quest signal occurs in synchronization with a falling edge of the pin bit. when the pin bit is 0, the scl is kept in the 0 state and clock generation is disabled. figure 12.6.8 shows an interrupt request sig- nal generating timing chart. the pin bit is set to 1 in any one of the following conditions. ? executing a write instruction to the i 2 c data shift register (address 00f6 16 ). ? when the eso bit is 0 ? at reset the conditions in which the pin bit is set to 0 are shown below: ? immediately after completion of 1-byte data transmission (includ- ing when arbitration lost is detected) ? immediately after completion of 1-byte data reception ? in the slave reception mode, with als = 0 and immediately after completion of slave address or general call address reception ? in the slave reception mode, with als = 1 and immediately after completion of address data reception (6) bit 5: bus busy flag (bb) this bit indicates the status of use of the bus system. when this bit is set to 0, this bus system is not busy and a start condition can be generated. when this bit is set to 1, this bus system is busy and the occurrence of a start condition is disabled by the start condition duplication prevention function (note). this flag can be written by software only in the master transmission mode. in the other modes, this bit is set to 1 by detecting a start condition and set to 0 by detecting a stop condition. when the eso bit of the i 2 c control register (address 00f9 16 ) is 0 and at reset, the bb flag is kept in the 0 state. (7) bit 6: communication mode specification bit (transfer direc- tion specification bit: trx) this bit decides the direction of transfer for data communication. when this bit is 0, the reception mode is selected and the data of a trans- mitting device is received. when the bit is 1, the transmission mode is selected and address data and control data are output into the sda in synchronization with the clock generated on the scl. when the als bit of the i 2 c control register (address 00f9 16 ) is 0 in the slave reception mode is selected, the trx bit is set to 1 (trans- mit) if the least significant bit (r/w bit) of the address data transmit- ted by the master is 1. when the als bit is 0 and the r/w bit is 0, the trx bit is cleared to 0 (receive). the trx bit is cleared to 0 in one of the following conditions. ? when arbitration lost is detected. ? when a stop condition is detected. ? when occurence of a start condition is disabled by the start condition duplication prevention function (note). ? with mst = 0 and when a start condition is detected. ? with mst = 0 and when ack non-return is detected. ? at reset 40 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37280MFCxxxsp, m37280mkCxxxsp m37280eksp mitsubishi microcomputers preliminary notice: this is not a final specification. some paramentic limits are subject to change. rev. 1.0 (8) bit 7: communication mode specification bit (master/slave specification bit: mst) this bit is used for master/slave specification for data communica- tion. when this bit is 0, the slave is specified, so that a start condition and a stop condition generated by the master are received, and data communication is performed in synchronization with the clock generated by the master. when this bit is 1, the master is specified and a start condition and a stop condition are gener- ated, and also the clocks required for data communication are gen- erated on the scl. the mst bit is cleared to 0 in one of the following conditions. ? immediately after completion of 1-byte data transmission when arbitration lost is detected ? when a stop condition is detected. ? when occurence of a start condition is disabled by the start condition duplication preventing function (note). ? at reset fig. 12.6.7 i 2 c status register b7 b6 b5 b4 b3 b2 b1 b0 i 2 c status register (s1) [address 00f8 16 ] i 2 c status register 0 3 4 5 6, 7 b7 b6 0 0 : slave recieve mode 0 1 : slave transmit mode 1 0 : master recieve mode 1 1 : master transmit mode 1 2 0 0 0 0 0 b name function s after reset r w communication mode specification bits (trx, mst) 0 : bus free 1 : bus busy bus busy flag (bb) 0 : interrupt request issued 1 : no interrupt request issued i 2 c-bus interface interrupt request bit (pin) 0 : not detected 1 : detected arbitration lost detecting flag (al) (see note) 0 : address match 1 : address mismatch slave address comparison flag (aas) (see note) 0 : no general call detected 1 : general call detected general call detecting flag (ad0) (see note) 0 : last bit = ? 1 : last bit = ? last receive bit (lrb) (see note) note : these bits and flags can be read out, but cannnot be written. indeterminate r r r r rw r w 0 r w (see note) (see note) (see note) (see note) fig. 12.6.8 interrupt request signal generation timing sc l pin iicir q note: the start condition duplication prevention function disables the start condition generation, reset of bit counter reset, and scl output, when the following condition is satisfied: a start condition is set by another master device. 41 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37280MFCxxxsp, m37280mkCxxxsp m37280eksp mitsubishi microcomputers preliminary notice: this is not a final specification. some paramentic limits are subject to change. rev. 1.0 12.6.6 start condition generation method when the eso bit of the i 2 c control register (address 00f9 16 ) is 1, execute a write instruction to the i 2 c status register (address 00f8 16 ) to set the mst, trx and bb bits to 1. a start condition will then be generated. after that, the bit counter becomes 000 2 and an scl for 1 byte is output. the start condition generation timing and bb bit set timing are different in the standard clock mode and the high- speed clock mode. refer to figure 12.6.9 for the start condition generation timing diagram, and table 12.6.2 for the start condi- tion/stop condition generation timing table. fig. 12.6.9 start condition generation timing diagram i 2 c status register write signal set time for bb flag hold time setup time scl sda bb flag setup time 12.6.7 stop condition generation method when the eso bit of the i 2 c control register (address 00f9 16 ) is 1, execute a write instruction to the i 2 c status register (address 00f8 16 ) for setting the mst bit and the trx bit to 1 and the bb bit to 0. a stop condition will then be generated. the stop condition genera- tion timing and the bb flag reset timing are different in the standard clock mode and the high-speed clock mode. refer to figure 12.6.10 for the stop condition generation timing diagram, and table 12.6.2 for the start condition/stop condition generation timing table. fig. 12.6.10 stop condition generation timing diagram table 12.6.2 start condition/stop condition generation tim- ing table item setup time hold time set/reset time for bb flag standard clock mode 4.25 m s (17 cycles) 5.0 m s (20 cycles) 3.0 m s (12 cycles) high-speed clock mode 1.75 m s (7 cycles) 2.5 m s (10 cycles) 1.5 m s (6 cycles) note: absolute time at f = 4 mhz. the value in parentheses denotes the number of f cycles. i 2 c status register write signal reset time for bb flag hold time setup time scl sda bb flag 42 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37280MFCxxxsp, m37280mkCxxxsp m37280eksp mitsubishi microcomputers preliminary notice: this is not a final specification. some paramentic limits are subject to change. rev. 1.0 12.6.8 start/stop condition detect condi- tions the start/stop condition detect conditions are shown in figure 12.6.11 and table 12.6.3. only when the 3 conditions of table 12.6.3 are satisfied, a start/stop condition can be detected. note: when a stop condition is detected in the slave mode (mst = 0), an interrupt request signal iicirq is generated to the cpu. fig. 12.6.11 start condition/stop condition detect timing dia- gram standard clock mode 6.5 m s (26 cycles) < scl release time 3.25 m s (13 cycles) < setup time 3.25 m s (13 cycles) < hold time high-speed clock mode 1.0 m s (4 cycles) < scl release time 0.5 m s (2 cycles) < setup time 0.5 m s (2 cycles) < hold time table 12.6.3 start condition/stop condition detect conditions note: absolute time at f = 4 mhz. the value in parentheses denotes the num- ber of f cycles. hold time setup time scl sda (start condition) sda (stop condition) scl release time hold time setup time 12.6.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. (1) 7-bit addressing format to meet the 7-bit addressing format, set the 10bit sad bit of the i 2 c control register (address 00f9 16 ) to 0. the first 7-bit address data transmitted from the master is compared with the high-order 7-bit slave address stored in the i 2 c address register (address 00f7 16 ). at the time of this comparison, address comparison of the rbw bit of the i 2 c address register (address 00f7 16 ) is not made. for the data transmission format when the 7-bit addressing format is selected, refer to figure 12.6.12, (1) and (2). (2) 10-bit addressing format to meet the 10-bit addressing format, set the 10bit sad bit of the i 2 c control register (address 00f9 16 ) to 1. an address comparison is made between the first-byte address data transmitted from the master and the 7-bit slave address stored in the i 2 c address register (address 00f7 16 ). at the time of this comparison, an address com- parison between the rbw bit of the i 2 c address register (address 00f7 16 ) and the r/w bit which is the last bit of the address data transmitted from the master is made. in the 10-bit addressing mode, the r/w bit which is the last bit of the address data not only specifies the direction of communication for control data but also is processed as an address data bit. when the first-byte address data matches the slave address, the aas bit of the i 2 c status register (address 00f8 16 ) is set to 1. after the second-byte address data is stored into the i 2 c data shift register (address 00f6 16 ), make an address comparison between the sec- ond-byte data and the slave address by software. when the address data of the 2nd bytes matches the slave address, set the rbw bit of the i 2 c address register (address 00f7 16 ) to 1 by software. this processing can match the 7-bit slave address and r/w data, which are received after a restart condition is detected, with the value of the i 2 c address register (address 00f7 16 ). for the data transmis- sion format when the 10-bit addressing format is selected, refer to figure 12.6.12, (3) and (4). 43 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37280MFCxxxsp, m37280mkCxxxsp m37280eksp mitsubishi microcomputers preliminary notice: this is not a final specification. some paramentic limits are subject to change. rev. 1.0 12.6.10 example of master transmission an example of master transmission in the standard clock mode, at the scl frequency of 100 khz and in the ack return mode is shown below. ? set a slave address in the high-order 7 bits of the i 2 c address register (address 00f7 16 ) and 0 in the rbw bit. ? set the ack return mode and scl = 100 khz by setting 85 16 in the i 2 c clock control register (address 00fa 16 ). ? set 10 16 in the i 2 c status register (address 00f8 16 ) and hold the scl at the high. set a communication enable status by setting 48 16 in the i 2 c control register (address 00f9 16 ). ? set the address data of the destination of transmission in the high- order 7 bits of the i 2 c data shift register (address 00f6 16 ) and set 0 in the least significant bit. set f0 16 in the i 2 c status register (address 00f8 16 ) to generate a start condition. at this time, an scl for 1 byte and an ack clock automatically occurs. ? set transmit data in the i 2 c data shift register (address 00f6 16 ). at this time, an scl and an ack clock automatically occurs. ? when transmitting control data of more than 1 byte, repeat step ? . ? set d0 16 in the i 2 c status register (address 00f8 16 ). after this, if ack is not returned or transmission ends, a stop condition will be generated. 12.6.11 example of slave reception an example of slave reception in the high-speed clock mode, at the scl frequency of 400 khz, in the ack non-return mode, using the addressing format, is shown below. ? set a slave address in the high-order 7 bits of the i 2 c address register (address 00f7 16 ) and 0 in the rbw bit. ? set the no ack clock mode and scl = 400 khz by setting 25 16 in the i 2 c clock control register (address 00fa 16 ). ? set 10 16 in the i 2 c status register (address 00f8 16 ) and hold the scl at the high. set a communication enable status by setting 48 16 in the i 2 c control register (address 00f9 16 ). ? when a start condition is received, an address comparison is made. ?when all transmitted address are0 (general call): ad0 of the i 2 c status register (address 00f8 16 ) is set to 1and an interrupt request signal occurs. ?when the transmitted addresses match the address set in ? : ass of the i 2 c status register (address 00f8 16 ) is set to 1 and an interrupt request signal occurs. ?in the cases other than the above: ad0 and aas of the i 2 c status register (address 00f8 16 ) are set to 0 and no interrupt request signal occurs. ? set dummy data in the i 2 c data shift register (address 00f6 16 ). ? when receiving control data of more than 1 byte, repeat step ? . ? when a stop condition is detected, the communication ends. 44 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37280MFCxxxsp, m37280mkCxxxsp m37280eksp mitsubishi microcomputers preliminary notice: this is not a final specification. some paramentic limits are subject to change. rev. 1.0 fig. 12.6.12 address data communication format s slave address a data a data a/a p r/w 7 bits ? 1 to 8 bits 1 to 8 bit s s slave address a data a data ap 7 bits ? 1 to 8 bits 1 to 8 bit s (1) a master-transmitter transmits data to a slave-receiver s slave address 1st 7 bits a a data 7 bits ? 8 bits 1 to 8 bits (2) a master-receiver receives data from a slave-transmitte r slave address 2nd byte a data a/a p 1 to 8 bits s slave address 1st 7 bits a a 7 bits ? 8 bits 7 bit s (3) a master-transmitter transmits data to a slave-receiver with a 10-bit address slave address 2nd byte data 1 to 8 bits sr slave address 1st 7 bits a data a p 1 to 8 bits ? (4) a master-receiver receives data from a slave-transmitter with a 10-bit address s : start condition p : stop condition a : ack bit r/w : read/write bit sr : restart condition from master to slave from slave to master r/w r/w r/w r/w 12.6.12 precautions when using multi-master i 2 c-bus interface (1) read-modify-write instruction the precautions when the raead-modify-write instruction such as seb, clb etc. is executed for each register of the multi-master i 2 c-bus interface are described below. ?i 2 c data shift register (s0) when executing the read-modify-write instruction for this register during transfer, data may become a value not intended. ?i 2 c address register (s0d) when the read-modify-write instruction is executed for this register at detecting the stop condition, data may become a value not ______ intended. it is because hardware changes the read/write bit (rbw) at the above timing. ?i 2 c status register (s1) do not execute the read-modify-write instruction for this register because all bits of this register are changed by hardware. ?i 2 c control register (s1d) when the read-modify-write instruction is executed for this register at detecting the start condition or at completing the byte transfer, data may become a value not intended. because hardware changes the bit counter (bc0Cbc2) at the above timing. ?i 2 c clock control register (s2) the read-modify-write instruction can be executed for this register. (2) start condition generating procedure using multi-master ? procedure example (the necessary conditions of the generating procedure are described as the following ? to ? ). ? ? lda (taking out of slave address value) sei (interrupt disabled) bbs 5,s1,busbusy (bb flag confirming and branch process) busfree: sta s0 (writing of slave address value) ldm #$f0, s1 (trigger of start condition generating) cli (interrupt enabled) ? ? busbusy: cli (interrupt enabled) ? ? ? use sta, stx or sty of the zero page addressing instruction for writing the slave address value to the i 2 c data shift register. ? use ldm instruction for setting trigger of start condition gener- ating. write the slave address value of above ? and set trigger of start condition generating of above ? continuously shown the above procedure example. ? disable interrupts during the following three process steps: ? bb flag confirming ? writing of slave address value ? trigger of start condition generating when the condition of the bb flag is bus busy, enable interrupts immediately. 45 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37280MFCxxxsp, m37280mkCxxxsp m37280eksp mitsubishi microcomputers preliminary notice: this is not a final specification. some paramentic limits are subject to change. rev. 1.0 (3) restart condition generating procedure ? procedure example (the necessary conditions of the generating procedure are described as the following ? to .) execute the following procedure when the pin bit is 0. ? ? ldm #$00, s1 (select slave receive mode) lda (taking out of slave address value) sei (interrupt disabled) sta s0 (writing of slave address value) ldm #$f0, s1 (trigger of restart condition generating) cli (interrupt enabled) ? ? ? select the slave receive mode when the pin bit is 0. do not write 1 to the pin bit. neither 0 nor 1 is specified for the writing to the bb bit. the trx bit becomes 0 and the sda pin is released. ? the scl pin is released by writing the slave address value to the i 2 c data shift register. use sta, stx or sty of the zero page addressing instruction for writing. use ldm instruction for setting trigger of restart condition gen- erating. ? write the slave address value of above ? and set trigger of re- start condition generating of above continuously shown the above procedure example. disable interrupts during the following two process steps: ? writing of slave address value ? trigger of restart condition generating (4) stop condition generating procedure ? procedure example (the necessary conditions of the generating procedure are described as the following ? to .) ? ? sei (interrupt disabled) ldm #$c0, s1 (select master transmit mode) nop (set nop) ldm #$d0, s1 (trigger of stop condition generating) cli (interrupt enabled) ? ? ? write 0 to the pin bit when master transmit mode is select. ? execute nop instruction after setting of master transmit mode. also, set trigger of stop condition generating within 10 cycles af- ter selecting of master trasmit mode. disable interrupts during the following two process steps: ? select of master transmit mode ? trigger of stop condition generating (5) writing to i 2 c status register do not execute an instruction to set the pin bit to 1 from 0 and an instruction to set the mst and trx bits to 0 from 1 simultaneously. it is because it may enter the state that the scl pin is released and the sda pin is released after about one machine cycle. do not ex- ecute an instruction to set the mst and trx bits to 0 from 1 si- multaneously when the pin bit is 1. it is because it may become the same as above. (6) process of after stop condition generat- ing do not write data in the i 2 c data shift register s0 and the i 2 c status register s1 until the bus busy flag bb becomes 0 after generating the stop condition in the master mode. it is because the stop condition waveform might not be normally generated. reading to the above registers do not have the problem. 46 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37280MFCxxxsp, m37280mkCxxxsp m37280eksp mitsubishi microcomputers preliminary notice: this is not a final specification. some paramentic limits are subject to change. rev. 1.0 12.7 pwm output circuit this microcomputer is equipped with eight 8-bit pwms (pwm0C pwm7). pwm0Cpwm7 have the same circuit structure and an 8-bit resolution with minimum resolution bit width of 4 m s and repeat pe- riod of 1024 m s (for f(x in ) = 8 mhz) . figure 12.7.1 shows the pwm block diagram. the pwm timing gen- erating circuit applies individual control signals to pwm0Cpwm7 us- ing f(x in ) divided by 2 as a reference signal. 12.7.1 data setting when outputting pwm0Cpwm7, set 8-bit output data to the pwmi register (i means 0 to 7; addresses 0200 16 to 0207 16 ). 12.7.2 transmitting data from register to pwm circuit data transfer from the pwm register to the pwm circuit is executed at writing data to the register. the signal output from the pwm output pin corresponds to the con- tents of this register. 12.7.3 pwm operation the following explains pwm operation. first, set the bit 0 of pwm mode register 1 (address 020a 16 ) to 0 (at reset, bit 0 is already set to 0 automatically), so that the pwm count source is supplied. pwm0Cpwm3 are also used as pins p0 4 Cp0 7 , pwm4Cpwm6 are also used as pins p0 0 Cp0 2 , and pwm7 is also used as pin p5 0 and p0 3 respectively. set the corresponding bits of the port p0 direction register to 1 (output mode). and select each output polarity by bit 3 of pwm mode register 1 (address 020a 16 ). then, set bits 7 to 0 of pwm mode register 2 to 1 (pwm output). the pwm waveform is output from the pwm output pins by setting these registers. figure 12.7.2 shows the pwm timing. one cycle (t) is composed of 256 (2 8 ) segments. the 8 kinds of pulses, relative to the weight of each bit (bits 0 to 7), are output inside the circuit during 1 cycle. refer to figure 12.7.2 (a). the pwm outputs waveform which is the logical sum (or) of pulses corresponding to the contents of bits 0 to 7 of the pwm register. several examples are shown in figure 12.7.2 (b). 256 kinds of output (high area: 0/256 to 255/256) are selected by changing the contents of the pwm register. a length of entirely high cannot be output, i.e. 256/256. 12.7.4 output after reset at reset, the output of port p0 is in the high-impedance state, port p5 0 outputs low, and the contents of the pwm register and the pwm circuit are undefined. note that after reset, the pwm output is unde- fined until setting the pwm register. 47 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37280MFCxxxsp, m37280mkCxxxsp m37280eksp mitsubishi microcomputers preliminary notice: this is not a final specification. some paramentic limits are subject to change. rev. 1.0 fig. 12.7.1 pwm block diagram pn pw p0 d0 : pwm mode register 1 [address 020a 16 ] : pwm mode register 2 [address 020b 16 ] : port p0 register [address 00c0 16 ] : port p0 direction register [address 00c1 16 ] selection gate: connected to black side at reset. is as same contents with the others. pwm1 register (address 0201 16 ) pwm2 register (address 0202 16 ) pwm3 register (address 0203 16 ) pwm4 register (address 0204 16 ) pwm5 register (address 0205 16 ) pwm6 register (address 0206 16 ) data bus pwm0 register (address 0200 16 ) b7 b0 8 pwm circuit pol p0 4 pw0 d0 4 pwm0 p0 5 pw1 d0 5 pwm1 p0 6 pw2 d0 6 pwm2 p0 7 pw3 d0 7 pwm3 p0 0 pw4 d0 0 pwm4 p0 1 pw5 d0 1 pwm5 p0 2 pw6 d0 2 pwm6 inside of pn0 1/2 x i n pwm timing generating circuit pwm7 register (address 0207 16 ) p5 0 pwm7 pw7 p0 3 pn4 d0 3 pwm7 48 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37280MFCxxxsp, m37280mkCxxxsp m37280eksp mitsubishi microcomputers preliminary notice: this is not a final specification. some paramentic limits are subject to change. rev. 1.0 fig. 12.7.2 pwm timing (a) pulses showing the weight of each bit 1 3 5 7 9 20 30 40 50 60 70 80 90 100 110 120 130 140 150 160 170 180 190 200 210 220 230 240 250 255 4 12 20 28 36 44 52 60 68 76 84 92 100 108 116 124 132 140 148 156 164 172 180 188 196 204 212 220 228 236 244 252 8 16 48 80 112 144 176 208 240 24 40 56 72 88 104 120 136 152 168 184 200 216 232 248 32 96 160 224 64 192 bit 7 2 6 10 14 18 22 26 30 34 38 42 46 50 54 58 62 66 70 74 78 82 86 90 94 98 102 106 110 114 118 122 126 130 134 138 142 146 150 154 158 162 166 170 174 178 182 186 190 194 198 202 206 210 214 218 222 226 230 234 238 242 246 250 254 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 128 bit 0 pwm output t = 4 m s t = 1024 m s f(x in ) = 8 mhz (b) example of 8-bit pwm t 00 16 (0) 01 16 (1) 18 16 (24) ff 16 (255) t = 256 t 49 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37280MFCxxxsp, m37280mkCxxxsp m37280eksp mitsubishi microcomputers preliminary notice: this is not a final specification. some paramentic limits are subject to change. rev. 1.0 fig. 12.7.3 pwm mode register 1 fig. 12.7.4 pwm mode register 2 b 7 b 6 b 5 b 4 b 3 b 2 b1 b 0 pwm mode register 1 (pn) [address 020a 16 ] b after reset r w pwm mode re g ister 1 0 1, 2 0 nam e function s nothing is assigned. these bits are write disable bits. wh e n th ese b it s a r e r ead ou t , th e v a l ues a r e 0 .? r r pwm counts source se l ec ti o n b it ( pn 0) 0 : count source supply 1 : cou nt sou r ce s t o p 3 pwm output polarity se l ec ti o n b it ( pn 3) 0 0 : positive polarity 1 : n ega tiv e p o l a rit y r w 4 p0 3 /pwm7 output selection bit (pn4) 0 0 : p0 3 output 1 : pwm7 output r w 0 w 5 to 7 nothing is assigned. these bits are write disable bits. wh e n th ese b it s a r e r ead ou t , th e v a l ues a r e 0 .? r 0 b7 b6 b5 b4 b3 b2 b1 b0 pwm mode register 2 (pw) [address 020b 16 ] b after reset rw pwm mode re g ister 2 0 1 2 3 4 0 name functions p0 4 /pwm0 output se l ec ti o n b it ( pw 0) 0 : p0 4 output 1 : pwm 0 ou tp u t p0 6 /pwm2 output se l ec ti o n b it ( pw2 ) 0 : p0 6 output 1 : pwm2 ou tp u t p0 7 /pwm3 output se l ec ti o n b it ( pw 3) 0 : p0 7 output 1 : pwm 3 ou tp u t p0 0 /pwm4 output se l ec ti o n b it ( pw4 ) 0 : p0 0 output 1 : pwm4 ou tp u t 5 p0 1 /pwm5 output se l ec ti o n b it ( pw 5) 0: p0 1 output 1: pwm 5 ou tp u t 7 p0 5 /pwm1 output se l ec ti o n b it ( pw1 ) 0 : p0 5 output 1 : pwm1 ou tp u t 0 0 0 0 0 0 rw rw rw rw rw rw rw 6 p0 2 /pwm6 output se l ec ti o n b it ( pw 6) 0: p0 2 output 1: pwm 6 ou tp u t 0 rw 0: p5 0 output 1: pwm7 ou tp u t p5 0 /pwm7 output se l ec ti o n b it ( pw7 ) 50 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37280MFCxxxsp, m37280mkCxxxsp m37280eksp mitsubishi microcomputers preliminary notice: this is not a final specification. some paramentic limits are subject to change. rev. 1.0 12.8 a-d converter 12.8.1 a-d conversion register (ad) a-d conversion reigister is a read-only register that stores the result of an a-d conversion. this register should not be read during a-d conversion. 12.8.2 a-d control register (adcon) the a-d control register controls a-d conversion. bits 2 to 0 of this register select analog input pins. when these pins are not used as anlog input pins, they are used as ordinary i/o pins. bit 3 is the a-d conversion completion bit, a-d conversion is started by writing 0 to this bit. the value of this bit remains at 0 during an a-d conversion, then changes to 1 when the a-d conversion is completed. bit 4 controls connection between the resistor ladder and v cc . when not using the a-d converter, the resistor ladder can be cut off from the internal v cc by setting this bit to 0, accordingly providing low- power dissipation. 12.8.3 comparison voltage generator (resis- tor ladder) the voltage generator divides the voltage between v ss and v cc by 256, and outputs the divided voltages to the comparator as the refer- ence voltage v ref . 12.8.4 channel selector the channel selector connects an analog input pin, selected by bits 2 to 0 of the a-d control register, to the comparator. 12.8.5 comparator and control circuit the conversion result of the analog input voltage and the reference voltage v ref is stored in the a-d conversion register. the a-d con- version completion bit and a-d conversion interrupt request bit are set to 1 at the completion of a-d conversion. fig. 12.8.1 a-d comparator block diagram a-d control register (address 00ef 16 ) a-d control circuit data bus switch tree a-d conversion interrupt request resistor ladder compa- rator channel selector a-d conversion register ad1 ad2 ad3 ad4 (address 00ee 16 ) b7 b0 3 8 v ss v cc ad5 ad6 ad7 ad8 51 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37280MFCxxxsp, m37280mkCxxxsp m37280eksp mitsubishi microcomputers preliminary notice: this is not a final specification. some paramentic limits are subject to change. rev. 1.0 fig. 12.8.2 a-d control register a-d control register b7 b6 b5 b4 b3 b2 b1 b0 a-d control register (adcon) [address 00ef 16 ] b after reset rw 0 to 2 analog input pin selection bits (adin0 to adin2) name functions b2 b1 b0 0 0 0 : ad1 0 0 1 : ad2 0 1 0 : ad3 0 1 1 : ad4 1 0 0 : ad5 1 0 1 : ad6 1 1 0 : ad7 1 1 1 : ad8 4 v cc connection selection bit (advref) 0: off 1: on 0 0 6 nothing is assigned. this bit is a write disable bit. when this bit is read out, the value is indeterminate. rw rw r 3 a-d conversion completion bit (adstr) 0: conversion in progress 1: convertion completed 1 rw 7 fix this bit to ?. rw 00 indeterminate 5 fix this bit to ?. rw 0 0 52 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37280MFCxxxsp, m37280mkCxxxsp m37280eksp mitsubishi microcomputers preliminary notice: this is not a final specification. some paramentic limits are subject to change. rev. 1.0 note: v ref indicates the reference voltage (= vcc). fig. 12.8.3 changes in a-d conversion register and comparison voltage during a-d conversion 12.8.6 conversion method ? set bit 7 of the interrupt input polarity register (address 0212 16 ) to 1 to generate an interrupt request at completion of a-d conver- sion. ? set the a-d conversion int3 interrupt request bit to 0 (even when a-d conversion is started, the a-d conversion int3 inter- rupt reguest bit is not set to 0 automatically). ? when using a-d conversion interrupt, enable interrupts by setting a-d conversion int3 interrupt request bit to 1 and setting the interrupt disable flag to 0. set the v cc connection selection bit to 1 to connect v cc to the resistor ladder. ? select analog input pins by the analog input selection bit of the a- d control register. set the a-d conversion completion bit to 0. this write operation starts the a-d conversion. do not read the a-d conversion register during the a-d conversion. ? verify the completion of the conversion by the state (1) of the a-d conversion completion bit, the state (1) of a-d conversion int3 interrupt reguest bit, or the occurrence of an a-d conversion interrupt. ? read the a-d conversion register to obtain the conversion results. note : when the ladder resistor is disconnect from v cc , set the v cc connec- tion selection bit to 0 between steps ? and ? . 12.8.7 internal operation when the a-d conversion starts, the following operations are auto- matically performed. ? the a-d conversion register is set to 00 16 . ? the most significant bit of the a-d conversion register becomes 1, and the comparison voltage v ref is input to the comparator. at this point, v ref is compared with the analog input voltage v in . ? bit 7 is determined by the comparison results as follows. when v ref < v in : bit 7 holds 1 when v ref > v in : bit 7 becomes 0 with the above operations, the analog value is converted into a digi- tal value. the a-d conversion terminates in a maximum of 50 ma- chine cycles (12.5 m s at f(x in ) = 8 mhz) after it starts, and the con- version result is stored in the a-d conversion register. an a-d conversion interrupt request occurs at the same time as a-d conversion completion, the a-d conversion int3 interrupt request bit becomes 1. the a-d conversion completion bit also becomes 1. table 12.8.1 expression for v ref and v ref a-d conversion register contents n (decimal notation) 0 1 to 255 vref (v) 0 v ref 2 v ref 512 v ref 2 v ref 4 v ref 512 v ref 2 v ref 4 v ref 8 v ref 512 v ref 2 v ref 4 v ref 8 v ref 512 v ref 256 12 3 456 78 1 0000000 12 100000 1000000 1 123456 7 1 00000 000 contents of a-d conversion register reference voltage (v ref ) [v] 0 a-d conversion start 1st comparison start 3rd comparison start 8th comparison start 2nd comparison start digital value corresponding to analog input voltage. a-d conversion completion (8th comparison completion) ....... : value determined by mth (m = 1 to 8) result m ..... v ref 256 ~ (n | 0.5) 53 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37280MFCxxxsp, m37280mkCxxxsp m37280eksp mitsubishi microcomputers preliminary notice: this is not a final specification. some paramentic limits are subject to change. rev. 1.0 [lsb] [lsb] 12.8.8 definition of a-d conversion accuracy the definition of a-d conversion accuracy is described below (refer to figure 12.8.4). (1) relative accuracy ?zero transition error (v 0t ) the deviation of the input voltage at which a-d conversion output data changes from 0 to 1, from the corresponding ideal a-d conversion characteristics between 0 and v ref . ? non-linearity error the deviation of the actual a-d conversion characteristics, from the ideal a-d conversion characteristics between v 0 and v 254 . (v 0 C 1/2 5 v ref /256) 1lsb v 0t = (v ref C 3/2 5 v ref /256) C v 254 1lsb v fst = non-linearity error = [lsb] [lsb] ? edifferential non-linearity error the deviation of the input voltage required to change output data by 1, from the corresponding ideal a-d conversion characteris- tics between 0 and v ref . (2) absolute accuracy ? eabsolute accuracy error the deviation of the actual a-d conversion characteristics, from the ideal a-d conversion characteristics between 0 and v ref . v n C (1lsb 5 n + v 0 ) 1lsb [lsb] differential non-linearity error = (v n+1 C v n ) C 1lsb 1lsb absolute accuracy error = 1lsb a with respect to absolute accuracy = 1lsb with respect to relative accuracy = note: the analog input voltage vn at which a-d conversion output data changes from n to n + 1 (n ; 0 to 254) is as follows (refer to figure 12.8.4) : v 254 C v 0 254 v ref 256 [v] [v] fig. 12.8.4 definition of a-d conversion accuracy ? full-scale transition error (v fst ) the deviation of the input voltage at which a-d conversion output data changes from 255 to 254, from the corresponding ideal a- d conversion characteristics between 0 and v ref . v n C 1lsb a 5 (n + 1/2) 1lsb a output code 0 analog input voltage (mv) 20 40 80 100 120 140 160 180 200 220 00 16 01 16 02 16 03 16 04 16 05 16 06 16 07 16 08 16 09 16 + 2lsb C 2lsb 60 absolute accuracy limitless resolution a-d conversion characteristics ideal a-d conversion characteristics 54 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37280MFCxxxsp, m37280mkCxxxsp m37280eksp mitsubishi microcomputers preliminary notice: this is not a final specification. some paramentic limits are subject to change. rev. 1.0 fig. 12.9.2 rom correction enable register fig. 12.9.1 rom correction address registers 12.9 rom correction function this can correct program data in rom. up to 2 addresses (2 blocks) can be corrected, a program for correction is stored in the rom cor- rection memory in ram. the rom memory for correction is 32 bytes 5 2 blocks. block 1 : addresses 02c0 16 to 02df 16 block 2 : addresses 02e0 16 to 02ff 16 set the address of the rom data to be corrected into the rom cor- rection address register. when the value of the counter matches the rom data address in the rom correction address, the main pro- gram branches to the correction program stored in the rom memory for correction. to return from the correction program to the main pro- gram, the op code and operand of the jmp instruction (total of 3 bytes) are necessary at the end of the correction program. when the blocks 1 and 2 are used in series, the above instruction is not needed at the end of the block 1. the rom correction function is controlled by the rom correction enable register. notes 1: specify the first address (op code address) of each instruction as the rom correction address. 2: use the jmp instruction (total of 3 bytes) to return from the correction program to the main program. 3: do not set the same rom correction address to blocks 1 and 2. 4: for the m37280mk-xxxsp and m37280eksp, when using the ex- pansion rom (bk7 = 1), the rom correction function do not oper- ate used for addresses 1000 16 to1fff 16 . note that on programming. 020c 16 rom correction address 1 (high-order) 020d 16 rom correction address 1 (low-order) 020e 16 rom correction address 2 (high-order) 020f 16 rom correction address 2 (low-order) b7 b6 b5 b4 b3 b2 b1 b0 rom correction enable register (rcr) [address 0210 16 ] b after reset rw rom correction enable register 0 block 1 enable bit (rcr0) name functions 0: disabled 1: enabled 1 block 2 enable bit (rcr1) 0: disabled 1: enabled 4 to 7 nothing is assigned. these bits are write disable bits. when these bits are read out, the values are ?.? 0 0 0 rw rw r 0 0 2, 3 fix these bits to ?.? 0 rw 55 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37280MFCxxxsp, m37280mkCxxxsp m37280eksp mitsubishi microcomputers preliminary notice: this is not a final specification. some paramentic limits are subject to change. rev. 1.0 12.10 data slicer this microcomputer includes the data slicer function for the closed caption decoder (referred to as the ccd). this function takes out the caption data superimposed in the vertical blanking interval of a com- posite video signal. a composite video signal which makes the sync chips polarity negative is input to the cv in pin. when the data slicer function is not used, the data slicer circuit and the timing signal generating circuit can be cut off by setting bit 0 of the data slicer control register 1 (address 00e0 16 ) to 0. these set- tings can realize the low-power dissipation. fig. 12.10.1 data slicer block diagram composite video signal 1 m w sync pulse counter register (address 00e9 16 ) data slicer control register 2 (address 00e1 16 ) data slicer control register 1 (address 00e0 16 ) clock run-in defect register (address 00ea 16 ) caption position register (address 00e6 16 ) data clock position register (address 00eb 16 ) interrupt request generating circuit data slicer interrupt request synchronizing signal counter synchronizing separation circuit sync slice circuit clamping circuit low-pass filter timing signal generating circuit clock run-in determination circuit data slice line specification circuit start bit detecting circuit data clock generating circuit 16-bit shift register caption data register 1 (address 00e2 16 ) caption data register 2 (address 00e3 16 ) data bus comparator 0.1 m f 470 w 560 pf cv in 1 m f 1 k w 200 pf h sync hlf + reference voltage generating circuit v hold 1000 pf high-order low-orde r data slicer on/off caption data register 4 (address 00e5 16 ) caption data register 3 (address 00e4 16 ) external circuit note : make the length of wiring which is connected to v hold , hlf, and cv in pin as short as possible so that a leakage current may not be generated when mounting a resistor or a capacitor on each pin. 56 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37280MFCxxxsp, m37280mkCxxxsp m37280eksp mitsubishi microcomputers preliminary notice: this is not a final specification. some paramentic limits are subject to change. rev. 1.0 12.10.1 notes when not using data slicer when bit 0 of data slicer control register 1 (address 00e0 16 ) is 0, terminate the pins as shown in figure 12.10.2. fig. 12.10.2 termination of data slicer input/output pins when data slicer circuit and timing generating circuit is in off stat e when both bits 0 and 2 of data slicer control register 1 (address 00e0 16 ) are 1, terminate the pins as shown in figure 12.10.3. fig. 12.10.3 termination of data slicer input/output pins when timing signal generating circuit is in on state 57 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37280MFCxxxsp, m37280mkCxxxsp m37280eksp mitsubishi microcomputers preliminary notice: this is not a final specification. some paramentic limits are subject to change. rev. 1.0 figures 12.10.4 and 12.10.5 the data slicer control registers. fig. 12.10.4 data slicer control register 1 fig. 12.10.5 data slicer control register 2 b7 b6 b5 b4 b3 b2 b1 b0 data slicer control register 1(dsc1) [address 00e0 16 ] data slicer control register 1 00 rw 0rw 2 reference clock source selection bit (dsc12) 0: video signal 1: h sync signal 0r w 0rw 00 0: stopped 1: operating data slicer and timing signal generating circuit control bit (dsc10) fix these bits to ?. 3 to 7 000 1 0: f2 1: f1 selection bit of data slice reference voltage generating field (dsc11) definition of fields 1 (f1) and 2 (f2) h sep v sep f1: h sep v sep f2: b after reset r w name functions b7 b6 b5 b4 b3 b2 b1 b0 data slicer control register 2 (dsc2) [address 00e1 16 ] r w data slicer control register 2 0 indeterminate r 0r w indeterminate r indeterminate r 00 0: data is not latched yet and a clock-run-in is not determined. 1: data is latched and a clock-run-in is determined. caption data latch completion flag 1 (dsc20) fix this bit to ?. read-only test bit 3 0: f2 1: f1 field determination flag(dsc23) 4 0: method (1) 1: method (2) vertical synchronous signal (v sep ) generating method selection bit (dsc24) 0rw 5 0: match 1: mismatch v-pulse shape determination flag (dsc25) indeterminate r b after reset function s nam e definition of fields 1 (f1) and 2 (f2) h sep v sep f1: h sep v sep f2: 0r w indeterminate r fix this bit to ?. read-only test bit 6 7 1 2 58 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37280MFCxxxsp, m37280mkCxxxsp m37280eksp mitsubishi microcomputers preliminary notice: this is not a final specification. some paramentic limits are subject to change. rev. 1.0 12.10.2 clamping circuit and low-pass filter the clamp circuit clamps the sync chip part of the composite video signal input from the cv in pin. the low-pass filter attenuates the noise of clamped composite video signal. the cv in pin to which composite video signal is input requires a capacitor (0.1 m f) coupling outside. pull down the cv in pin with a resistor of hundreds of kiloohms to 1 m w . in addition, we recommend to install externally a simple low- pass filter using a resistor and a capacitor at the cv in pin (refer to figure 12.10.1). 12.10.3 sync slice circuit this circuit takes out a composite sync signal from the output signal of the low-pass filter. 12.10.4 synchronous signal separation circuit this circuit separates a horizontal synchronous signal and a vertical synchronous signal from the composite sync signal taken out in the sync slice circuit. (1)horizontal synchronous signal (h sep ) a one-shot horizontal synchronizing signal hsep is generated at the falling edge of the composite sync signal. (2)vertical synchronous signal (v sep ) as a v sep signal generating method, it is possible to select one of the following 2 methods by using bit 4 of the data slicer control register 2 (address 00e1 16 ). ?method 1 the l level width of the composite sync signal is measured. if this width exceeds a certain time, a v sep signal is generated in synchronization with the rising of the timing signal immediately after this l level. ?method 2 the l level width of the composite sync signal is measured. if this width exceeds a certain time, it is detected whether a falling of the composite sync sig- nal exits or not in the l level period of the timing signal immediately after this l level. if a falling ex- ists, a v sep signal is generated in synchronization with the rising of the timing signal (refer to fig- ure12.10.6). figure 12.10.6 shows a v sep generating timing. the timing signal shown in the figure is generated from the reference clock which the timing generating circuit outputs. reading bit 5 of data slicer control register 2 permits determinating the shape of the v-pulse portion of the composite sync signal. as shown in figure 12.10.7, when the a level matches the b level, this bit is 0. in the case of a mismatch, the bit is 1. fig. 12.10.6 vsep generating timing (method 2) composite s timing signal v sep signal measure ??period a v sep signal is generated at a rising of the timing signal immediately after the ??level width of the composite sync signal exceeds a certain time. 59 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37280MFCxxxsp, m37280mkCxxxsp m37280eksp mitsubishi microcomputers preliminary notice: this is not a final specification. some paramentic limits are subject to change. rev. 1.0 12.10.5 timing signal generating circuit this circuit generates a reference clock which is 832 times as large as the horizontal synchronous signal frequency. it also generates various timing signals on the basis of the reference clock, horizontal synchronous signal and vertical synchronizing signal. the circuit operates by setting bit 0 of data slicer control register 1 (address 00e0 16 ) to 1. the reference clock can be used as a display clock for osd function in addition to the data slicer. the h sync signal can be used as a count source instead of the composite sync signal. however, when the h sync signal is selected, the data slicer cannot be used. a count source of the reference clock can be selected by bit 2 of data slicer control register 1 (address 00e0 16 ). for the pins hlf, connect a resistor and a capacitor as shown in figure 12.10.1. make the length of wiring which is connected to these pins as short as possible so that a leakage current may not be gener- ated. note: it takes a few tens of milliseconds until the reference clock becomes stable after the data slicer and the timing signal generating circuit are started. in this period, various timing signals, h sep signals and v sep sig- nals become unstable. for this reason, take stabilization time into con- sideration when programming. fig. 12.10.7 determination of v-pulse waveform composite sync signal a b 0 1 1 bit 5 of dsc2 60 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37280MFCxxxsp, m37280mkCxxxsp m37280eksp mitsubishi microcomputers preliminary notice: this is not a final specification. some paramentic limits are subject to change. rev. 1.0 12.10.6 data slice line specification circuit (1) specification of data slice line this circuit decides a line on which caption data is superimposed. the line 21 (fixed), 1 appropriate line for a period of 1 field (total 2 line for a period of 1 field), and both fields (f1 and f2) are sliced their data. the caption position register (address 00e6 16 ) is used for each setting (refer to table 12.10.1). the counter is reset at the falling edge of v sep and is incremented by 1 every h sep pulse. when the counter value matched the value specified by bits 4 to 0 of the caption position register, this h sep is sliced. the values of 00 16 to 1f 16 can be set in the caption position register (at setting only 1 appropriate line). figure 12.10.8 shows the signals in the vertical blanking interval. figure 12.10.9 shows the structure of the caption position register. (2) specification of line to set slice voltage the reference voltage for slicing (slice voltage) is generated for the clock run-in pulse in the particular line (refer to table 7). the field to generate slice voltage is specified by bit 1 of data slicer control register 1. the line to generate slice voltage 1 field is speci- fied by bits 6, 7 of the caption position register (refer to table 12.10.1). fig. 12.10.8 signals in vertical blanking interval video signal vertical blanking interval composite video signal count value to be set in the caption position register (?f 16 ?in this case) h sep v sep h sep magnified drawing clock run-in start bit + 16-bit data start bit window for deteminating clock-run-in composite video signal line 21 1 appropriate line is set by the caption position register (when setting line 19) (3) field determination the field determination flag can be read out by bit 3 of data slicer control register 2. this flag charge at the falling edge of v sep . 61 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37280MFCxxxsp, m37280mkCxxxsp m37280eksp mitsubishi microcomputers preliminary notice: this is not a final specification. some paramentic limits are subject to change. rev. 1.0 fig. 12.10.9 caption position register field and line to generate slice voltage ? field specified by bit 1 of dsc1 ? line 21 (total 1 line) ? field specified by bit 1 of dsc1 ? a line specified by bits 4 to 0 of cps (total 1 line) (see note 3) ? field specified by bit 1 of dsc1 ? line 21 (total 1 line) ? field specified by bit 1 of dsc1 ? line 21 and a line specified by bits 4 to 0 of cps (total 2 lines) (see note 2) field and line to be sliced data ? both fields of f1 and f2 ? line 21 and a line specified by bits 4 to 0 of cps (total 2 lines) (see note 2) ? both fields of f1 and f2 ? a line specified by bits 4 to 0 of cps (total 1 line) (see note 3) ? both fields of f1 and f2 ? line 21 (total 1 line) ? both fields of f1 and f2 ? line 21 and a line specified by bits 4 to 0 of cps (total 2 lines) (see note 2) cps b7 0 0 1 1 b6 0 1 0 1 notes 1: dsc1 is data slicer control register 1. cps is caption position register. 2: set 00 16 to 10 16 to bits 4 to 0 of cps. 3: set 00 16 to 1f 16 to bits 4 to 0 of cps. table 12.10.1 specification of data slice line b7 b6 b5 b4 b3 b2 b1 b0 caption position register (cps) [address 00e6 16 ] caption position registe r 0 to 4 0 rw 0r w caption position bits(cps0 to cps4) 6, 7 refer to the corresponding table (table 12.10.1). slice line mode specification bits (in 1 field) (cps6, cps7) 5 0: data is not latched yet and a clock-run-in is not determined. 1: data is latched and a clock-run-in is determined. caption data latch completion flag 2 (cps5) indeterminate r b after reset functions nam e rw 62 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37280MFCxxxsp, m37280mkCxxxsp m37280eksp mitsubishi microcomputers preliminary notice: this is not a final specification. some paramentic limits are subject to change. rev. 1.0 12.10.7 reference voltage generating circuit and comparator the composite video signal clamped by the clamping circuit is input to the reference voltage generating circuit and the comparator. (1) reference voltage generating circuit this circuit generates a reference voltage (slice voltage) by using the amplitude of the clock run-in pulse in line specified by the data slice line specification circuit. connect a capacitor between the v hold pin and the v ss pin, and make the length of wiring as short as possible so that a leakage current may not be gener- ated. (2) comparator the comparator compares the voltage of the composite video signal with the voltage (reference voltage) generated in the refer- ence voltage generating circuit, and converts the composite video signal into a digital value. fig. 12.10.10 clock run-in detect register 12.10.8 start bit detecting circuit this circuit detects a start bit at line decided in the data slice line specification circuit. the detection of a start bit is described below. a sampling clock is generated by dividing the reference clock out- put by the timing signal. a clock run-in pulse is detected by the sampling clock. a after detection of the pulse, a start bit pattern is detected from the comparator output. 12.10.9 clock run-in determination circuit this circuit determinates clock run-in by counting the number of pulses in a window of the composite video signal. the reference clock count value in one pulse cycle is stored in bits 3 to 7 of the clock run-in detect register (address 00ea 16 ). read out these bits after the occurrence of a data slicer interrupt (refer to 12.10.12 interrupt request generating circuit). figure 12.10.10 shows the structure of clock run-in detect register. b7 b6 b5 b4 b3 b2 b1 b0 clock run-in detect register (crd) [address 00ea 16 ] r w clock run-in detect register 0 to 2 0 r test bits 3 to 7 number of reference clocks to be counted in one clock run-in pulse period. clock run-in detection bit(crd3 to crd7) 0r read-only b after reset functions name 63 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37280MFCxxxsp, m37280mkCxxxsp m37280eksp mitsubishi microcomputers preliminary notice: this is not a final specification. some paramentic limits are subject to change. rev. 1.0 12.10.10 data clock generating circuit this circuit generates a data clock synchronized with the start bit detected in the start bit detecting circuit. the data clock stores cap- tion data to the 16-bit shift register. when the 16-bit data has been stored and the clock run-in determination circuit determines clock run-in, the caption data latch completion flag is set. this flag is reset at a falling of the vertical synchronous signal (v sep ). fig. 12.10.11 data clock position register b7 b6 b5 b4 b3 b2 b1 b0 data clock position register (dps) [address 00eb 16 ] data clock position register 01 rw 3 data clock position set bits (dps3 to dps7) 1rw fix these bits to ?. 1,2 fix this bit to ?. 0rw 01 0 b after rese t function s name rw 4 to 7 0 64 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37280MFCxxxsp, m37280mkCxxxsp m37280eksp mitsubishi microcomputers preliminary notice: this is not a final specification. some paramentic limits are subject to change. rev. 1.0 12.10.11 16-bit shift register the caption data converted into a digital value by the comparator is stored into the 16-bit shift register in synchronization with the data clock. the contents of the high-order 8 bits of the stored caption data can be obtained by reading out data register 2 (address 00e3 16 ) and data register 4 (address 00e5 16 ). the contents of the low-order 8 bits can be obtained by reading out data register 1 (address 00e2 16 ) and data register 3 (address 00e4 16 ), respectively. these registers are reset to 0 at a falling of v sep . read out data registers 1 and 2 after the occurrence of a data slicer interrupt (refer to 12.10.12 in- terrupt request generating circuit). 12.10.12 interrupt request generating circuit the interrupt requests as shown in table 12.10.3 are generated by combination of the following bits; bits 6 and 7 of the caption position register (address 00e6 16 ). read out the contents of data registers 1 to 4 and the contents of bits 3 to 7 of the clock run-in detect register after the occurrence of a data slicer interrupt request. slice line specification mode cps completion flag 1 (bit 0 of dsc2) completion flag 2 (bit 5 of cps) caption data registers 1, 2 caption data registers 3, 4 line 21 a line specified by bits 4 to 0 of cps line 21 line 21 a line specified by bits 4 to 0 of cps invalid invalid a line specified by bits 4 to 0 of cps 16-bit data of line 21 16-bit data of a line specified by bits 4 to 0 of cps 16-bit data of line 21 16-bit data of line 21 16-bit data of a line specified by bits 4 to 0 of cps invalid invalid 16-bit data of a line specified by bits 4 to 0 of cps contents of caption data latch completion flag contents of 16-bit shift register bit 7 0 0 1 1 bit 6 0 1 0 1 cps: caption position register dsc2: data slicer control register 2 table 12.10.2 contents of caption data latch completion flag and 16-bit shift register caption position register occurence souces of interrupt request at end of data slice line after slicing line 21 after a line specified by bits 4 to 0 of cps after slicing line 21 after slicing line 21 b7 0 1 b6 0 1 0 1 table 12.10.3 occurence sources of interrupt request 65 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37280MFCxxxsp, m37280mkCxxxsp m37280eksp mitsubishi microcomputers preliminary notice: this is not a final specification. some paramentic limits are subject to change. rev. 1.0 fig. 12.10.12 sync pulse counter register 12.10.13 synchronous signal counter the synchronous signal counter counts the composite sync signal taken out from a video signal in the data slicer circuit or the vertical synchronous signal v sep as a count source. the count value in a certain time (t time) generated by f(x in )/2 13 or f(x in )/2 13 is stored into the 5-bit latch. accordingly, the latch value changes in the cycle of t time. when the count value exceeds 1f 16 , 1f 16 is stored into the latch. fig. 12.10.13 synchronous signal counter block diagram the latch value can be obtained by reading out the sync pulse counter register (address 00e9 16 ). a count source is selected by bit 5 of the sync pulse counter register. the synchronous signal counter is used when bit 0 of pwm mode register 1 (address 0208 16 ). figure 12.10.12 shows the structure of the sync pulse counter and figure 12.10.13 shows the synchronous signal counter block dia- gram. b7 b6 b5 b4 b3 b2 b1 b0 sync pulse counter register (hc) [address 00e9 16 ] r w sync pulse counter registe r 0 to 4 indeterminate r 6, 7 0 r count value (hc0 to hc4) 5 0 r w count source (hc5) 0: h sync signal 1: composite sync signal b after rese t functions nam e nothing is assigned. these bits are write disable bits. when these bits are read out, the values are ?. reset 5-bit counte r latch (5 bits ) f(x in )/2 13 composite sync signal h sync signal counter sync pulse counter register data bus selection gate : connected to black side when reset. b5 66 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37280MFCxxxsp, m37280mkCxxxsp m37280eksp mitsubishi microcomputers preliminary notice: this is not a final specification. some paramentic limits are subject to change. rev. 1.0 12.11 osd functions table 12.11.1 outlines the osd functions. this osd function can display the following: the block display (32 characters 5 16 lines), the sprite display. and besides, the func- tion can display the both display at the same time. there are 3 dis- play modes and they are selected by a block unit. the display modes are selected by block control register i (i = 1 to 16). the features of each mode are described below. table.12.11.1 features of each display style 4 kinds 5 1, 5 2 1t c 5 1/2h, 1t c 5 1h smooth italic, under line, flash 1 screen: 8 kinds (per character unit) max. 64 kinds possible (a character unit, 1 screen: 4 kinds, max. 64 kinds) layer 1 analog r, g, b output (each 4 adjustment levels : 64 colors), digital out1, out2 output font memory rom kinds of character sizes pre-divide ratio (note) dot size attribute character font coloring character background coloring display layer osd output possible (a screen unit, max 64 kinds) raster coloring auto solid space function function triple layer osd function, window function, blank funtion possible display expansion (multiline display) 14 kinds 5 1, 5 2, 5 3 1t c 5 1/2h, 1t c 5 1h, 1.5t c 5 1/2h, 1.5t c 5 1h, 2t c 5 2h, 3t c 5 3h border possible (a character unit,1 screen: 15 kinds, max. 64 kinds) layer 1 and layer 2 layer 3 (with highest priority) 1 screen: 8 kinds (per dot unit) 1 screen: 15 kinds (only specified dots are colored per character unit) max. 64 kinds 1 screen: 15 kinds (per character unit) max. 64 kinds 1 screen: 8 kinds (per dot unit) max. 64 kinds 8 kinds 1t c 5 1/2h, 1t c 5 1h, 2t c 5 2h, 3t c 5 3h ram 5 1, 5 2 notes1: the divide ratio of the frequency divider (the pre-divide circuit) is referred as pre-divide ratio hereafter. 2: the character size is specified with dot size and pre-divide ratio (refer to 2.11.3 dot size). block display cc mode (closed caption mode) osd mode (on-screem display mode) cdosd mode (color dot on-screen display mode) sprite display display style parameter number of display characters 32 characters 5 16 lines 16 5 20 dots (character sidplay area: 16 5 26 dots) dot structure kinds of characters 510 kinds 16 5 26 dots 62 kinds 16 5 20 dots 1 kind 1 character 16 5 20 dots 67 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37280MFCxxxsp, m37280mkCxxxsp m37280eksp mitsubishi microcomputers preliminary notice: this is not a final specification. some paramentic limits are subject to change. rev. 1.0 the osd circuit has an extended display mode. this mode allows multiple lines (16 lines or more) to be displayed on the screen by interrupting the display each time one line is displayed and rewriting data in the block for which display is terminated by software. figure 12.11.1 shows the configuration of osd character display area. figure 12.11.2 shows the block diagram of the osd circuit. figure 12.11.3 shows the osd control register 1. figure 12.11.4 shows the block control register i. fig. 12.11.1 configuration of osd character display area 16 dots 20 dots osd mode ? underline area ] ? blank area ] ? blank area ] 16 dots 26 dots 20 dots ] : displayed only in cc mode. cc mode 16 dots 26 dots cdosd mode 68 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37280MFCxxxsp, m37280mkCxxxsp m37280eksp mitsubishi microcomputers preliminary notice: this is not a final specification. some paramentic limits are subject to change. rev. 1.0 fig. 12.11.2 block diagram of osd circuit osd ram 18 bits 5 32 characters 5 16 lines data bus osd rom (charater font) 16 dots 5 20 dots 5 510 characters shift register shift register output circuit r g b out1 out2 display oscillation circuit osc1 osc2 h sync v sync data slicer clock clock for osd osd control circuit control register for osd osd port control register osd control register 1 horizontal position register block control register i osd control register 2 clock control register i/o polarity control register raster color register osd control register 3 top border control register 1, 2 bottom border control register 1, 2 vertical position register 1i, 2i color pallet register i left border control register 1, 2 right border control register 1, 2 sprite vertical position registers 1, 2 sprite horizontal position registers 1, 2 sprite osd control register (address 00cb 16 ) (address 00ce 16 ) (address 00cf 16 ) (addresses 00d0 16 to 00df 16 ) (address 0215 16 ) (address 0216 16 ) (address 0217 16 ) (address 0218 16 ) (address 0219 16 ) (addresses 021c 16 , 021e 16 ) (addresses 021d 16 , 021f 16 ) (addresses 0220 16 to 023f 16 ) (addresses 0241 16 to 0247 16 , 0249 16 to 024f 16 ) (addresses 0250 16 , 0251 16 ) (addresses 0252 16 , 0253 16 ) (addresses 0254 16 , 0255 16 ) (addresses 0256 16 , 0257 16 ) (addresses 0258 16 ) shift register osd rom (color dot font) 16 dots 5 26 dots 5 3 planes 5 62 characters ram for osd (sprite) 16 dots 5 20 dots 5 3 planes shift register 69 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37280MFCxxxsp, m37280mkCxxxsp m37280eksp mitsubishi microcomputers preliminary notice: this is not a final specification. some paramentic limits are subject to change. rev. 1.0 fig. 12.11.3 osd control register 1 0 : color signal of character background part does not flash 1 : color signal of character background part flashes b7 b6 b5 b4 b3 b2 b1 b0 osd control register 1 (oc1) [address 00ce 16 ] b name functions after reset r w osd control register 1 0 osd control bit (oc10) (see note 1) 0 : all-blocks display off 1 : all-blocks display on 0 1 scan mode selection bit ( oc11 ) 0 : normal scan mode 1 : bi-scan mode 0 2 0 : all bordered 1 : shadow bordered (see note 2) 0 0 4 automatic solid space control bit (oc14) 0 border type selection bit ( oc12 ) rw rw rw r w rw 3 flash mode selection bit ( oc13 ) 6, 7 0 0: logic sum (or) of layer 1s color and layer 2s color 0 1: layer 1s color has priority 1 0: layer 2s color has priority 1 1: do not set. layer mixing control bits (oc16, oc17) ( see note 3 ) b7 b6 0 : off 1 : on 0rw 5 vertical window/blank control bit (oc15) 0rw 0 : off 1 : on notes 1 : even this bit is switched during display, the display screen remains unchanged until a rising (falling) of the next v sync . 2: shadow border is output at right and bottom side of the font. 3: out2 is always ored, regardless of values of these bits. 70 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37280MFCxxxsp, m37280mkCxxxsp m37280eksp mitsubishi microcomputers preliminary notice: this is not a final specification. some paramentic limits are subject to change. rev. 1.0 b 7 b 6 b 5 b 4 b 3 b 2 b1 b 0 block control register i (bci) (i=1 to 16) [addresses 00d0 16 to 00df 16 ] block control register i 0, 1 display mode selection bits (bci0, bci1) indeterminate 3, 4 dot size selection bits (bci3, bci4) 5, 6 pre-divide ratio selection bit (bci5, bci6) 7 b1 b0 functions 0 0 display off 0 1 osd mode 1 0 cc mode 1 1 cdosd mode b name function s after reset r w r w indeterminate r w indeterminate r w indeterminate r notes 1: tc : osd clock cycle divided in pre-divide circuit 2: h : h sync 3: this character size is available only in layer 2. at this time, set layer 1s pre-divide ratio = 5 2, layer 1?s horizontal dot size = 1tc. b6 b5 b4 b3 pre-divide dot size ratio 0 0 1 1 0 0 1 1 0 0 0 0 1 1 0 1 1 1 5 1 5 2 5 3 1tc 5 1/2h 1tc 5 1h 2tc 5 2h 3tc 5 3h 1tc 5 1/2h 1tc 5 1h 2tc 5 2h 3tc 5 3h 1.5tc 5 1/2h (see note 3) 1.5tc 5 1h (see note 3) 1tc 5 1/2h 1tc 5 1h 2tc 5 2h 3tc 5 3h 0 0 1 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 nothing is assigned. this bit is a write disable bit. when this bit is read out, the value is indeterminate. 2 border control bit (bci2) 0 : border off 1 : border on indeterminate r w fig. 12.11.4 block control register i (i = 1 to 16) 71 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37280MFCxxxsp, m37280mkCxxxsp m37280eksp mitsubishi microcomputers preliminary notice: this is not a final specification. some paramentic limits are subject to change. rev. 1.0 12.11.1 triple layer osd three built-in layers of display screens accommodate triple display of channels, volume, etc., closed caption, and sprite displays within layers 1 to 3. the layer to be displayed in each block is selected by bit 0 or 1 of the osd control register 2 for each display mode (refer to figure 12.11.7). layer 3 always displays the sprite display. table 12.11.2 mixing layer 1 and layer 2 block in layer 1 cc, osd, cdosd mode 5 1, 5 2 (cc mode) 5 1 to 5 3 (osd, cdosd mode) 1t c 5 1/2h, 1t c 5 1h (cc mode) 1t c 5 1h, 1t c 5 1/2h, 2t c 5 2h, 3t c 5 3h (osd, cdosd mode) arbitrary block parameter display mode pre-divide ratio dot size horizontal display start position vertical display start position when the layer 1 block and the layer 2 block overlay, the screen is composed (refer to figure 12.11.5) with layer mixing by bit 6 or 7 of the osd control register 1, as shown in figure 12.11.3. layer 3 always takes display priority of layers 1 and 2. notes 1: when mixing layer 1 and layer 2, note table 12.11.2. 2: out2 is always ored, regardless of values of bits 6, 7 of the osd control register 1. and besides, even when out2 (layer 1 or layer 2) overlaps with sprite display (layer 3), out2 is output. block in layer 2 osd, cdosd mode same as layer 1 ? same saize as layer 1 ? 1.5t c can be selected only when: layer 1s pre-divide ratio = 5 2 and layer 1s horizontal dot size = 1t c . as this time, vertical dot size is the same as layer 1. same position as layer 1 pre-divide ratio = 5 2 1t c 5 1/2h, 1.5t c 5 1/2h 1t c 5 1h, 1.5t c 5 1h pre-divide ratio = 5 1 1t c 5 1/2h 1t c 5 1h arbitrary however, when dot size is 2t c 5 2h or 2t c 5 3h, set difference between vertical display position of layer 1 and that of layer 2 as follows. ?2t c 5 2h: 2h units ?3t c 5 3h: 3h units 72 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37280MFCxxxsp, m37280mkCxxxsp m37280eksp mitsubishi microcomputers preliminary notice: this is not a final specification. some paramentic limits are subject to change. rev. 1.0 fig. 12.11.6 display example of triple layer osd display example of layer 1 = hello, layer 2 = ch5 ch5 hello logical sum (or) of layer 1s color and layer 2s color (see note) bit 7 = 0, bit 6 = 0 layer 1s color has priority bit 7 = 0, bit 6 = 1 ch5 hello layer 2s color has priority bit 7 = 1, bit 6 = 0 hello ch5 note: layer mixing is not logical sum (or) of colors, but that of each bit of color pallet register. example) when logical sum (or) is performed on color pallet 1 (0001 2 ) and color pallet 2 (0010 2 ), the color set to color pallet 3 (0011 2 ) is output, regardless of color pallets 1 and 2 contents. fig. 12.11.5 triple layer osd layer 2 layer 1 block 1 block 2 block 7 block 8 ... layer 3 block 9 block 15 block 10 block 16 ... sprite r, g, b of layer 1 out2 of layer 1 sprite layer 1 sprite (except transparent) note : when layer 1 and sprite display overlay each other, only out2 in layer 1 is output. a' a 73 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37280MFCxxxsp, m37280mkCxxxsp m37280eksp mitsubishi microcomputers preliminary notice: this is not a final specification. some paramentic limits are subject to change. rev. 1.0 fig. 12.11.7 osd control register 2 b7 b6 b5 b4 b3 b2 b1 b0 osd control register 2 (oc2) [address 0215 16 ] b name functions at reset r w osd control register 2 0, 1 0 r w 2 r, g, b signal output selection bit(oc22) 0rw 3 0rw 5 window/blank selection bit 1 ( horizontal ) ( oc25 ) 0r w solid space output bit ( oc23 ) 0: out1 output 1: out2 output 0: digital output 1: analog output (4 gradations) 4 0rw horizotal window/blank coutrol bit (oc24) 0: off 1: on b1 b0 layer 1 layer 2 0 0 cc, osd, cdosd 0 1 cc, osd cdosd 1 0 cc, cdosd osd 1 1 cc cdosd osd 0: horizontal blank function 1: horizontal window function 6 window/blank selection bit 2 ( vertical ) ( oc26 ) 0r w 0: vertical blank function 1: vertical window function 7 osd interrupt request selection bit ( oc27 ) 0r w 0: at completion of layer 1 block display 1: at completion of layer 2 block display display layer selection bits (oc20, oc21) note: when setting bit 1 of the osd port control register to 1, the value which is converted from the 4-adjustment-level analog to the 2-bit digital is output regardless of this bit value as follows : the high-order bit (r1, g1 and b1) is output from pins p5 2 , p5 3 and p5 4 , and the low-order bit is (r0, g0 and b0) output from pins p1 7 , p1 5 and p1 6 . and besides, when not using osd function, the low-power dissipation can realize by setting this bit to 0. ( see note ) 74 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37280MFCxxxsp, m37280mkCxxxsp m37280eksp mitsubishi microcomputers preliminary notice: this is not a final specification. some paramentic limits are subject to change. rev. 1.0 12.11.2 display position the display positions of characters are specified by a block. there are 16 blocks, blocks 1 to 16. up to 32 characters can be displayed in each block (refer to 12.11.6 memory for osd). the display position of each block can be set in both horizontal and vertical directions by software. the display position in the horizontal direction can be selected for all blocks in common from 256-step display positions in units of 4 t osc (t osc = osd oscillation cycle). the display position in the vertical direction for each block can be selected from 1024-step display positions in units of 1 t h ( t h = h sync cycle). blocks are displayed in conformance with the following rules: ? when the display position is overlapped with another block (figure 12.11.8 (b)), a lower block number (1 to 16) is displayed on the front. ? when another block display position appears while one block is . displayed (figure 12.11.8 (c)), the block with a larger set value as the vertical display start position is displayed. however, do not dis- play block with the dot size of 2t c 5 2h or 3t c 5 3h during display period ( ] ) of another block. fig. 12.11.8 display position ] in the case of osd mode block: 20 dots in vertical from the vertical display start position. ] in the case of cc or cdosd mode block: 26 dots in vertical from the vertical display start position. hp vp12, vp22 block 1 block 2 (a) example when each block is separated vp13, vp23 block 3 hp vp11, vp21 = vp12, vp22 block 1 (b) example when block 2 overlaps with block 1 (block 2 is not displayed) hp vp11, vp21 vp12, vp22 (c) example when block 2 overlaps in process of block 1 block 1 block 2 note: vp1i or vp2i (i : 1 to 16) indicates the vertical display start position of display block i. vp11, vp21 75 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37280MFCxxxsp, m37280mkCxxxsp m37280eksp mitsubishi microcomputers preliminary notice: this is not a final specification. some paramentic limits are subject to change. rev. 1.0 the display position in the vertical direction is determined by count- ing the horizontal sync signal (h sync ). at this time, when v sync and h sync are positive polarity (negative polarity), it starts to count the rising edge (falling edge) of h sync signal from after fixed cycle of rising edge (falling edge) of v sync signal. so interval from rising edge (falling edge) of v sync signal to rising edge (falling edge) of h sync signal needs enough time (2 machine cycles or more) for avoiding jitter. the polarity of h sync and v sync signals can select with the i/o polarity control register (address 0217 16 ). fig. 12.11.9 supplement explanation for display position when bits 0 and 1 of the i/o polarity control register (address 0217 16 ) are set to 1 (negative polarity) v sync signal input v sync control signal in microcomputer 0.25 to 0.50 [ m s] ( at f ( x in ) = 8mhz ) (note 2) not count 12345 notes 1 : the vertical position is determined by counting falling edge of h sync signal after rising edge of v sync control signal in the microcomputer. 2: do not generate falling edge of h sync signal near rising edge of v sync control signal in microcomputer to avoid jitter. 3: the pulse width of v sync and h sync needs 8 machine cycles or more. 8 machine c y cles or more 8 machine cycles or more h sync signal input period of counting h sync signal 76 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37280MFCxxxsp, m37280mkCxxxsp m37280eksp mitsubishi microcomputers preliminary notice: this is not a final specification. some paramentic limits are subject to change. rev. 1.0 fig. 12.11.10 vertical position register 1i (i = 1 to 16) the vertical position for each block can be set in 1024 steps (where each step is 1t h (t h : h sync cycle)) as values 00 16 to ff 16 in vertical position register 1i (i = 1 to 16) (addresses 0220 16 to 022f 16 ) and values 00 16 to 03 16 in vertical position register 2i (i = 1 to 16) (addresses 0230 16 to 023f 16 ). the vertical position registers are shown in figures 12.11.10 and 12.11.11. fig. 12.11.11 vertical position register 2i (i = 1 to 16) b7 b6 b5 b4 b3 b2 b1 b0 vertical position register 1i (vp1i) (i = 1 to 16) [addresses 0220 16 to 022f 16 ] b name functions after reset rw vertical position register 1i 0 to 7 control bits of vertical display start positions (vp1i0 to vp1i7) (see note 1) vertical display start positions (low-order 8 bits) t h 5 (setting value of low-order 2 bits of vp2i 5 16 2 + setting value of low-order 4 bits of vp1i 5 16 1 + setting value of low-order 4 bits of vp1i 5 16 0 ) indeterminate rw notes 1: do not 00 16 and 01 16 to vp1i at vp2i = 00 16 . 2: t h is cycle of h sync . 3: vp2i is vertical position register 2i. b7 b6 b5 b4 b3 b2 b1 b0 vertical position register 2i (vp2i) (i = 1 to 16) [addresses 0230 16 to 023f 16 ] b name functions after reset r w vertical position register 2i 0, 1 control bits of vertical display start positions (vp2i0, vp2i1) (see note 1) vertical display start positions (high-order 2 bits) t h 5 (setting value of low-order 2 bits of vp2i 5 16 2 + setting value of low-order 4 bits of vp1i 5 16 1 + setting value of low-order 4 bits of vp1i 5 16 0 ) indeterminate rw nothing is assigned. these bits are write disable bits. when these bits are read out, the values are indeterminate. 2 to 7 indeterminate r? notes 1: do not set 00 16 and 01 16 to vp1i at vp2i = 00 16 . 2: t h is cycle of h sync . 3: vp1i is vertical position register 1i. 77 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37280MFCxxxsp, m37280mkCxxxsp m37280eksp mitsubishi microcomputers preliminary notice: this is not a final specification. some paramentic limits are subject to change. rev. 1.0 the horizontal position is common to all blocks, and can be set in 256 steps (where 1 step is 4t osc , t osc being the oscillating cycle for display) as values 00 16 to ff 16 in bits 0 to 7 of the horizontal position register (address 00cf 16 ). the horizontal position register is shown in figure 12.11.12. fig. 12.11.12 horizontal position register b7 b6 b5 b4 b3 b2 b1 b0 horizontal position register (hp) [address 00cf 16 ] b name functions after reset rw horizontal position registe r control bits of horizontal display start positions (hp0 to hp7) horizontal display start positions 4t osc 5 ( setting value of high-order 4 bits 5 16 1 + setting value of low-order 4 bits 5 16 0 ) 0rw 0 to 7 notes 1. the setting value synchronizes with the v sync . 2. t osc = osd oscillation period. note : 1t c (t c : osd clock cycle divided in pre-divide circuit) gap occurs be- tween the horizontal display start position set by the horizontal position register and the most left dot of the 1st block. accordingly, when 2 blocks have different pre-divide ratios, their horizontal display start position will not match. ordinaly, this gap is 1t c regardless of character sizes, however, the gap is 1.5t c only when the character size is 1.5t c . fig. 12.11.13 notes on horizontal display start position h sync 1t c 1t c block 1 (pre-divide ratio = 1) 1t c 4t osc 5 n note 1 block 2 (pre-divide ratio = 2) block 3 (pre-divide ratio = 3) block 4 (pre-divide ratio = 2, character size = 1.5tc) 1.5t c : value of horizontal position register (decimal notation) : osd clock cycle divided in pre-divide circuit : osd oscillation cycle : 50 tosc n tc tosc tdef t def 78 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37280MFCxxxsp, m37280mkCxxxsp m37280eksp mitsubishi microcomputers preliminary notice: this is not a final specification. some paramentic limits are subject to change. rev. 1.0 12.11.3 dot size the dot size can be selected by a block unit. the dot size in vertical direction is determined by dividing h sync in the vertical dot size con- trol circuit. the dot size in horizontal is determined by dividing the following clock in the horizontal dot size control circuit : the clock gained by dividing the osd clock source (data slicer clock, osc1, main clock) in the pre-divide circuit. the clock cycle divided in the pre-divide circuit is defined as 1t c . the dot size is specified by bits 6 to 3 of the block control register. fig. 12.11.14 block diagram of dot size control circuit fig. 12.11.15 definition of dot sizes h sync synchronous cycle 5 2 circuit cycle 5 3 pre-divide circuit clock cycle = 1t c horizontal dot size control circuit vertical dot size control circuit osd control circuit data slicer clock (see note) osc1 note: to use data slicer clock, set bit 0 of data slicer control register 1 to ?. 1 dot scanning line of f1 (f2) scanning line of f2 (f1) 1/2h 1h 2h 3h 3t c 2t c 1t c 1t c in normal scan mode refer to figure 12.11.4 (the block control register i), refer to figure 12.11.6 (the clock control register). the block diagram of dot size control circuit is shown in figure 12.11.4. notes 1: the pre-divide ratio = 3 cannot be used in the cc mode. 2: the pre-divide ratio of the layer 2 must be same as that of the layer 1 by the block control register i. 3: in the bi-scan mode, the dot size in the vertical direction is 2 times as ompared with the normal mode. refer to 12.11.13 scan mode about the scan mode. 79 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37280MFCxxxsp, m37280mkCxxxsp m37280eksp mitsubishi microcomputers preliminary notice: this is not a final specification. some paramentic limits are subject to change. rev. 1.0 bit 7 of port p3 direction register clock control register 12.11.4 clock for osd as a clock for display to be used for osd, it is possible to select one of the following 3 types. ? data slicer clock output from the data slicer (approximately 26 mhz) ? clock from the lc oscillator supplied from the pins osc1 and osc2 ? clock from the ceramic resonator or the quartz-crystal oscillator from the pins osc1 and osc2 the clock for display to be used for osd can be selected by bit 7 of port p3 direction register, bit 2 and bit 1 of clock source control reg- ister (address 0216 16 ). if the pins osc1 and osc2 are not used as osd clock input/output, these pins can be used as the sub-clock input/output, or port p6. fig. 12.11.16 clock control register table 12.11.2 setting of p6 3 /osc1/x cin , p6 4 /osc2/x cout bit 2 bit 1 clock input/ output pins for osd sub-clock input/ output pins 0 0 0 function registers input port 1 0 1 0 1 0 1 1 b7 b6 b5 b4 b3 b2 b1 b0 clock control register (cs) [address 0216 16 ] b name functions after reset r w clock control register 0 clock selection bit (cs0) 0 rw 1, 2 0: data slicer clock 1: osc1 clock 0 rw 70rw test bit (see note 2) osc1 oscillating mode selection bits (cs1, cs2) 0 0: 32khz oscillating mode. 0 1: used as input port of p6 3 and p6 4 (see note 1). 1 0: lc oscillating mode 1 1: ceramic ?quartz-crystal oscillating mode b2 b1 note 1: set bit 7 of address 00c7 16 to ?? when osc1 and osc2 are used as p6 3 and p6 4 . 2: be sure to set bit 7 to ??for program of the mask and the eprom versions. for the emulator mcu version (m37280erss), be sure to set bit 7 to ?? when using the data slicer clock for software debugging. 00 0 fix these bits to ?. 0 r w 3 to 6 0 80 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37280MFCxxxsp, m37280mkCxxxsp m37280eksp mitsubishi microcomputers preliminary notice: this is not a final specification. some paramentic limits are subject to change. rev. 1.0 fig. 12.11.17 block diagram of osd selection circuit 0 11 10 data slicer circuit data slicer clock osc1 clock lc c eramic ? quartz-crystal o scillating mode f or os d cs2 , cs1 osd control circuit cs0 (see note) note : to use data slicer clock, set bit 0 of data slicer control register 1 to ?. 1 32khz 00 81 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37280MFCxxxsp, m37280mkCxxxsp m37280eksp mitsubishi microcomputers preliminary notice: this is not a final specification. some paramentic limits are subject to change. rev. 1.0 12.11.5 field determination display to display the block with vertical dot size of 1/2h, whether an even field or an odd field is determined through differences in a synchro- nizing signal waveform of interlacing system. the dot line 0 or 1 (re- fer to figure 12.11.19) corresponding to the field is displayed alter- nately. in the following, the field determination standard for the case where both the horizontal sync signal and the vertical sync signal are nega- tive-polarity inputs will be explained. a field determination is deter- mined by detecting the time from a falling edge of the horizontal sync signal until a falling edge of the v sync control signal (refer to figure fig. 12.11.18 i/o polarity control register 12.11.19) in the microcomputer and then comparing this time with the time of the previous field. when the time is longer than the com- paring time, it is regarded as even field. when the time is shorter, it is regarded as odd field. the field determination flag changes at a rising edge of v sync con- trol signal in the microcomputer. the contents of this field can be read out by the field determination flag (bit 7 of the i/o polarity control register at address 0217 16 ). a dot line is specified by bit 6 of the i/o polarity control register (refer to figure 12.11.19). however, the field determination flag read out from the cpu is fixed to 0 at even field or 1 at odd field, regardless of bit 6. b7 b6 b5 b4 b3 b2 b1 b0 i/o polarity control register (pc) [address 0217 16 ] b name functions after reset r w i/o polarity control registe r 0h sync input polarity switch bit (pc0) 0 : positive polarity input 1 : negative polarity input 0 1 0 : positive polarity input 1 : negative polarity input 0 2 r, g, b output polarity switch bit (pc2) 0 : positive polarity output 1 : negative polarity output 0 3 0 v sync input polarity switch bit (pc1) r w r w r w r note: refer to fig. 12.11.19. 0 : ? ?at even field ??at odd field 1 : ? ?at even field ??at odd field 4 out1 output polarity switch bit (pc4) 0 : positive polarity output 1 : negative polarity output 0 5 out2 output polarity switch bit (pc5) 0 : positive polarity output 1 : negative polarity output 0 6 display dot line selection bit (pc6) (see note) 0 7 field determination flag(pc7) 0 : even field 1 : odd field 1 r w r w r w r nothing is assigned. this bit is a write disable bit. when this bit is read out, the value is ?? 82 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37280MFCxxxsp, m37280mkCxxxsp m37280eksp mitsubishi microcomputers preliminary notice: this is not a final specification. some paramentic limits are subject to change. rev. 1.0 fig. 12.11.19 relation between field determination flag and display font both h sync signal and v sync signal are negative-polarity input field even odd field determination flag(note) display dot line selection bit display dot line 0 (t2 > t1) 1 (t3 < t2) 0 1 0 1 when using the field determination flag, be sure to set bit 0 of the pwm mode register 1 (address 020a 16 ) to 0. t2 t3 osd rom font configuration diagram dot line 0 dot line 1 odd dot line 0 dot line 1 (nC1) field (odd-numbered) t1 0.25 to 0.50[ m s] at f(x in ) =8 mhz cc mode cdosd mode 1 35 79111315 1 3 5 7 9 11 13 15 17 19 21 23 25 26 24 22 20 18 16 14 12 10 8 6 4 2 24 6810121416 1 3 5 7 9 11 13 15 17 19 20 18 16 14 12 10 8 6 4 2 13579111315 2 4 6 8 10 12 14 16 osds mode h sync v sync and v sync control signal in microcom- puter upper : v sync signal lower : v sync control signal in micro- computer (n) field (even-numbered) (n+1) field (odd-numbered) when the display dot line selection bit is 0, the font is displayed at even field, the font is displayed at odd field. bit 7 of the i/o polarity control register can be read as the field determination flag : 1 is read at odd field, 0 is read at even field. note : the field determination flag changes at a rising edge of the v sync control signal (negative-polarity input) in the microcomputer. 83 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37280MFCxxxsp, m37280mkCxxxsp m37280eksp mitsubishi microcomputers preliminary notice: this is not a final specification. some paramentic limits are subject to change. rev. 1.0 12.11.6 memory for osd there are 2 types of memory for osd : osd rom (addresses 10800 16 to 157ff 16 and 18000 16 to 1acff 16 ) used to specify char- acter dot data and osd ram (addresses 0700 16 to 07a7 16 and 0800 16 to 0fdf 16 ) used to specify the kinds of display characters, display colors, and sprite display. the following describes each type of memory. fig. 12.11.20 character font data storing address (1) osd rom (addresses 10800 16 to 157ff 16 , 18000 16 to 1acff 16 ) the dot pattern data for osd characters is stored in the charac- ter font area in the osd rom and the cd font data for osd characters is stored in the color dot font area in the osd rom. to specify the kinds of the character font and the cd font, it is necessary to write the character code into the osd ram. the modes are selected by bit 3 of the osd control register 3 for each screen. the character font data storing address is shown in figure 12.11.20. the cd font data storing address is shown in figure 2.11.21. the 510 kinds of character font and 62 kinds of cd font can be stored. character code aa 16 line number 02 16 09 16 03 16 04 16 05 16 06 16 07 16 08 16 11 16 0b 16 0c 16 0d 16 0e 16 0f 16 10 16 15 16 12 16 13 16 14 16 left area right area b 0 b7 b 0 b7 0a 16 osd rom address of character font data ad16 ad15 ad14 ad13 ad12 ad11 ad10 ad9 ad8 ad7 ad6 ad5 ad4 ad3 ad2 ad1 ad0 osd rom address bit 1 line number area bit line number / character code / area bit character code 0 for example : the font data of the hatching area of the character code aa 16 is 1 0010 1001 0101 0100 2 =12954 16 line number = ?2 16 ?to ?5 16 character code = ?0 16 ?to ?ff 16 ?(?ff 16 ?and ?00 16 ?can not be used. write ?f 16 ?to corresponding addresses.) area bit = 0: left area 1: right area 84 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37280MFCxxxsp, m37280mkCxxxsp m37280eksp mitsubishi microcomputers preliminary notice: this is not a final specification. some paramentic limits are subject to change. rev. 1.0 fig. 12.11.21 color dot font data storing address 1 1111111111111 11111111111111 100000000000011 00000000000011 00000000000011 00000000000011 00000000000011 00000000000011 00000000000011 00000000000011 00000000000011 00000000000011 00000000000011 00000000000011 00000000000011 00000000000011 00000000000011 00000000000011 00000000000011 00000000000011 00000000000011 00000000000011 00000000000011 11111111111111 00000000000011 11111111111111 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0000000 0 0 0 000000 0000000 0 0 0 000000 0000000 0 0 0 000000 1000000 1 1 1 000000 1000000 1 1 1 000000 1000000 1 1 1 000000 1000000 1 1 1 000000 1000000 1 1 1 000000 1000000 1 1 1 000000 1000000 1 1 1 000000 1000000 1 1 1 000000 1000000 1 1 1 000000 1000000 1 1 1 000000 1000000 1 1 1 000000 1000000 1 1 1 000000 1000000 1 1 1 000000 1000000 1 1 1 000000 1000000 1 1 1 000000 1000000 1 1 1 000000 1000000 1 1 1 000000 1000000 1 1 1 000000 0000000 0 0 0 000000 0000000 0 0 0 000000 0000000 0 0 0 000000 0000000 0 0 0 000000 0000000 0 0 0 000000 0 0 0 0 0 0 0 0 0 0 1 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 osd rom address of cd font data ad16 ad15 ad14 ad13 ad12 ad11 ad10 ad9 ad8 ad7 ad6 ad5 ad4 ad3 ad2 ad1 ad0 osd rom address bit line number/cd code/ area bit 11 line number cd code area bit plain selection bit plain 0 (color pallet selection bit 0) plain 1 (color pallet selection bit 1) plain 2 (color pallet selection bit 2) 4444444 4 4 4 444444 0000044 0 0 0 440000 0000044 0 0 0 440000 1000044 1 1 1 440000 1000044 1 1 1 440000 1000044 1 1 1 440000 1000044 1 1 1 440000 1000044 1 1 1 440000 1000044 1 1 1 440000 1000044 1 1 1 440000 3222044 3 3 3 440222 3222044 3 3 3 440222 3222044 3 3 3 440222 3222044 3 3 3 440222 1000044 1 1 1 440000 1000044 1 1 1 440000 1000044 1 1 1 440000 1000044 1 1 1 440000 1000044 1 1 1 440000 1000044 1 1 1 440000 1000044 1 1 1 440000 0000044 0 0 0 440000 0000044 0 0 0 440000 4444444 4 4 4 444444 4444444 4 4 4 444444 4444444 4 4 4 444444 cd code 3a 16 line number 02 16 09 16 03 16 04 16 05 16 06 16 07 16 08 16 0a 16 11 16 0b 16 0c 16 0d 16 0e 16 0f 16 10 16 15 16 12 16 13 16 14 16 left area right area b0 b7 b0 b7 19 16 16 16 17 16 18 16 00 16 01 16 c0 16 03 16 f8 16 0 line number cd code area bit example) = 00 16 to 19 16 = 00 16 to 3f 16 (1f 16 and 20 16 cannot be used. write ff 16 to the corresponding address.) = 0 : left area 1 : right area 03 16 is stored to address 1a775 16 (plain 2), c0 16 is stored to address 19775 16 (plain 1), and f8 16 is stored to address 18775 16 (plain 0) as the font data of the hatching area of the cd code 3a 16 . display example line number 02 16 09 16 03 16 04 16 05 16 06 16 07 16 08 16 0a 16 11 16 0b 16 0c 16 0d 16 0e 16 0f 16 10 16 15 16 12 16 13 16 14 16 left area right area b 0 b7 b 0 b7 19 16 16 16 17 16 18 16 00 16 01 16 when bit 3 of osd control register 3 is 0 (1) color pallet set by rc13 to rc16 of osd ram is selected color pallet 1 (9) is selected color pallet 2 (10) is selected color pallet 3 (11) is selected color pallet 4 (12) is selected 0 1 2 3 4 85 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37280MFCxxxsp, m37280mkCxxxsp m37280eksp mitsubishi microcomputers preliminary notice: this is not a final specification. some paramentic limits are subject to change. rev. 1.0 (2) osd ram (addresses 0700 16 to 07a7 16 , 0800 16 to 0fff 16 ) the osd ram for sprite consisting of 3 planes, is assigned to addresses 0700 16 to 07a7 16 . each plane corresponds to each color pallet selection bit and the color pallet of each dot is determined from among 8 kinds. the osd ram for character is allocated at addresses 0800 16 to 0fff 16 , and is divided into a display character code specification part, color code 1 specification part, and color code 2 specification part for each block. tables 2.11.4 and 2.11.5 show the contents of the osd ram. for example, to display 1 character position (the left edge) in block 1, write the character code in address 0800 16 , write color code 1 at 0820 16 , and write color code 2 at 0840 16 . the structure of the osd ram is shown in figure 12.11.23. note : for the layer 2 s osd mode block with dot size of 1.5t c 5 1/2h and 1.5t c 5 1h, the 3nth (n = 1 to 10) character is skipped as compared with ordinary block (blocks with dot size of 1t c 5 1/2h, or blocks on the layer 1). accordingly, maximum 22 characters are only displayed in 1 block. blocks with dot size of 1t c 5 1/2h and 1t c 5 1h, or blocks on the layer 1 however, note the following: ? in osd mode the character is not displayed, and only the left 1/3 part of the 22nd character back ground is displayed in the 22nds character area. when not displaying this background, set transparent for background. ? in cdosd mode the character is not displayed, and color pallet color specified by bit 3 to 6 of color code 1 can be output in the 22nds character area (left 1/3 part). the ram data for the 3nth character does not effect the display. any character data can be stored here (refer to figure 12.11.22). 86 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37280MFCxxxsp, m37280mkCxxxsp m37280eksp mitsubishi microcomputers preliminary notice: this is not a final specification. some paramentic limits are subject to change. rev. 1.0 table 12.11.3 contents of osd ram (sprite) line (from top) line 1 line 2 : line 19 line 20 plain 0 (color pallet selection bit 0) 0700 16 0701 16 0702 16 0703 16 : 0724 16 0725 16 0726 16 0727 16 plain 1 (color pallet selection bit 1) 0740 16 0741 16 0742 16 0743 16 : 0764 16 0765 16 0766 16 0767 16 dot (from left) dots 1 to 8 dots 9 to 16 dots 1 to 8 dots 9 to 16 : dots 1 to 8 dots 9 to 16 dots 1 to 8 dots 9 to 16 plain 2 (color pallet selection bit 2) 0780 16 0781 16 0782 16 0783 16 : 07a4 16 07a5 16 07a6 16 07a7 16 fig. 12.11.22 ram data for 3nth character 1 1 2 2 3 4 4 5 5 7 6 8 7 10 8 11 9 13 10 14 11 16 12 17 13 19 14 20 15 22 16 23 17 25 18 26 19 28 20 29 21 31 22 32 1 2 3 4 5 6 7 8 9 1011121314151617181920212223242526272829303132 1 2 3 4 5 6 7 8 9 1011121314151617181920212223242526272829303132 display sequence ram address order display sequence ram address order ? 1tc size block ? 1.5tc size block b7 b0 b7 781 line 1 783 line 2 7a5 line 19 7a7 line 20 780 782 7a4 7a6 b0 b7 b0 b7 741 line 1 743 line 2 765 line 19 767 line 20 dot number line number 1 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 2345678910111213141516 740 742 764 766 b0 b7 b0 b7 701 line 1 703 line 2 725 line 19 727 line 20 700 702 724 726 b0 plain 2 plain 1 plain 0 87 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37280MFCxxxsp, m37280mkCxxxsp m37280eksp mitsubishi microcomputers preliminary notice: this is not a final specification. some paramentic limits are subject to change. rev. 1.0 display position (from left) 1st character 2nd character : 31st character 32nd character 1st character 2nd character : 31st character 32nd character 1st character 2nd character : 31st character 32nd character 1st character 2nd character : 31st character 32nd character 1st character 2nd character : 31st character 32nd character 1st character 2nd character : 31st character 32nd character 1st character 2nd character : 31st character 32nd character 1st character 2nd character : 31st character 32nd character 1st character 2nd character : 31st character 32nd character 1st character 2nd character : 31st character 32nd character block block 1 block 2 block 3 block 4 block 5 block 6 block 7 block 8 block 9 block 10 color code 1 specification 0820 16 0821 16 : 083e 16 083f 16 08a0 16 08a1 16 : 08be 16 08bf 16 0920 16 0921 16 : 093e 16 093f 16 09a0 16 09a1 16 : 09be 16 09bf 16 0a20 16 0a21 16 : 0a3e 16 0a3f 16 0aa0 16 0aa1 16 : 0abe 16 0abf 16 0b20 16 0b21 16 : 0b3e 16 0b3f 16 0ba0 16 0ba1 16 : 0bbe 16 0bbf 16 0c20 16 0c21 16 : 0c3e 16 0c3f 16 0ca0 16 0ca1 16 : 0cbe 16 0cbf 16 color code 2 specification 0840 16 0841 16 : 085e 16 085f 16 08c0 16 08c1 16 : 08de 16 08df 16 0940 16 0941 16 : 095e 16 095f 16 09c0 16 09c1 16 : 09de 16 09df 16 0a40 16 0a41 16 : 0a5e 16 0a5f 16 0ac0 16 0ac1 16 : 0ade 16 0adf 16 0b40 16 0b41 16 : 0b5e 16 0b5f 16 0bc0 16 0bc1 16 : 0bde 16 0bdf 16 0c40 16 0c41 16 : 0c5e 16 0c5f 16 0cc0 16 0cc1 16 : 0cde 16 0cdf 16 character code specification 0800 16 0801 16 : 081e 16 081f 16 0880 16 0881 16 : 089e 16 089f 16 0900 16 0901 16 : 091e 16 091f 16 0980 16 0981 16 : 099e 16 099f 16 0a00 16 0a01 16 : 0a1e 16 0a1f 16 0a80 16 0a81 16 : 0a9e 16 0a9f 16 0b00 16 0b01 16 : 0b1e 16 0b1f 16 0b80 16 0b81 16 : 0b9e 16 0b9f 16 0c00 16 0c01 16 : 0c1e 16 0c1f 16 0c80 16 0c81 16 : 0c9e 16 0c9f 16 table 12.11.14 contents of osd ram (character) 88 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37280MFCxxxsp, m37280mkCxxxsp m37280eksp mitsubishi microcomputers preliminary notice: this is not a final specification. some paramentic limits are subject to change. rev. 1.0 block block 11 block 12 block 13 block 14 block 15 block 16 color code 1 specification 0d20 16 0d21 16 : 0d3e 16 0d3f 16 0da0 16 0da1 16 : 0dbe 16 0dbf 16 0e20 16 0e21 16 : 0e3e 16 0e3f 16 0ea0 16 0ea1 16 : 0ebe 16 0ebf 16 0f20 16 0f21 16 : 0f3e 16 0f3f 16 0fa0 16 0fa1 16 : 0fbe 16 0fbf 16 color code 2specification 0d40 16 0d41 16 : 0d5e 16 0d5f 16 0dc0 16 0dc1 16 : 0dde 16 0ddf 16 0e40 16 0e41 16 : 0e5e 16 0e5f 16 0ec0 16 0ec1 16 : 0ede 16 0edf 16 0f40 16 0f41 16 : 0f5e 16 0f5f 16 0fc0 16 0fc1 16 : 0fde 16 0fdf 16 character code specification 0d00 16 0d01 16 : 0d1e 16 0d1f 16 0d80 16 0d81 16 : 0d9e 16 0d9f 16 0e00 16 0e01 16 : 0e1e 16 0e1f 16 0e80 16 0e81 16 : 0e9e 16 0e9f 16 0f00 16 0f01 16 : 0f1e 16 0f1f 16 0f80 16 0f81 16 : 0f9e 16 0f9f 16 table 12.11.15 contents of osd ram (continued) display position (from left) 1st character 2nd character : 31st character 32nd character 1st character 2nd character : 31st character 32nd character 1st character 2nd character : 31st character 32nd character 1st character 2nd character : 31st character 32nd character 1st character 2nd character : 31st character 32nd character 1st character 2nd character : 31st character 32nd character 89 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37280MFCxxxsp, m37280mkCxxxsp m37280eksp mitsubishi microcomputers preliminary notice: this is not a final specification. some paramentic limits are subject to change. rev. 1.0 note: do not read from/write to the addresses in table 12.11.6. table 12.11.6 list of access disable addresses 0860 16 to 087f 16 08e0 10 to 08ff 16 0960 16 to 097f 16 09e0 16 to 09ff 16 0a60 16 to 0a7f 16 0ae0 16 to 0aff 16 0b60 16 to 0b7f 16 0be0 16 to 0bff 16 0c60 16 to 0c7f 16 0ce0 16 to 0cff 16 0d60 16 to 0d7f 16 0de0 16 to 0dff 16 0e60 16 to 0e7f 16 0ee0 16 to 0eff 16 0f60 16 to 0f7f 16 0fe0 16 to 0fff 16 90 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37280MFCxxxsp, m37280mkCxxxsp m37280eksp mitsubishi microcomputers preliminary notice: this is not a final specification. some paramentic limits are subject to change. rev. 1.0 fig. 12.11.23 structure of osd ram bit rf0 rf1 rf2 rf3 rf4 rf5 rf6 rf7 rc10 rc11 rc12 rc13 rc14 rc15 rc16 rc17 rc20 rc21 bit name function specify character code in osd rom (see note 3) bit name function specify character code in osd rom (see note 3) bit name function specify character code in osd rom (color dot) (see note 4) osd mode cdosd mode notes 1: read value of bits 2 to 7 of the color code 2 is undefined. 2: for not used bits, the write value is read. 3: do not use character code 0ff 16 , 100 16 . 4: do not use character code 1f 16 , 20 16 . 5: refer to figure 12.11.24. 6: only cdosd mode, a dot which selects color pallet 0 or 8 is colored to the color pallet set by rc13 to rc16 of osd ram in character units. cc mode character code (low- order 8 bits) character code (low-order 8 bits) character code (high-order 1 bits) color pallet selection bit 0 color pallet selection bit 1 color pallet selection bit 2 italic control flash control underline control out2 output control color pallet selection bit 0 color pallet selection bit 1 specify color pallet for character (see note 5) 0: italic off 1: italic on 0: flash off 1: flash on 0: underline off 1: underline on 0: out2 output off 1: out2 output on character code (high-order 1 bits) color pallet selection bit color pallet selection bit color pallet selection bit color pallet selection bit 3 color pallet selection bit 0 color pallet selection bit 1 specify color pallet for background (see note 5) specify color pallet for character (see note 5) specify color pallet for background (see note 5) 0: out2 output off 1: out2 output on cd code (6 bits) not used out2 output control not used 0: out2 output off 1: out2 output on blocks 1 to 16 rf6 rf5 rf4 rf3 rf2 rf1 rf0 rc17 rc16 rc15 rc14 rc13 rc12 rc11 rc10 rf7 b0 b7 b0 b7 color code 1 character code color code 2 b0 rc21 rc20 b1 character character background character background character character background color pallet selection bit 0 color pallet selection bit 1 color pallet selection bit 2 color pallet selection bit 3 specify a dot which selects color pallet 0 or 8 by osd rom (see note 6) dot color specify color pallet for background (see note 5) color pallet selection bit 2 color pallet selection bit 3 out2 output control 91 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37280MFCxxxsp, m37280mkCxxxsp m37280eksp mitsubishi microcomputers preliminary notice: this is not a final specification. some paramentic limits are subject to change. rev. 1.0 12.11.7 character color as shown in figure 2.11.24, there are 16 built-in color pallets. color pallet 0 is fixed at transparent, and color pallet 8 is fixed at black. the remaining 14 colors can be set to any of the 64 colors available. the setting procedure for character colors is as follows: ? cc mode ................................. 8 kinds color pallet selection range (color pallets 0 to 7 or 8 to 15) can be selected by bit 0 of the osd control register 3 (address 0219 16 ). color pallets are set by bits rc11 to rc13 of the osd ram from among the selection range. ? osd mode .............................. 15 kinds color pallets are set by bits rc11 to rc14 of the osd ram. ? cdosd mode ......................... 8 kinds color pallet selection range (color pallets 0 to 7 or 8 to 15) can be selected by bit 3 of the osd control register 3 (address 0219 16 ). color pallets are set in dot units according to the cd font data (the osd ram 92 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37280MFCxxxsp, m37280mkCxxxsp m37280eksp mitsubishi microcomputers preliminary notice: this is not a final specification. some paramentic limits are subject to change. rev. 1.0 fig. 12.11.24 color code selection color pallet 1 color pallet 2 color pallet 3 color pallet 4 color pallet 5 color pallet 6 color pallet 7 color pallet 8 (black) color pallet 9 color pallet 10 color pallet 11 color pallet 12 color pallet 13 color pallet 14 color pallet 15 color pallet 0 (transparent) osd mode (character, background) cc mode (character) sprite display cdosd mode (character) (see note 2) cc mode (background) any color pallet can be selected. select one color pallet in screen units. (see note 1) (see note 1) notes 1: color pallets are selected by osd control register 3 (address 0219 16 ). 2: only in cdosd mode, a dot which selects color pallet 0 or 8 is colored to of osd ram in character units. select either color pallet in screen units. 93 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37280MFCxxxsp, m37280mkCxxxsp m37280eksp mitsubishi microcomputers preliminary notice: this is not a final specification. some paramentic limits are subject to change. rev. 1.0 fig. 12.11.26 difference between color code 0 (transparent) and transparent setting of other color codes color pallet 1 (transparent) color pallet 0 (transparent) color pallet 2 (blue) color pallet 8 (black) layer 1 (cc mode) layer 2 (osd mode) when layer 1 has priority. blue transparent (video signal) black 26 dots 20 dots 26 dots 20 dots fig. 12.11.25 set of color pallet 0 or 8 in cdrom mode dot area specified to color pallet 1 dot area specified to color pallet 0 when setting black and blue to color pallets 1 and 2, respectively (only in cdosd mode). set values of osd ram (rc16 to rc13) 0000 transparent black blue 0001 0010 94 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37280MFCxxxsp, m37280mkCxxxsp m37280eksp mitsubishi microcomputers preliminary notice: this is not a final specification. some paramentic limits are subject to change. rev. 1.0 fig. 12.11.27 osd control register 3 fig. 12.11.28 color pallet register i (i = 1 to 7, 9 to 15) b7 b6 b5 b4 b3 b2 b1 b0 color pallet register i (cri) (i 1 to 7, 9 to15) [addresses 0241 16 to 0247 16, 0249 16 to 024f 16 ] color pallet register i 0, 1 r signal output control bits (cri0, cri1) indeterminate rw 2, 3 indeterminate rw 4, 5 indeterminate rw indeterminate w 6 7 indeterminate r r g signal output control bits (cri2, cri3) 0 0: no output (see note) 0 1: 1/3 v cc 1 0: 2/3 v cc 1 1: v cc b0 b1 note: when selecting digital output, the output is v cc at all values other than ?0. b signal output control bits (cri4, cri5) out1 signal output control bit (cri6) 0: no output 1: output 0 0: no output (see note) 0 1: 1/3 v cc 1 0: 2/3 v cc 1 1: v cc b3 b2 0 0: no output (see note) 0 1: 1/3 v cc 1 0: 2/3 v cc 1 1: v cc b5 b4 b name functions after reset r w nothing is assigned. this bit is a write disable bit. when this bit is read out, the value is indeterminate. b7 b6 b5 b4 b3 b2 b1 b0 osd control register 3 (oc3) [address 0219 16 ] b name functions after reset r w osd control register 3 0 cc mode character color selection bit (oc30) 0rw 1, 2 0: color code 0 to 7 1: color code 8 to 15 0rw 30rw 0 w 4 r cc mode character background color selection bits (oc31, oc32) (see note) 0 0: color code 0 to 3 0 1: color code 4 to 7 1 0: color code 8 to 11 1 1: color code 12 to 15 b1 b1 note: color pallet 8 is always selected for solid space (when out1 output is selected), regardress of value of this register. cdosd mode character color selection bit (oc33) 0: color code 0 to 7 1: color code 8 to 15 sprite color selection bit (oc34) 0: color code 0 to 7 1: color code 8 to 15 0w 5 r osd mode window control bit (oc35) 0: window off 1: window on 0 w 6 r cc mode window control bit (oc36) 0: window off 1: window on 0 w 7 r cdosd mode window control bit (oc37) 0: window off 1: window on 95 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37280MFCxxxsp, m37280mkCxxxsp m37280eksp mitsubishi microcomputers preliminary notice: this is not a final specification. some paramentic limits are subject to change. rev. 1.0 12.11.9 out1, out2 signals the out1, out2 signals are used to control the luminance of the video signal. the output waveform of the out1, out2 signals is controlled by bit 6 of the color code register i (refer to figure 86), bits fig. 12.11.29 setting value for controlling out1, out2 and corresponding output waveform 2 and 7 of the block control register i (refer to figure 63) and rc17 of osd ram. the setting values for controlling out1, out2 and the corresponding output waveform is shown in figure 12.11.29 h notes 1: this control is only valid in the osd mode. it is invalid in cc/cdosd mode . 2: in the cdosd mode, coloring is performed for each dot. accordingly, out1 outputs to dots which bit 6 of the color pallet register i is set to ?. 3: out2 cannot be output in sprite osd. 4: 5 is an arbitrary value. l l h l h l h l h l h l h l h l h l h out1 control bit (see note) (b6 of color pallet register i) out2 output control (rc 17 of osd ram) back g round character 0 1 0 1 0 1 0 1 0 1 5 5 0 1 0 1 0 1 5 5 5 5 ~ out2 s i g n a l out1 s i g n a l conditions output waveform border output control bit (see note) (bit 2 of block control register i) 96 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37280MFCxxxsp, m37280mkCxxxsp m37280eksp mitsubishi microcomputers preliminary notice: this is not a final specification. some paramentic limits are subject to change. rev. 1.0 12.11.10 attribute the attributes (flash, underline, italic) are controlled to the character font. the attributes to be controlled are different depending on each mode. cc mode .................... flash, underline, italic for each character osd mode ................. border (all bordered, shadow bordered can be selected) for each block (1) under line the underline is output at the 23rd and 24th lines in vertical di- rection only in the cc mode. the underline is controlled by rc16 of osd ram. the color of underline is the same color as that of the character font. (2) flash the parts of the character font, the underline, and the character background are flashed only in the cc mode. the flash for each character is controlled by rc15 of osd ram. the on/off for flash is controlled by bit 3 of the osd control register 1 (refer to figure 12.11.3). when this bit is 0, only character font and un- derline flash. when 1, for a character without solid space out- put, r, g, b and out1 (all display area) flash, for a character with solid space output, only r, g and b (all display area) flash. the flash cycle bases on the v sync count. 97 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37280MFCxxxsp, m37280mkCxxxsp m37280eksp mitsubishi microcomputers preliminary notice: this is not a final specification. some paramentic limits are subject to change. rev. 1.0 fig. 12.11.30 example of attribute display (in cc mode) 1 1 b i t 6 b i t 4 ( d ) u n d e r l i n e a n d i t a l i c c o l o r c o d e 1 0 1 b i t 6 b i t 4 ( c ) i t a l i c c o l o r c o d e 1 0 0 c o l o r c o d e 1 b i t 6b i t 4 ( a ) o r d i n a r y 10 c o l o r c o d e 1 b i t 6b i t 4 ( b ) u n d e r l i n e ( e ) u n d e r l i n e a n d i t a l i c a n d f l a s h 1 b i t 4 ( r c 1 6 ) b i t 5 ( r c 1 5 ) c o l o r c o d e 1 1 b i t 6 ( r c 1 6 ) f l a s h f l a s h f l a s h o f f o n o f f o n 98 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37280MFCxxxsp, m37280mkCxxxsp m37280eksp mitsubishi microcomputers preliminary notice: this is not a final specification. some paramentic limits are subject to change. rev. 1.0 fig. 12.11.31 example of italic display 10 0 1 1 0 1 (refer to 12.11.10 note 6) (refer to 12.11.10 note 6) bit 4 of color code 1 notes 1 : the dotted line is the boundary of character color. 2: when bit 4 of osd control register 1 is 0. 32nd chracter 26th chracter 99 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37280MFCxxxsp, m37280mkCxxxsp m37280eksp mitsubishi microcomputers preliminary notice: this is not a final specification. some paramentic limits are subject to change. rev. 1.0 (4) border the border is output only in the osd mode. the all bordered (bordering around of character font) and the shadow bordered (bordering right and bottom sides of character font) are selected (refer to figure 12.11.31) by bit 2 of the osd control register 1 (refer to figure 12.11.3). the on/off switch for borders can be controlled in block units by bit 2 of the block control register i (refer to figure 12.11.4). the out1 signal is used for border output. the border color is fixed at color code 8 (block). the border color for each screen is specified by the border color register i. fig. 12.11.32 example of border display fig. 12.11.33 horizontal and vertical size of border the horizontal size (x) of border is 1t c (osd clock cycle divided in the pre-divide circuit) regardless of the character font dot size. however, only when the pre-divide ratio = 2 and character size = 1.5t c , the horizontal size is 1.5t c . the vertical size (y) different depending on the screen scan mode and the vertical dot size of character font. notes 1: the border dot area is the shaded area as shown in figure 12.11.34. 2: when the border dot overlaps on the next character font, the charac- ter font has priority (refer to figure 12.11.35 a). when the border dot overlaps on the next character back ground, the border has priority (refer to figure 12.11.35 b). 3: the border in vertical out of character area is not displayed (refer to figure 12.11.35). all bordered shadow bordered y x 1/2h 1h, 2h, 3h 1/2h, 1h, 2h, 3h 1/2h 1h 1h vertical dot size of character font border dot size scan mode horizontal size (x) vertical size (y) normal scan mode bi-scan mode 1t c (osd clock cycle divided in pre-divide circuit) 1.5t c when selecting 1.5t c for character size. 100 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37280MFCxxxsp, m37280mkCxxxsp m37280eksp mitsubishi microcomputers preliminary notice: this is not a final specification. some paramentic limits are subject to change. rev. 1.0 fig. 12.11.34 border area fig. 12.11.35 border priority 16 dot s character font area 20 dots osd mode 1 dot width of border 1 dot width of border character boundary b character boundary a character boundary b 101 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37280MFCxxxsp, m37280mkCxxxsp m37280eksp mitsubishi microcomputers preliminary notice: this is not a final specification. some paramentic limits are subject to change. rev. 1.0 12.11.11 multiline display this microcomputer can ordinarily display 16 lines on the crt screen by displaying 16 blocks at different vertical positions. in addition, it can display up to 16 lines by using osd interrupts. an osd interrupt request occurs at the point at which display of each block has been completed. in other words, when a scanning line reaches the point of the display position (specified by the vertical position registers) of a certain block, the character display of that block starts, and an interrupt occurs at the point at which the scan- ning line exceeds the block. the mode in which an osd interrupt occurs is different depending on the setting of the osd control regis- ter 2 (refer to figure 12.11.7). ? when bit 7 of the osd control register 2 is 0 an osd interrupt request occurs at the completion of layer 1 block display. ? when bit 7 of the osd control register 2 is 1 an osd interrupt request occurs at the completion of layer 2 block display. fig. 12.11.36 note on occurence of osd interrupt notes 1: an osd interrupt does not occur at the end of display when the block is not displayed. in other words, if a block is set to off display by the display control bit of the block control register i (addresses 00d0 16 to 00df 16 ), an osd interrupt request does not occur (refer to figure 12.11.36 (a)). 2: when another block display appeares while one block is displayed, an osd interrupt request occurs only once at the end of the another block display (refer to figure 12.11.36 (b)). 3: on the screen setting window, an osd interrupt occurs even at the end of the cc mode block (off display) out of window (refer to figure 12.11.36 (c)). (b) (c) block 1 (on display) block 2 (on display) block 3 (on display) block 4 (on display) block 1 (on display) block 2 (on display) block 3 (off display) block 4 (off display) ?sd interrupt request ?sd interrupt request ?sd interrupt request ?sd interrupt request ?sd interrupt request ?sd interrupt request no ?sd interrupt request block 1 block 2 ?sd interrupt request ?sd interrupt request ?sd interrupt request ?sd interrupt request block 1 block 2 block 3 on display (osd interrupt request occurs at the end of block display) off display (osd interrupt request does not occur at the end of block display) window no ?sd interrupt request no ?sd interrupt request (a) 102 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37280MFCxxxsp, m37280mkCxxxsp m37280eksp mitsubishi microcomputers preliminary notice: this is not a final specification. some paramentic limits are subject to change. rev. 1.0 0 off 1 ?character display area 0 off 1 ?character display area 0 off 1 ?solid space ?character display area 0 off 1 ?character display area 005 16 009 16 009 16 009 16 006 16 006 16 006 16 ?? ?? when setting the character code ?05 16 ?as the character a, ?06 16 ?as the character b. (osd ram) (display screen) 2nd character no blank output 32nd character 1st character bit 4 of osd control register 1 bit 3 of osd control register 2 rc17 of osd ram out1 output signal out2 output signal 12.11.12 automatic solid space function this function generates automatically the solid space (out1 or out2 blank output) of the character area in the cc mode. the solid space is output in the following area : ? any character area except character code 009 16 ? character area on the left and right sides of the above character this function is turned on and off by bit 4 of the osd control register 1 (refer to figure 12.11.3). and the out1 output or out2 output can be selected by bit 3 of osd control register 2. table 12.11.7 setting for automatic solid space 0 1 fig. 12.11.37 display screen example of automatic solid space note: when selecting out1 as solid space output, character background color with solid space output is fixed to color pallet 8 (black) regardless of setting. 0 ?character font area ?character background area 1 ?character font area ?character background area 0 ?solid space area 1 ? character font area ?character background area 103 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37280MFCxxxsp, m37280mkCxxxsp m37280eksp mitsubishi microcomputers preliminary notice: this is not a final specification. some paramentic limits are subject to change. rev. 1.0 12.11.13 scan mode this microcomputer has the bi-scan mode for corresponding to h sync of double speed frequency. in the bi-scan mode, the vertical start display position and the vertical size is two times as compared with the normal scan mode. the scan mode is selected by bit 1 of the osd control register 1 (refer to figure 12.11.3). scan mode parameter bit 1 of osd control register 1 vertical display start position vertical dot size table 12.11.8 setting for scan mode normal scan 0 value of vertical position register 5 1h 1tc 5 1/2h 1tc 5 1h 2tc 5 2h 3tc 5 3h bi-scan 1 value of vertical position register 5 2h 1tc 5 1h 1tc 5 2h 2tc 5 4h 3tc 5 6h 104 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37280MFCxxxsp, m37280mkCxxxsp m37280eksp mitsubishi microcomputers preliminary notice: this is not a final specification. some paramentic limits are subject to change. rev. 1.0 12.11.14 window function the window function can be set windows on-screen, and output osd within only the area where the window is set. the on/off for vertical window function is performed by bit 5 of osd control register 1 and is used to select vertical window function or vertical blank function by bit 6 of osd control register 2. accord- ingly, the vertical window function cannot be used simultaneously with the vertical blank function. the display mode to validate the win- dow function is selected by bits 5 to 7 of osd control register 3. the top boundary is set by top border control registers 1 and 2 (tb1, tb2) and the bottom boundary is set by bottom border control regis- ters 1 and 2 (bb1, bb2). the on/off for horizontal window function is performed by bit 4 of osd control register 2 and is used interchangeably for the horizontal blank function with bit 5 of osd control register 2. accordingly, the horizontal blank function cannot be used simultaneously with the horizontal window function. the display mode to validate the window function is selected by bits 5 to 7 of osd control register 3. the left boundary is set by left border control registers 1 and 2 (lb1 and lb2), and the right boundary is set by right border control registers 1 and 2 (rb1 and rb2). fig. 12.11.38 example of window function (when cc mode is valid) cdosd mode fgh ij klmno pqrst osd mode abcde uvwxy screen cc mode window bottom boundary of window top boundary of window right boundary of window left boundary of window window notes 1: when using vertical window, do not set 00 16 or 01 16 to tb1 at tb2 = 00 16 . 2: when using horizontal window, do not set lb1 = lb2 = 00 16 . 3: horizontal blank and horizontal window, as well as vertical blank and vertical window can not be used simultaneously. 4: when using horizontal window, set as follows: (lb1 + lb2 5 16 2 ) < (rb1 + rb2 5 16 2 ). 5: when using vertical window, set as follows: (tb1 + tb2 5 16 2 ) < (bb1 + bb2 5 16 2 ). 6: when the window function is on by osd control registers 1 and 2, the window function of out2 is valid in all display mode regardless of setting value of osd control register 3 (bits 5 to 7). for example, even when make the window function valid in only cc mode, the function of out2 is valid in osd and cdosd modes. 105 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37280MFCxxxsp, m37280mkCxxxsp m37280eksp mitsubishi microcomputers preliminary notice: this is not a final specification. some paramentic limits are subject to change. rev. 1.0 fig. 12.11.40 top border control register 2 fig. 12.11.39 top border control register 1 b7 b6 b5 b4 b3 b2 b1 b0 top border control register 1 (tb1) [address 021c 16 ] b name functions after reset rw top border control register 1 0 to 7 control bits of top border (tb10 to tb17) top border position (low-order 8 bits) t h 5 (setting value of low-order 2 bits of tb2 5 16 2 + setting value of high-order 4 bits of tb1 5 16 1 + setting value of low-order 4 bits of tb1 5 16 0 ) indeterminate rw notes 1: do not set ?0 16 ?or ?1 16 ?to the tb1 at tb2 = ?0 16 . 2: t h is cycle of h sync . 3: tb2 is top border control register 2. b7 b6 b5 b4 b3 b2 b1 b0 top border control register 2 (tb2) [address 021e 16 ] b name functions after reset r w top border control register 2 0, 1 control bits of top border (tb20 ,tb21) top border position (high-order 2 bits) t h 5 (setting value of low-order 2 bits of tb2 5 16 2 + setting value of high-order 4 bits of tb1 5 16 1 + setting value of low-order 4 bits of tb1 5 16 0 ) indeterminate rw notes 1: do not set ?0 16 ?or ?1 16 ?to the tb1 at tb2 = ?0 16 . 2: t h is cycle of h sync . 3: tb1 is top border control register 1. nothing is assigned. these bits are write disable bits. when these bits are read out, the values are indeterminate. 2 to 7 indeterminate r 106 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37280MFCxxxsp, m37280mkCxxxsp m37280eksp mitsubishi microcomputers preliminary notice: this is not a final specification. some paramentic limits are subject to change. rev. 1.0 fig. 12.11.42 bottom border control register 2 fig. 12.11.41 bottom border control register 1 b7 b6 b5 b4 b3 b2 b1 b0 bottom border control register 1 (bb1) [address 021d 16 ] b name functions after reset r w bottom border control register 1 0 to 7 control bits of bottom border (bb10 to bb17) bottom border position (low-order 8 bits) t h 5 (setting value of low-order 2 bits of bb2 5 16 2 + setting value of high-order 4 bits of bb1 5 16 1 + setting value of low-order 4 bits of bb1 5 16 0 ) indeterminate rw notes 1: set values fit for the following condition: (tb1 + tb2 5 16 2 ) < (bb1 + bb2 5 16 2 ). 2: t h is cycle of h sync . 3: bb2 is bottom border control reigster 2. b7 b6 b5 b4 b3 b2 b1 b0 bottom border control register 2 (bb2) [address 021f 16 ] b name functions after reset r w bottom border control register 2 0, 1 control bits of bottom border (bb20, bb21) bottom border position (high-order 2 bits) t h 5 (setting value of low-order 2 bits of bb2 5 16 2 + setting value of high-order 4 bits of bb1 5 16 1 + setting value of low-order 4 bits of bb1 5 16 0 ) indeterminate rw nothing is assigned. these bits are write disable bits. when these bits are read out, the values are indeterminate. indeterminate r 2 to 7 notes 1: set values fit for the following condition: (tb1 + tb2 5 16 2 ) < (bb1 + bb2 5 16 2 ). 2: t h is cycle of h sync . 3: bb1 is bottom border control reigster 1. 107 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37280MFCxxxsp, m37280mkCxxxsp m37280eksp mitsubishi microcomputers preliminary notice: this is not a final specification. some paramentic limits are subject to change. rev. 1.0 fig. 12.11.43 left bordercontrol register 1 fig. 12.11.44 left border control register 2 b7 b6 b5 b4 b3 b2 b1 b0 left border control register 1 (lb1) [address 0250 16 ] b name functions after reset rw left border control register 1 0 control bits of left border (lb10 to lb17) 1 rw 1 to 7 0 left border position (low-order 8 bits) t osc 5 (setting value of low-order 3 bits of lb2 5 16 2 + setting value of high-order 4 bits of lb1 5 16 1 + setting value of low-order 4 bits of lb1 5 16 0 ) notes 1: do not set lb1 = lb2 = 00 16 . 2: set values fit for the following condition: (lb1 + lb2 5 16 2 ) < (rb1 + rb2 5 16 2 ). 3: t osc is osd oscillation period. 4: lb2 is left border control register 2. b7 b6 b5 b4 b3 b2 b1 b0 left border control register 2 (lb2) [address 0251 16 ] b name functions after reset rw left border control register 2 control bits of left border (lb20 to lb22) 0 rw 0 to 2 0 left border position (high-order 3 bits) t osc 5 (setting value of low-order 3 bits of lb2 5 16 2 + setting value of high-order 4 bits of lb1 5 16 1 + setting value of low-order 4 bits of lb1 5 16 0 ) nothing is assigned. these bits are write disable bits. when these bits are read out, the values are indeterminate. 3 to 7 rw notes 1: do not set lb1 = lb2 = ?0 16 . 2: set values fit for the following condition: (lb1 + lb2 5 16 2 ) < (rb1 + rb2 5 16 2 ). 3: t osc is osd oscillation period. 4: lb1 is left border control register 1. 108 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37280MFCxxxsp, m37280mkCxxxsp m37280eksp mitsubishi microcomputers preliminary notice: this is not a final specification. some paramentic limits are subject to change. rev. 1.0 fig. 12.11.45 right border control register 1 fig. 12.11.46 right border control register 2 b7 b6 b5 b4 b3 b2 b1 b0 right border control register 1 (rb1) [address 0252 16 ] b name functions after reset rw right border control register 1 control bits of right border (rb10 to rb17) 1 rw 0 to 7 right border position (low-order 8 bits) t osc 5 (setting value of low-order 3 bits of rb2 5 16 2 + setting value of high-order 4 bits of rb1 5 16 1 + setting value of low-order 4 bits of rb1 5 16 0 ) notes 1: set values fit for the following condition: (lb1 + lb2 5 16 2 ) < (rb1 + rb2 5 16 2 ). 2: t osc is osd oscillation period. 3: rb2 is right border control register 2. b7 b6 b5 b4 b3 b2 b1 b0 right border control register 2 (rb2) [address 0253 16 ] b name functions after reset rw right border control register 2 control bits of right border (rb20 to rb22) 1 rw 0 to 2 0 right border position (high-order 3 bits) t osc 5 (setting value of low-order 3 bits of rb2 5 16 2 + setting value of high-order 4 bits of rb1 5 16 1 + setting value of low-order 4 bits of rb1 5 16 0 ) nothing is assigned. these bits are write disable bits. when these bits are read out, the values are ?? 3 to 7 rw notes 1: set values fit for the following condition: (lb1 + lb2 5 16 2 ) < (rb1 + rb2 5 16 2 ). 2: t osc is osd oscillation period. 3: rb1 is right border control register 1. 109 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37280MFCxxxsp, m37280mkCxxxsp m37280eksp mitsubishi microcomputers preliminary notice: this is not a final specification. some paramentic limits are subject to change. rev. 1.0 12.11.15 blank function the blank function can output blank (out1) area on all sides (verti- cal and horizontal) of the screen. the on/off for vertical blank function is performed by bit 5 of the osd control register 1 and is used to select vertical window function or vertical blank function by bit 6 of the osd control register 2. ac- cordingly, the vertical blank function cannot be used simultaneously with the vertical window function. the top border is set by the top border control registers 1 and 2 (tb1, tb2), and the bottom border is set by the bottom border control registers 1 and 2 (bb1, bb2), in 1h units. the on/off for horizontal blank function is performed by bit 4 of the osd control register 2 and is used interchangeably for the horizontal window function with bit 5 of the osd control register 2 . accordingly, the horizontal blank function cannot be used simultaneously with the horizontal window function. the left border is set by the left border control registers 1 and 2 (lb1, lb2) and the right border is set by the right border control registers 1 and 2 (rb1, rb2), in 1t osc units. the osd output (except raster) in area with blank output is not de- leted. these blank signals are not output in the horizontal/vertical blanking interval. fig. 12.11.47 blank output example (when osd output is b + out1) notes 1: when using vertical blank, do not set 00 16 and 01 16 to tb1 at tb2 = 00 16 . 2: when using horizontal blank, do not set lb1 = lb2 = 00 16 . 3: horizontal blank and horizontal window, as well as vertical blank and vertical window can not be used simultaneously. 4: when using horizontal blank, set as follows: (lb1 + lb2 5 16 2 ) < (rb1 + rb2 5 16 2 ). 5: when using vertical blank, set as follows: (tb1 + tb2 5 16 2 ) < (bb1 + bb2 5 16 2 ). 6: when all-blocks display is off (bit 0 of osd control register 1 = 0), do not use vertical blank. output example of horizontal blank output example of top and vertical blank out1 out1 4 a' a b 4 a a ' b blank output signal in microcomputer blank output signal in microcomputer h l h l h l h l h l h l 110 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37280MFCxxxsp, m37280mkCxxxsp m37280eksp mitsubishi microcomputers preliminary notice: this is not a final specification. some paramentic limits are subject to change. rev. 1.0 12.11.16 sprite osd function this is especially suitable for cursor and other displays as its func- tion allows for display in any position, regardless of the validity of other osds or display positions. the sprite font is a ram font con- sisting of 16 horizontal dots 5 20 vertical dots, three planes, and three bits of data per dot. each plane has corresponding color pallet selec- tion bits, and 8 kinds of color pallets can be selected by the plane bit combination (three bits) for each dot. in addition, the selection range (color pallets 0 to 7 and 8 to 15) can be set, per screen, by bit 4 of the osd control register 3. the color pallet is set in dot units according to the selection range and the osd ram (sprite) contents from among the selection range. it is possible to arbitrarily add font data by software for the ram font in the sprite font. the sprite osd control register can control sprite display, dot size, interrupt position, and interrupt generation factors for the sprite osd. the display position can also be set independently of the block display by the sprite horizontal position registers and the sprite horizontal vertical position registers. at this time, the horizontal posi- tion is set in 2048 steps in 1t osc units, and the vertical position is set in 1024 steps in 1t h units. when sprite display overlaps with other osds, sprite display is always given priority. however, the sprite display overlaps with the osd which includes out2 output, out2 in the osd is output without masking. notes 1: the sprite osd function cnannot output out2. 2: when using sprite osd, do not set hs1 < 30 16 . at hs2 = 00 16 . 3: when using sprite osd, do not set vs1 = vs2 = 00 16 . fig. 12.11.48 sprite osd display example video adjustment tint C ? ? l ? ? + contrast C ? ? | ? ? + color tone C ? ? | ? ? + picture C ? ? | ? ? + brightness C ? ? | ? ? + example of cusor display example of sprite font line 1 line 2 line 19 line 20 ...... dot 1 ...... dot 2 dot 15 dot 16 111 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37280MFCxxxsp, m37280mkCxxxsp m37280eksp mitsubishi microcomputers preliminary notice: this is not a final specification. some paramentic limits are subject to change. rev. 1.0 fig. 12.11.49 sprite osd control register b7 b6 b5 b4 b3 b2 b1 b0 sprite osd control register (sc) [address 0258 16 ] b name functions after reset rw sprite osd control register 0 sprite osd control bit ( sc0 ) 0rw b3 b2 0 0: 1tc 5 1/2h 0 1: 1tc 5 1h 1 0: 2tc 5 1h 1 1: 2tc 5 2h 2, 3 dot size selection bits ( sc2, sc3 ) 0rw 4 interrupt occurrence position selection bit ( sc4 ) 0rw 5 0r 1 pre-divide ratio selection bit ( sc1 ) 0: pre-divide ratio 1 1: pre-divide ratio 2 0rw 0: stopped 1: operating 0: after display of horizontal 20 dots 1: after display of horizontal 10 dots or 20 dots notes 1: tc : pre-devided clock period for osd 2: h : h sync x in /4096 ? sprite interrupt source switch bit ( sc5 ) w 6, 7 0r nothing is assigned. this bit is a write disable bit. when this bit is read out, the value is 0. 0: x in /4096 interrupt 1: sprite osd interrupt 112 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37280MFCxxxsp, m37280mkCxxxsp m37280eksp mitsubishi microcomputers preliminary notice: this is not a final specification. some paramentic limits are subject to change. rev. 1.0 fig. 12.11.50 sprite horizontal position register 1 fig. 12.11.51 sprite horizontal position register 2 b7 b6 b5 b4 b3 b2 b1 b0 sprite horizontal position register 1 (hs1) [address 0256 16 ] b name functions after reset r w sprite horizontal position register 1 0 to 7 horizontal display start position control bits of sprite osd (hs10 tohs17) horizontal display start position (low-order 8 bits) t osc 5 (setting value of low-order 2 bits of hs2 5 16 2 + setting value of high-order 4 bits of hs1 5 16 1 + setting value of low-order 4 bits of hs1 5 16 0 ) indeterminate rw notes 1: do not set hs1 < ?0 16 ?at hs2 = ?0 16 . 2: t osc is osd oscillation period. 3: hs2 is sprite horizontal position register 2. b7 b6 b5 b4 b3 b2 b1 b0 sprite horizontal position register 2 (hs2) [address 0257 16 ] b name functions after reset rw sprite horizontal position register 2 0 to 2 horizontal display start position control bits of sprite osd (hs20 to hs22) horizontal display start position (high-order 3 bits) t osc 5 (setting value of low-order 2 bits of hs2 5 16 2 + setting value of high-order 4 bits of hs1 5 16 1 + setting value of low-order 4 bits of hs1 5 16 0 ) indeterminate rw notes 1: do not set hs1< ?0 16 ?at hs2 = ?0 16 . 2: t osc is oscillation period. 3: hs1 is sprite horizontal position register 1. nothing is assigned. these bits are write disable bits. when these bits are read out, the values are ?. 0r 3 to 7 113 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37280MFCxxxsp, m37280mkCxxxsp m37280eksp mitsubishi microcomputers preliminary notice: this is not a final specification. some paramentic limits are subject to change. rev. 1.0 fig. 12.11.52 prite vertical position register 1 fig. 12.11.53 sprite vertical position register 2 b7 b6 b5 b4 b3 b2 b1 b0 sprite vertical position register 1 (vs1) [address 0254 16 ] b name functions after reset rw sprite vertical position register 1 0 vertical display start position control bits of sprite osd (vs10 to vs17) 1 rw 1 to 7 0 vertical display start position (low-order 8 bits) t h 5 (setting value of low-order 2 bits of vs2 5 16 2 + setting value of high-order 4 bits of vs1 5 16 1 + setting value of low-order 4 bits of vs1 5 16 0 ) notes 1: do not set ?0 16 ?to the vs1 at vs2 = ?0 16 . 2: t h is cycle of h sync . 3: vs2 is sprite vertical position register 2. b7 b6 b5 b4 b3 b2 b1 b0 sprite vertical position register 2 (vs2) [address 0255 16 ] b name functions after reset rw sprite vertical position register 2 vertical start position control bits of sprite osd (vs20, vs21) 0 rw 0, 1 0 vertical display start position (high-order 2 bits) t h 5 (setting value of low-order 2 bits of vs2 5 16 2 + setting value of high-order 4 bits of vs1 5 16 1 + setting value of low-order 4 bits of vs1 5 16 0 ) nothing is assigned. these bits are write disable bits. when these bits are read out, the values are ?? 2 to 7 r notes 1: do not set ?0 16 ?to the vs1 at vs2 = ?0 16 . 2: t h is cycle of h sync . 3: vs1 is sprite vertical position register 1. 114 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37280MFCxxxsp, m37280mkCxxxsp m37280eksp mitsubishi microcomputers preliminary notice: this is not a final specification. some paramentic limits are subject to change. rev. 1.0 12.11.7 osd output pin control the osd output pins r(r1), g(g1), b(b1) and out1 can also func- tion as ports p5 2 to p5 5 . set the corresponding bit of the osd port control register (address 00cb 16 ) to 0 to specify these pins as osd output pins, or set it to 1 to specify it as a general-purpose port p5 pin. pins r0, g0 and b0 can also function as ports p1 7 , p1 5 and p1 6 , respectively. set bit 1 of the osd port control register to 0 to specify these pins as a general-purpose output port p1 pin, or set it to 1 to specify it as osd output pins. when 0, 4-adjustment-level analog output is output from pins r, g and b. when 1, the value which is converted from the analog to the 2-bit digital is output as follows: the high-order bit is output pins r1, g1 and b1 and the low-order bit is output from pins r0, g0 and b0. the out2 can also function as port p1 0 . set bit 0 of the port p1 direction register (address 00c3 16 ) to 1 (output mode). after that, set bit 6 of the osd port control register to 1 to specify the pin as osd output pin, or set it to 0 to specify as port p1 0 pin. the input polarity of the h sync , v sync and output polarity of signals r, g, b, out1 and out2 can be specified with the i/o polarity con- trol register (address 0217 16 ). set a bit to 0 to specify positive polarity; set it to 1 to specify negative polarity (refer to figure 12.11.18). the osd port control register is shown in figure 12.11.54. fig. 12.11.54 osd port control register b7 b6 b5 b4 b3 b2 b1 b0 osd port control register (pf) [address 00cb 16 ] b name functions after reset r w osd port control register 00 r w fix this bit to ? 00 2 0 : r signal output 1 : port p5 2 output 0 r w 3 port p5 3 output signal selection bit (g) 0 : g signal output 1 : port p5 3 output 0 r w 4 port p5 4 output signal selection bit (b) 0 : b signal output 1 : port p5 4 output 0 r w 5 port p5 5 output signal selection bit (out1) 0 : out1 signal output 1 : port p5 5 output 0 r w 6 port p1 0 output signal selection bit (out2) 0 : port p1 0 signal output 1 : out2 output 0 r w port p5 2 output signal selection bit (r) 70 r w fix this bit to ? 1 0 : 4-adjustment-level analog is output from pins r, g, b. 1 : value which is converted from 4-adjustment-level analog to 2-bit digital is output as below: high-order: from r1, g1, b1 low-order: from r0, g0, b0 0 r w r, g, b output method selection bit (rgb2bit) note: when using ports p5 2 to p5 4 as general-purpose pins, set bit 2 of osd control register 2 (address 0215 16 ) to 0. 115 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37280MFCxxxsp, m37280mkCxxxsp m37280eksp mitsubishi microcomputers preliminary notice: this is not a final specification. some paramentic limits are subject to change. rev. 1.0 12.11.18 raster coloring function an entire screen (raster) can be colored by setting the bits 6 to 0 of the raster color register. since each of the r, g, b, out1, and out2 pins can be switched to raster coloring output, 64 raster colors can be obtained. when the character color/the character background color overlaps with the raster color, the color (r, g, b, out1, out2),specified for the character color/the character background color, takes priority of the raster color. this ensures that the character color/the character background color is not mixed with the raster color. the structure of the raster color register is shown in figure 12.11.55, the example of raster coloring is shown in figure 12.11.56. fig. 12.11.54 raster color register b7 b6 b5 b4 b3 b2 b1 b0 raster color register (rc) [address 0218 16 ] b name functions at reset r w raster color register 0, 1 raster color r control bits (rc0, rc1) 0rw 2, 3 0 r w 4, 5 0 r w 0w 6 70rw r raster color g control bits (rc2, rc3) 0 0: no output (see note) 0 1: 1/3 v cc 1 0: 2/3 v cc 1 1: v cc b0 b1 note: when selecting digital output, v cc is output at any other values except ?0. raster color b control bits (rc4, rc5) raster color out1 control bits (rc6) 0: no output 1: output 0 0: no output (see note) 0 1: 1/3 v cc 1 0: 2/3 v cc 1 1: v cc b3 b2 0 0: no output (see note) 0 1: 1/3 v cc 1 0: 2/3 v cc 1 1: v cc b5 b4 raster color out2 control bits (rc7) 0: no output 1: output note : raster is not output to the area which includes blank output. 116 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37280MFCxxxsp, m37280mkCxxxsp m37280eksp mitsubishi microcomputers preliminary notice: this is not a final specification. some paramentic limits are subject to change. rev. 1.0 fig. 12.11.56 example of raster coloring h sync a' a out1 r g b h sync a' a out1 r g b : character color red (r and out1) : border color black (out1) : background color magenta (r, b and out1) : raster color blue (b and out1) signals across a-a' blank control signal in microcomputer : horizontal blank (out1) : character color red (r and out1) : border color black (out1) : background color magenta (r, b and out1) : raster color blue (b and out1) signals across a-a' 117 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37280MFCxxxsp, m37280mkCxxxsp m37280eksp mitsubishi microcomputers preliminary notice: this is not a final specification. some paramentic limits are subject to change. rev. 1.0 ad h , ad l 01,s? 01,s? pc h pc l ps ad h ad l pc ? ? : undefined instruction decode ? undefined instruction decoding signal occurs.internal reset signal occurs. f sync address data reset sequence 01,s fffe 16 ffff 16 : invalid : program counter s : stack pointer pc ad l , ad h : jump destination address of reset fig.13.1 sequence at detecting software runaway detection 13. software runaway detect function this microcomputer has a function to decode undefined instructions to detect a software runaway. when an undefined op-code is input to the cpu as an instruction code during operation, the following processing is done. the cpu generates an undefined instruction decoding signal. the device is internally reset because of occurrence of the unde- fined instruction decoding signal. a as a result of internal reset, the same reset processing as in the case of ordinary reset operation is done, and the program restarts from the reset vector. note, however, that the software runaway detecting function cannot be invalid. 118 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37280MFCxxxsp, m37280mkCxxxsp m37280eksp mitsubishi microcomputers preliminary notice: this is not a final specification. some paramentic limits are subject to change. rev. 1.0 14. reset circuit when the oscillation of a quartz-crystal oscillator or a ceramic reso- nator is stable and the power source voltage is 5 v 10 %, hold the reset pin at low for 2 m s or more, then return is to high. then, as shown in figure 14.2, reset is released and the program starts form the address formed by using the content of address ffff 16 as the high-order address and the content of the address fffe 16 as the low-order address. the internal state of microcomputer at reset are shown in figures 12.2.2 to 12.2.7. an example of the reset circuit is shown in figure 14.1. the reset input voltage must be kept 0.9 v or less until the power source voltage surpasses 4.5 v. fig.14.2 reset sequence fig.14.1 example of reset circuit power source voltage 0 v reset input voltage 0 v 4.5 v 0.9 v poweron vcc reset vss microcomputer 1 5 4 3 0.1 m f m51953al x in f reset internal reset sync address data 32768 count of x in clock cycle (note 3) reset address from the vector table ? ? 01, s 01, s-1 01, s-2 fffe ffff ad h , ad l ? ? ? ? ? ad l ad h notes 1 : f(x in ) and f( f ) are in the relation : f(x in ) = 2? ( f ). 2 : a question mark (?) indicates an undefined state that depends on the previous state. 3 : immediately after a reset, timer 3 and timer 4 are connected by hardware. at this time, ?f 16 ?is set in timer 3 and ?7 16 ?is set to timer 4. timer 3 counts down with f(x in )/16, and reset state is released by the timer 4 overflow signal. 119 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37280MFCxxxsp, m37280mkCxxxsp m37280eksp mitsubishi microcomputers preliminary notice: this is not a final specification. some paramentic limits are subject to change. rev. 1.0 15. clock generating circuit this microcomputer has 2 built-in oscillation circuits. an oscillation circuit can be formed by connecting a resonator between x in and x out (x cin and x cout ). use the circuit constants in accordance with the resonator manufacturers recommended values. no external re- sistor is needed between x in and x out since a feed-back resistor exists on-chip. however, an external feed-back resistor is needed between x cin and x cout . when using x cin -x cout as sub-clock, clear bits 5 and 4 of the clock source control register to 0. to supply a clock signal externally, input it to the x in (x cin ) pin and make the x out (x cout ) pin open. when not using x cin clock, connect the x cin to v ss and make the x cout pin open. after reset has completed, the internal clock f is half the frequency of x in . immediately after poweron, both the x in and x cin clock start oscillating. to set the internal clock f to low-speed operation mode, set bit 7 of the cpu mode register (address 00fb 16 ) to 1. 15.1 oscillation control 15.1.1 stop mode the built-in clock generating circuit is shown in figure 120. when the stp instruction is executed, the internal clock f stops at high. at the same time, timers 3 and 4 are connected by hardware and ff 16 is set in timer 3 and 07 16 is set in timer 4. select f(x in )/16 or f(x cin )/ 16 as the timer 3 count source (set both bit 0 of the timer mode register 2 and bit 6 at address 00c7 16 to 0 before the execution of the stp instruction). moreover, set the timer 3 and timer 4 interrupt enable bits to disabled (0) before execution of the stp instruction. the oscillator restarts when external interrupt is accepted. however, the internal clock f keeps its high level until timer 4 overflows, al- lowing time for oscillation stabilization when a ceramic resonator or a quartz-crystal oscillator is used. 15.1.2 wait mode when the wit instruction is executed, the internal clock f stops in the high level but the oscillator continues running. this wait state is released at reset or when an interrupt is accepted (note). since the oscillator does not stop, the next instruction can be executed at once. note: in the wait mode, the following interrupts are invalid. ? v sync interrupt ? osd interrupt ? all timers interrupts using tim2 pin input as count source ? all timers interrupt using tim3 pin input as count source ? data slicer interrupt ? multi-master i 2 c-bus interface interrupt ? f(x in )/4096 interrupt ? all timer interrupts using f(x in )/2 or f(x cin )/2 as count source ? all timer interrupts using f(x in )/4096 or f(x cin )/4096 as count source ? a-d conversion interrupt ? sprite osd interrupt fig.15.1 ceramic resonator circuit example fig.15.2 external clock input circuit example 15.1.3 low-speed mode if the internal clock is generated from the sub-clock (x cin ), a low power consumption operation can be realized by stopping only the main clock x in . to stop the main clock, set bit 6 (cm6) of the cpu mode register (00fb 16 ) to 1. when the main clock x in is restarted, the program must allow enough time to for oscillation to stabilize. note that in low-power-consumption mode the x cin -x cout drivability can be reduced, allowing even lower power consumption. to reduce the x cin -x cout drivability, clear bit 5 (cm 5 ) of the cpu mode regis- ter (00fb 16 ) to 0. at reset, this bit is set to 1 and strong drivability is selected to help the oscillation to start. when an stp instruction is executed, set this bit to 1 by software before executing. x cin x in c cin microcomputer x cout r f r d c cout x out c in c out x cin microcomputer external oscillation circuit or external pulse x cout x in x out open open external oscillation circuit vcc vss vcc vss 120 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37280MFCxxxsp, m37280mkCxxxsp m37280eksp mitsubishi microcomputers preliminary notice: this is not a final specification. some paramentic limits are subject to change. rev. 1.0 fig.15.3 clock generating circuit block diagram x cin x cout osc1 oscillating mode selection bits (see notes 1, 4) internal system clock selection bit (see notes 1, 3) internal system clock selection bit (notes 1, 3) main clock (x in ? out ) stop bit (notes 1, 3) r s q stp instruction wit instruction r s q reset interrupt disable flag i interrupt request r s q reset stp instruction timing f (internal clock) timer 3 count source selection bit (see notes 1, 2) ? timer 3 count stop bit (see notes 1, 2) timer 4 count stop bit (see notes 1, 2) timer 3 timer 4 1/2 1/8 x out x in ? ? ? notes 1 : the value at reset is ?. 2: refer to the structure of timer mode register 2. 3: refer to the structure of cpu mode register (next page). 4: refer to the structure of clock source control register. 121 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37280MFCxxxsp, m37280mkCxxxsp m37280eksp mitsubishi microcomputers preliminary notice: this is not a final specification. some paramentic limits are subject to change. rev. 1.0 fig.15.4 state transitions of system clock reset the example assumes that 8 mhz is being applied to the x in pin and 32 khz to the x cin pin. the f indicates the internal clock. wit instruction cm7 : internal system clock selection bit 0 : x in -x out selected (high-speed mode) 1 : x cin -x cout selected (low-speed mode) cpu mode register (address : 00fb 16 ) cm6 : main clock (x in ? out ) stop bit 0 : oscillating 1 : stopped 8 mhz oscillating 32 khz oscillating f is stopped (high) timer operating 8 mhz oscillating 32 khz oscillating f( f ) = 4 mhz 8 mhz stopped 32 khz stopped f is stopped (high) 8 mhz oscillating 32 khz oscillating f is stopped (high) timer operating (note 3) 8 mhz oscillating 32 khz oscillating f( f ) = 16 khz 8 mhz stopped 32 khz stopped f is stopped (high) 8 mhz stopped 32 khz stopped f = stopped (high ) 8 mhz stopped 32 khz oscillating f( f ) = 16 khz 8 mhz stopped 32 khz oscillating f is stopped (high) timer operating (note 3) interrupt stp instruction interrupt (note 1) wit instruction interrupt wit instruction interrupt stp instruction interrupt (note 2) stp instruction interrupt (note 2) cm7 = 1 cm7 = 0 cm6 = 1 cm6 = 0 external int, timer interrupt, or si/o interrupt external int notes 1: when the stp state is ended, a delay of approximately 4 ms is automatically generated by timer 3 and timer 4. 2: the delay after the stp state ends is approximately 1 s. 3: when the internal clock f divided by 8 is used as the timer count source, the frequency of the count source is 2 khz. the program must allow time for 8 mhz oscillation to stabilize high-speed operation start mode 122 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37280MFCxxxsp, m37280mkCxxxsp m37280eksp mitsubishi microcomputers preliminary notice: this is not a final specification. some paramentic limits are subject to change. rev. 1.0 reset vss vcc circuit example 1 reset vss vcc circuit example 2 note : make the level change from ??to ??at the point at which the power source voltage exceeds the specified voltage. 16. display oscillation circuit the osd oscillation circuit has a built-in clock oscillation circuits, so that a clock for osd can be obtained simply by connecting an lc, a ceramic resonator, or a quartz-crystal oscillator across the pins osc1 and osc2. which of the sub-clock or the osd oscillation circuit is selected by setting bits 5 and 4 of the clock control register (address 0216 16 ). 18. addressing mode the memory access is reinforced with 17 kinds of addressing modes. refer to series 740 123 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37280MFCxxxsp, m37280mkCxxxsp m37280eksp mitsubishi microcomputers preliminary notice: this is not a final specification. some paramentic limits are subject to change. rev. 1.0 power source voltage v cc , av cc input voltage cnv ss input voltage p0 0 Cp0 7 , p1 0 Cp1 7 , p2 0 Cp2 7 , p3 0 , p3 1 , p4 0 Cp4 6 , p6 4 , p6 3 , p7 0 Cp7 2 , x in , h sync , v sync , ______ reset output voltage p0 3 , p1 0 Cp1 7 , p2 0 Cp2 7 , p3 0 C p3 2 , p4 7 , p5 1 Cp5 7 , p6 0 Cp6 2 , p6 5 Cp6 7 , s out , s clk , x out , osc2 output voltage p0 0 Cp0 2 , p0 4 Cp0 7 , p5 0 circuit current p5 2 Cp5 5 , p1 0 , p0 3 , p1 5 Cp1 7 , p2 0 Cp2 7 , p3 0 , p3 1 circuit current p5 2 Cp5 7 , p1 0 , , p0 3 , p1 5 Cp1 7 , p2 0 Cp2 7 , p6 5 Cp6 7 , s out , s clk circuit current p1 1 Cp1 4 circuit current p0 0 Cp0 2 , p0 4 Cp0 7 , p3 2 , p4 7 , p5 0 p5 1 , p6 0 Cp6 2 circuit current p3 0 , p3 1 power dissipation operating temperature storage temperature symbol v cc , av cc v i v i v o v o i oh i ol1 i ol2 i ol3 i ol4 p d t opr t stg 21. absolute maximum ratings conditions all voltages are based on v ss . output transistors are cut off. parametear t a = 25 c unit v v v v v ma ma ma ma ma mw c c ratings C0.3 to 6 C0.3 to 6 C0.3 to v cc + 0.3 C0.3 to v cc + 0.3 C0.3 to 13 0 to 1 (see note 1) 0 to 2 (see note 2) 0 to 6 (see note 2) 0 to 1 (see note 2) 0 to 10 (see note 3) 550 C10 to 70 C40 to 125 power source voltage (see note 4), during cpu, osd, data slicer operation ram hold voltage (when clock is stopped) power source voltage high input voltage p0 0 Cp0 7 , p1 0 Cp1 7 , p2 0 Cp2 7 , p3 0 , p3 1, p4 0 Cp4 6 , p6 3 , p6 4 , p7 0 Cp7 2 , h sync , v sync , reset, x in high input voltage scl1, scl2, sda1, sda2 low input voltage p0 0 Cp0 7 , p1 0 Cp1 7 , p2 0 Cp2 7 , p3 0 , p3 1, p4 0 Cp4 6 , p6 3 , p6 4 , p7 0 Cp7 2 low input voltage scl1, scl2, sda1, sda2 low input voltage (see note 6) reset, x in , osc1, h sync , v sync , int1, int2, int3, tim2, tim3, s clk , s in high average output current (see note 1) p5 2 Cp5 5 , p1 0 , p0 3 , p1 5 Cp1 7 , p2 0 Cp2 7 , p3 0 , p3 1 low average output current (see note 2) p5 1 Cp5 7 , p1 0 , p0 3 , p1 5 Cp1 7 , p2 0 Cp2 7 , s out , s clk , p4 7 , p6 5 Cp6 7 low average output current (see note 2) p1 1 Cp1 4 low average output current (see note 2) p0 0 Cp0 2 , p0 4 Cp0 7 , p3 2 , p4 7, p5 0 , p5 1 , p6 0 Cp6 2 low average output current (see note 3) p3 0 , p3 1 oscillation frequency (for cpu operation) (see note 5) x in oscillation frequency (for sub-clock operation) x cin oscillation frequency (for osd) osc1 load resistance during r,g,b analog output input frequency tim2, tim3, int1, int2, int3 input frequency s clk input frequency scl1, scl2 input frequency horizontal sync. signal of video signal input amplitude video signal cv in limits min. 4.5 2.0 0 0.8v cc 0.7v cc 0 0 0 7.9 29 11.0 25.5 20.0 15.262 1.5 typ. 5.0 0 8.0 32 26.5 15.734 2.0 max. 5.5 5.5 0 v cc v cc 0.4 v cc 0.3 v cc 0.2 v cc 1 2 6 1 10 8.1 35 27.0 27.5 100 1 400 16.206 2.5 v v v v v v v v ma ma ma ma ma mhz khz mhz khz mhz khz khz v 22. recommended operating conditions (t a = C10 c to 70 c, v cc = 5 v 10 %, unless otherwise noted) v cc , av cc v cc , av cc v ss v ih1 v ih2 v il1 v il2 v il3 i oh i ol1 i ol2 i ol3 i ol4 f(x in ) f(x cin ) fosc r l f hs1 f hs2 f hs3 f hs4 v i symbol parameter unit lc oscillating mode ceramic oscillating mode 124 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37280MFCxxxsp, m37280mkCxxxsp m37280eksp mitsubishi microcomputers preliminary notice: this is not a final specification. some paramentic limits are subject to change. rev. 1.0 power source current high output voltage p5 2 Cp5 5 , p1 0 , p0 3 , p1 5 Cp1 7 , p2 0 Cp2 7 , p3 0 , p3 1 low output voltage s out , s clk , p0 0 Cp0 7 , p1 0 , p1 5 Cp1 7 , p2 0 Cp2 7 ,p3 2 , p4 7 , p5 0 Cp5 7 , p6 0 Cp6 2 , p6 5 Cp6 7 low output voltage p3 0 , p3 1 low output voltage p1 1 Cp1 4 hysteresis (see note 6) reset, h sync , v sync , int1,int2, int3, tim2, tim3, s in , s clk , scl1, scl2, sda1, sda2 high input leak current reset, p0 3 , p1 0 Cp1 7 , p2 0 Cp2 7 , p3 0 , p3 1 , p4 0 Cp4 6 , p6 3 , p6 4 , p7 0 Cp7 2 , h sync , v sync low input leak current reset, p0 0 Cp0 7 , p1 0 Cp1 7 , p2 0- p2 7 , p3 0 , p3 1 , p4 0 Cp4 6 , p6 3 , p6 4 , p7 0 Cp7 2 , h sync , v sync high input leak current p0 0 Cp0 2 , p0 4 Cp0 7, p5 0 i 2 c-busbus switch connection resistor (between scl1 and scl2, sda1 and sda2) max. 30 50 70 200 4 100 10 0.4 3.0 0.4 0.6 1.3 5 5 10 130 limits min. 2.4 23. electric characteristics (v cc = 5 v 10 %, v ss = 0 v, f(x in ) = 8 mhz, t a = C10 c to 70 c, unless otherwise noted) i cc v oh v ol v t+ C v tC i izh i zl o zh r bs typ. 15 30 50 60 2 25 1 0.5 symbol parameter test conditions unit system operation wait mode stop mode v cc = 5.5 v, f(x in ) = 0, f(x cin ) = 32 khz, osd off, data slicer off, low-power dissipation mode set (cm5 = 0, cm6 = 1) v cc = 5.5 v, f(x in ) = 8 mhz v cc = 5.5 v, f(x in ) = 0, f(x cin ) = 32khz, low-power dissipation mode set (cm5 = 0, cm6 = 1) v cc = 5.5 v, f(x in ) = 0 f(x cin ) = 0 v cc = 4.5 v i oh = C0.5 ma v cc = 4.5 v i ol = 0.5 ma v cc = 4.5 v i ol = 10.0 ma v cc = 4.5 v v cc = 5.0 v v cc = 5.5 v v i = 5.5 v v cc = 5.5 v v i = 0 v v cc = 5.5 v v i = 12 v v cc = 4.5 v crt off data slicer off crt on (digital output) data slicer on crt on (analog output) data slicer on test circuit v cc = 5.5 v, f(x in ) = 8 mhz ma m a ma m a v v v v m a ma m a w 1 2 3 4 5 6 notes 1: the total current that flows out of the ic must be 20 or less. 2: the total input current to ic (i ol1 + i ol2 + i ol3 ) must be 20 ma or less. 3: the total average input current for ports p3 0 , p3 1 to ic must be 10 ma or less. 4: connect 0.1 m f or more capacitor externally between the power source pins v cc Cv ss and av cc Cv ss so as to reduce power source noise. also connect 0.1 m f or more capacitor externally between the pins v cc Ccnv ss . 5: use a quartz-crystal oscillator or a ceramic resonator for the cpu oscillation circuit. when using the data slicer, use 8 mhz. 6: p1 6 , p4 1 Cp4 4 have the hysteresis when these pins are used as interrupt input pins or timer input pins. p1 1 Cp1 4 have the hysteresis when these pins are used as multi-master i 2 c-bus interface ports. p1 7 , p4 6 and p7 2 have the hysteresis when these pins are used as serial i/o pins. 7: when using the sub-clock, set f clk < f cpu /3. 8: pin names in each parameter is described as below. (1) dedicated pins: dedicated pin names. (2) duble-/triple-function ports ? when the same limits: i/o port name. ? when the limits of functins except ports are different from i/o port limits: function pin name. i ol = 3 ma i ol = 6 ma 125 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37280MFCxxxsp, m37280mkCxxxsp m37280eksp mitsubishi microcomputers preliminary notice: this is not a final specification. some paramentic limits are subject to change. rev. 1.0 fig.23.1 test circuit 1 3 5 2 4 6 vss vcc v v oh i oh 4.5 v each output pin after setting, each pin is tested to make each output pin off. vss vcc v v ol i ol 4.5 v each output pin after setting, each pin is tested to make each output pin off. vss vcc i ozh 5.5 v a 12 v each output pin after setting, each pin is tested to make each output pin off. a vss vcc x cin x cout x in x out osc1 osc2 icc 8.00 mhz 32 khz + power source voltage pin v cc is confirmed the operation and tested the current with a ceramic resonator. vss vcc 5.0 v each input pin vss vcc 5.5 v a each input pin after setting, each pin is tested to make each output pin off. i izh or i izl 5.5 v or 0 v 126 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37280MFCxxxsp, m37280mkCxxxsp m37280eksp mitsubishi microcomputers preliminary notice: this is not a final specification. some paramentic limits are subject to change. rev. 1.0 25. a-d converter characteristics (v cc = 5 v 10 %, v ss = 0 v, f(x in ) = 8 mhz, t a = C10 c to 70 c, unless otherwise noted) resolution absolute accuracy (excludig guantization error) conversion time ladder resistor analog input voltage max. 8 2.5 12.5 v ref bits lsb m s k w v min. 12.25 0 limits unit test conditions parameter symbol t conv r ladder v ia vcc = 5 v 24. analog r, g, b output characteristics (v cc = 5 v 10 %, v ss = 0 v, f(x in ) = 8 mhz, t a = C10 c to 70 c, unless otherwise noted) symbol r o v oe t st parameter test conditions limits min. typ. unit k w v ns v cc = 4.5 v v cc = 5.5 v v cc = 4.5 v, load capacity of 10 pf, load resistor of 20 k w , 70 % dc level output resistance output deviation settling time max. 2 0.5 50 typ. 25 fig.24.1 analog r, g, b, output characteristics v cc v 0e v p-p v 0e t st 70%v p-p 30%v p-p 2/3v cc 1/3v cc v ss 127 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37280MFCxxxsp, m37280mkCxxxsp m37280eksp mitsubishi microcomputers preliminary notice: this is not a final specification. some paramentic limits are subject to change. rev. 1.0 26. multi-master i 2 c-bus bus line characteristics bus free time hold time for start condition low period of scl clock rising time of both scl and sda signals data hold time high period of scl clock falling time of both scl and sda signals data set-up time set-up time for repeated start condition set-up time for stop condition t buf t hd; sta t low t r t hd; dat t high t f t su; dat t su; sta t su; sto max. 1000 300 min. 1.3 0.6 1.3 20+0.1c b 0 0.6 20+0.1c b 100 0.6 0.6 max. 300 0.9 300 m s m s m s ns m s m s ns ns m s m s unit standard clock mode high-speed clock mode parameter symbol note: c b = total capacitance of 1 bus line fig.26.1 definition diagram of timing on multi-master i 2 c-bus min. 4.7 4.0 4.7 0 4.0 250 4.7 4.0 sda scl p t buf s t hd ; sta t low t r t hd ; dat t high t f t su ; dat t su ; sta sr p t su ; sto t hd ; sta s sr p : start condition : restart condition : stop condition 128 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37280MFCxxxsp, m37280mkCxxxsp m37280eksp mitsubishi microcomputers preliminary notice: this is not a final specification. some paramentic limits are subject to change. rev. 1.0 28. prom programming method the built-in prom of the one time prom version (blank) and the built-in eprom version can be read or programmed with a general- purpose prom programmer using a special programming adapter. product m37280eksp name of programming adapter pca7401 the prom of the one time prom version (blank) is not tested or screened in the assembly process nor any following processes. to ensure proper operation after programming, the procedure shown in figure 29.1 is recommended to verify programming. fig. 29.1 programming and testing of one time prom version programming with prom programmer screening (caution) (150c for 40 hours) verification with prom programmer functional check in target device caution : the screening temperature is far higher than the storage temperature. never expose to 150? exceeding 100 hours. 27. data required for mask orders the following are necessary when ordering a mask rom produc- tion: ? mask rom order confirmation form ? mark specification form ? data to be written to rom, in eprom form (32-pin dip type 27c101, three identical copies) or fdk 129 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37280MFCxxxsp, m37280mkCxxxsp m37280eksp mitsubishi microcomputers preliminary notice: this is not a final specification. some paramentic limits are subject to change. rev. 1.0 expansion rom (20k bytes) gzz?h52?3b < 84a0 > 740 family mask rom confirmation form single-chip microcomputer m37280mk-xxxsp mitsubishi electric mask rom number date : supervisor signature receipt section head signature ] customer company name date issued date : tel ( ) note : please fill in all items marked ] . submitted by supervisor issuance signature ] 1. confirmation specify the name of the product being ordered and the type of eproms submitted. three eproms are required for each pattern. if at least two of the three sets of eproms submitted contain identical data, we will produce masks based on this data. we shall assume the responsibility for errors only if the mask rom data on the products we produce differs from this data. thus, extreme care must be taken to verify the data in the submitted eproms. checksum code for entire eprom (hexadecimal notation) 27c101 eprom address 00000 16 product name ascii code : ?37280mk 0000f 16 0ffff 16 set ?f 16 ?in the shaded area. (1) eprom type (indicate the type used) 01000 16 osd rom 1ffff 16 157ff 16 program rom 60 k bytes osd rom 10800 16 18000 16 1acff 16 1b000 16 29. mask confirmation form (1/3) 130 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37280MFCxxxsp, m37280mkCxxxsp m37280eksp mitsubishi microcomputers preliminary notice: this is not a final specification. some paramentic limits are subject to change. rev. 1.0 ? = 16 4d 16 ? = 3 3 16 ? = 37 16 ? = 3 2 16 ? = 38 16 ? = 30 16 ? = 4d 16 ? = 4b 00000 16 00001 16 00002 16 00003 16 00004 16 00005 16 00006 16 00007 16 address = 16 2d 16 ff 16 ff 16 ff 16 ff 16 ff 16 ff 16 ff 00008 16 00009 16 0000a 16 0000b 16 0000c 16 0000d 16 0000e 16 0000f 16 address addresses 00000 16 to 0000f 16 store the product name. ascii codes ?37280mk-?are listed on the right. the addresses and data are in hexadecimal notation. address and data are described in hexadecimal notation. 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. please make sure the data is written correctly. gzz?h52?3b < 84a0 > 740 family mask rom confirmation form single-chip microcomputer m37280mk-xxxsp mitsubishi electric write the ascii codes that indicate the product name of ?37280mk to addresses 00000 16 to 0000f 16 . (2) note: ] 2. mark specification mark specification must be submitted using the correct form for the type of package being ordered. fill the appropriate mark specification form (64p4b for m37280mk-xxxsp) and attach to the mask rom confirmation form. (2/3) 131 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37280MFCxxxsp, m37280mkCxxxsp m37280eksp mitsubishi microcomputers preliminary notice: this is not a final specification. some paramentic limits are subject to change. rev. 1.0 109fe 16 to 10a01 16 10dfe 16 to 10e01 16 111fe 16 to 11201 16 115fe 16 to 11601 16 119fe 16 to 11a01 16 11dfe 16 to 11e01 16 121fe 16 to 12201 16 125fe 16 to 12601 16 129fe 16 to 12a01 16 12dfe 16 to 12e01 16 131fe 16 to 13201 16 135fe 16 to 13601 16 139fe 16 to 13a01 16 13dfe 16 to 13e01 16 141fe 16 to 14201 16 145fe 16 to 14601 16 149fe 16 to 14a01 16 14dfe 16 to 14e01 16 151fe 16 to 15201 16 155fe 16 to 15601 16 15800 16 to 17fff 16 1803e 16 to 18041 16 180be 16 to 180c1 16 1813e 16 to 18141 16 181be 16 to 181c1 16 1823e 16 to 18241 16 182be 16 to 182c1 16 1833e 16 to 18341 16 183be 16 to 183c1 16 1843e 16 to 18441 16 184be 16 to 184c1 16 1853e 16 to 18541 16 185be 16 to 185c1 16 1863e 16 to 18641 16 186be 16 to 186c1 16 1873e 16 to 18741 16 187be 16 to 187c1 16 1883e 16 to 18841 16 188be 16 to 188c1 16 1893e 16 to 18941 16 189be 16 to 189c1 16 18a3e 16 to 18a41 16 18abe 16 to 18ac1 16 18b3e 16 to 18b41 16 18bbe 16 to 18bc1 16 18c3e 16 to 18c41 16 18cbe 16 to 18cc1 16 18d00 16 to 18fff 16 1903e 16 to 19041 16 190be 16 to 190c1 16 1913e 16 to 19141 16 191be 16 to 191c1 16 1923e 16 to 19241 16 192be 16 to 192c1 16 1933e 16 to 19341 16 193be 16 to 193c1 16 1943e 16 to 19441 16 194be 16 to 194c1 16 1953e 16 to 19541 16 195be 16 to 195c1 16 1963e 16 to 19641 16 196be 16 to 196c1 16 1973e 16 to 19741 16 197be 16 to 197c1 16 1983e 16 to 19841 16 198be 16 to 198c1 16 1993e 16 to 19941 16 199be 16 to 199c1 16 19a3e 16 to 19a41 16 19abe 16 to 19ac1 16 19b3e 16 to 19b41 16 19bbe 16 to 19bc1 16 19c3e 16 to 19c41 16 19cbe 16 to 19cc1 16 19d00 16 to 19fff 16 1a03e 16 to 1a041 16 1a0be 16 to 1a0c1 16 1a13e 16 to 1a141 16 1a1be 16 to 1a1c1 16 1a23e 16 to 1a241 16 1a2be 16 to 1a2c1 16 1a33e 16 to 1a341 16 1a3be 16 to 1a3c1 16 1a43e 16 to 1a441 16 1a4be 16 to 1a4c1 16 1a53e 16 to 1a541 16 1a5be 16 to 1a5c1 16 1a63e 16 to 1a641 16 1a6be 16 to 1a6c1 16 1a73e 16 to 1a741 16 1a7be 16 to 1a7c1 16 1a83e 16 to 1a841 16 1a8be 16 to 1a8c1 16 1a93e 16 to 1a941 16 1a9be 16 to 1a9c1 16 1aa3e 16 to 1aa41 16 1aabe 16 to1aac1 16 1ab3e 16 to 1ab41 16 1abbe 16 to1abc1 16 1ac3e 16 to 1ac41 16 1acbe 16 to1acc1 16 gzz?h52?3b < 84a0 > 740 family mask rom confirmation form single-chip microcomputer m37280mk-xxxsp mitsubishi electric input ?f 16 ?to the following addresses in osd rom note: (3/3) 132 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37280MFCxxxsp, m37280mkCxxxsp m37280eksp mitsubishi microcomputers preliminary notice: this is not a final specification. some paramentic limits are subject to change. rev. 1.0 (1/3) gzz?h52?4b < 84a0 > 740 family mask rom confirmation form single-chip microcomputer M37280MF-xxxsp mitsubishi electric mask rom number date : supervisor signature receipt section head signature ] customer company name date issued date : tel ( ) note : please fill in all items marked ] . submitted by supervisor issuance signature ] 1. confirmation specify the name of the product being ordered and the type of eproms submitted. three eproms are required for each pattern. if at least two of the three sets of eproms submitted contain identical data, we will produce masks based on this data. we shall assume the responsibility for errors only if the mask rom data on the products we produce differs from this data. thus, extreme care must be taken to verify the data in the submitted eproms. checksum code for entire eprom (hexadecimal notation) 27c101 eprom address 00000 16 product name ascii code : ?37280mf 0000f 16 0ffff 16 set ?f 16 ?in the shaded area. (1) eprom type (indicate the type used) 01000 16 osd rom 1ffff 16 157ff 16 program rom 60 k bytes osd rom 10800 16 18000 16 1acff 16 133 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37280MFCxxxsp, m37280mkCxxxsp m37280eksp mitsubishi microcomputers preliminary notice: this is not a final specification. some paramentic limits are subject to change. rev. 1.0 (2/3) ? = 16 4d 16 ? = 3 3 16 ? = 37 16 ? = 3 2 16 ? = 38 16 ? = 30 16 ? = 4d 16 ? = 46 00000 16 00001 16 00002 16 00003 16 00004 16 00005 16 00006 16 00007 16 address = 16 2d 16 ff 16 ff 16 ff 16 ff 16 ff 16 ff 16 ff 00008 16 00009 16 0000a 16 0000b 16 0000c 16 0000d 16 0000e 16 0000f 16 address addresses 00000 16 to 0000f 16 store the product name. ascii codes ?37280mf-?are listed on the right. the addresses and data are in hexadecimal notation. address and data are described in hexadecimal notation. 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. please make sure the data is written correctly. gzz?h52?4b < 84a0 > 740 family mask rom confirmation form single-chip microcomputer M37280MF-xxxsp mitsubishi electric write the ascii codes that indicate the product name of ?37280mf to addresses 00000 16 to 0000f 16 . (2) note: ] 2. mark specification mark specification must be submitted using the correct form for the type of package being ordered. fill the appropriate mark specification form (64p4b for M37280MF-xxxsp) and attach to the mask rom confirmation form. 134 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37280MFCxxxsp, m37280mkCxxxsp m37280eksp mitsubishi microcomputers preliminary notice: this is not a final specification. some paramentic limits are subject to change. rev. 1.0 (3/3) 109fe 16 to 10a01 16 10dfe 16 to 10e01 16 111fe 16 to 11201 16 115fe 16 to 11601 16 119fe 16 to 11a01 16 11dfe 16 to 11e01 16 121fe 16 to 12201 16 125fe 16 to 12601 16 129fe 16 to 12a01 16 12dfe 16 to 12e01 16 131fe 16 to 13201 16 135fe 16 to 13601 16 139fe 16 to 13a01 16 13dfe 16 to 13e01 16 141fe 16 to 14201 16 145fe 16 to 14601 16 149fe 16 to 14a01 16 14dfe 16 to 14e01 16 151fe 16 to 15201 16 155fe 16 to 15601 16 15800 16 to 17fff 16 1803e 16 to 18041 16 180be 16 to 180c1 16 1813e 16 to 18141 16 181be 16 to 181c1 16 1823e 16 to 18241 16 182be 16 to 182c1 16 1833e 16 to 18341 16 183be 16 to 183c1 16 1843e 16 to 18441 16 184be 16 to 184c1 16 1853e 16 to 18541 16 185be 16 to 185c1 16 1863e 16 to 18641 16 186be 16 to 186c1 16 1873e 16 to 18741 16 187be 16 to 187c1 16 1883e 16 to 18841 16 188be 16 to 188c1 16 1893e 16 to 18941 16 189be 16 to 189c1 16 18a3e 16 to 18a41 16 18abe 16 to 18ac1 16 18b3e 16 to 18b41 16 18bbe 16 to 18bc1 16 18c3e 16 to 18c41 16 18cbe 16 to 18cc1 16 18d00 16 to 18fff 16 1903e 16 to 19041 16 190be 16 to 190c1 16 1913e 16 to 19141 16 191be 16 to 191c1 16 1923e 16 to 19241 16 192be 16 to 192c1 16 1933e 16 to 19341 16 193be 16 to 193c1 16 1943e 16 to 19441 16 194be 16 to 194c1 16 1953e 16 to 19541 16 195be 16 to 195c1 16 1963e 16 to 19641 16 196be 16 to 196c1 16 1973e 16 to 19741 16 197be 16 to 197c1 16 1983e 16 to 19841 16 198be 16 to 198c1 16 1993e 16 to 19941 16 199be 16 to 199c1 16 19a3e 16 to 19a41 16 19abe 16 to 19ac1 16 19b3e 16 to 19b41 16 19bbe 16 to 19bc1 16 19c3e 16 to 19c41 16 19cbe 16 to 19cc1 16 19d00 16 to 19fff 16 1a03e 16 to 1a041 16 1a0be 16 to 1a0c1 16 1a13e 16 to 1a141 16 1a1be 16 to 1a1c1 16 1a23e 16 to 1a241 16 1a2be 16 to 1a2c1 16 1a33e 16 to 1a341 16 1a3be 16 to 1a3c1 16 1a43e 16 to 1a441 16 1a4be 16 to 1a4c1 16 1a53e 16 to 1a541 16 1a5be 16 to 1a5c1 16 1a63e 16 to 1a641 16 1a6be 16 to 1a6c1 16 1a73e 16 to 1a741 16 1a7be 16 to 1a7c1 16 1a83e 16 to 1a841 16 1a8be 16 to 1a8c1 16 1a93e 16 to 1a941 16 1a9be 16 to 1a9c1 16 1aa3e 16 to 1aa41 16 1aabe 16 to1aac1 16 1ab3e 16 to 1ab41 16 1abbe 16 to1abc1 16 1ac3e 16 to 1ac41 16 1acbe 16 to1acc1 16 gzz?h52?4b < 84a0 > 740 family mask rom confirmation form single-chip microcomputer M37280MF-xxxsp mitsubishi electric input ?f 16 ?to the following addresses in osd rom note: 135 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37280MFCxxxsp, m37280mkCxxxsp m37280eksp mitsubishi microcomputers preliminary notice: this is not a final specification. some paramentic limits are subject to change. rev. 1.0 30. mark specification form 136 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37280MFCxxxsp, m37280mkCxxxsp m37280eksp mitsubishi microcomputers preliminary notice: this is not a final specification. some paramentic limits are subject to change. rev. 1.0 31. appendix pin configuration (top view) outline 64p4b 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 64 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49 48 47 46 45 44 p5 0 /pwm 7 hlf/ad6 h sync v sync p4 0 ad4 p4 1 /int2 p4 2 /tim2 p4 3 /tim3 p2 4 /ad3 p2 5 /ad2 p0 1 /pwm5 p4 7 p0 2 /pwm6 p5 1 p1 7 /s in /r0 p3 2 p4 4 /int1 p5 6 p4 6 /s clk av cc p7 2 /(s in ) p5 2 /r/r1 p5 3 /g/g1 p5 4 /b/b1 p5 5 /out1 p0 4 /pwm0 p0 5 /pwm1 p6 0 p1 0 /out2 p1 1 /scl1 p1 2 /scl2 p1 3 /sda1 p1 4 /sda2 p1 5 /g0 p1 6 /int3/b0 p3 0 /ad7 p3 1 /ad8 reset p6 4 /osc2/x cout p6 3 /osc1/x cin v cc p0 3 /pwm7 p2 6 /ad1 p2 7 /ad5 p0 0 /pwm 4 p4 5 /s out p5 7 p0 6 /pwm2 p6 1 p2 1 p2 2 p2 3 22 23 24 25 26 43 42 41 40 39 M37280MF-xxxsp, m37280mk-xxxsp, m37280eksp p7 0 /cv in p7 1 /v hold cnv ss x out x in v ss 27 28 29 30 31 32 38 37 36 35 34 33 p0 7 /pwm3 p6 2 p2 0 p6 5 p6 6 p6 7 137 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37280MFCxxxsp, m37280mkCxxxsp m37280eksp mitsubishi microcomputers preliminary notice: this is not a final specification. some paramentic limits are subject to change. rev. 1.0 memory map 0000 16 10000 16 00c0 16 00ff 16 0fff 16 ffff 16 ffde 16 ff00 16 0800 16 10800 16 rom (60k bytes) osd ram (character) (1536 bytes) (see note 2) ram (1024 bytes) for M37280MF- xxxsp 0200 16 0258 16 1000 16 0300 16 157ff 16 18000 16 osd rom (character font) (20400 bytes) 053f 16 sfr1 area zero page sfr2 area 02c0 16 02ff 16 rom correction memory (64 bytes) block 1 : addresses 02c0 16 to 02df 16 block 2 : addresses 02e0 16 to 02ff 16 0100 16 00bf 16 0700 16 07a7 16 osd ram (sprite) (120 bytes) (see note 1) 1acff 16 osd rom (color dot font) (9672 bytes) not used not used not used not used not used notes 1: refer to table 12.11.3 osd ram (sprite). 2: refer to tables 12.11.4 and 2.11.5 osd ram (character). special page interrupt vector area 1ffff 16 1b000 16 1c000 16 1d000 16 1e000 16 1f000 16 bank 11 bank 12 bank 13 bank 14 bank 15 not used 06ff 16 expansion rom (20k bytes) for m37280mk-xxxsp and m37280eksp ram (1472 bytes) for m37280mk-xxxsp and m37280eksp 138 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37280MFCxxxsp, m37280mkCxxxsp m37280eksp mitsubishi microcomputers preliminary notice: this is not a final specification. some paramentic limits are subject to change. rev. 1.0 memory map of special function register (sfr) d0 16 d1 16 d2 16 d3 16 d4 16 d5 16 d6 16 d7 16 d8 16 d9 16 da 16 db 16 dc 16 dd 16 de 16 df 16 c0 16 c1 16 c2 16 c3 16 c4 16 c5 16 c6 16 c7 16 c8 16 c9 16 cb 16 cc 16 cd 16 ce 16 cf 16 ca 16 address port p5 ( p5 ) osd control re g ister 1 ( oc 1 ) horizontal position re g ister ( hp ) block control register 1 (bc 1 ) port p1 ( p1 ) port p1 direction re g ister ( d1 ) port p3 ( p3 ) port p3 direction re g ister ( d3 ) port p2 ( p2 ) port p2 direction re g ister ( d2 ) registe r port p0 ( p0 ) port p0 direction re g ister ( d0 ) block control register 2 (bc 2 ) block control register 3 (bc 3 ) block control register 4 (bc 4 ) block control register 5 (bc 5 ) block control register 6 (bc 6 ) block control register 7 (bc 7 ) bit allocation state immediately after reset port p4 ( p4 ) port p4 direction re g ister ( d4 ) osd port control re g ister ( pf ) port p6 ( p6 ) block control register 8 (bc 8 ) block control register 9 (bc 9 ) block control register 10 (bc 10 ) block control register 11 (bc 11 ) block control register 12 (bc 12 ) port p7 ( p7 ) n sfr1 area (addresses c0 16 to df 16 ) : fix to this bit to ?? ( do not write to ? ) : bit allocation state immediately after reset function bit : no function bit : fix to this bit to ?? ( do not write to ? ) name : : ??immediately after reset : indeterminate immediately after reset 0 1 ? : ??immediately after reset 1 0 block control register 13 (bc 13 ) block control register 14 (bc 14 ) block control register 15 (bc 15 ) block control register 16 (bc 16 ) b7 b0 b7 b0 ? 00 16 ? 00 16 ? 00 16 ? ? ? ? ? ? ? ? ? ? r0 g b out1 out2 0 0? 0 0? ? 0 ? ? ? ? ? ? ? oc16 oc17 oc14 oc15 oc12 oc13 oc10 oc11 00 16 bc 1 0 bc 1 1 bc 1 2 bc 1 3 bc 1 4 bc 1 5 bc 1 6 bc 2 0 bc 2 1 bc 2 2 bc 2 3 bc 2 4 bc 2 5 bc 2 6 bc 3 0 bc 3 1 bc 3 2 bc 3 3 bc 3 4 bc 3 5 bc 3 6 bc 4 0 bc 4 1 bc 4 2 bc 4 3 bc 4 4 bc 4 5 bc 4 6 bc 5 0 bc 5 1 bc 5 2 bc 5 3 bc 5 4 bc 5 5 bc 5 6 bc 6 0 bc 6 1 bc 6 2 bc 6 3 bc 6 4 bc 6 5 bc 6 6 bc 7 0 bc 7 1 bc 7 2 bc 7 3 bc 7 4 bc 7 5 bc 7 6 bc 8 0 bc 8 1 bc 8 2 bc 8 3 bc 8 4 bc 8 5 bc 8 6 bc 9 0 bc 9 1 bc 9 2 bc 9 3 bc 9 4 bc 9 5 bc 9 6 bc 10 0 bc 10 1 bc 10 2 bc 10 3 bc 10 4 bc 10 5 bc 10 6 bc 11 0 bc 11 1 bc 11 2 bc 11 3 bc 11 4 bc 11 5 bc 11 6 bc 12 0 bc 12 1 bc 12 2 bc 12 3 bc 12 4 bc 12 5 bc 12 6 hp16 hp17 hp14 hp15 hp12 hp13 hp10 hp11 00 16 0 0 00 16 ? 00 16 ? 00 16 ? t3cs bc 13 0 bc 13 1 bc 13 2 bc 13 3 bc 13 4 bc 13 5 bc 13 6 bc 14 0 bc 14 1 bc 14 2 bc 14 3 bc 14 4 bc 14 5 bc 14 6 bc 15 0 bc 15 1 bc 15 2 bc 15 3 bc 15 4 bc 15 5 bc 15 6 bc 16 0 bc 16 1 bc 16 2 bc 16 3 bc 16 4 bc 16 5 bc 16 6 p6im rgb 2bit 139 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37280MFCxxxsp, m37280mkCxxxsp m37280eksp mitsubishi microcomputers preliminary notice: this is not a final specification. some paramentic limits are subject to change. rev. 1.0 f0 16 f1 16 f2 16 f3 16 f4 16 f5 16 f6 16 f7 16 f8 16 f9 16 fa 16 fb 16 fc 16 fd 16 fe 16 ff 16 e0 16 e1 16 e2 16 e3 16 e4 16 e5 16 e6 16 e7 16 e8 16 e9 16 eb 16 ec 16 ed 16 ee 16 ef 16 ea 16 data slicer control register 1 (dsc1) a-d conversion register (ad) a-d control register (adcon) timer 1 (t1) caption data register 1 (cd1) timer 2 (t2) timer 3 (t3) timer 4 (t4) timer mode register 1 (tm1) timer mode register 2 (tm2) i 2 c data shift register (s0) i 2 c control register (s1d) i 2 c clock control register (s2) interrupt request register 1 (ireq1) interrupt request register 2 (ireq2) interrupt control register 1 (icon1) interrupt control register 2 (icon2) cpu mode register (cm) data slicer control register 2 (dsc2) i 2 c status register (s1) i 2 c address register (s0d) n sfr1 area (addresses e0 16 to ff 16 ) address registe r bit allocation state immediately after reset : fix to this bit to ?? ( do not write to ? ) : bit allocation state immediately after reset function bit : no function bit : fix to this bit to ?? ( do not write to ? ) name : : ??immediately after reset : indeterminate immediately after reset 0 1 ? : ??immediately after reset 1 0 caption data register 2 (cd2) caption data register 3 (cd3) caption data register 4 (cd4) caption position register (cps) data slicer test register 2 data slicer test register 1 sync signal counter register (hc) clock run-in detect register (crd) data clock position register (dps) b7 b0 b7 b0 tm20 tm21 tm22 tm23 tm24 tm10 tm11 tm12 tm13 tm14 cm2 tm1r tm2r tm3r tm4r osdr vscr adr ck0 in1r dsr sior tm1e tm2e tm3e tm4e osde vsce in1e dse sioe in2e tm25 ff 16 07 16 ff 16 07 16 tm15 tm16 tm17 tm26 tm27 ? sad0 sad1 sad2 sad3 sad4 sad5 sad6 rbw lrb ad0 aas al pin bb trx mst bc0 bc1 bc2 eso als bsel0 bsel1 ccr0 ccr1 ccr2 ccr3 ccr4 ac k 00 16 00 16 00 16 ck r in2r iicr tm56r ade cke iice tm56e tm56s 0 0 cm7 cm5 cm6 adin0 adin1 adin2 advref adstr 10bit sad 00 16 00 16 00 16 dsc10 dsc11 dsc12 dsc20 dsc23 dsc24 dsc25 crd3 crd4 crd5 crd6 crd7 dps3 dps4 dps5 dps6 dps7 cps0 cps3 cps4 cps5 cps1 cps2 cps6 cps7 hc0 hc3 hc4 hc5 hc1 hc2 0? 0? 0 ? ?? 0 00 00 0 0 0 1 0 1 0 1 00 16 cdh10 cdh13 cdh14 cdh15 cdh11 cdh12 cdh16 cdh17 cdl10 cdl13 cdl14 cdl15 cdl11 cdl12 cdl16 cdl17 00 16 00 16 00 16 00 16 00 16 00 16 00 16 00 16 00 16 d1 d2 d3 d4 d5 d6 d7 d0 0 0 00?00 0 0 0 0 01 0 0? fast mod e ack bit 0 cdh20 cdh23 cdh24 cdh25 cdh21 cdh22 cdh26 cdh27 cdl20 cdl23 cdl24 cdl25 cdl21 cdl22 cdl26 cdl27 00 16 00 16 00 16 00 16 ? ? 0 0 0? 001 0 09 16 3c 16 0 bank control register (bk) bk0 bk3 bk1 bk2 bk6 bk7 00 ? ? 00??? ? 140 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37280MFCxxxsp, m37280mkCxxxsp m37280eksp mitsubishi microcomputers preliminary notice: this is not a final specification. some paramentic limits are subject to change. rev. 1.0 210 1 6 211 1 6 212 1 6 213 1 6 214 1 6 215 1 6 216 1 6 217 1 6 218 1 6 219 1 6 21a 1 6 21b 1 6 21c 16 21d 16 21e 1 6 21f 1 6 200 1 6 201 1 6 202 1 6 203 1 6 204 1 6 205 1 6 206 1 6 207 1 6 208 1 6 209 1 6 20b 1 6 20c 16 20d 16 20e 1 6 20f 1 6 20a 1 6 pwm mode re g ister 1 ( pn ) timer 5 ( tm5 ) pwm2 re g ister ( pwm2 ) pwm6 re g ister ( pwm6 ) pwm4 re g ister ( pwm4 ) pwm5 re g ister ( pwm5 ) pwm0 re g ister ( pwm0 ) pwm1 re g ister ( pwm1 ) interrupt input polarity register (ip) serial i/o mode re g ister ( sm ) serial i/o re g ister ( sio ) clock control register (cs) top border control register 1 (tb1) bottom border control register 1 (bb1) top border control register 1 (tb2) bottom border control register 1 (bb2) timer 6 ( tm6 ) pwm3 re g ister ( pwm3 ) pwm mode re g ister 2 ( pw ) raster color re g ister ( rc ) i/o polarity control register (pc) n sfr2 area (addresses 200 16 to 21f 16 ) address registe r bit allocation state immediately after reset : fix to this bit to ?? ( do not write to ? ) : bit allocation state immediately after reset function bit : no function bit : fix to this bit to ?? ( do not write to ? ) name : : ??immediately after reset : indeterminate immediately after reset 0 1 ? : ??immediately after reset 1 0 pwm7 re g ister ( pwm7 ) test re g ister osd control re g ister 2 ( oc2 ) osd control register 3(oc3) rom correction address 1 (high-order) rom correction enable register (rcr) rom correction address 2 (high-order) rom correction address 2 (low-order) rom correction address 1 (low-order) b7 b0 b7 b0 00 16 ? ? ? ? ? ? ? 00 16 00 16 00 16 pw 0 pw1 pw2 pw3 pw4 pw 5 pw 6 pn 3 re1 re2 re3 re5 int3 pol ad/int3 sel pol3 ad/int3 sel sm0 re1 re2 re3 sm4 re5 int3 pol ad/int3 sel sm1 sm2 sm3 sm5 pc0 re1 re2 re3 pc4 re5 int3 pol ad/int3 sel pc1 pc2 pc5 pc6 pc7 re1 re2 int3 pol ad/int3 sel cs0 cs1 cs2 rc0 re1 re2 re3 re5 int3 pol ad/int3 sel rc1 rc2 re1 re2 re3 tb20 tb21 bb20 bb21 ? ? ? 00 16 00 16 pn 0 pw7 0 oc30 oc31 oc32 ? ? 00 16 00 16 00 16 00 16 ff 16 ? ? bb17 bb16 bb15 bb14 bb13 bb12 bb11 bb10 tb17 tb16 tb15 tb14 tb13 tb12 tb11 tb10 07 16 oc27 oc25 oc24 oc23 oc12 oc21 oc20 oc33 oc34 rc3 rc4 re1 re2 re3 re5 int3 pol ad/int3 sel 00 00 16 ? 00 16 00 16 00 16 00 16 00 oc26 rcr0 rcr1 pn4 pol2 pol1 oc35 oc36 oc37 sm6 80 16 0 141 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37280MFCxxxsp, m37280mkCxxxsp m37280eksp mitsubishi microcomputers preliminary notice: this is not a final specification. some paramentic limits are subject to change. rev. 1.0 230 16 231 16 232 16 233 16 234 16 235 16 236 16 237 16 238 16 239 16 23a 16 23b 16 23c 16 23d 16 23e 16 23f 16 220 16 221 16 222 16 223 16 224 16 225 16 226 16 227 16 228 16 229 16 22b 16 22c 16 22d 16 22e 16 22f 16 22a 16 vertical position register 1 11 (vp1 11 ) vertical position register 1 3 (vp1 3 ) vertical position register 1 7 (vp1 7 ) vertical position register 1 5 (vp1 5 ) vertical position register 1 6 (vp1 6 ) vertical position register 1 1 (vp1 1 ) vertical position register 1 2 (vp1 2 ) vertical position register 1 9 (vp1 9 ) vertical position register 1 10 (vp1 10 ) vertical position register 1 4 (vp1 4 ) vertical position register 1 12 (vp1 12 ) vertical position register 1 8 (vp1 8 ) vertical position register 2 3 (vp2 3 ) vertical position register 2 7 (vp2 7 ) vertical position register 2 5 (vp2 5 ) vertical position register 2 6 (vp2 6 ) vertical position register 2 1 (vp2 1 ) vertical position register 2 9 (vp2 9 ) vertical position register 2 10 (vp2 10 ) vertical position register 2 4 (vp2 4 ) vertical position register 2 12 (vp2 12 ) vertical position register 2 8 (vp2 8 ) vertical position register 2 2 (vp2 2 ) vertical position register 2 11 (vp2 11 ) n sfr2 area (addresses 220 16 to 23f 16 ) address registe r bit allocation state immediately after reset : fix to this bit to ?? (do not write to ?? : bit allocation state immediately after reset function bit : no function bit : fix to this bit to ?? ( do not write to ? ) name : : ??immediately after reset : indeterminate immediately after reset 0 1 ? : ??immediately after reset 1 0 vertical position register 2 14 (vp2 14 ) vertical position register 2 13 (vp2 13 ) vertical position register 2 16 (vp2 16 ) vertical position register 2 15 (vp2 15 ) vertical position register 1 13 (vp1 13 ) vertical position register 1 14 (vp1 14 ) vertical position register 1 15 (vp1 15 ) vertical position register 1 16 (vp1 16 ) b7 b0 b7 b0 ? ? ? ? vp1 1 2 vp1 1 3 vp1 1 4 vp1 1 5 vp1 1 6 vp1 1 7 vp1 2 2 vp1 2 3 vp1 2 4 vp1 2 5 vp1 2 6 vp1 2 7 vp1 3 2 vp1 3 3 vp1 3 4 vp1 3 5 vp1 3 6 vp1 3 7 vp1 4 2 vp1 4 3 vp1 4 4 vp1 4 5 vp1 4 6 vp1 4 7 vp1 5 2 vp1 5 3 vp1 5 4 vp1 5 5 vp1 5 6 vp1 5 7 vp1 6 2 vp1 6 3 vp1 6 4 vp1 6 5 vp1 6 6 vp1 6 7 vp1 7 2 vp1 7 3 vp1 7 4 vp1 7 5 vp1 7 6 vp1 7 7 vp1 8 2 vp1 8 3 vp1 8 4 vp1 8 5 vp1 8 6 vp1 8 7 vp1 9 2 vp1 9 3 vp1 9 4 vp1 9 5 vp1 9 6 vp1 9 7 vp1 10 2 vp1 10 3 vp1 10 4 vp1 10 5 vp1 10 6 vp1 10 7 vp1 11 2 vp1 11 3 vp1 11 4 vp1 11 5 vp1 11 6 vp1 11 7 vp1 1 1 vp1 2 1 vp1 3 1 vp1 4 1 vp1 5 1 vp1 6 1 vp1 7 1 vp1 8 1 vp1 9 1 vp1 10 1 vp1 11 1 vp1 12 1 vp1 12 2 vp1 12 3 vp1 12 4 vp1 12 5 vp1 12 6 vp1 12 7 vp2 1 0 vp2 1 1 vp2 2 0 vp2 2 1 vp2 3 0 vp2 3 1 vp2 4 0 vp2 4 1 vp2 5 0 vp2 5 1 vp2 6 0 vp2 6 1 vp2 7 0 vp2 7 1 vp2 8 0 vp2 8 1 vp2 9 0 vp2 9 1 vp2 10 0 vp2 10 1 vp2 11 0 vp2 11 1 vp2 12 0 vp2 12 1 ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? vp1 1 0 vp1 2 0 vp1 3 0 vp1 4 0 vp1 5 0 vp1 6 0 vp1 7 0 vp1 8 0 vp1 9 0 vp1 10 0 vp1 11 0 vp1 12 0 vp2 13 0 vp2 13 1 vp2 14 0 vp2 14 1 vp2 15 0 vp2 15 1 vp2 16 0 vp2 16 1 vp1 14 2 vp1 14 3 vp1 14 4 vp1 14 5 vp1 14 6 vp1 14 7 vp1 15 2 vp1 15 3 vp1 15 4 vp1 15 5 vp1 15 6 vp1 15 7 vp1 16 2 vp1 16 3 vp1 16 4 vp1 16 5 vp1 16 6 vp1 16 7 vp1 14 0 vp1 15 0 vp1 16 0 vp1 14 1 vp1 15 1 vp1 16 1 vp1 13 1 vp1 13 2 vp1 13 3 vp1 13 4 vp1 13 5 vp1 13 6 vp1 13 7 vp1 13 0 142 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37280MFCxxxsp, m37280mkCxxxsp m37280eksp mitsubishi microcomputers preliminary notice: this is not a final specification. some paramentic limits are subject to change. rev. 1.0 n sfr2 area (addresses 240 16 to 258 16 ) 250 16 251 16 252 16 253 16 254 16 255 16 256 16 257 16 258 16 240 16 241 16 242 16 243 16 244 16 245 16 246 16 247 16 248 16 249 16 24b 16 24c 16 24d 16 24e 16 24f 16 24a 16 : fix to this bit to ?? (do not write to ?? : bit allocation state immediately after reset function bit : no function bit : fix to this bit to ?? (do not write to ?? name : : ??immediately after reset : indeterminate immediately after reset 0 1 ? : ??immediately after reset 1 0 address registe r bit allocation state immediately after reset color pallet register 1 (cr1) color pallet register 2 (cr2) color pallet register 3 (cr3) color pallet register 4 (cr4) color pallet register 5 (cr5) color pallet register 6 (cr6) color pallet register 7 (cr7) color pallet register 9 (cr9) color pallet register10 (cr10) color pallet register 11 (cr11) color pallet register 12 (cr12) color pallet register 13 (cr13) color pallet register 14 (cr14) color pallet register 15 (cr15) left border control register 1 (lb1) left border control register 2 (lb2) right border control register 1 (rb1) right border control register 2 (rb2) sprite vertical position register 1 (vs1) sprite vertical position register 2 (vs2) sprite osd control register (sc) sprite horizontal position register 1 (hs1) sprite horizontal position register 2 (hs2) b7 b0 b7 b0 ? ? ? cr 1 2 cr 1 3 cr 1 4 cr 1 5 cr 1 6 cr 2 2 cr 2 3 cr 2 4 cr 2 5 cr 2 6 cr 3 2 cr 3 3 cr 3 4 cr 3 5 cr 3 6 cr 4 2 cr 4 3 cr 4 4 cr 4 5 cr 4 6 cr 5 2 cr 5 3 cr 5 4 cr 5 5 cr 5 6 cr 6 2 cr 6 3 cr 6 4 cr 6 5 cr 6 6 cr 7 2 cr 7 3 cr 7 4 cr 7 5 cr 7 6 cr 9 2 cr 9 3 cr 9 4 cr 9 5 cr 9 6 cr 10 2 cr 10 3 cr 10 4 cr 10 5 cr 10 6 cr 11 2 cr 11 3 cr 11 4 cr 11 5 cr 11 6 cr 1 1 cr 2 1 cr 3 1 cr 4 1 cr 5 1 cr 6 1 cr 7 1 cr 9 1 cr 10 1 cr 11 1 cr 12 1 cr 12 2 cr 12 3 cr 12 4 cr 12 5 cr 12 6 lb10 lb11 vs10 vs11 vs20 vs21 hs10 hs11 hs20 hs21 sc0 sc1 ? ? ? ? ? ? ? ? ? ? ? ? 07 16 ff 16 ? 00 16 00 16 cr 1 0 cr 2 0 cr 3 0 cr 4 0 cr 5 0 cr 6 0 cr 7 0 cr 9 0 cr 10 0 cr 11 0 cr 12 0 cr 14 2 cr 14 3 cr 14 4 cr 14 5 cr 14 6 cr 15 2 cr 15 3 cr 15 4 cr 15 5 cr 15 6 cr 14 0 cr 15 0 cr 14 1 cr 15 1 cr 13 1 cr 13 2 cr 13 3 cr 13 4 cr 13 5 cr 13 6 cr 13 0 lb12 lb13 lb14 lb15 lb16 lb17 lb20 lb21 lb22 rb10 rb11 rb12 rb13 rb14 rb15 rb16 rb17 rb20 rb21 rb22 vs12 vs13 vs14 vs15 vs16 vs17 hs12 hs13 hs14 hs15 hs16 hs17 hs22 sc2 sc3 sc4 sc5 ? 00 16 01 16 ? ? ? ? 0 0 0 0 0 143 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37280MFCxxxsp, m37280mkCxxxsp m37280eksp mitsubishi microcomputers preliminary notice: this is not a final specification. some paramentic limits are subject to change. rev. 1.0 internal state of processor status register and program counter at reset b7 b0 b7 b0 1 register processor status register (ps) bit allocation state immediately after reset program counter (pc h ) program counter (pc l ) contents of address ffff 16 contents of address fffe 16 i zc d b t v n?? ? ? ? ? ? : fix to this bit to 0 (do not write to 1) : bit allocation state immediately after reset function bit : no function bit : fix to this bit to 1 (do not write to 0) name : : 0 immediately after reset : indeterminate immediately after reset 0 1 ? : 1 immediately after reset 1 0 144 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37280MFCxxxsp, m37280mkCxxxsp m37280eksp mitsubishi microcomputers preliminary notice: this is not a final specification. some paramentic limits are subject to change. rev. 1.0 structure of register the figure of each register structure describes its functions, contents at reset, and attributes as follows: values immediately after reset release bit attributes (note 1) (note 2) bits 2: bit attributes??????the attributes of control register bits are classified into 3 types : read-only, write-only and read and write. in the figure, these attributes are represented as follows : : bit in which nothing is assigned notes 1: values immediately after reset release 0 ??????????????????0 after reset release 1 ??????????????????1 after reset release indeterminate???indeterminate after reset release ??????read enabled ??????read disabled r C r??????read ??????write enabled ??????write disabled ??????0 can be set by software, but 1 cannot be set. w??????write w C ] b7 b6 b5 b4 b3 b2 b1 b0 b after reset rw cpu mode register 0, 1 2 3, 4 0 1 name functions processor mode bits (cm0, cm1) 0 0: single-chip mode 0 1: 1 0: not available 1 1: fix these bits to 1. 0 stack page selection bit (see note) (cm2) 1 b1 b0 0: 0 page 1: 1 page 10 0 51 nothing is assigned. this bit is write disable bit. when this bit is read out, the value is 0. 6, 7 0 clock switch bits (cm6, cm7) 0 0: f(x in ) = 8 mhz 0 1: f(x in ) = 12 mhz 1 0: f(x in ) = 16 mhz 1 1: do not set b7 b6 cpu mode register (cpum) (cm) [address 00fb 16 ] rw rw rw rw rw 145 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37280MFCxxxsp, m37280mkCxxxsp m37280eksp mitsubishi microcomputers preliminary notice: this is not a final specification. some paramentic limits are subject to change. rev. 1.0 address 00c1 16 , 00c3 16 , 00c5 16 address 00c7 16 b7 b6 b5 b4 b3 b2 b1 b0 port pi direction register (di) (i=0,1,2) [addresses 00c1 16, 00c3 16 , 00c5 16 ] b name functions after reset r w port pi direction register 0 0 : port pi 0 input mode 1 : port pi 0 output mode 0 1 0 : port pi 1 input mode 1 : port pi 1 output mode 0 2 0 : port pi 2 input mode 1 : port pi 2 output mode 0 3 0 : port pi 3 input mode 1 : port pi 3 output mode 0 4 0 : port pi 4 input mode 1 : port pi 4 output mode 0 5 0 : port pi 5 input mode 1 : port pi 5 output mode 0 6 0 : port pi 6 input mode 1 : port pi 6 output mode 0 7 0 : port pi 7 input mode 1 : port pi 7 output mode 0 port pi direction register rw rw rw rw rw rw rw rw b7 b6 b5 b4 b3 b2 b1 b0 port p3 direction register (d3) [address 00c7 16 ] b name functions after reset r w port p3 direction register 0 0 : port p3 0 input mode 1 : port p3 0 output mode 0 1 0 : port p3 1 input mode 1 : port p3 1 output mode 0 0 port p3 direction register nothing is assigned. these bits are write disable bits. when these bits are read out, the values are 0. rw rw r 2 to 5 6 refer to timer section. timer 3 count source selection bit (t3sc) 0rw 7 refer to clock control register (address 0216 16 ). ports p6 3 , p6 4 selection bits (p6im) 0rw 146 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37280MFCxxxsp, m37280mkCxxxsp m37280eksp mitsubishi microcomputers preliminary notice: this is not a final specification. some paramentic limits are subject to change. rev. 1.0 address 00c7 16 b7 b6 b5 b4 b3 b2 b1 b0 port p3 direction register (d4) [address 00c7 16 ] b name functions after reset rw port p4 direction register 00 1 to 4 0 : port p4 5 input mode 1 : port p4 5 output mode 0 0 fix this bit to 0 rw rw r 5 6 port p4 direction register 0rw 7 0rw nothing is assigned. these bits are write disable bits. when these bits are read out, the values are 0. 0 : port p4 6 input mode 1 : port p4 7 output mode nothing is assigned. this bit is write disable bit. when this bit is read out, the values is 0. address 00cb 16 b7 b6 b5 b4 b3 b2 b1 b0 osd port control register (pf) [address 00cb 16 ] b name functions after reset r w osd port control register 00 r w fix this bit to ? 00 2 0 : r signal output 1 : port p5 2 output 0 r w 3 port p5 3 output signal selection bit (g) 0 : g signal output 1 : port p5 3 output 0 r w 4 port p5 4 output signal selection bit (b) 0 : b signal output 1 : port p5 4 output 0 r w 5 port p5 5 output signal selection bit (out1) 0 : out1 signal output 1 : port p5 5 output 0 r w 6 port p1 0 output signal selection bit (out2) 0 : port p1 0 signal output 1 : out2 output 0 r w port p5 2 output signal selection bit (r) 70 r w fix this bit to ? 1 0 : 4-adjustment-level analog is output from pins r, g, b. 1 : value which is converted from 4-adjustment-level analog to 2-bit digital is output as below: high-order: from r1, g1, b1 low-order: from r0, g0, b0 0 r w r, g, b output method selection bit (rgb2bit) 147 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37280MFCxxxsp, m37280mkCxxxsp m37280eksp mitsubishi microcomputers preliminary notice: this is not a final specification. some paramentic limits are subject to change. rev. 1.0 address 00ce 16 0 : color signal of character background part does not flash 1 : color signal of character background part flashes b7 b6 b5 b4 b3 b2 b1 b0 osd control register 1 (oc1) [address 00ce 16 ] b name functions after reset r w osd control register 1 0 osd control bit (oc10) (see note 1) 0 : all-blocks display off 1 : all-blocks display on 0 1 scan mode selection bit ( oc11 ) 0 : normal scan mode 1 : bi-scan mode 0 2 0 : all bordered 1 : shadow bordered (see note 2) 0 0 4 automatic solid space control bit (oc14) 0 border type selection bit ( oc12 ) rw rw rw r w rw 3 flash mode selection bit ( oc13 ) 6, 7 0 0: logic sum (or) of layer 1? color and layer 2? color 0 1: layer 1? color has priority 1 0: layer 2? color has priority 1 1: do not set. layer mixing control bits (oc16, oc17) ( see note 3 ) b7 b6 0 : off 1 : on 0rw 5 vertical window/blank control bit (oc15) 0rw 0 : off 1 : on notes 1 : even this bit is switched during display, the display screen remains unchanged until a rising (falling) of the next v sync . 2: shadow border is output at right and bottom side of the font. 3: out2 is always ored, regardless of values of these bits. address 00cf 16 b7 b6 b5 b4 b3 b2 b1 b0 horizontal position register (hp) [address 00cf 16 ] b name functions after reset rw horizontal position registe r control bits of horizontal display start positions (hp0 to hp7) horizontal display start positions 4t osc 5 ( setting value of high-order 4 bits 5 16 1 + setting value of low-order 4 bits 5 16 0 ) 0rw 0 to 7 notes 1. the setting value synchronizes with the v sync . 2. t osc = osd oscillation period. 148 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37280MFCxxxsp, m37280mkCxxxsp m37280eksp mitsubishi microcomputers preliminary notice: this is not a final specification. some paramentic limits are subject to change. rev. 1.0 address 00d0 16 to 00df 16 b 7 b 6 b 5 b 4 b 3 b 2 b1 b 0 block control register i (bci) (i=1 to 16) [addresses 00d0 16 to 00df 16 ] block control register i 0, 1 display mode selection bits (bci0, bci1) indeterminate 3, 4 dot size selection bits (bci3, bci4) 5, 6 pre-divide ratio selection bit (bci5, bci6) 7 b1 b0 functions 0 0 display off 0 1 osd mode 1 0 cc mode 1 1 cdosd mode b name function s after reset r w r w indeterminate r w indeterminate r w indeterminate r notes 1: tc : osd clock cycle divided in pre-divide circuit 2: h : h sync 3: this character size is available only in layer 2. at this time, set layer 1? pre-divide ratio = 5 2, layer 1? horizontal dot size = 1tc. b6 b5 b4 b3 pre-divide dot size ratio 0 0 1 1 0 0 1 1 0 0 0 0 1 1 0 1 1 1 5 1 5 2 5 3 1tc 5 1/2h 1tc 5 1h 2tc 5 2h 3tc 5 3h 1tc 5 1/2h 1tc 5 1h 2tc 5 2h 3tc 5 3h 1.5tc 5 1/2h (see note 3) 1.5tc 5 1h (see note 3) 1tc 5 1/2h 1tc 5 1h 2tc 5 2h 3tc 5 3h 0 0 1 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 nothing is assigned. this bit is a write disable bit. when this bit is read out, the value is indeterminate. 2 border control bit (bci2) 0 : border off 1 : border on indeterminate r w 149 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37280MFCxxxsp, m37280mkCxxxsp m37280eksp mitsubishi microcomputers preliminary notice: this is not a final specification. some paramentic limits are subject to change. rev. 1.0 address 00e0 16 b7 b6 b5 b4 b3 b2 b1 b0 data slicer control register 1(dsc1) [address 00e0 16 ] data slicer control register 1 00 rw 0rw 2 reference clock source selection bit (dsc12) 0: video signal 1: h sync signal 0r w 0rw 00 0: stopped 1: operating data slicer and timing signal generating circuit control bit (dsc10) fix these bits to ?. 3 to 7 000 1 0: f2 1: f1 selection bit of data slice reference voltage generating field (dsc11) definition of fields 1 (f1) and 2 (f2) h sep v sep f1: h sep v sep f2: b after reset r w name functions address 00e1 16 b7 b6 b5 b4 b3 b2 b1 b0 data slicer control register 2 (dsc2) [address 00e1 16 ] r w data slicer control register 2 0 indeterminate r 0r w indeterminate r indeterminate r 00 0: data is not latched yet and a clock-run-in is not determined. 1: data is latched and a clock-run-in is determined. caption data latch completion flag 1 (dsc20) fix this bit to ?. read-only test bit 3 0: f2 1: f1 field determination flag(dsc23) 4 0: method (1) 1: method (2) vertical synchronous signal (v sep ) generating method selection bit (dsc24) 0rw 5 0: match 1: mismatch v-pulse shape determination flag (dsc25) indeterminate r b after reset function s nam e definition of fields 1 (f1) and 2 (f2) h sep v sep f1: h sep v sep f2: 0r w indeterminate r fix this bit to ?. read-only test bit 6 7 1 2 150 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37280MFCxxxsp, m37280mkCxxxsp m37280eksp mitsubishi microcomputers preliminary notice: this is not a final specification. some paramentic limits are subject to change. rev. 1.0 address 00e4 16 b7 b6 b5 b4 b3 b2 b1 b0 clock run-in detect register (crd) [address 00ea 16 ] r w clock run-in detect register 0 to 2 0 r test bits 3 to 7 number of reference clocks to be counted in one clock run-in pulse period. clock run-in detection bit(crd3 to crd7) 0r read-only b after reset functions name address 00e6 16 address 00e9 16 b7 b6 b5 b4 b3 b2 b1 b0 caption position register (cps) [address 00e6 16 ] caption position registe r 0 to 4 0 rw 0r w caption position bits(cps0 to cps4) 6, 7 refer to the corresponding table (table 12.10.1). slice line mode specification bits (in 1 field) (cps6, cps7) 5 0: data is not latched yet and a clock-run-in is not determined. 1: data is latched and a clock-run-in is determined. caption data latch completion flag 2 (cps5) indeterminate r b after reset functions nam e rw b7 b6 b5 b4 b3 b2 b1 b0 sync pulse counter register (hc) [address 00e9 16 ] r w sync pulse counter registe r 0 to 4 indeterminate r 6, 7 0 r count value (hc0 to hc4) 5 0 r w count source (hc5) 0: h sync signal 1: composite sync signal b after rese t functions nam e nothing is assigned. these bits are write disable bits. when these bits are read out, the values are ?. 151 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37280MFCxxxsp, m37280mkCxxxsp m37280eksp mitsubishi microcomputers preliminary notice: this is not a final specification. some paramentic limits are subject to change. rev. 1.0 address 00ed 16 address 00eb 16 b7 b6 b5 b4 b3 b2 b1 b0 data clock position register (dps) [address 00eb 16 ] data clock position register 01 rw 3 data clock position set bits (dps3 to dps7) 1rw fix these bits to ?. 1,2 fix this bit to ?. 0rw 01 0 b after rese t function s name rw 4 to 7 0 b7 b6 b5 b4 b3 b2 b1 b0 bank control register (bk) [address 00ed 16 ] b name functions bank control register 0 to 3 6, 7 bank control bits (bk6, bk7) bank number is selected (bank 11 to 15) bank selection bits (bk0 to bk3) 4, 5 fix these bits to ?? after reset r w 0rw 0rw 0rw b6 bank rom address 1000 16 level access 0 5 10 11 not used used used read out from extra area (programmable) read out the data from area specified by the bank selection bits read out from extra area (data-dedicated) b7 0 0 152 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37280MFCxxxsp, m37280mkCxxxsp m37280eksp mitsubishi microcomputers preliminary notice: this is not a final specification. some paramentic limits are subject to change. rev. 1.0 address 00ef 16 a-d control register b7 b6 b5 b4 b3 b2 b1 b0 a-d control register (adcon) [address 00ef 16 ] b after reset rw 0 to 2 analog input pin selection bits (adin0 to adin2) name functions b2 b1 b0 0 0 0 : ad1 0 0 1 : ad2 0 1 0 : ad3 0 1 1 : ad4 1 0 0 : ad5 1 0 1 : ad6 1 1 0 : ad7 1 1 1 : ad8 4 v cc connection selection bit (advref) 0: off 1: on 0 0 6 nothing is assigned. this bit is a write disable bit. when this bit is read out, the value is indeterminate. rw rw r 3 a-d conversion completion bit (adstr) 0: conversion in progress 1: convertion completed 1 rw 7 fix this bit to ?. rw 00 indeterminate 5 fix this bit to ?. rw 0 0 153 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37280MFCxxxsp, m37280mkCxxxsp m37280eksp mitsubishi microcomputers preliminary notice: this is not a final specification. some paramentic limits are subject to change. rev. 1.0 address 00f4 16 b7 b6 b5 b4 b3 b2 b1 b0 timer mode register 1 (tm1) [address 00f4 16 ] b after reset w timer mode register 1 0 1 2 3 4 name functions timer 1 count source selection bit 1 (tm10) 0: f(x in )/16 or f(x cin )/16 (note) 1: count source selected by bit 5 of tm1 timer 2 count source selection bit 1 (tm11) 0: count source selected by bit 4 of tm1 1: external clock from tim2 pin timer 1 count stop bit (tm12) 0: count start 1: count stop timer 2 count stop bit (tm13) 0: count start 1: count stop timer 2 count source selection bit 2 (tm14) r 0 0 0 0 0 w r w r w r w r w r 0: f(x in )/16 or f(x cin )/16 (see note) 1: timer 1 overflow 5 timer 1 count source selection bit 2 (tm15) 0: f(x in )/4096 or f(x cin )/4096 (see note) 1: external clock from tim2 pin 0w r 6 timer 5 count source selection bit 2 (tm16) 0: timer 2 overflow 1: timer 4 overflow 0w r 7 timer 6 internal count source selection bit (tm17) 0w r 0: f(x in )/16 or f(x cin )/16 (see note) 1: timer 5 overflow note: either f(x in ) or f(x cin ) is selected by bit 7 of the cpu mode register. 154 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37280MFCxxxsp, m37280mkCxxxsp m37280eksp mitsubishi microcomputers preliminary notice: this is not a final specification. some paramentic limits are subject to change. rev. 1.0 address 00f5 16 b7 b6 b5 b4 b3 b2 b1 b0 timer mode register 2 (tm2) [address 00f5 16 ] b after reset rw timer mode register 2 0 name functions timer 3 count source selection bit (tm20) 0 rw 1, 4 timer 4 count source selection bits (tm21, tm24) 0 rw 2 3 0 timer 3 count stop bit (tm22) 0: count start 1: count stop timer 4 count stop bit (tm23) 0: count start 1: count stop 0 0 5 timer 5 count stop bit (tm25) 0: count start 1: count stop 0 6 timer 6 count stop bit (tm26) 0: count start 1: count stop 0 rw rw rw rw r w 7 timer 5 count source selection bit 1 (tm27) 0: f(x in )/16 or f(x cin )/16 (see note) 1: count source selected by bit 6 of tm1 b0 0 0 : f(x in )/16 or f(x cin )/16 (see note) 1 0 : f(x cin ) 01: 11 : (b6 at address 00c7 16 ) external clock from tim3 pin b4 b1 0 0 : timer 3 overflow signal 0 1 : f(x in )/16 or f(x cin )/16 (see note) 1 0 : f(x in )/2 or f(x cin )/2 (see note) 1 1 : f(x cin ) note: either f(x in ) or f(x cin ) is selected by bit 7 of the cpu mode register. 155 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37280MFCxxxsp, m37280mkCxxxsp m37280eksp mitsubishi microcomputers preliminary notice: this is not a final specification. some paramentic limits are subject to change. rev. 1.0 address 00f6 16 b7 b6 b5 b4 b3 b2 b1 b0 i 2 c data shift register 1 (s0) [address 00f6 16 ] b functions after reset rw i c data shift register 0 to 7 this is an 8-bit shift register to store receive data and write transmit data. indeterminate 2 note: 2 to write data into the i c data shift register after setting the mst bit to ??(slave mode), keep an interval of 8 machine cycles or more. nam e d0 to d7 rw address 00f7 16 b7 b6 b5 b4 b3 b2 b1 b0 0 read/write bit (rbw) 1 to 7 slave address (sad0 to sad6) 0: read 1: write 0 0 the address data transmitted from the master is compared with the contents of these bits. i 2 c address register i 2 c address register (s0d) [address 00f7 16 ] b name functions after reset r w r r w 156 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37280MFCxxxsp, m37280mkCxxxsp m37280eksp mitsubishi microcomputers preliminary notice: this is not a final specification. some paramentic limits are subject to change. rev. 1.0 address 00f8 16 b7 b6 b5 b4 b3 b2 b1 b0 i 2 c status register (s1) [address 00f8 16 ] i 2 c status register 0 3 4 5 6, 7 b7 b6 0 0 : slave recieve mode 0 1 : slave transmit mode 1 0 : master recieve mode 1 1 : master transmit mode 1 2 0 0 0 0 0 b name function s after reset r w communication mode specification bits (trx, mst) 0 : bus free 1 : bus busy bus busy flag (bb) 0 : interrupt request issued 1 : no interrupt request issued i 2 c-bus interface interrupt request bit (pin) 0 : not detected 1 : detected arbitration lost detecting flag (al) (see note) 0 : address match 1 : address mismatch slave address comparison flag (aas) (see note) 0 : no general call detected 1 : general call detected general call detecting flag (ad0) (see note) 0 : last bit = ? 1 : last bit = ? last receive bit (lrb) (see note) note : these bits and flags can be read out, but cannnot be written. indeterminate r r r r rw r w 0 r w (see note) (see note) (see note) (see note) address 00f9 16 b7 b6 b5 b4 b3 b2 b1 b0 0 to 2 bit counter (number of transmit/recieve bits) (bc0 to bc2) b2 b1 b0 0 0 0: 8 0 0 1: 7 0 1 0: 6 0 1 1: 5 1 0 0: 4 1 0 1: 3 1 1 0: 2 1 1 1: 1 3i 2 c-bus interface use enable bit (eso) 0: disabled 1: enabled 4 data format selection bit(als) 0: addressing format 1: free data format 5 addressing format selection bit (10bit sad) 0: 7-bit addressing format 1: 10-bit addressing format 6, 7 connection control bits between i c-bus interface and ports (bsel0, bsel1) b7 b6 connection port (see note) 0 0: none 0 1: scl1, sda1 1 0: scl2, sda2 1 1: scl1, sda1, scl2, sda2 0 0 0 0 0 i 2 c control register (s1d) [address 00f9 16 ] i 2 c control register b name function s after reset r w 2 r w r w r w r w r w 157 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37280MFCxxxsp, m37280mkCxxxsp m37280eksp mitsubishi microcomputers preliminary notice: this is not a final specification. some paramentic limits are subject to change. rev. 1.0 address 00fa 16 b7 b6 b5 b4 b3 b2 b1 b0 i 2 c clock control register (s2) [address 00fa 16 ] i 2 c clock control register 0 to 4 scl frequency control bits (ccr0 to ccr4) 7 5 6 scl mode specification bit (fast mode) 0: standard clock mode 1: high-speed clock mode 0 standard clock mode b name function s after reset r w 0 0 0 ack bit (ack bit) ack clock bit (ack) 0: ack is returned. 1: ack is not returned. 0: no ack clock 1: ack clock high speed clock mode setup disabled setup disabled 00 to 02 setup disabled 333 03 setup disabled 250 04 100 400 (see note) 05 83.3 166 06 500/ccr value 1000/ccr value ... 17.2 34.5 1d 16.6 33.3 1e 16.1 32.3 1f (at f = 4 mhz, unit : khz) note: at 400 khz in the high-speed clock mode, the duty is as below . ??period : ??period = 3 : 2 in the other cases, the duty is as below. ??period : ??period = 1 : 1 setup value of ccr4?cr0 r w r w r w r w address 00fb 16 cpu mode register b 7 b 6 b 5 b 4 b 3 b2 b1 b 0 b after reset r w 0, 1 2 3, 4 0 1 nam e function s processor mode bits (c m 0, c m1 ) 0 0: single-chip mode 0 1: 1 0: not available 1 1: fix these bits to ?.? 1 stack page selection b it (c m2 ) (see n o t e) 1 b1 b0 0: 0 page 1: 1 p age 1 0 0 5 1 6 0 main clock (x in ? out ) stop bit (cm6) cpu mode register (cm) [address 00fb 16 ] r w r w r w r w r w x cout drivability se l ec ti o n b it (c m 5) 0: low drive 1: hi g h d riv e 0: oscillating 1: stopped 7 0 internal system clock selection bit (cm7) r w 0: x in ? out selected (high-speed mode) 1: x cin ? cout selected (low-speed mode) note: this bit is set to ??after the reset release. 158 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37280MFCxxxsp, m37280mkCxxxsp m37280eksp mitsubishi microcomputers preliminary notice: this is not a final specification. some paramentic limits are subject to change. rev. 1.0 address 00fc 16 b7 b6 b5 b4 b3 b2 b1 b0 interrupt request register 1 (ireq1) [address 00fc b name functions after reset rw interrupt request register 1 0 0 : no interrupt request issued 1 : interrupt request issued timer 1 interrupt re q uest bit ( tm1r ) 1 timer 2 interrupt re q uest bit ( tm2r ) 2 timer 3 interrupt re q uest bit ( tm3r ) 3 timer 4 interrupt re q uest bit ( tm4r ) 4 osd interrupt request bit ( osdr ) 5 v sync interrupt re q uest bit ( vscr ) 6 a-d conversion ?int3 interrupt request bit (adr) 7 0 : no interrupt request issued 1 : interrupt request issued 0 : no interrupt request issued 1 : interrupt request issued 0 : no interrupt request issued 1 : interrupt request issued 0 : no interrupt request issued 1 : interrupt request issued 0 : no interrupt request issued 1 : interrupt request issued 0 : no interrupt request issued 1 : interrupt request issued 0 0 ] 0 ] 0 ] 0 ] 0 ] 0 ] 0 ] ] : ??can be set by software, but ??cannot be set. 16 ] r r r r r r r r nothing is assigned. this bit is a write disable bit. when this bit is read out , the value is ?. 159 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37280MFCxxxsp, m37280mkCxxxsp m37280eksp mitsubishi microcomputers preliminary notice: this is not a final specification. some paramentic limits are subject to change. rev. 1.0 address 00fc 16 address 00fd 16 b7 b6 b5 b4 b3 b2 b1 b0 interrupt request register 1 (ireq1) [address 00fc b name functions after reset rw interrupt request register 1 0 0 : no interrupt request issued 1 : interrupt request issued timer 1 interrupt re q uest bit ( tm1r ) 1 timer 2 interrupt re q uest bit ( tm2r ) 2 timer 3 interrupt re q uest bit ( tm3r ) 3 timer 4 interrupt re q uest bit ( tm4r ) 4 osd interrupt request bit ( osdr ) 5 v sync interrupt re q uest bit ( vscr ) 6 a-d conversion ?int3 interrupt request bit (adr) 7 0 : no interrupt request issued 1 : interrupt request issued 0 : no interrupt request issued 1 : interrupt request issued 0 : no interrupt request issued 1 : interrupt request issued 0 : no interrupt request issued 1 : interrupt request issued 0 : no interrupt request issued 1 : interrupt request issued 0 : no interrupt request issued 1 : interrupt request issued 0 0 ] 0 ] 0 ] 0 ] 0 ] 0 ] 0 ] ] : ??can be set by software, but ??cannot be set. 16 ] r r r r r r r r nothing is assigned. this bit is a write disable bit. when this bit is read out , the value is ?. b7 b 6 b5 b4 b3 b2 b1 b0 interrupt request register 2 (ireq2) [address 00fd b name functions after reset rw interrupt request register 2 0 int1 interrupt re q uest bit ( in1r ) 0 : no interrupt request issued 1 : interrupt request issued 1 data slicer interrupt re q uest bit ( dsr ) 2 serial i/o interrupt re q uest bit ( sior ) 3 4 int2 interrupt re q uest bit ( in2r ) 5 7 fix this bit to ?.? 0 0 : no interrupt request issued 1 : interrupt request issued 0 : no interrupt request issued 1 : interrupt request issued 0 ] : ??can be set by software, but ??cannot be set. 0 0 ] 0 0 ] 0 ] 0 ] 0 : no interrupt request issued 1 : interrupt request issued 16 ] r r r r ] r r ] r w f(x in )/4096 ?sprite osd interrupt request bit (ckr) 0 : no interrupt request issued 1 : interrupt request issued multi-master i 2 c-bus interrupt request bit (iicr) 0 : no interrupt request issued 1 : interrupt request issued 6 timer 5 ?6 interrupt re q uest bit ( tm56r ) 0 : no interrupt request issued 1 : interrupt request issued 0 ] r 160 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37280MFCxxxsp, m37280mkCxxxsp m37280eksp mitsubishi microcomputers preliminary notice: this is not a final specification. some paramentic limits are subject to change. rev. 1.0 address 00fe 16 address 00ff 16 b7 b6 b5 b4 b3 b2 b1 b0 interrupt control register 1 (icon1) [address 00fe 16 ] b name functions after reset rw interrupt control register 1 0 timer 1 interrupt enable bit ( tm1e ) 0 : interrupt disabled 1 : interrupt enabled 1 timer 2 interrupt enable bit ( tm2e ) 2 timer 3 interrupt enable bit ( tm3e ) 3 4 osd interrupt enable bit ( osde ) 0 : interrupt disabled 1 : interrupt enabled 0 : interrupt disabled 1 : interrupt enabled 0 : interrupt disabled 1 : interrupt enabled 0 0 0 0 0 0 rw rw rw rw rw r 7 nothing is assigned. this bit is a write disable bit. when this bit is read out , the value is ?. timer 4 interrupt enable bit ( tm4e ) 0 : interrupt disabled 1 : interrupt enabled 5 v sync interrupt enable bit ( vsce ) 0 : interrupt disabled 1 : interrupt enabled 0rw 6 a-d conversion ?int3 interrupt enable bit (ade) 0 : interrupt disabled 1 : interrupt enabled 0rw b7 b6 b5 b4 b3 b2 b1 b0 interrupt control register 2 (icon2) [address 00ff 16 ] b name functions after reset rw interrupt control register 2 0 int1 interrupt enable bit ( in1e ) 0 : interrupt disabled 1 : interrupt enabled 1 data slicer interrupt enable bit ( dse ) 2 serial i/o interrupt enable bit ( sioe ) 3 4 int2 interrupt enable bit ( in2e ) 0 : interrupt disabled 1 : interrupt enabled 0 : interrupt disabled 1 : interrupt enabled 0 : interrupt disabled 1 : interrupt enabled 0 0 0 0 0 rw rw rw rw rw f(x in )/4096 ?sprite osd interrupt enable bit (cke) 0 : interrupt disabled 1 : interrupt enabled 5 multi-master i 2 c-bus interface interrupt enable bit (iice) 0 : interrupt disabled 1 : interrupt enabled 0rw 6 timer 5 ?6 interrupt enable bit ( tm56e ) 0 : interrupt disabled 1 : interrupt enabled 0rw 7 timer 5 ?6 interrupt switch bit ( tm56s ) 0 : timer 5 1 : timer 6 0rw 161 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37280MFCxxxsp, m37280mkCxxxsp m37280eksp mitsubishi microcomputers preliminary notice: this is not a final specification. some paramentic limits are subject to change. rev. 1.0 address 020a 16 address 020b 16 b 7 b 6 b 5 b 4 b 3 b 2 b1 b 0 pwm mode register 1 (pn) [address 020a 16 ] b after reset r w pwm mode re g ister 1 0 1, 2 0 nam e function s nothing is assigned. these bits are write disable bits. wh e n t h ese b i ts a r e r ead out, t h e v a l ues a r e 0 .? r r pwm counts source se l ect i o n b i t ( pn 0) 0 : count source supply 1 : cou n t sou r ce sto p 3 pwm output polarity se l ect i o n b i t ( pn 3) 0 0 : positive polarity 1 : n egat iv e p o l a ri ty r w 4 p0 3 /pwm7 output selection bit (pn4) 0 0 : p0 3 output 1 : pwm7 output r w 0 w 5 to 7 nothing is assigned. these bits are write disable bits. wh e n t h ese b i ts a r e r ead out, t h e v a l ues a r e 0 .? r 0 b7 b6 b5 b4 b3 b2 b1 b0 pwm mode register 2 (pw) [address 020b 16 ] b after reset rw pwm mode re g ister 2 0 1 2 3 4 0 name functions p0 4 /pwm0 output se l ect i o n b i t ( pw 0) 0 : p0 4 output 1 : pwm 0 out p ut p0 6 /pwm2 output se l ect i o n b i t ( pw2 ) 0 : p0 6 output 1 : pwm2 out p ut p0 7 /pwm3 output se l ect i o n b i t ( pw 3) 0 : p0 7 output 1 : pwm 3 out p ut p0 0 /pwm4 output se l ect i o n b i t ( pw4 ) 0 : p0 0 output 1 : pwm4 out p ut 5 p0 1 /pwm5 output se l ect i o n b i t ( pw 5) 0: p0 1 output 1: pwm 5 out p ut 7 p0 5 /pwm1 output se l ect i o n b i t ( pw1 ) 0 : p0 5 output 1 : pwm1 out p ut 0 0 0 0 0 0 rw rw rw rw rw rw rw 6 p0 2 /pwm6 output se l ect i o n b i t ( pw 6) 0: p0 2 output 1: pwm 6 out p ut 0 rw 0: p5 0 output 1: pwm7 out p ut p5 0 /pwm7 output se l ect i o n b i t ( pw7 ) 162 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37280MFCxxxsp, m37280mkCxxxsp m37280eksp mitsubishi microcomputers preliminary notice: this is not a final specification. some paramentic limits are subject to change. rev. 1.0 address 0210 16 address 0212 16 b7 b6 b5 b4 b3 b2 b1 b0 rom correction enable register (rcr) [address 0210 16 ] b after reset rw rom correction enable register 0 block 1 enable bit (rcr0) name functions 0: disabled 1: enabled 1 block 2 enable bit (rcr1) 0: disabled 1: enabled 4 to 7 nothing is assigned. these bits are write disable bits. when these bits are read out, the values are ?.? 0 0 0 rw rw r 0 0 2, 3 fix these bits to ?.? 0 rw b7 b6 b5 b4 b3 b2 b1 b0 interrupt input polarity register (ip) [address 0212 16 ] b nam e function s after reset r w interrupt input polarity register 0 0 to 2 nothing is assigned. these bits are write disable bits. when these bits are read out, the values are ?. r int1 polarity switch bit (pol1) 0 0 3 0 : positive polarity 1 : negative polarity 4 0 : positive polarity 1 : negative polarity 6 int2 polarity switch bit (pol2) int3 polarity switch bit (pol3) r w r w r w 0 : positive polarity 1 : negative polarity 0 0 : int3 interrupt 1 : a-d conversion interrupt 7 a-d conversion ?int3 interrupt source selection bit (ad/int3sel) r w 0 5 nothing is assigned. this bit is write disable bit. when this bit is read out, the value is ?. r 0 163 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37280MFCxxxsp, m37280mkCxxxsp m37280eksp mitsubishi microcomputers preliminary notice: this is not a final specification. some paramentic limits are subject to change. rev. 1.0 address 0213 16 b7 b6 b5 b4 b3 b2 b1 b0 serial i/o mode register (sm) [address 0213 16 ] b name functions after reset rw serial i/o mode register 0, 1 internal synchronous clock selection bits (sm0, sm1) b1 b0 0 0: f(x in )/8 or f(x cin )/8 0 1: f(x in )/16 or f(x cin )/16 1 0: f(x in )/32 or f(x cin )/32 1 1: f(x in )/64 or f(x cin )/64 2 synchronous clock selection bit (sm2) 3 port function selection bit (sm3) 6 5 transfer direction selection bit (sm5) 0: p1 1 , p1 3 1: scl1, sda1 0: external clock 1: internal clock 0: lsb first 1: msb first 0 0 0 0 0 0 rw rw rw r w rw rw 4 port function selection bit (sm4) 0: p1 2 , p1 4 1: scl2, sda2 7 nothing is assigned. this bit is a write disable bit. when this bit is read out, the value is ?. 0r s in pin switch bit (sm6) 0: p1 7 is s in pin. 1: p7 2 is s in pin. 164 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37280MFCxxxsp, m37280mkCxxxsp m37280eksp mitsubishi microcomputers preliminary notice: this is not a final specification. some paramentic limits are subject to change. rev. 1.0 address 0215 16 b7 b6 b5 b4 b3 b2 b1 b0 osd control register 2 (oc2) [address 0215 16 ] b name functions at reset r w osd control register 2 0, 1 0 r w 2 r, g, b signal output selection bit(oc22) 0rw 3 0rw 5 window/blank selection bit 1 ( horizontal ) ( oc25 ) 0r w solid space output bit ( oc23 ) 0: out1 output 1: out2 output 0: digital output 1: analog output (4 gradations) 4 0rw horizotal window/blank coutrol bit (oc24) 0: off 1: on b1 b0 layer 1 layer 2 0 0 cc, osd, cdosd 0 1 cc, osd cdosd 1 0 cc, cdosd osd 1 1 cc cdosd osd 0: horizontal blank function 1: horizontal window function 6 window/blank selection bit 2 ( vertical ) ( oc26 ) 0r w 0: vertical blank function 1: vertical window function 7 osd interrupt request selection bit ( oc27 ) 0r w 0: at completion of layer 1 block display 1: at completion of layer 2 block display display layer selection bits (oc20, oc21) note: when setting bit 1 of the osd port control register to 1, the value which is converted from the 4-adjustment-level analog to the 2-bit digital is output regardless of this bit value as follows : the high-order bit (r1, g1 and b1) is output from pins p5 2 , p5 3 and p5 4 , and the low-order bit is (r0, g0 and b0) output from pins p1 7 , p1 5 and p1 6 . and besides, when not using osd function, the low-power dissipation can realize by setting this bit to 0. ( see note ) 165 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37280MFCxxxsp, m37280mkCxxxsp m37280eksp mitsubishi microcomputers preliminary notice: this is not a final specification. some paramentic limits are subject to change. rev. 1.0 address 0216 16 address 0217 16 b7 b6 b5 b4 b3 b2 b1 b0 clock control register (cs) [address 0216 16 ] b name functions after reset r w clock control register 0 clock selection bit (cs0) 0 rw 1, 2 0: data slicer clock 1: osc1 clock 0 rw 70rw test bit (see note 2) osc1 oscillating mode selection bits (cs1, cs2) 0 0: 32khz oscillating mode. 0 1: used as input port of p6 3 and p6 4 (see note 1). 1 0: lc oscillating mode 1 1: ceramic ?quartz-crystal oscillating mode b2 b1 note 1: set bit 7 of address 00c7 16 to ?? when osc1 and osc2 are used as p6 3 and p6 4 . 2: be sure to set bit 7 to ??for program of the mask and the eprom versions. for the emulator mcu version (m37280erss), be sure to set bit 7 to ?? when using the data slicer clock for software debugging. 00 0 fix these bits to ?. 0 r w 3 to 6 0 b7 b6 b5 b4 b3 b2 b1 b0 i/o polarity control register (pc) [address 0217 16 ] b name functions after reset r w i/o polarity control registe r 0h sync input polarity switch bit (pc0) 0 : positive polarity input 1 : negative polarity input 0 1 0 : positive polarity input 1 : negative polarity input 0 2 r, g, b output polarity switch bit (pc2) 0 : positive polarity output 1 : negative polarity output 0 3 0 v sync input polarity switch bit (pc1) r w r w r w r note: refer to fig. 12.11.19. 0 : ? ?at even field ??at odd field 1 : ? ?at even field ??at odd field 4 out1 output polarity switch bit (pc4) 0 : positive polarity output 1 : negative polarity output 0 5 out2 output polarity switch bit (pc5) 0 : positive polarity output 1 : negative polarity output 0 6 display dot line selection bit (pc6) (see note) 0 7 field determination flag(pc7) 0 : even field 1 : odd field 1 r w r w r w r nothing is assigned. this bit is a write disable bit. when this bit is read out, the value is ?? 166 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37280MFCxxxsp, m37280mkCxxxsp m37280eksp mitsubishi microcomputers preliminary notice: this is not a final specification. some paramentic limits are subject to change. rev. 1.0 address 0218 16 address 0219 16 b7 b6 b5 b4 b3 b2 b1 b0 raster color register (rc) [address 0218 16 ] b name functions at reset r w raster color register 0, 1 raster color r control bits (rc0, rc1) 0rw 2, 3 0 r w 4, 5 0 r w 0w 6 70rw r raster color g control bits (rc2, rc3) 0 0: no output (see note) 0 1: 1/3 v cc 1 0: 2/3 v cc 1 1: v cc b0 b1 note: when selecting digital output, v cc is output at any other values except ?0. raster color b control bits (rc4, rc5) raster color out1 control bits (rc6) 0: no output 1: output 0 0: no output (see note) 0 1: 1/3 v cc 1 0: 2/3 v cc 1 1: v cc b3 b2 0 0: no output (see note) 0 1: 1/3 v cc 1 0: 2/3 v cc 1 1: v cc b5 b4 raster color out2 control bits (rc7) 0: no output 1: output b7 b6 b5 b4 b3 b2 b1 b0 osd control register 3 (oc3) [address 0219 16 ] b name functions after reset r w osd control register 3 0 cc mode character color selection bit (oc30) 0rw 1, 2 0: color code 0 to 7 1: color code 8 to 15 0rw 30rw 0 w 4 r cc mode character background color selection bits (oc31, oc32) (see note) 0 0: color code 0 to 3 0 1: color code 4 to 7 1 0: color code 8 to 11 1 1: color code 12 to 15 b1 b1 note: color pallet 8 is always selected for solid space (when out1 output is selected), regardress of value of this register. cdosd mode character color selection bit (oc33) 0: color code 0 to 7 1: color code 8 to 15 sprite color selection bit (oc34) 0: color code 0 to 7 1: color code 8 to 15 0w 5 r osd mode window control bit (oc35) 0: window off 1: window on 0 w 6 r cc mode window control bit (oc36) 0: window off 1: window on 0 w 7 r cdosd mode window control bit (oc37) 0: window off 1: window on 167 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37280MFCxxxsp, m37280mkCxxxsp m37280eksp mitsubishi microcomputers preliminary notice: this is not a final specification. some paramentic limits are subject to change. rev. 1.0 address 021c 16 address 021d 16 b7 b6 b5 b4 b3 b2 b1 b0 top border control register 1 (tb1) [address 021c 16 ] b name functions after reset rw top border control register 1 0 to 7 control bits of top border (tb10 to tb17) top border position (low-order 8 bits) t h 5 (setting value of low-order 2 bits of tb2 5 16 2 + setting value of high-order 4 bits of tb1 5 16 1 + setting value of low-order 4 bits of tb1 5 16 0 ) indeterminate rw notes 1: do not set ?0 16 ?or ?1 16 ?to the tb1 at tb2 = ?0 16 . 2: t h is cycle of h sync . 3: tb2 is top border control register 2. b7 b6 b5 b4 b3 b2 b1 b0 bottom border control register 1 (bb1) [address 021d 16 ] b name functions after reset r w bottom border control register 1 0 to 7 control bits of bottom border (bb10 to bb17) bottom border position (low-order 8 bits) t h 5 (setting value of low-order 2 bits of bb2 5 16 2 + setting value of high-order 4 bits of bb1 5 16 1 + setting value of low-order 4 bits of bb1 5 16 0 ) indeterminate rw notes 1: set values fit for the following condition: (tb1 + tb2 5 16 2 ) < (bb1 + bb2 5 16 2 ). 2: t h is cycle of h sync . 3: bb2 is bottom border control reigster 2. 168 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37280MFCxxxsp, m37280mkCxxxsp m37280eksp mitsubishi microcomputers preliminary notice: this is not a final specification. some paramentic limits are subject to change. rev. 1.0 address 021e 16 address 021f 16 b7 b6 b5 b4 b3 b2 b1 b0 top border control register 2 (tb2) [address 021e 16 ] b name functions after reset r w top border control register 2 0, 1 control bits of top border (tb20 ,tb21) top border position (high-order 2 bits) t h 5 (setting value of low-order 2 bits of tb2 5 16 2 + setting value of high-order 4 bits of tb1 5 16 1 + setting value of low-order 4 bits of tb1 5 16 0 ) indeterminate rw notes 1: do not set ?0 16 ?or ?1 16 ?to the tb1 at tb2 = ?0 16 . 2: t h is cycle of h sync . 3: tb1 is top border control register 1. nothing is assigned. these bits are write disable bits. when these bits are read out, the values are indeterminate. 2 to 7 indeterminate r b7 b6 b5 b4 b3 b2 b1 b0 bottom border control register 2 (bb2) [address 021f 16 ] b name functions after reset r w bottom border control register 2 0, 1 control bits of bottom border (bb20, bb21) bottom border position (high-order 2 bits) t h 5 (setting value of low-order 2 bits of bb2 5 16 2 + setting value of high-order 4 bits of bb1 5 16 1 + setting value of low-order 4 bits of bb1 5 16 0 ) indeterminate rw nothing is assigned. these bits are write disable bits. when these bits are read out, the values are indeterminate. indeterminate r 2 to 7 notes 1: set values fit for the following condition: (tb1 + tb2 5 16 2 ) < (bb1 + bb2 5 16 2 ). 2: t h is cycle of h sync . 3: bb1 is bottom border control reigster 1. 169 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37280MFCxxxsp, m37280mkCxxxsp m37280eksp mitsubishi microcomputers preliminary notice: this is not a final specification. some paramentic limits are subject to change. rev. 1.0 addresses 0220 16 to 022f 16 addresses 0230 16 to 023f 16 b7 b6 b5 b4 b3 b2 b1 b0 vertical position register 1i (vp1i) (i = 1 to 16) [addresses 0220 16 to 022f 16 ] b name functions after reset rw vertical position register 1i 0 to 7 control bits of vertical display start positions (vp1i0 to vp1i7) (see note 1) vertical display start positions (low-order 8 bits) t h 5 (setting value of low-order 2 bits of vp2i 5 16 2 + setting value of low-order 4 bits of vp1i 5 16 1 + setting value of low-order 4 bits of vp1i 5 16 0 ) indeterminate rw notes 1: do not ?0 16 ?and ?1 16 ?to vp1i at vp2i = ?0 16 . 2: t h is cycle of h sync . 3: vp2i is vertical position register 2i. b7 b6 b5 b4 b3 b2 b1 b0 vertical position register 2i (vp2i) (i = 1 to 16) [addresses 0230 16 to 023f 16 ] b name functions after reset r w vertical position register 2i 0, 1 control bits of vertical display start positions (vp2i0, vp2i1) (see note 1) vertical display start positions (high-order 2 bits) t h 5 (setting value of low-order 2 bits of vp2i 5 16 2 + setting value of low-order 4 bits of vp1i 5 16 1 + setting value of low-order 4 bits of vp1i 5 16 0 ) indeterminate rw nothing is assigned. these bits are write disable bits. when these bits are read out, the values are indeterminate. 2 to 7 indeterminate r notes 1: do not set ?0 16 ?and ?1 16 ?to vp1i at vp2i = ?0 16 . 2: t h is cycle of h sync . 3: vp1i is vertical position register 1i. 170 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37280MFCxxxsp, m37280mkCxxxsp m37280eksp mitsubishi microcomputers preliminary notice: this is not a final specification. some paramentic limits are subject to change. rev. 1.0 addresses 0241 16 to 0247 16 , 0249 16 to 024f 16 b7 b6 b5 b4 b3 b2 b1 b0 color pallet register i (cri) (i 1 to 7, 9 to15) [addresses 0241 16 to 0247 16, 0249 16 to 024f 16 ] color pallet register i 0, 1 r signal output control bits (cri0, cri1) indeterminate rw 2, 3 indeterminate rw 4, 5 indeterminate rw indeterminate w 6 7 indeterminate r r g signal output control bits (cri2, cri3) 0 0: no output (see note) 0 1: 1/3 v cc 1 0: 2/3 v cc 1 1: v cc b0 b1 note: when selecting digital output, the output is v cc at all values other than ?0. b signal output control bits (cri4, cri5) out1 signal output control bit (cri6) 0: no output 1: output 0 0: no output (see note) 0 1: 1/3 v cc 1 0: 2/3 v cc 1 1: v cc b3 b2 0 0: no output (see note) 0 1: 1/3 v cc 1 0: 2/3 v cc 1 1: v cc b5 b4 b name functions after reset r w nothing is assigned. this bit is a write disable bit. when this bit is read out, the value is indeterminate. 171 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37280MFCxxxsp, m37280mkCxxxsp m37280eksp mitsubishi microcomputers preliminary notice: this is not a final specification. some paramentic limits are subject to change. rev. 1.0 address 0250 16 address 0251 16 b7 b6 b5 b4 b3 b2 b1 b0 left border control register 1 (lb1) [address 0250 16 ] b name functions after reset rw left border control register 1 0 control bits of left border (lb10 to lb17) 1 rw 1 to 7 0 left border position (low-order 8 bits) t osc 5 (setting value of low-order 3 bits of lb2 5 16 2 + setting value of high-order 4 bits of lb1 5 16 1 + setting value of low-order 4 bits of lb1 5 16 0 ) notes 1: do not set lb1 = lb2 = 00 16 . 2: set values fit for the following condition: (lb1 + lb2 5 16 2 ) < (rb1 + rb2 5 16 2 ). 3: t osc is osd oscillation period. 4: lb2 is left border control register 2. b7 b6 b5 b4 b3 b2 b1 b0 left border control register 2 (lb2) [address 0251 16 ] b name functions after reset rw left border control register 2 control bits of left border (lb20 to lb22) 0 rw 0 to 2 0 left border position (high-order 3 bits) t osc 5 (setting value of low-order 3 bits of lb2 5 16 2 + setting value of high-order 4 bits of lb1 5 16 1 + setting value of low-order 4 bits of lb1 5 16 0 ) nothing is assigned. these bits are write disable bits. when these bits are read out, the values are indeterminate. 3 to 7 rw notes 1: do not set lb1 = lb2 = ?0 16 . 2: set values fit for the following condition: (lb1 + lb2 5 16 2 ) < (rb1 + rb2 5 16 2 ). 3: t osc is osd oscillation period. 4: lb1 is left border control register 1. 172 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37280MFCxxxsp, m37280mkCxxxsp m37280eksp mitsubishi microcomputers preliminary notice: this is not a final specification. some paramentic limits are subject to change. rev. 1.0 address 0252 16 address 0253 16 b7 b6 b5 b4 b3 b2 b1 b0 right border control register 1 (rb1) [address 0252 16 ] b name functions after reset rw right border control register 1 control bits of right border (rb10 to rb17) 1 rw 0 to 7 right border position (low-order 8 bits) t osc 5 (setting value of low-order 3 bits of rb2 5 16 2 + setting value of high-order 4 bits of rb1 5 16 1 + setting value of low-order 4 bits of rb1 5 16 0 ) notes 1: set values fit for the following condition: (lb1 + lb2 5 16 2 ) < (rb1 + rb2 5 16 2 ). 2: t osc is osd oscillation period. 3: rb2 is right border control register 2. b7 b6 b5 b4 b3 b2 b1 b0 right border control register 2 (rb2) [address 0253 16 ] b name functions after reset rw right border control register 2 control bits of right border (rb20 to rb22) 1 rw 0 to 2 0 right border position (high-order 3 bits) t osc 5 (setting value of low-order 3 bits of rb2 5 16 2 + setting value of high-order 4 bits of rb1 5 16 1 + setting value of low-order 4 bits of rb1 5 16 0 ) nothing is assigned. these bits are write disable bits. when these bits are read out, the values are ?? 3 to 7 rw notes 1: set values fit for the following condition: (lb1 + lb2 5 16 2 ) < (rb1 + rb2 5 16 2 ). 2: t osc is osd oscillation period. 3: rb1 is right border control register 1. 173 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37280MFCxxxsp, m37280mkCxxxsp m37280eksp mitsubishi microcomputers preliminary notice: this is not a final specification. some paramentic limits are subject to change. rev. 1.0 address 0254 16 address 0255 16 b7 b6 b5 b4 b3 b2 b1 b0 sprite vertical position register 1 (vs1) [address 0254 16 ] b name functions after reset rw sprite vertical position register 1 0 vertical display start position control bits of sprite osd (vs10 to vs17) 1 rw 1 to 7 0 vertical display start position (low-order 8 bits) t h 5 (setting value of low-order 2 bits of vs2 5 16 2 + setting value of high-order 4 bits of vs1 5 16 1 + setting value of low-order 4 bits of vs1 5 16 0 ) notes 1: do not set ?0 16 ?to the vs1 at vs2 = ?0 16 . 2: t h is cycle of h sync . 3: vs2 is sprite vertical position register 2. b7 b6 b5 b4 b3 b2 b1 b0 sprite vertical position register 2 (vs2) [address 0255 16 ] b name functions after reset rw sprite vertical position register 2 vertical start position control bits of sprite osd (vs20, vs21) 0 rw 0, 1 0 vertical display start position (high-order 2 bits) t h 5 (setting value of low-order 2 bits of vs2 5 16 2 + setting value of high-order 4 bits of vs1 5 16 1 + setting value of low-order 4 bits of vs1 5 16 0 ) nothing is assigned. these bits are write disable bits. when these bits are read out, the values are ?? 2 to 7 r notes 1: do not set ?0 16 ?to the vs1 at vs2 = ?0 16 . 2: t h is cycle of h sync . 3: vs1 is sprite vertical position register 1. 174 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37280MFCxxxsp, m37280mkCxxxsp m37280eksp mitsubishi microcomputers preliminary notice: this is not a final specification. some paramentic limits are subject to change. rev. 1.0 address 0256 16 address 0257 16 b7 b6 b5 b4 b3 b2 b1 b0 sprite horizontal position register 1 (hs1) [address 0256 16 ] b name functions after reset r w sprite horizontal position register 1 0 to 7 horizontal display start position control bits of sprite osd (hs10 tohs17) horizontal display start position (low-order 8 bits) t osc 5 (setting value of low-order 2 bits of hs2 5 16 2 + setting value of high-order 4 bits of hs1 5 16 1 + setting value of low-order 4 bits of hs1 5 16 0 ) indeterminate rw notes 1: do not set hs1 < ?0 16 ?at hs2 = ?0 16 . 2: t osc is osd oscillation period. 3: hs2 is sprite horizontal position register 2. b7 b6 b5 b4 b3 b2 b1 b0 sprite horizontal position register 2 (hs2) [address 0257 16 ] b name functions after reset rw sprite horizontal position register 2 0 to 2 horizontal display start position control bits of sprite osd (hs20 to hs22) horizontal display start position (high-order 3 bits) t osc 5 (setting value of low-order 2 bits of hs2 5 16 2 + setting value of high-order 4 bits of hs1 5 16 1 + setting value of low-order 4 bits of hs1 5 16 0 ) indeterminate rw notes 1: do not set hs1< ?0 16 ?at hs2 = ?0 16 . 2: t osc is oscillation period. 3: hs1 is sprite horizontal position register 1. nothing is assigned. these bits are write disable bits. when these bits are read out, the values are ?. 0r 3 to 7 175 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37280MFCxxxsp, m37280mkCxxxsp m37280eksp mitsubishi microcomputers preliminary notice: this is not a final specification. some paramentic limits are subject to change. rev. 1.0 address 0258 16 b7 b6 b5 b4 b3 b2 b1 b0 sprite osd control register (sc) [address 0258 16 ] b name functions after reset rw sprite osd control register 0 sprite osd control bit ( sc0 ) 0rw b3 b2 0 0: 1tc 5 1/2h 0 1: 1tc 5 1h 1 0: 2tc 5 1h 1 1: 2tc 5 2h 2, 3 dot size selection bits ( sc2, sc3 ) 0rw 4 interrupt occurrence position selection bit ( sc4 ) 0rw 5 0r 1 pre-divide ratio selection bit ( sc1 ) 0: pre-divide ratio 1 1: pre-divide ratio 2 0rw 0: stopped 1: operating 0: after display of horizontal 20 dots 1: after display of horizontal 10 dots or 20 dots notes 1: tc : pre-devided clock period for osd 2: h : h sync x in /4096 ? sprite interrupt source switch bit ( sc5 ) w 6, 7 0r nothing is assigned. this bit is a write disable bit. when this bit is read out, the value is 0. 0: x in /4096 interrupt 1: sprite osd interrupt 176 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37280MFCxxxsp, m37280mkCxxxsp m37280eksp mitsubishi microcomputers preliminary notice: this is not a final specification. some paramentic limits are subject to change. rev. 1.0 32. package outline 64 33 32 1 e c e 1 a 2 a 1 b b 1 b 2 e l a seating plane d sdip64-p-750-1.78 weight(g) C 7.9 jedec code eiaj package code lead material alloy 42 64p4b plastic 64pin 750mil sdip symbol min nom max a a 2 b b 1 b 2 c e d l dimension in millimeters a 1 0.38 C C C3.8C 0.4 0.5 0.6 0.9 1.0 1.3 0.65 0.75 1.05 0.2 0.25 0.32 56.2 56.4 56.6 16.85 17.0 17.15 C 1.778 C C 19.05 C 2.8 C C 0 e15 e e 5.08 e e 1 ? 1997 mitsubishi electric corp. new publication, effective july. 1998. specifications subject to change without notice. notes regarding these materials ? these materials are intended as a reference to assist our customers in the selection of the mitsubishi semiconductor product b est suited to the customers application; they do not convey any license under any intellectual property rights, or any other rights, belonging to mitsubishi electric corporation or a third party. ? mitsubishi electric corporation assumes no responsibility for any damage, or infringement of any third-partys rights, origina ting in the use of any product data, diagrams, charts or circuit application examples contained in these materials. ? all information contained in these materials, including product data, diagrams and charts, represent information on products a t the time of publication of these materials, and are subject to change by mitsubishi electric corporation without notice due to product improvements or other reasons. it is therefore recommended that customers co ntact mitsubishi electric corporation or an authorized mitsubishi semiconductor product distributor for the latest product information before purchasing a product listed herein. ? mitsubishi electric corporation semiconductors are not designed or manufactured for use in a device or system that is used und er circumstances in which human life is potentially at stake. please contact mitsubishi electric corporation or an authorized mitsubishi semiconductor product distributor when considering the use of a pro duct contained herein for any specific purposes, such as apparatus or systems for transportation, vehicular, medical, aerospace, nuclear, or undersea repeater use. ? the prior written approval of mitsubishi electric corporation is necessary to reprint or reproduce in whole or in part these m aterials. ? if these products or technologies are subject to the japanese export control restrictions, they must be exported under a licen se from the japanese government and cannot be imported into a country other than the approved destination. any diversion or reexport contrary to the export control laws and regulations of japan and/or the country of destination is pro hibited. ? please contact mitsubishi electric corporation or an authorized mitsubishi semiconductor product distributor for further detai ls on these materials or the products contained therein. keep safety first in your circuit designs ! ? mitsubishi electric corporation puts the maximum effort into making semiconductor products better and more reliable, but there is always the possibility that trouble may occur with them. trouble with semiconductors may lead to personal injury, fire or property damage. remember to give due consideration to safety when making y our circuit designs, with appropriate measures such as (i) placement of substitutive, auxiliary circuits, (ii) use of non-flammable material or (iii) prevention against any malfunction or mishap. single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37280MFCxxxsp, m37280mkCxxxsp m37280eksp mitsubishi microcomputers preliminary notice: this is not a final specification. some paramentic limits are subject to change. rev. 1.0 rev. rev. no. date 1.0 first edition 980731 M37280MFCxxxsp, m37280mkCxxxsp m37280eksp (1/1) revision description revision description list |
Price & Availability of M37280MF
![]() |
|
|
All Rights Reserved © IC-ON-LINE 2003 - 2022 |
[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy] |
Mirror Sites : [www.datasheet.hk]
[www.maxim4u.com] [www.ic-on-line.cn]
[www.ic-on-line.com] [www.ic-on-line.net]
[www.alldatasheet.com.cn]
[www.gdcy.com]
[www.gdcy.net] |