44 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37274EFSP preliminary notice: this is not a final specification. some paramentic limits are subject to change. mitsubishi microcomputers fig. 39. caption position register (6) 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. 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 line line specified by bits 4 to 0 of cp (main data slice line) line specified by bits 7 to 3 of dsc3 (sub-data slice line) dsc1 : data slice control register 1 dsc3 : data slice control register 3 cp : caption position register field field specified by bit 1 of dsc1 0: f2 1: f1 field specified by bit 1 of dsc3 0: f2 1: f1 bit 0 of dsc3 0 1 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 generated. comparator the comparator compares the voltage of the composite video signal with the voltage (reference voltage) generated in the reference voltage generating circuit, and converts the composite video signal into a digital value. b7 b6 b5 b4 b3 b2 b1 b0 caption position register (cp) [address 00e0 16 ] caption position register 0 to 4 0rw 0rw specification main data slice line (cp0 to cp4) 7 fix this bit to 0. 5, 6 fix these bits to 0. b after reset functionsname rw 100 0r w table 4. specifying of field whose sets reference voltage 1 2
45 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37274EFSP preliminary notice: this is not a final specification. some paramentic limits are subject to change. mitsubishi microcomputers 4 5 set value of the start bit position register 5 reference clock period < < time from the falling of the horizontal synchronizing signal to the last rising of the clock run-in fig. 40. start bit position register time from the faling of the horizontal synchronous signal to occurrence of the start bit (7) start bit detecting circuit this circuit detects a start bit at line decided in the data slice line specification circuit. for start bit detection, it is possible to select one of the following two types by using bit 1 of clock run-in register 2 (address 00e7 16 ). after the lapse of the time corresponding to the set value of the start bit position register (address 00e1 16 ), the first rising of the composite video signal is detected as a start bit. the time is set in bits 0 to 6 of the start bit position register (address 00e1 16 ) (refer to figure 40). set a value fit for the following conditions. figure 40 shows the structure of the start bit position register. b7 b6 b5 b4 b3 b2 b1 b0 start bit position register (sp) [address 00e1 16 ] start bit position register 0 to 6 0rw 0rw start bit generating time (sp0 to sp6) 7 dsc1 bit 7 control bit (sp7) b after reset functionsname rw 0 : generation of 16 pulses 1 : generation of 16 pulses and detection of clock run-in pulse (4 to 6 pulses) time from a falling of the horizontal synchronous signal to occurrence of a start bit = 4 5 set value (00 16 to 7f 16 ) 5 reference clock period 1
46 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37274EFSP preliminary notice: this is not a final specification. some paramentic limits are subject to change. mitsubishi microcomputers after a falling of the clock run-in pulse set in bits 2 to 0 of clock run- in detect register 2 (address 00e9 16 ) is detected, a start bit is detected by sampling a comparator output. a sampling clock for sampling is obtained by dividing the reference clock generated in the timing signal generating circuit by 13. fig. 41. clock run-in register 2 fig. 42. clock run-in detect register 2 figure 42 shows the structure of clock run-in detect register 2. the contents of bits 2 to 0 of clock run-in detect register 2 and bit 1 of clock run-in register 2 are written at a falling of the horizontal synchronous signal. for this reason, even if an instruction for setting is executed, the contents of the register cannot be rewritten until a falling of the horizontal synchronous signal. b7 b6 b5 b4 b3 b2 b1 b0 clock run-in register 2 (cr2) [address 00e7 16 ] clock run-in register 2 0rw 0rw 0, 2 to 4, 7 fix these bits to 1. b after reset functionsname rw 001 0rw 5, 6 fix these bits to 0. 1111 1 start bit detecting method selection bit (cr21) 0: method 1 1: method 2 b7 b6 b5 b4 b3 b2 b1 b0 clock run-in detect register 2 (crd2) [address 00e9 16 ] clock run-in detect register 2 b after reset functionsname rw 0rw 0 to 2 0r w clock run-in pulses for sampling (crd20 to crd22) 3 to 7 data clock generating time (crd23 to crd27) b2 b1 b0 0 0 0 : not available 0 0 1 : 1st pulse 0 1 0 : 2nd pulse 0 1 1 : 3rd pulse 1 0 0 : 4th pulse 1 0 1 : 5th pulse 1 1 0 : 6th pulse 1 1 1 : 7th pulse time from detection of a start bit to occurrence of a data clock = (13 + set value) 5 reference clock period 2
47 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37274EFSP preliminary notice: this is not a final specification. some paramentic limits are subject to change. mitsubishi microcomputers (8) clock run-in determination circuit this circuit sets a window in the clock run-in portion in the composite video signal, and then determinates clock run-in by counting the number of pulses in this window. set the time from a falling of the horizontal synchronizing signal to a start of the window by bits 0 to 5 of the window register (address 00e2 16 ; refer to figure 43). the window ends according to the contents of the setting of the start bit position register (refer to figure 40). fig. 43. window register b7 b6 b5 b4 b3 b2 b1 b0 window register (wn) [address 00e2 16 ] window register 0 to 5 0rw 0rw window start time (wn0 to wn5) 6, 7 fix these bits to 0. b after reset functionsname rw time from a falling of the horizontal synchronous signal to start of the window = 4 5 set value (00 16 to 3f 16 ) 5 reference clock period 00
48 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37274EFSP preliminary notice: this is not a final specification. some paramentic limits are subject to change. mitsubishi microcomputers for the main data slice line, the count value of pulses in the window is stored in clock run-in register 1 (address 00e6 16 ; refer to figure 44). for the sub-data slice line, the count value of pulses in the window is stored in clock run-in register (address 0209 16 ; refer to figure 45). when this count value is 4 to 6, it is determined as a clock run-in. accordingly, set the count value so that the window may start after the first pulse of the clock run-in (refer to figure 46). the contents to be set in the window register are written at a falling of the horizontal synchronous signal. for this reason, even if an instruction for setting is executed, the contents of the register cannot be rewritten until a falling of the horizontal synchronous signal. for the main data slice line, reference clock is counted in the period from a falling of the clock pulse set in bits 0 to 2 of clock run-in detect register 2 (address 00e9 16 ) to the next falling. the count value is stored in bits 3 to 7 of clock run-in detect register 1 (address 00e8 16 ) (when the count value exceeds 1f 16 , 1f 16 is held). for the sub- data slice line, the count value is stored in bits 3 to 7 of clock run-in detect register 3 (address 0208 16 ). read out these bits after the occurence of a data slicer interrupt (refer to (11) interrupt request generating circuit). figure 48 shows the structure of clock run-in detect registers 1 and 3. fig. 44. clock run-in register 1 b7 b6 b5 b4 b3 b2 b1 b0 clock run-in register 1 (cr1) [address 00e6 16 ] clock run-in register 1 0 to 3 0r w clock run-in count value of main-data slice line (cr10 to cr13) 0rw 4, 6 fix these bits to 1. b after reset functionsname rw 101 0rw 5, 7 fix these bits to 0. 0
49 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37274EFSP preliminary notice: this is not a final specification. some paramentic limits are subject to change. mitsubishi microcomputers fig. 47. clock run-in detect registers 1 and 3 fig. 46. window setting fig. 45. clock run-in register 3 ] when the count value in the window is 4 to 6, this is determined as a clock run-in. horizontal synchronous signal composite video signal window clock run-in start bit data + 16-bit data time to be set in the window register time to be set in the start bit position register b7 b6 b5 b4 b3 b2 b1 b0 clock run-in register 3 (cr3) [address 0209 16 ] b name functions after reset r w clock run-in register 3 0 to 3 0rw 4 r w indeterminate r w clock run-in count value of sub-data slice line (cr30 to cr33) 5 6 interrupt mode selection bit (cr36) indeterminate rw 0: data is not latched yet 1: data is latched data latch completion flag for caption data in sub- data slice line (cr34) data slice line selection bit for interrupt request (cr35) 0: main data slice line 1: sub- data slice line 0: interrupt occurs at end of data slice line 1: interrupt occurs at completion of caption data latch nothing is assigned. this bit is a write disable bit. when this bit is read out, the value is 0. 7 indeterminate indeterminate r b7 b6 b5 b4 b3 b2 b1 b0 clock run-in detect register i (crdi) (i=1, 3) [addresses 00e8 16 , 0208 16 ] clock run-in detect register i 0 to 2 0r w test bits 0r 3 to 7 clock run-in detection bits (crdi3 to crdi7) b after reset functionsname rw read-only number of reference clock s to be counted one clock run- in pulse period
50 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37274EFSP preliminary notice: this is not a final specification. some paramentic limits are subject to change. mitsubishi microcomputers conditions for setting bit 4 of dsc3 to 1 data clock of 16 pulses has occured in sub-data slaice line data clock of 16 pulses has occured in sub-data slaice line and clock run-in pulse are detected 4 to 6 times (10) 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. for the main data slice line, the contents of the high-order 8 bits of the stored caption data and the contents of the low-order 8 bits of the same data can be obtained by reading out data register 2 (address 00e5 16 ) and data register 1 (address 00e4 16 ), respectively. for the sub-data slice line, the contents of the high-order 8 bits and the contents of the low-order 8 bits can be obtained by reading out the data register 4 (address 00ed 16 ) and data register 3 (address 00ec 16 ), respectively. these registers are reset to 0 at a falling of v sep . read out data registers 1 and 2 after the occurence of a data slicer interrupt (refer to (11) interrupt request generating circuit). (11) interrupt request generating circuit the interrupt requests as shown in table 6 are generated by combination of the following bits; bits 5 and 6 of the clock run-in register 3 (address 0209 16 ), bit 1 of the clock run-in register 2 (address 00e7 16 ). read out the contents of data registers 1 to 4 and the contents of bits 3 to 7 of clock run-in detect registers 1 and 3 after the occurence of a data slicer interrupt request. table 5. setting conditions for caption data latch completion flag bit 7 of sp 0 1 conditions for setting bit 7 of dsc1 to 1 data clock of 16 pulses has occured in main data slaice line data clock of 16 pulses has occured in main data slaice line and clock run-in pulse are detected 4 to 6 times slice line main data slice line sub-data slice line b5 0 1 sources at end of data slice line data clock of 16 pulses has occured and clock run-in pulse are detected 4 to 6 times data clock of 16 pulses has occured at end of data slice line data clock of 16 pulses has occured and clock run-in pulse are detected 4 to 6 times data clock of 16 pulses has occured b6 0 1 0 1 cr2 b1 0 1 0 1 0 1 0 1 cr3 table 6. occurence sources of interrupt request occurence souces of interrupt request (9) data clock generating circuit this circuit generates a data clock synchronized with the start bit detected in the start bit detecting circuit. set the time from detection of the start bit to occurrence of the data clock in bits 3 to 7 of clock run-in detect register 2 (address 00e9 16 ). the time to be set is represented by the following expression: time = (13 + set value) 5 reference clock period for a data clock, 16 pulses are generated. when just 16 pulses have been generated, bit 7 of the data slicer control register is set to 1 (refer to figure 32 to 34). when method 1 is already selected as a start bit detecting method, this bit becomes a logical product (and) value with a clock run-in determination result by setting bit 7 of the start bit position register to 1. when method 2 is already selected as a start bit detecting method and 16 pulses are generated of a data clock regardless of bit 7 of the start bit position register, this bit is set to 1. the contents of this bit are reset at a falling of the vertical synchronizing signal (v sep ).
51 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37274EFSP preliminary notice: this is not a final specification. some paramentic limits are subject to change. mitsubishi microcomputers fig. 48. sync pulse counter register (12) 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. the latch value can be obtained by reading out the sync pulse counter register (address 020f 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 02ea 16 ). figure 48 shows the structure of the sync pulse counter and figure 49 shows the synchronous signal counter block diagram. fig. 49. synchronous signal counter block diagram reset 5-bit counter 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 colored side when reset. b5 b7 b6 b5 b4 b3 b2 b1 b0 sync pulse counter register (syc) [address 020f 16 ] r w sync pulse counter register 0 to 4 0r 6, 7 0 r count value (syc0 to syc4) 5 0rw count source (syc5) 0: h sync signal 1: composite sync signal b after reset functionsname nothing is assigned. these bits are write disable bits. when these bits are read out, the values are 0.
52 mitsubishi microcomputers single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37274EFSP preliminary notice: this is not a final specification. some paramentic limits are subject to change. 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 7. 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 con- trol 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). 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 50 shows a block diagram of the multi-master i 2 c-bus inter- face and table 7 shows multi-master i 2 c-bus interface functions. 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. 50. 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 ( ) 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 clock 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
53 mitsubishi microcomputers single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37274EFSP preliminary notice: this is not a final specification. some paramentic limits are subject to change. (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. b7 b6 b5 b4 b3 b2 b1 b0 i c data shift register1(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 2 note: 2 to write data into the i c data shift register after setting the mst bit to 0 (slave mode), keep an interval of 8 machine cycles or more. name d0 to d7 rw fig. 51. i 2 c address register
54 mitsubishi microcomputers single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37274EFSP preliminary notice: this is not a final specification. some paramentic limits are subject to change. (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. ____ n 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. n 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. 52. 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 rw r rw
55 mitsubishi microcomputers single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37274EFSP preliminary notice: this is not a final specification. some paramentic limits are subject to change. (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. n bits 0 to 4: scl frequency control bits (ccr0Cccr4) these bits control the scl frequency. refer to table 7. n 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. n 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 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 functions after reset rw 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 33303 setup disabled 25004 100 400 (see note) 05 83.3 16606 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 4000khz in the high-speed clock mode, the duty is as below . 0 period : 1 period = 3 : 2 in the other cases, the duty is as below. 0 period : 1 period = 1 : 1 setup value of ccr4Cccr0 rw rw rw rw fig. 53. i 2 c address register n 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 gener- ated by the data receiving device. note: do not write data into the i 2 c clock control register during trans- mission. if data is written during transmission, the i 2 c clock generator is reset, so that data cannot be transmitted nor- mally.
56 mitsubishi microcomputers single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37274EFSP preliminary notice: this is not a final specification. some paramentic limits are subject to change. (4) i 2 c control register the i 2 c control register (address 00f9 16 ) controls the data commu- nication format. n 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. n 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. n 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 (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. n 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. n bits 6 and 7: connection control bits between i 2 c-bus interface and ports (bsel0, bsel1) these bits controls the connection between scl and ports or sda and ports (refer to figure 55). fig. 54. connection port control by bsel0 and bsel1 ? ??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 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.
57 mitsubishi microcomputers single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37274EFSP preliminary notice: this is not a final specification. some paramentic limits are subject to change. fig. 55. 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 3 i 2 c-bus interface use enable bit (eso) 0 : disabled 1 : enabled 4 data format selection bit (als) 0 : addressing mode 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 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 functions after reset rw note: when using ports p1 1 -p1 4 as i c-bus interface, the output structure changes automatically from cmos output to n-channel open-drain output. 2 2 rw rw rw rw rw
58 mitsubishi microcomputers single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37274EFSP preliminary notice: this is not a final specification. some paramentic limits are subject to change. (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. n 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 execut- ing a write instruction to the i 2 c data shift register (address 00f6 16 ). n 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 con- dition. ] general call: the master transmits the general call address 00 16 to all slaves. n bit 2: slave address comparison flag (aas) this flag indicates a comparison result of address data. 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 condition 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. 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 register (8 bits consists of slave address and rbw), the first bytes match. 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 ). n bit 3: arbitration lost ] detecting flag (al) in 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 receive and recognize its own slave address transmitted by another master device. ] arbitration lost: the status in which communication as a master is disabled. n 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 57 shows an interrupt request signal 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 n 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 condi- tion 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. 1 2 3
59 mitsubishi microcomputers single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37274EFSP preliminary notice: this is not a final specification. some paramentic limits are subject to change. n bit 6: communication mode specification bit (transfer direction 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 __ (transmit) if the least significant bit (r/w bit) of the address data trans- __ mitted 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 n bit 7: communication mode specification bit (master/slave speci- fication 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 re- ceived, 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 ar- bitration 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 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. fig. 56. 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 functions after reset rw 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 mismatch 1 : address match 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 = 0 1 : last bit = 1 last receive bit (lrb) (see note) note : these bits and flags can be read out, but cannnot be written. indeterminate r r r r r rw 0 rw
60 mitsubishi microcomputers single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37274EFSP preliminary notice: this is not a final specification. some paramentic limits are subject to change. (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 58 for the start condition gen- eration timing diagram, and table 8 for the start condition/stop condition generation timing table. fig. 57. interrupt request signal generation timing scl pin iicirq fig. 58. start condition generation timing diagram (7) restart condition generation method to generate the restart condition, take the following sequence: 1 set 20 16 to the i 2 c status register (s1). 2 write a transmit data to the i 2 c data shift register. 3 set f0 16 to the i 2 c status register (s1) again.
61 mitsubishi microcomputers single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37274EFSP preliminary notice: this is not a final specification. some paramentic limits are subject to change. (9) start/stop condition detect conditions the start/stop condition detect conditions are shown in figure 52 and table 9. only when the 3 conditions of table 9 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. (8) stop condition generation method when the es0 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 51 for the stop condition generation timing diagram, and table 8 for the start condition/stop condition generation timing table. fig. 59. stop condition generation timing diagram fig. 60. start condition/stop condition detect timing diagram standard clock mode 6.5 s (26 cycles) < scl release time 3.25 s (13 cycles) < setup time 3.25 s (13 cycles) < hold time high-speed clock mode 1.0 s (4 cycles) < scl release time 0.5 s (2 cycles) < setup time 0.5 s (2 cycles) < hold time table 9. start condition/stop condition detect conditions table 8. start condition/stop condition generation timing table item setup time hold time set/reset time for bb flag standard clock mode 5.0 s (20 cycles) 5.0 s (20 cycles) 3.0 s (12 cycles) high-speed clock mode 2.5 s (10 cycles) 2.5 s (10 cycles) 1.5 s (6 cycles) note: absolute time at f = 4 mhz. the value in parentheses de- notes the number of f cycles. note: absolute time at f = 4 mhz. the value in parentheses de- notes 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 hold time setup time scl sda (start condition) sda (stop condition) scl release time hold time setup time
62 mitsubishi microcomputers single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37274EFSP preliminary notice: this is not a final specification. some paramentic limits are subject to change. (10) 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. 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 address- ing format is selected, refer to figure 61, (1) and (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 compari- son 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 ad- dress comparison between the rbw bit of the i 2 c address regis- __ ter (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 61, (3) and (4). (11) 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 ). a 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) 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 ). a 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 addresses are 0 (general call) : ad0 of the i 2 c status register (address 00f8 16 ) is set to 1 and an interrupt request signal occurs. ?when the transmitted addresses match the address set in : aas 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.
63 mitsubishi microcomputers single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37274EFSP preliminary notice: this is not a final specification. some paramentic limits are subject to change. fig. 61. 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 bits s slave address a data a data ap 7 bits ? 1 to 8 bits 1 to 8 bits (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-transmitter 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 bits (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 ap 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
64 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37274EFSP preliminary notice: this is not a final specification. some paramentic limits are subject to change. mitsubishi microcomputers osd mode (on-screen display mode) 16 5 20 dots 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 1 screen : 7 kinds, max. 7 kinds (a character unit) possible (a screen unit, 1 screen : 7 kinds, max. 7 kinds) possible (a character unit, 1 screen : 7 kinds, max. 7 kinds) possible (a screen unit, 1 screen : 7 kinds, max. 7 kinds) r, g, b, out1, out2 dual layer osd function (layer 2) possible osd functions table 10 outlines the osd functions of the M37274EFSP. the M37274EFSP incorporates an osd circuit of 40 characters 5 16 lines. osd is controlled by the osd control register. there are 3 display 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. exosd mode (extra on-screen display mode) 16 5 26 dots 6 kinds 5 1, 5 2, 5 3 1t c 5 1/2h, 1t c 5 1h border, extra font (16 kinds) 1 screen : 5 kinds, max. 5 kinds (a character unit) possible (a screen unit, 1 screen : 7 kinds, max. 7 kinds) possible (a character unit, 1 screen : 7 kinds, max. 5 kinds) possible (a screen unit, 1 screen : 7 kinds, max. 7 kinds) possible (a screen unit, 1 screen : 7 kinds, max. 7 kinds) r, g, b, out1, out2 possible cc mode (closed caption mode) 16 5 26 dots (character dot structure : 20 5 16 dots) 2 kinds 5 1, 5 2 1t c 5 1/2h smooth italic, under line, flash 1 screen : 7 kinds, max. 7 kinds (a character unit) possible (a screen unit, 1 screen : 7 kinds, max. 7 kinds) possible (a character unit, 1 screen : 7 kinds, max. 7 kinds) r, g, b, out1, out2 auto solid space function window function dual layer osd function (layer 1) possible parameter number of display characters character display area kinds of characters kinds of character sizes attribute character font coloring raster coloring character background coloring border coloring extra font coloring osd output function display expansion (multiline display) pre-divide ratio (note) dot size table 10. features of each display mode display mode 256 kinds (in exosd mode, they can be combined with 16 kinds of extra fonts) notes 1: 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 (3) dote size). note : note that mask version has 36 characters 5 12 lines when programming. 40 characters 5 16 lines
65 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37274EFSP preliminary notice: this is not a final specification. some paramentic limits are subject to change. mitsubishi microcomputers 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 62 shows the configuration of osd character. figure 63 shows the block diagram of the osd circuit. figure 64 shows the structure of the osd control register. figure 65 shows the structure of the block control register i. fig. 62. configuration of osd character display area 16 dots 26 dots 20 dots underline area ] blank area ] ] : displayed only in ccd mode. blank area ] 26 dots 20 dots character font 26 dots 20 dots osd mode cc mode extra font exosd mode 16 dots 16 dots 16 dots 16 dots logical sum (or)
66 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37274EFSP preliminary notice: this is not a final specification. some paramentic limits are subject to change. mitsubishi microcomputers fig. 63. block diagram of osd circuit h sync v sync ram for osd 20 bytes 5 40 characters 5 16 lines data bus rom for osd ( 16 dots 5 20 dots 5 256 characters) + 16 dots 5 26 dots 5 16 characters) shift register 2 16-bit shift register 1 16-bit clock for osd output circuit rgb osd control circuit out1 out2 control registers for osd (address 00ce 16 ) (address 00cf 16 ) (addresses 00d0 16 to 00df 16 ) (address 0216 16 ) (address 0217 16 ) (address 0218 16 ) (address 0219 16 ) (address 021b 16 ) (addresses 021c 16 to 021f 16 ) (addresses 0220 16 to 023f 16 ) osd control register horizontal position register block control registers clock source control register i/o polarity control register raster color register extra font color register border color register window h/l registers vertical position registers display oscillation circuit osc1 osc2 data slicer clock oscillation circuit x in x out main clock
67 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37274EFSP preliminary notice: this is not a final specification. some paramentic limits are subject to change. mitsubishi microcomputers fig. 65. block control registers fig. 64. osd control register b7 b6 b5 b4 b3 b2 b1 b0 osd control register (oc) [address 00ce 16 ] b name functions after reset r w osd control register 0 osd control bit (oc0) (see note 1) 0 : all-blocks display off 1 : all-blocks display on 0 1 scan mode selection bit (oc1) 0 : normal scnan mode 1 : bi-scan mode 0 2 0 : all bordered 1 : shadow bordered (see note 2) 0 0 4 automatic solid space control bit (oc4) 0 border type selection bit (oc2) rw rw rw rw rw 3 0 : color signal of character background part does not flash 1 : color signal of character background part flashes flash mode selection bit (oc3) 6, 7 layer mixing control bits (oc6, oc7) (see note 3) 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. b7 b6 0 : off 1 : on 0rw 5 window control bit (oc5) 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 : set 00 during displaying extra fonts. b7 b6 b5 b4 b3 b2 b1 b0 block control register i (bci) (i=1 to 16) [addresses 00d0 16 to 00df 16 ] (see note 1) 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 ? layer selection bit (bci5, bci6) 7 out2 output control bit (bci7) (see note 2) b1 b0 0 0: display off 0 1: osd mode 1 0: cc mode 1 1: exosd mode bc17: window top boundary bc27: window bottom boundary b name functions after reset rw rw indeterminate rw indeterminate rw indeterminate rw 2 border control bit (bci2) 0: border off 1: border on indeterminate rw notes 1: note that mask version the block control registers at addresses 00d0 16 to 00db 16 when programming. 2: bit 4 of the color code 1 controls out1 output when bit 7 is "0". bit 4 of the color code 1 controls out2 output when bit 7 is "1". 3: cs6 : bit 6 of the clock control register (address 0216 16 ) 4: tc : pre-devided clock period for osd 5: h : hsync b6 b5 b4 b3 cs6 pre-divide dot size display layer ratio 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 1 0 1 1 5 1 5 2 5 3 5 1 5 2 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 1tc 5 1/2h 1tc 5 1h 2tc 5 2h 3tc 5 3h 1tc 5 1/2h 1tc 5 1h 1tc 5 1/2h 1tc 5 1h 1.5tc 5 1/2h 1.5tc 5 1h 0 0 1 1 1 layer1 layer2 0 1 0 0 1 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1
68 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37274EFSP preliminary notice: this is not a final specification. some paramentic limits are subject to change. mitsubishi microcomputers osd mode same as layer 1 same as layer 1 (note) pre-divide ratio = 1 pre-divide ratio = 2 1t c 5 1/2h 1t c 5 1/2h, 1.5t c 5 1/2h 1t c 5 1h 1t c 5 1h, 1.5t c 5 1h same position as layer 1 (1) dual layer osd m37274ma-xxxsp has 2 layers; layer 1 and layer 2. these layers display the osd for controlling tv and the closed caption display at the same time and overlayed on each other. each block can be assigned to either layer by bits 6 and 5 of the block control register (refer to figure 65). for example, only when both bits 5 and 6 are 1, the block is assigned to layer 2. other bit combinations assign the block to layer 1. when a block of layer 1 is overlapped with that of layer 2, a screen is combined (refer to figure 67) by bits 7 and 6 of the osd control register (refer to figure 64). note: when using the dual layer osd, note table 11. fig. 66. image of dual layer osd cc mode data slicer clock or osc1 or main clock 5 1 or 5 2 (all blocks) 1t c 5 1/2h arbitrary display mode osd clock source pre-divide ratio dot size horizontal display start position table 11. conditions of dual layer note: for the pre-divide ratio of the layer 2, select the same as the layer 1s ratio by bit 6 of the clock control register. block in layer 1 block in layer 2 fig. 67. display example of dual layer osd block parameter display example of layer 1 = hello, layer 2 = ch5 ch5 hello logical sum (or) of layer 1s color and layer 2s color 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 layer 2 layer 1 block 1 block 2 block 7 block 8 ... block 9 block 10 block 11 block 12 block block
69 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37274EFSP preliminary notice: this is not a final specification. some paramentic limits are subject to change. mitsubishi microcomputers (2) display position the display positions of characters are specified by a block. there are 16 blocks, blocks 1 to 16. up to 40 characters can be displayed in each block (refer to (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 68, (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 68 (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 dis- play period ( ] ) of another block. ] in the case of osd mode block: 20 dots in vertical from the verti- cal display start position. ] in the case of cc or exosd mode block: 26 dots in vertical from the vertical display start position. fig. 68. display position (hr) vp12, vp22 block 1 block 2 (a) example when each block is separated vp13, vp23 block 3 (hr) vp11, vp12 = vp21, vp22 block 1 (b) example when block 2 overlaps with block 1 (block 2 is not displayed) (hr) 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 1 2
70 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37274EFSP preliminary notice: this is not a final specification. some paramentic limits are subject to change. mitsubishi microcomputers 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. 69. supplement explanation for display position when bits 0 and 1 of the i/o polarity control register (address 0217 16 ) are set to ??(negative polarity) v sync signal input v sync control signal in microcomputer 0.25 to 0.50 [ m s] ( at f(x in ) = 8mhz) period of counting h sync signal (note 2) h sync signal input 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 cycles or more 8 machine cycles or more
71 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37274EFSP preliminary notice: this is not a final specification. some paramentic limits are subject to change. mitsubishi microcomputers fig. 70. vertical position register 1 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 12) (addresses 0220 16 to 022b 16 ) and values 00 16 to 03 16 in vertical position register 2i (i = 1 to 12) (addresses 0230 16 to 023b 16 ). the structure of the vertical position registers is shown in figure 70 and 71. fig. 71. vertical position register 2 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 r w 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: set values except 00 16 01 16 to vp1i when vp2i is 00 16 . 2: t h is cycle of h sync . 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 (vp1i0, vp1i1) (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: set values except 00 16 01 16 to vp1i when vp2i is 00 16 . 2: t h is cycle of h sync .
72 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37274EFSP preliminary notice: this is not a final specification. some paramentic limits are subject to change. mitsubishi microcomputers 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 structure of the horizontal position register is shown in figure 72. fig. 72. 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 register 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.
73 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37274EFSP preliminary notice: this is not a final specification. some paramentic limits are subject to change. mitsubishi microcomputers notes 1 : 1t c (t c : osd clock cycle divided by prescaler) gap oc- curs between 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 . 2 : the horizontal start position is based on the osd clock source cycle selected for each block. accordingly, when 2 blocks have different osd clock source cycles, their hori- zontal display start position will not match. fig. 73. notes on horizontal display start position h sync 1t c 1t c block 1 (pre-divide ratio = 1, clock source = data slicer clock) 1t c 1t c 4t osc 5 n 4t osc 5 n note 1 note 2 block 2 (pre-divide ratio = 2, clock source = data slicer clock) block 3 (pre-divide ratio = 3, clock source = data slicer clock) block 5 (pre-divide ratio = 3, clock source = osc1) block 4 (pre-divide ratio = 2, character size = 1.5tc, clock source = data slicer clock) 1.5t c : value of horizontal position register (decimal notation) : osd clock cycle divided in the pre-divide circuit : osd oscillation cycle n 1tc tosc
74 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37274EFSP preliminary notice: this is not a final specification. some paramentic limits are subject to change. mitsubishi microcomputers (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 of the layer 1 is specified by bits 6 to 3 of the block control register. the dot size of the layer 2 is specified by the following bits : bits 3 and 4 of the block control register, bit 6 of the clock source control register. refer to figure 65 (the structure of the block control regis- ter), refer to figure 76 (the structure of the clock source control reg- ister). the block diagram of dot size control circuit is shown in figure 75. notes 1 : the pre-divide ratio = 3 cannot be used in the cc mode. 2 : the pre-divide ratio of the osd mode block on the layer 2 must be same as that of the cc mode block on the layer 1 by bit 6 of the clock source control register. 3 : in the bi-scan mode, the dot size in the vertical direction is 2 times as compared with the normal mode. refer to (13) scan mode about the scan mode. fig. 74. block diagram of dot size control circuit fig. 75. definition of dot sizes in normal scan mode h sync main clock 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 (note) osc1 note: to use data slicer clock, set bit 0 of data slicer control register to 0. 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
75 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37274EFSP preliminary notice: this is not a final specification. some paramentic limits are subject to change. mitsubishi microcomputers input port 1 0 1 (4) clock for osd as a clock for display to be used for osd, it is possible to select one of the following 4 types. ? main clock (8 mhz) ? 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 this osd clock for each block can be selected by the following bits : bit 7 of the port p3 direction register, bits 5 and 4 of the clock source control register (addresses 0216 16 ). a variety of character sizes can be obtained by combining dot sizes with osd clocks. when not us- ing the pins osc1 and osc2 for the osd clock i/o pins, the pins can be used as sub-clock i/o pins or port p6. fig. 76. block diagram of osd selection circuit table 12. setting for p6 3 /osc1/x cin , p6 4 /osc2/x cout b7 of port p3 direction register clock source control register osd clock i/o pin 0 11 01 b5 b4 sub-clock i/o pin 0 0 0 function register 0 11 10 0 0 32 kh z data slicer circuit data slicer clock osc1 clock lc ceramic ? quartz-crystal oscillating mode for osd cs5 , cs4 00 1 1 1 cs0 cs1 cs3 cs2 = 0 cc mode block osd mode block exosd mode block except 10 10 10 cs2, cs1 except 10 clock oscillation circuit main clock except 10 cs2, cs1 cs2, cs1 (note) note : to use data slicer clock, set bit 0 of data slicer control register to 1.
7 76 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37274EFSP preliminary notice: this is not a final specification. some paramentic limits are subject to change. mitsubishi microcomputers fig. 77. clock control register b7 b6 b5 b4 b3 b2 b1 b0 clock source control register (cs) [address 0216 16 ] b name functions after reset rw clock source control register 0 cc mode clock selection bit (cs0) 0rw 1, 2 osd mode clock selection bits (cs1, cs2) 0: data slicer clock 1: osc1 clock 0rw 3 exosd mode clock selection bit (cs3) 0: data slicer clock 1: osc1 clock 0rw 4, 5 0 w 6 pre-divide ratio of layer 2 selection bit (cs6) 0: 5 1 1: 5 2 0 rw 0 rw 0 0: data slicer clock 0 1: osc1 clock 1 0: main clock (see note 1) 1 1: do not set b2 b1 test bit (see note 3) r osd oscillating mode selection bits (cs4, cs5) 0 0: 32 khz oscillating mode 0 1: input ports p6 3 , p6 4 (see note 2) 1 0: lc oscillating mode 1 1: ceramic ? quartz-crystal oscillating mode b5 b4 notes 1: when setting 10 2 , main clock is set as a clock in the cc mode and exosd mode regardless of bits 0, 3. 2: when selecting input ports p6 3 and p6 4 , set bit 7 at address 00c7 16 to 0. 3: be sure to set bit 7 to 0 for program of the mask and the eprom versions. for the emulator mcu version (m37274erss), be sure to set bit 7 to 1 when using the data slicer clock for software debugging.
77 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37274EFSP preliminary notice: this is not a final specification. some paramentic limits are subject to change. mitsubishi microcomputers (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 79) corresponding to the field is displayed alternately. 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 69) in the microcomputer and then comparing this time with the time of the previous field. when the time is longer than the comparing time, it is regarded as even field. when the time is shorter, it is re- garded as odd field 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 79). 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. fig. 78. i/o polarity control register 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 register 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) rw rw rw r note: refer to figure 79. 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 rw rw rw r fix this bit to "0". 0
78 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37274EFSP preliminary notice: this is not a final specification. some paramentic limits are subject to change. mitsubishi microcomputers fig. 79. 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 (n C 1) field (odd-numbered) t1 0.25 to 0.50[ m s] at f(x in ) = 8 mhz cc mode exosd mode 13579111315 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 2 4 6 8 10 12 14 16 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 osd 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.
b7 b0 79 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37274EFSP preliminary notice: this is not a final specification. some paramentic limits are subject to change. mitsubishi microcomputers (6) memory for osd there are 2 types of memory for osd : rom for osd (addresses 10800 16 to 155ff 16 , 18000 16 to 1e41f 16 ) used to store character dot data (masked) and ram for osd (addresses 0800 16 to 0df3 16 ) used to specify the characters and colors to be displayed. the fol- lowing describes each type of memory. 11 11 1 rom for osd (addresses 10800 16 to 155ff 16 , 18000 16 to 1e43f 16 ) the rom for osd contains dot pattern data for characters to be displayed. to actually display the character code and the extra code stored in this rom, it is necessary to specify them by writing the character code inherent to each character (code determined based on the addresses in the rom for osd) into the ram for osd. the osd rom of the character font has a capacity of 11072 bytes. since 40 bytes are required for 1 character data, the rom can stores up to 256 kinds of characters. the osd rom of the extra font has a capacity of 832 bytes. since 52 bytes are required for 1 character data, the rom can stores up to 16 kinds of characters. data of the character font and extra font is specified shown in figure 80. fig. 80. osd character data storing form osd rom address of character font data ad16 ad15 ad14 ad13 ad12 ad11 ad10 ad9 ad8 ad7 ad6 ad5 ad4 ad3 ad2 ad1 ad0 line number character code font bit = 02 16 to 15 16 = 00 16 to fff 16 = 0 : left font 1 : right font osd rom address bit line number/character code/font bit 10 line number character code font bit ad16 ad15 ad14 ad13 ad12 ad11 ad10 ad9 ad8 ad7 ad6 ad5 ad4 ad3 ad2 ad1 ad0 11 0000 02 16 0000 16 7ff0 16 7ff8 16 601c 16 600c 16 600c 16 600c 16 600c 16 09 16 03 16 04 16 05 16 06 16 07 16 08 16 0a 16 601c 16 7ff8 16 7ff0 16 6300 16 6380 16 61c0 16 60e0 16 6070 16 11 16 0b 16 0c 16 0d 16 0e 16 0f 16 10 16 6038 16 601c 16 600c 16 0000 16 15 16 12 16 13 16 14 16 b0 b7 02 16 0003 16 0003 16 0003 16 0003 16 0003 16 0003 16 0003 16 0003 16 09 16 03 16 04 16 05 16 06 16 07 16 08 16 0a 16 0003 16 0003 16 0003 16 0003 16 0003 16 0003 16 0003 16 0003 16 11 16 0b 16 0c 16 0d 16 0e 16 0f 16 10 16 0003 16 0003 16 0003 16 0003 16 15 16 12 16 13 16 14 16 b0b7 b0 b7 ffff 16 fffe 16 0000 16 0000 16 19 16 16 16 17 16 18 16 00 16 01 16 fffe 16 ffff 16 line number line number extra code font bit 00 16 to 19 16 00 16 to 0f 16 0 : left font 1 : right font osd rom address bit line number/extra code /font bit extra code line number left font right font line number data in osd rom left font right font data in osd rom osd rom address of extra font data character font extra font font bit 0 0 = = =
80 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37274EFSP preliminary notice: this is not a final specification. some paramentic limits are subject to change. mitsubishi microcomputers character code specification 0800 16 0801 16 : 0817 16 0818 16 : 0826 16 0827 16 0880 16 0881 16 : 0897 16 0e98 16 : 08a6 16 08a7 16 0900 16 0901 16 : 0917 16 0918 16 : 0926 16 0927 16 0980 16 0981 16 : 0997 16 0998 16 : 09a6 16 09a7 16 0a00 16 0a01 16 : 0a17 16 0a18 16 : 0a26 16 0a27 16 color code 2 specification 0828 16 0829 16 : 083f 16 0868 16 : 0876 16 0877 16 08a8 16 08a9 16 : 08bf 16 08e8 16 : 08f6 16 08f7 16 0928 16 0929 16 : 093f 16 0968 16 : 0976 16 0977 16 09a8 16 09a9 16 : 09bf 16 09e8 16 : 09f6 16 09f7 16 0a28 16 0a29 16 : 0a3f 16 0a68 16 : 0a76 16 0a77 16 display position (from left) 1st character 2nd character : 24th character 25th character : 39th character 40th character 1st character 2nd character : 24th character 25th character : 39th character 40th character 1st character 2nd character : 24th character 25th character : 39th character 40th character 1st character 2nd character : 24th character 25th character : 39th character 40th character 1st character 2nd character : 24th character 25th character : 39th character 40th character block block 1 block 2 block 3 block 4 block 5 table 13. contents of osd ram ram for osd (addresses 0800 16 to 0ff7 16 ) the ram for osd is allocated at addresses 0800 16 to 0ff7 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. table 13 shows the contents of the ram for osd. 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 0840 16 , and write color code 2 at 0828 16 . the structure of the ram for osd is shown in figure 82. note: for the osd mode block with dot size of 1.5t c 5 1/2h and 1.5t c 5 1h, the 3nth (n = 1 to 13) character is skipped as compared with ordinary block ] . accordingly, maximum 27 char- acters (the right 1/3 part of the 27th's character area is not displayed) are only displayed in 1 block. the ram data for the 3nth character does not effect the display. any character data can be stored here (refer to figure 81). mask version has maximum 24 characters in 1 block when programming. ] blocks with dot size of 1t c 5 1/2h and 1t c 5 1h, or blocks on the layer 1 color code 1 specification 0840 16 0841 16 : 0857 16 0858 16 : 0866 16 0867 16 08c0 16 08c1 16 : 08d7 16 08d8 16 : 08e6 16 08e7 16 0940 16 0941 16 : 0957 16 0958 16 : 0966 16 0967 16 09c0 16 09c1 16 : 09d7 16 08d8 16 : 09e6 16 09e7 16 0a40 16 0a41 16 : 0a57 16 0a58 16 : 0a66 16 0a67 16 2 2222
81 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37274EFSP preliminary notice: this is not a final specification. some paramentic limits are subject to change. mitsubishi microcomputers table 13. contents of osd ram (continued) color code 2 specification 0aa8 16 0aa9 16 : 0abf 16 0ae8 16 : 0af6 16 0af7 16 0b28 16 0b29 16 : 0b3f 16 0b68 16 : 0b76 16 0b77 16 0ba8 16 0ba9 16 : 0bbf 16 0be8 16 : 0bf6 16 0bf7 16 0c28 16 0c29 16 : 0c3f 16 0c68 16 : 0c76 16 0c77 16 0ca8 16 0ca9 16 : 0cbf 16 0ce8 16 : 0cf6 16 0cf7 16 0d28 16 0d29 16 : 0d3f 16 0d68 16 : 0d76 16 0d77 16 0da8 16 0da9 16 : 0dbf 16 0de8 16 : 0df6 16 0df7 16 display position (from left) 1st character 2nd character : 24th character 25th character : 39th character 40th character 1st character 2nd character : 24th character 25th character : 39th character 40th character 1st character 2nd character : 24th character 25th character : 39th character 40th character 1st character 2nd character : 24th character 25th character : 39th character 40th character 1st character 2nd character : 24th character 25th character : 39th character 40th character 1st character 2nd character : 24th character 25th character : 39th character 40th character 1st character 2nd character : 24th character 25th character : 39th character 40th character block block 6 block 7 block 8 block 9 block 10 block 11 block 12 color code 1 specification 0ac0 16 0ac1 16 : 0ad7 16 0ad8 16 : 0ae6 16 0ae7 16 0b40 16 0b41 16 : 0b57 16 0b58 16 : 0b66 16 0b67 16 0bc0 16 0bc1 16 : 0bd7 16 0bd8 16 : 0be6 16 0be7 16 0c40 16 0c41 16 : 0c57 16 0c58 16 : 0c66 16 0c67 16 0cc0 16 0cc1 16 : 0cd7 16 0cd8 16 : 0ce6 16 0ce7 16 0d40 16 0d41 16 : 0d57 16 0d58 16 : 0d66 16 0d67 16 0dc0 16 0dc1 16 : 0dd7 16 0dd8 16 : 0de6 16 0de7 16 character code specification 0a80 16 0a81 16 : 0a97 16 0a98 16 : 0aa6 16 0aa7 16 0b00 16 0b01 16 : 0b17 16 0b18 16 : 0b26 16 0b27 16 0b80 16 0b81 16 : 0b97 16 0b98 16 : 0ba6 16 0ba7 16 0c00 16 0c01 16 : 0c17 16 0c18 16 : 0c26 16 0c27 16 0c80 16 0c81 16 : 0c97 16 0c98 16 : 0ca6 16 0ca7 16 0d00 16 0d01 16 : 0d17 16 0d18 16 : 0d26 16 0d27 16 0d80 16 0d81 16 : 0d97 16 0d98 16 : 0da6 16 0da7 16
82 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37274EFSP preliminary notice: this is not a final specification. some paramentic limits are subject to change. mitsubishi microcomputers character code specification 0e00 16 0e01 16 : 0e17 16 0e18 16 : 0e26 16 0e27 16 0e80 16 0e81 16 : 0e97 16 0e98 16 : 0fa6 16 0fa7 16 0f00 16 0f01 16 : 0f17 16 0f18 16 : 0f26 16 0f27 16 0f80 16 0f81 16 : 0f97 16 0f98 16 : 0fa6 16 0fa7 16 color code 2 specification 0e28 16 0e29 16 : 0e3f 16 0e68 16 : 0e76 16 0e77 16 0ea8 16 0ea9 16 : 0ebf 16 0ee8 16 : 0ee6 16 0ef7 16 0f28 16 0f29 16 : 0f3f 16 0f68 16 : 0f76 16 0f77 16 0fa8 16 0fa9 16 : 0fbf 16 0fe8 16 : 0ff6 16 0ff7 16 display position (from left) 1st character 2nd character : 24th character 25th character : 39th character 40th character 1st character 2nd character : 24th character 25th character : 39th character 40th character 1st character 2nd character : 24th character 25th character : 39th character 40th character 1st character 2nd character : 24th character 25th character : 39th character 40th character block block 13 block 14 block 15 block 16 table 13. contents of osd ram (continued) color code 1 specification 0e40 16 0e41 16 : 0e57 16 0e58 16 : 0e66 16 0e67 16 0ec0 16 0ec1 16 : 0ed7 16 0ed8 16 : 0ee6 16 0ee7 16 0f40 16 0f41 16 : 0f57 16 0f58 16 : 0f66 16 0f67 16 0fc0 16 0fc1 16 : 0fd7 16 0fd8 16 : 0fe6 16 0fe7 16
83 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37274EFSP preliminary notice: this is not a final specification. some paramentic limits are subject to change. mitsubishi microcomputers fig. 81. ram data for 3nth character note: do not read from and write to addresses shown in table 14. table 14. list of access disable addresses 0878 16 08f8 16 0978 16 09f8 16 0a78 16 0af8 16 0b78 16 0bf8 16 0c78 16 0cf8 16 0d78 16 0df8 16 0e78 16 0ef8 16 0f78 16 0ff8 16 0879 16 08f9 16 0979 16 09f9 16 0a79 16 0af9 16 0b79 16 0bf9 16 0c79 16 0cf9 16 0d79 16 0df9 16 0e79 16 0ef9 16 0f79 16 0ff9 16 087a 16 08fa 16 097a 16 09fa 16 0a7a 16 0afa 16 0b7a 16 0bfa 16 0c7a 16 0cfa 16 0d7a 16 0dfa 16 0e7a 16 0efa 16 0f7a 16 0ffa 16 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 23 34 24 35 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 40 37 38 39 40 25 26 27 3738 39 40 display sequence ram address order display sequence ram address order 1.5tc size block 1tc size block
84 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37274EFSP preliminary notice: this is not a final specification. some paramentic limits are subject to change. mitsubishi microcomputers fig. 82. structure of osd ram bit rf0 rf1 rf2 rf3 rf4 rf5 rf6 rf7 rc10 rc11 rc12 rc13 rc14 rc15 rc16 rc17 rc20 rc21 rc22 rc23 bit name character code (low-order 8 bits) 0 control of character color r control of character color g control of character color b out1 control flash control underline control italic control control of background color r control of background color g control of background color b not used function specification of character code in osd rom 0: color signal output off 1: color signal output on 0: character output 1: background output 0: flash off 1: flash on 0: underline off 1: underline on 0: italic off 1: italic on 0: color signal output off 1: color signal output on bit name character code (low-order 8 bits) 0 control of character color r control of character color g control of character color b out1 control not used control of background color r control of background color g control of background color b not used function specification of character code in osd rom 0: color signal output off 1: color signal output on 0: character output 1: background output 0: color signal output off 1: color signal output on bit name character code (low-order 8 bits) 0 character color code 0 (cc0) character color code 1 (cc1) character color code 2 (cc2) out1 control extra code 0 (ex0) extra code 1 (ex1) extra code 2 (ex2) background color code 0 (bcc0) background color code 1 (bcc1) background color code 2 (bcc2) extra code 3 (ex3) function specification of character code in osd rom specification of character color 0: character output 1: background output specification of extra code in osd rom specification of background color specification of extra code in osd rom cc mode osd mode exosd mode notes 1: read value of bits 4 to 7 of the color code 2 is undefined. 2: for not used bits, the write value is read. 3: set 0 to rc10. b0 rf6 rf5 rf4 rf3 rf2 rf1 rf0 rc17 rc16 rc15 rc14 rc13 rc12 rc11 rc10 rc23 rc22 rc21 rc20 rf7 b3b0b7b0b7 blocks 1 to16 character code color code 1 color code 2
85 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37274EFSP preliminary notice: this is not a final specification. some paramentic limits are subject to change. mitsubishi microcomputers b 0 0 0 0 0 1 1 1 g 0 0 1 1 1 1 1 1 r 0 1 0 1 1 1 0 1 table 15. correspondence table of color code 1 and color signal output in exosd mode table 16. correspondence table of color code 2 and color signal output in exosd mode (7) character color the color for each character is displayed by the color code 1. the kinds and specification method of character color are different de- pending on each mode. ? cc mode .................. 7 kinds specified by bits 1 (r), 2 (g), and 3 (b) of color code 1 ? osd mode ............... 7 kinds specified by bits 1 (r), 2 (g) and 3 (b)of color code 1 ? exosd mode .......... 5 kinds specified by bits 1 (cc0), 2 (cc1), and 3 (cc2) of color code 1 the correspondence table of color code 1 and color signal output in the exosd mode is shown in table 15. (8) character background color the character background color can be displayed in the character display area. the character background color for each character is specified by color code 2. the kinds and specification method of char- acter background color are different depending on each mode. ? cc mode .................. 7 kinds specified by bits 0 (r), 1 (g), and 2 (b) of color code 2 ? osd mode ............... 7 kinds specified by bits 0 (r), 1 (g), and 2 (b) of color code 2 ? exosd mode .......... 5 kinds specified by bits 0 (bcc0), 1 (bcc1), and 2 (bcc2) of color code 2 the correspondence table of the color code 2 and color signal output in the exosd mode is shown in table 16. note : the character background color is displayed in the following part : (character display area)C(character font)C(border)C(extra font). accordingly, the character background color does not mix with these color signal. bit 3 cc2 0 0 0 0 1 1 1 1 bit 2 cc1 0 0 1 1 0 0 1 1 bit 1 cc0 0 1 0 1 0 1 0 1 r 0 1 0 1 1 1 0 1 g 0 0 1 1 1 1 1 1 color code 1 bit 2 bcc2 0 0 0 0 1 1 1 1 bit 1 bcc1 0 0 1 1 0 0 1 1 bit 0 bcc0 0 1 0 1 0 1 0 1 color code 2 color signal output color signal output b 0 0 0 0 0 1 1 1
86 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37274EFSP preliminary notice: this is not a final specification. some paramentic limits are subject to change. mitsubishi microcomputers (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 4 of color code 1 (refer to figure 82), bits 2 and 7 of fig. 83. setting value for controlling out1, out2 and corresponding output waveform the block control register i (refer to figure 65). the setting values for controlling out1, out2 and the corresponding output waveform is shown in figure 83. 0 1 0 1 0 1 0 1 0 1 0 1 0 1 out1 out2 out1 out2 out1 out2 out1 out2 out1 out2 out1 out2 out1 out2 out1 out2 block control register i out2 output control bit (b7) border output control bit (b2) output waveform out1 control (b4 of color code 1)
87 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37274EFSP preliminary notice: this is not a final specification. some paramentic limits are subject to change. mitsubishi microcomputers (10) attribute the attributes (flash, underline, italic) are controlled to the character font. the attributes for each character are specified by the color codes 1 and 2 (refer to figure 71). the attributes to be controlled are differ- ent depending on each mode. cc mode ..................... flash, underline, italic osd mode .................. border (all bordered, shadow bordered can be selected) exosd mode ............. border (all bordered, shadow bordered can be selected) , extra font (16 kinds) under line the underline is output at the 23th and 24th dots in vertical direction only in the cc mode. the underline is controlled by bit 6 of color code 1. the color of underline is the same color as that of the char- acter font. flash the parts of the character font, the underline, and the character back- ground are flashed only in the cc mode. the color signals (r, g, b, out1) of the character font and the underline are controlled by bit 5 of color code 1. all of the color signals for the character font flash. however, the color signal for the character background can be con- trolled by bit 3 of the osd control register (refer to figure 64). the flash cycle bases on the v sync count. v sync cycle 5 48 ; 800 ms (at flash on) v sync cycle 5 16 ; 267 ms (at flash off) italic the italic is made by slanting the font stored in osd rom to the right only in the cc mode. the italic is controlled by bit 7 of color code 1. the display example of the italic and underline is shown in figure 85. in this case, r is displayed. notes 1: when setting both the italic and the flash, the italic charac- ter flashes. 2: when the pre-divide ratio = 1, the italic character with slant of 1 dot 5 5 steps is displayed (refer to figure 84 (c)). when the pre-divide ratio = 2, the italic character with slant of 1/2 dot 5 10 steps is displayed (refer to figure 84 (d)). 3: the boundary of character color is displayed in italic. how- ever, the boundary of character background color is not af- fected by the italic (refer to figure 85). 4: the adjacent character (one side or both side) to an italic character is displayed in italic even when the character is not specified to display in italic (refer to figure 85). 5: when displaying the italic character in the block with the pre-divide ratio = 1, set the osd clock frequency to 11 mhz to 14 mhz. 111111 222222 333333
88 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37274EFSP preliminary notice: this is not a final specification. some paramentic limits are subject to change. mitsubishi microcomputers fig. 85. example of italic display fig. 84. example of attribute display (in cc mode) 0 0 10 0 1 0 1 color code 1 bit 6 bit 7 color code 1 bit 6 bit 7 color code 1 bit 6 bit 7 color code 1 bit 6 bit 7 (a) ordinary (b) underline (c) italic (pre-divide ratio = 1) (d) italic (pre-divide ratio = 2) 10 0 1 1 0 1 italic on one side italic on both sides bit 7 of color code 1 note : the wavy-lined is the boundary of character color
89 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37274EFSP preliminary notice: this is not a final specification. some paramentic limits are subject to change. mitsubishi microcomputers extra font there are 16 kinds of the extra fonts configured with 16 5 26 dots in osd rom. this 16 kinds fonts can be displayed by ored with the character font by a character unit (refer to figure 62). in only the exosd mode, the extra font is controlled the following : bits 7 to 5 of the color code 1 and bit 3 of the color code 2. the extra font color for each screen is specified by the extra color register. when the character font overlaps with the extra font, the color of the area becomes the ored color of both fonts. fig. 86. extra font color register fig. 87. display example of only extra font 16 dots 20 dots 16 dots 26 dots 16 dots 26 dots + (or) extra font specified by ex0 to ex3blank character font b7 b6 b5 b4 b3 b2 b1 b0 extra font color register (ec) [address 0219 16 ] b after reset rw extra font color register 0 3, 4 1 0 name functions extra font color g control bit (ec1) 0 fix these bits to 0. 0 : no output 1 : output rw r rw extra font color r control bit (ec0) 0 : no output 1 : output 2 extra font color b control bit (ec2) 0 0 : no output 1 : output rw 0rw 00 nothing is assigned. these bits are write disable bits. when these bits are read out, the values are 0. 5 to 7 0 notes 1 : when using the extra font, set bits 7 and 6 of the osd control register to 0 (refer to figure 64). 2 : extra fonts are always displayed by ored with the char- acter font. accordingly, when displaying only a extra font, set a blank for a character font and or with it.
90 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37274EFSP preliminary notice: this is not a final specification. some paramentic limits are subject to change. mitsubishi microcomputers border the border is output in the osd mode and the exosd mode. the all bordered (bordering around of character font) and the shadow bor- dered (bordering right and bottom sides of character font) are se- lected (refer to figure 88) by bit 2 of the osd control register (refer to figure 64). the border on/off is controlled by bit 2 of the block control register (refer to figure 65). the out1 signal is used for border output. the border color for each screen is specified by the border color register. 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. how- ever, 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 : there is no border for the extra font. 2 : the border dot area is the shaded area as shown in figure 90. in the exosd mode, top and bottom of character font display area is not bordered. 3 : when the border dot overlaps on the next character font, the character font has priority (refer to figure 91 a). when the border dot overlaps on the next character back ground, the border has priority (refer to figure 91 b). 4 : the border is not displayed at right side of the most right dot in the display area of the 40th character (the character located at the most right of the block). however, note that mask version cannot display the bor- der for the right edge dots of the 36ths character area. fig. 88. example of border display fig. 89. horizontal and vertical size of border all bordered shadow bordered y x 1/2h 1h 1h vertical dot size of character font border dot size scan mode horizontal size (x) vertical size (y) 1t c (osd clock cycle divided in pre-divide circuit) 1.5t c when selecting 1.5t c for character size. normal scan mode bi-scan mode 1/2h 1h, 2h, 3h 1/2h, 1h, 2h, 3h
91 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37274EFSP preliminary notice: this is not a final specification. some paramentic limits are subject to change. mitsubishi microcomputers fig. 90. border area fig. 91. border priority 16 dots 16 dots character font area 20 dots osd mode exosd mode 1 dot width of border 1 dot width of border 1 dot width of border 1 dot width of border character font area 20 dots character boundary b character boundary a character boundary b
92 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37274EFSP preliminary notice: this is not a final specification. some paramentic limits are subject to change. mitsubishi microcomputers fig. 92. border color register b7 b6 b5 b4 b3 b2 b1 b0 border color register (fc) [address 021b 16 ] b after reset rw border color register 0 3, 4 1 0 name functions border color g control bit (fc1) 0 fix these bits to 0. 0 : no output 1 : output rw r rw border color r control bit (fc0) 0 : no output 1 : output 2 border color b control bit (fc2) 0 0 : no output 1 : output rw 0rw 00 nothing is assigned. these bits are write disable bits. when these bits are read out, the values are 0. 5 to 7 0
93 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37274EFSP preliminary notice: this is not a final specification. some paramentic limits are subject to change. mitsubishi microcomputers (11) multiline display the M37274EFSP 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 raster color regis- ter (refer to figure 99). when bit 7 of the raster color register is 0 an osd interrupt occurs at the end of block display in the osd and the exosd mode. when bit 7 of the raster color register is 1 an osd interrupt occurs at the end of block display in the cc mode. 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 reg- ister (addresses 00d0 16 to 00db 16 ), an osd interrupt re- quest does not occur (refer to figure 93 (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 93 (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 93 (c)). fig. 93. note on occurence of osd interrupt (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) osd interrupt request osd interrupt request osd interrupt request osd interrupt request osd interrupt request osd interrupt request no osd interrupt request block 1 block 2 osd interrupt request osd interrupt request osd interrupt request osd 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) in cc mode window no osd interrupt request no osd interrupt request (a)
94 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37274EFSP preliminary notice: this is not a final specification. some paramentic limits are subject to change. mitsubishi microcomputers bit 4 of osd control register bit 7 of block control register bit 4 of color code 1 out1 output signal out2 output signal note : when using this function, set 09 16 to the character below : the 1st character the 34th character and the following character. (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 : the character area except character code 09 16 the character area on the left and right sides this function is turned on and off by bit 4 of the osd control register (refer to figure 64). 0 01 character character font part display area off table 17. setting for automatic solid space 0 1 01 character font part off character display area 0 01 solid space off 1 1 01 character font part solid space fig. 94. display screen example of automatic solid space when setting the character code 05 16 as the character a, 06 16 as the character b. (osd ram) character to be displayed (display screen) 2nd character 3rd character ( see note 1 ) no blank output 34th character 35th character 40 th character ( see note 1 ) 1st character 09 05 09 09 09 06 06 16 16 16 16 16 16 16 06 09 16 16 ? ? ? ? ? ? 09 16 09 16 ? ? ? ? ? ?
95 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37274EFSP preliminary notice: this is not a final specification. some paramentic limits are subject to change. mitsubishi microcomputers (13) scan mode M37274EFSP has the bi-scan mode for corresponding to h sync of double speed frequency. in the bi-scan mode, the vertical start dis- play 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 (refer to figure 64). (14) window function this function sets the top and bottom boundary of display limit on a screen. the window function is valid only in the cc mode. the top boundary is set by window h registers 1 and 2. the bottom bound- ary is set by window l registers 1 and 2. this function is turned on and off by bit 5 of the osd control register (refer to figure 64). the window h registers 1 and 2 is shown in figures 96 and 97, of window l registers 1 and 2 is shown in figures 98 and 99. notes 1: set values except 00 16 and 01 16 to the window h regis- ter 1 when the window h register 2 is 00 16 . 2: set the register value fit for the following condition : (wh1 + wh2) < (wl1 + wl2) bit 1 of osd control register vertical display start position vertical dot size table 18. setting for scan mode normal scan 0 value of vertical position register 5 1h 1t c 5 1/2h 1t c 5 1h 2t c 5 2h 3t c 5 3h bi-scan 1 value of vertical position register 5 2h 1t c 5 1h 1t c 5 2h 2t c 5 4h 3t c 5 6h scan mode parameter fig. 95. example of window function exosd mode window fgh ij cc mode kl mno cc mode pqrst cc mode osd mode bottom boundary of window top boundary of window screen abcde uvwxy
96 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37274EFSP preliminary notice: this is not a final specification. some paramentic limits are subject to change. mitsubishi microcomputers fig. 97. window h register 2 fig. 96. window h register 1 b7 b6 b5 b4 b3 b2 b1 b0 window h register 1 (wh1) [address 021c 16 ] b name functions after reset r w window h register 1 0 to 7 control bits of window top boundary (wn10 to wn17) (see note 1) top boundary position (low-order 8 bits) t h 5 (setting value of low-order 2 bits of wh2 5 16 2 + setting value of high-order 4 bits of wh1 5 16 1 + setting value of low-order 4 bits of wh1 5 16 0 ) indeterminate rw notes 1: set values except 00 16 to the wh1 when wh2 is 00 16 . 2: t h is cycle of h sync . 3: wh2: window h register 2 b7 b6 b5 b4 b3 b2 b1 b0 window h register 2 (wh2) [address 021e 16 ] b name functions after reset r w window h register 2 0, 1 control bits of window top boundary (wn20 ,wn21) (see note 1) top boundary position (high-order 2 bits) t h 5 (setting value of low-order 2 bits of wh2 5 16 2 + setting value of high-order 4 bits of wh1 5 16 1 + setting value of low-order 4 bits of wh1 5 16 0 ) indeterminate rw notes 1: set values except 00 16 to the wh1 when wh2 is 00 16 . 2: t h is cycle of h sync . 3: wh1: window h 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
97 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37274EFSP preliminary notice: this is not a final specification. some paramentic limits are subject to change. mitsubishi microcomputers fig. 99. window l register 2 fig. 98. window l register 1 b7 b6 b5 b4 b3 b2 b1 b0 window l register 1 (wl1) [address 021d 16 ] b name functions after reset r w window l register 1 0 to 7 control bits of window top boundary (wl10 to wl17) (see note 1) top boundary position (low-order 8 bits) t h 5 (setting value of low-order 2 bits of wl2 5 16 2 + setting value of high-order 4 bits of wl1 5 16 1 + setting value of low-order 4 bits of wl1 5 16 0 ) indeterminate rw notes 1: set values fit for the following condition: (wh1+wh2 5 16 2 )<(wl1+wl2 5 16 2 ) 2: t h is cycle of h sync . 3: wl2: window l register 2 b7 b6 b5 b4 b3 b2 b1 b0 window l register 2 (wl2) [address 021f 16 ] b name functions after reset r w window l register 2 0, 1 control bits of window top boundary (wl20, wl21) (see note 1) top boundary position (high-order 2 bits) t h 5 (setting value of low-order 2 bits of wl2 5 16 2 + setting value of high-order 4 bits of wl1 5 16 1 + setting value of low-order 4 bits of wl1 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: set values fit for the following condition: (wh1+wh2 5 16 2 )<(wl1+wl2 5 16 2 ) 2: t h is cycle of h sync . 3: wl1: window l register 1
98 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37274EFSP preliminary notice: this is not a final specification. some paramentic limits are subject to change. mitsubishi microcomputers (15) osd output pin control the osd output pins r, g, b, and out1 can also function as ports p5 2 , p5 3 , p5 4 and 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 pins. the out2 can also function as port p1 0 . set the corresponding bit of the port p1 direction register (address 00c3 16 ) to 1 (output mode). after that, switch between the osd output function and the port function by the osd port control register. set the corresponding bit to 1 to specify the pin as osd output pin, or set it to 0 to specify as port p1 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 78). the osd port control register is shown in figure 100. fig. 100. 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 0 2 3 0 : g signal output 1 : port p5 3 output 0 0 0 fix these bits to 0. rw rw rw rw 0, 1, 7 port p5 3 output signal selection bit (g) 4 0 : b signal output 1 : port p5 4 output 0rw port p5 4 output signal selection bit (b) 0rw 0 : r signal output 1 : port p5 2 output port p5 2 output signal selection bit (r) 5 0 : out1 signal output 1 : port p5 5 output port p5 5 output signal selection bit (out1) 6 0 : port p1 0 output 1 : out2 signal output port p1 0 output signal selection bit (out2) 000 note. set bit 0 of port p1 direction register (address 00c3 16 ) to "1" (output mode). ( note )
99 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37274EFSP preliminary notice: this is not a final specification. some paramentic limits are subject to change. mitsubishi microcomputers (16) 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, 7 raster colors can be obtained. if the out1 pin has been set to raster coloring output, a raster color- ing signal is always output during 1 horizontal scanning period. this setting is necessary for erasing a background tv image. if the r, g, and b pins have been set to output, a raster coloring signal is output in the part except a no-raster colored character (in figure 102, a character 1) and the character background output during 1 horizontal scanning period. 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 101, the example of raster coloring is shown in figure 102. fig. 101. raster color register b7 b6 b5 b4 b3 b2 b1 b0 raster color register (rc) [address 0218 16 ] b name functions after reset r w raster color register 0 raster color r control bit (rc0) 0 : no output 1 : output 0 1 raster color g control bit (rc1) 0 : no output 1 : output 0 2 0 : no output 1 : output 0 raster color b control bit (rc2) rw rw rw 3, 4 0 6 raster color out2 control bit (rc6) 0 rw rw 5 0 : no output 1 : output raster color out1 control bit (rc5) 0 : no output 1 : output 7 0r 0rw osd interrupt source selection bit (rc7) 0 : interrupt occurs at end of osd or exosd block display 1 : interrupt occurs at end of cc mode block display fix these bits to 0. 00
100 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37274EFSP preliminary notice: this is not a final specification. some paramentic limits are subject to change. mitsubishi microcomputers fig. 102. example of raster coloring h sync a' a out1 r g b : character color red (r) : border color green (g) : background color magenta (r and b) : raster color blue (b and out1) signals across a-a'
101 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37274EFSP preliminary notice: this is not a final specification. some paramentic limits are subject to change. mitsubishi microcomputers fig. 104. rom correction enable register fig. 103. rom correction address registers 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 main program to the correction program. 3 : do not set the same rom correction address to blocks 1 and 2. 0242 16 rom correction address 1 (high-order) 0243 16 rom correction address 1 (low-order) 0244 16 rom correction address 2 (high-order) 0245 16 rom correction address 2 (low-order) b7 b6 b5 b4 b3 b2 b1 b0 rom correction enable register (rcr) [address 0246 16 ] b after reset rw rom correction enable register 0 block 1 enable bit (rc0) name functions 0: disabled 1: enabled 1 block 2 enable bit (rc1) 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 0 rw rw r 00 2, 3 fix these bits to 0. 0 rw
102 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37274EFSP preliminary notice: this is not a final specification. some paramentic limits are subject to change. mitsubishi microcomputers 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 s or more, then return is to high. then, as shown in figure 106, 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 5 to 9. an example of the reset circuit is shown in figure 105. the reset input voltage must be kept 0.9 v or less until the power source voltage surpasses 4.5 v. fig. 106. reset sequence fig. 105. example of reset circuit 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 : 2: 3: f(x in ) and f( ) are in the relation : f(x in ) = 2f ( ff ). a question mark (?) indicates an undefined state that depends on the previous state. immediately after a reset, timer 3 and timer 4 are connected by hardware. at this time, ff 16 is set in timer 3 and 07 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. power source voltage 0 v reset input voltage 0 v 4.5 v 0.9 v poweron 26 30 27 vcc reset vss M37274EFSP 1 5 4 3 0.1 m f m51953al
103 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37274EFSP preliminary notice: this is not a final specification. some paramentic limits are subject to change. mitsubishi microcomputers clock generating circuit the M37274EFSP 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. oscillation control (1) stop mode the built-in clock generating circuit is shown in figure 95. 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 h level until timer 4 overflows, allow- ing time for oscillation stabilization when a ceramic resonator or a quartz-crystal oscillator is used. (2) wait mode when the wit instruction is executed, the internal clock f stops in the h 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. (1) v sync interrupt (2) osd interrupt (3) timers 1 and 2 interrupts using tim2 pin input as count source (4) timer 3 interrupt using tim3 pin input as count source (5) data slicer interrupt (6) multi-master i 2 c-bus interface interrupt (7) f(x in )/4096 interrupt (8) all timer interrupts using f(x in )/2 or f(x cin )/2 as count source (9) all timer interrupts using f(x in )/4096 or f(x cin )/4096 as count source (10) a-d conversion interrupt fig. 107. ceramic resonator circuit example fig. 108. external clock input circuit example (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 (cm 6 ) 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 M37274EFSP x cout r f r d c cout x out c in c out x cin M37274EFSP external oscillation circuit or external pulse x cout x in x out open open external oscillation circuit vcc vss vcc vss
104 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37274EFSP preliminary notice: this is not a final specification. some paramentic limits are subject to change. mitsubishi microcomputers fig. 109. clock generating circuit block diagram x cin x cout osc1 oscillating mode selection bits (notes 1, 4) internal system clock selection bit (notes 1, 3) internal system clock selection bit (notes 1, 3) main clock (x in Cx out ) stop bit (notes 1, 3) r sq stp instruction wit instruction r s q reset interrupt disable flag i interrupt request r s q reset stp instruction timing (internal clock) timer 3 count source selection bit (notes 1, 2) 1 timer 3 count stop bit (notes 1, 2) timer 4 count stop bit (notes 1, 2) timer 3 timer 4 1/2 1/8 x out x in 1 0 0 notes 1 : the value at reset is 0. 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.
105 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37274EFSP preliminary notice: this is not a final specification. some paramentic limits are subject to change. mitsubishi microcomputers fig. 110. 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 8mhz oscillating 32khz oscillating f is stopped (high) timer operating 8mhz oscillating 32khz oscillating f( f ) = 4mhz 8mhz stopped 32khz stopped f is stopped (high) 8mhz oscillating 32khz oscillating f is stopped (high) timer operating (note 3) 8mhz oscillating 32khz oscillating f( f ) = 16khz 8mhz stopped 32khz stopped f is stopped (high) 8mhz stopped 32khz stopped f = stopped (high ) 8mhz stopped 32khz oscillating f( f ) = 16khz 8mhz stopped 32khz 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 8ms is automatically generated by timer 3 and timer 4. 2: the delay after the stp state ends is approximately 2s. 3: when the internal clock f divided by 8 is used as the timer count source, the frequency of the count source is 2khz. the program must allow time for 8mhz oscillation to stabilize high-speed operation start mode
106 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37274EFSP preliminary notice: this is not a final specification. some paramentic limits are subject to change. mitsubishi microcomputers 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 source control register (address 0216 16 ). addressing mode the memory access is reinforced with 17 kinds of addressing modes. refer to series 740
107 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37274EFSP preliminary notice: this is not a final specification. some paramentic limits are subject to change. mitsubishi microcomputers 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 M37274EFSP name of programming adapter pca7400 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 97 is recommended to verify programming. fig. 113. programming and testing of one time prom version programming with prom programmer screening (caution) (150 c 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 c exceeding 100 hours.
108 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37274EFSP preliminary notice: this is not a final specification. some paramentic limits are subject to change. mitsubishi microcomputers i ol2 i ol3 i ol4 f(x in ) f(x cin ) 7.9 29 11.0 26.5 15.262 1.5 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 oscillation frequency (for osd) osc1 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 , p3 1 , p5 2 Cp5 5 , s out , s clk , x out , osc2 output voltage p0 0 Cp0 2 , p0 4 Cp0 7 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 5 , p1 0 , , p0 3 , p1 5 Cp1 7 , p2 0 Cp2 7 , s out , s clk circuit current p1 1 Cp1 4 circuit current p0 0 Cp0 2 , p0 4 Cp0 7 circuit current p3 0 , p3 1 power dissipation operating temperature storage temperature v o i oh i ol1 i ol2 i ol3 limits symbol v cc , av cc v i v i v o absolute maximum ratings conditions all voltages are based on v ss . output transistors are cut off. parameter C0.3 to 13 0 to 1 (note 1) 0 to 2 (note 2) 0 to 6 (note 2) 0 to 1 (note 2) 0 to 10 (note 3) 550 C10 to 70 C40 to 125 v ma ma ma ma ma mw c c min. 4.5 2.0 0 0.8v cc 0.7v cc 0 0 0 typ. 5.0 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 v v v v v v v v ma ma recommended operating conditions (t a = C10 c to 70 c, v cc = 5 v 10 %, unless otherwise noted) power source voltage (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 4 , p7 0 Cp7 2 , h sync , v sync , ______ reset, x in , p6 3 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 (note 6) ______ reset, x in , osc1, h sync , v sync , int1, int2, int3, tim2, tim3, s clk , s in high average output current (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 (note 2) p5 2 Cp5 5 , p1 0 , p0 3 , p1 5 Cp1 7 , p2 0 Cp2 7 , s out , s clk low average output current (note 2) p1 1 Cp1 4 low average output current (note 2) p0 0 Cp0 2 , p0 4 Cp0 7 low average output current (note 3) p3 0 , p3 1 oscillation frequency (for cpu operation) (note 5) x in oscillation frequency (for sub-clock operation) x cin v cc , av cc v cc , av cc v ss v ih1 v ih2 v il1 v il2 v il3 i oh i ol1 symbol parameter unit f hs1 f hs2 f hs3 f hs4 v i khz mhz khz khz v mhz ma ma ma mhz khz 6 1 10 8.1 35 27.0 27.5 100 1 400 16.206 2.5 8.0 32 27.0 15.734 2.0 i ol4 p d t opr t stg f osc lc oscillating mode ceramic oscillating mode t a = 25 c unit v v v v ratings C0.3 to 6 C0.3 to 6 C0.3 to v cc + 0.3 C0.3 to v cc + 0.3
109 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37274EFSP preliminary notice: this is not a final specification. some paramentic limits are subject to change. mitsubishi microcomputers 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 p5 2 Cp5 5 , p1 0 , s out , s clk , p0 0 Cp0 7 , p1 5 Cp1 7 , p2 0 Cp2 7 low output voltage p3 0 , p3 1 low output voltage p1 1 Cp1 4 hysteresis (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 high input leak current p0 0 Cp0 2 , p0 4 Cp0 7 low input leak current ______ reset, p0 0 Cp0 7 , p1 0 Cp1 7 , p2 0 C p2 7 , p3 0 , p3 1 , p4 0 Cp4 6 , p6 3 , p6 4 , p7 0 Cp7 2 , h sync , v sync i 2 c-busbus switch connection resistor (between scl1 and scl2, sda1 and sda2) v cc = 4.5 v i ol = 10.0 ma v cc = 4.5 v i ol = 3 ma i ol = 6 ma v cc = 5.0 v v cc = 5.5 v v i = 5.5 v v cc = 5.5 v v i = 12 v v cc = 5.5 v v i = 0 v v cc = 4.5 v ma a ma a v v max. 30 50 200 4 100 10 0.4 limits min. 2.4 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 typ. 15 30 60 2 25 1 symbol parameter test conditions unit wait mode stop mode system operation v cc = 5.5 v, f(x in ) = 0, f(x cin ) = 32khz, osd off, data slicer off, low-power dissipation mode set (cm 5 = 0, cm 6 = 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 (cm 5 = 0, cm 6 = 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 crt off data slicer off crt on data slicer on v cc = 5.5 v, f(x in ) = 8 mhz 0.5 3.0 0.4 0.6 1.3 5 10 5 130 v t+ Cv tC i izh i izl r bs v a a w 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 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 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 and p4 6 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.
110 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37274EFSP preliminary notice: this is not a final specification. some paramentic limits are subject to change. mitsubishi microcomputers 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 non-linearity error differential non-linearity error zero transition error full-scale transition error conversion time reference voltage ladder resistor analog input current max. 8 2 0.9 2 4 12.5 v cc v ref bits lsb lsb lsb lsb s v k v min. 0 0 0 0 12.25 0 limits typ. unit test conditions parameter symbol v ot v fst t conv v ref r ladder v ia v cc = 5.12v i ol (sum) = 0ma v cc = 5.12v 25 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 s s s ns s s ns ns s s unit standard clock mode high-speed clock mode parameter symbol note: c b = total capacitance of 1 bus line fig. 114. 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
111 single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37274EFSP preliminary notice: this is not a final specification. some paramentic limits are subject to change. mitsubishi microcomputers package outline
1 1 2 s i n g l e - c h i p 8 - b i t c m o s m i c r o c o m p u t e r w i t h c l o s e d c a p t i o n d e c o d e r a n d o n - s c r e e n d i s p l a y c o n t r o l l e r m 3 7 2 7 4 e f s p p r e l i m i n a r y n o t i c e : t h i s i s n o t a f i n a l s p e c i f i c a t i o n . s o m e p a r a m e n t i c l i m i t s a r e s u b j e c t t o c h a n g e . m i t s u b i s h i m i c r o c o m p u t e r s 5 2 p 4 b ( 5 2 - p i n s h r i n k d i p ) m a r k s p e c i f i c a t i o n f o r m
113 mitsubishi microcomputers single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37274EFSP preliminary notice: this is not a final specification. some paramentic limits are subject to change. appendix pin configuration (top view) outline 52p4b 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 52 51 50 49 48 47 46 45 44 43 42 41 40 39 38 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 p0 2 /pwm6 p1 7 /s in p4 4 /int1 p4 6 /s clk av cc p7 2 /rvco p5 2 /r p5 3 /g p5 4 /b p5 5 /out1 p0 4 /pwm0 p0 5 /pwm1 p1 0 /out2 p1 1 /scl1 p1 2 /scl2 p1 3 /sda1 p1 4 /sda2 p1 5 p1 6 /int3 p3 0 p3 1 reset p6 4 /osc2/x cout p6 3 /osc1/x cin v cc p0 3 /da p2 6 /ad1 p2 7 /ad5 p0 0 /pwm4 p4 5 /s out p0 6 /pwm2 p2 1 p2 2 p2 3 17 18 19 20 37 36 35 34 33 M37274EFSP p7 0 /cv in p7 1 /v hold cnv ss x out x in v ss 21 22 23 24 25 26 32 31 30 29 28 27 p0 7 /pwm3 p2 0
114 mitsubishi microcomputers single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37274EFSP preliminary notice: this is not a final specification. some paramentic limits are subject to change. memory map 0000 16 00c0 16 00ff 16 0ff7 16 sfr1 area ffff 16 ffde 16 ff00 16 0800 16 interrupt vector area special page rom (60 k bytes) ram for osd (note) (1920 bytes) ram (1024 bytes) zero page 0200 16 0248 16 1000 16 sfr2 area 0300 16 053f 16 02c0 16 02ff 16 rom correction memory block 1 : addresses 02c0 16 to 02df 16 block 2 : addresses 02e0 16 to 02ff 16 0100 16 not used not used not used rom for osd (11072 bytes) 10800 16 1ffff 16 155ff 16 18000 16 1e41f 16 10000 16 note : refer to table 13. contents of osd ram. not used not used not used
115 mitsubishi microcomputers single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37274EFSP preliminary notice: this is not a final specification. some paramentic limits are subject to change. memory map of special function register (sfr) n sfr1 area (addresses c0 16 to df 16 ) 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 register (oc) horizontal position register (hp) block control register 1 (bc 1 ) port p1 (p1) port p1 direction register (d1) port p3 (p3) port p3 direction register (d3) port p2 (p2) port p2 direction register (d2) register port p0 (p0) port p0 direction register (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 register (d4) osd port control register (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) : 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 b7 b0 b7 b0 ? 00 16 ? 00 16 ? 00 16 ? ? ? ? ? ? ? ? ? ? rgb out1out2 0 0?0 0??0 ? ? ? ? ? ? ? oc6oc7 oc4oc5 oc2oc3 oc0oc1 00 16 bc 1 1bc 1 2 bc 2 1bc 2 2 bc 3 1bc 3 2 bc 4 1bc 4 2 bc 5 1bc 5 2 bc 6 1bc 6 2 bc 7 1bc 7 2 bc 8 1bc 8 2 bc 9 1bc 9 2 bc 10 1bc 10 2 bc 11 1bc 11 2 bc 12 1bc 12 2 bc 1 3 bc 2 3 bc 3 3 bc 4 3 bc 5 3 bc 6 3 bc 7 3 bc 8 3 bc 9 3 bc 10 3 bc 11 3 bc 12 3 bc 1 4 bc 2 4 bc 3 4 bc 4 4 bc 5 4 bc 6 4 bc 7 4 bc 8 4 bc 9 4 bc 10 4 bc 11 4 bc 12 4 bc 1 5 bc 2 5 bc 3 5 bc 4 5 bc 5 5 bc 6 5 bc 7 5 bc 8 5 bc 9 5 bc 10 5 bc 11 5 bc 12 5 bc 1 6 bc 2 6 bc 3 6 bc 4 6 bc 5 6 bc 6 6 bc 7 6 bc 8 6 bc 9 6 bc 10 6 bc 11 6 bc 12 6 bc 1 7 bc 2 7 bc 3 7 bc 4 7 bc 5 7 bc 6 7 bc 7 7 bc 8 7 bc 9 7 bc 10 7 bc 11 7 bc 12 7 hp6hp7 hp4hp5 hp2hp3 hp0hp1 00 16 00 16 ? 00 16 ? 00 16 ? t3sc p6im p45dp46d 0 0 0 0 bc 1 0 bc 2 0 bc 3 0 bc 4 0 bc 5 0 bc 6 0 bc 7 0 bc 8 0 bc 9 0 bc 10 0 bc 11 0 bc 12 0 bc bc 13 1bc 13 2bc 13 3bc 13 4bc 13 5bc 13 6bc 13 7 13 0 bc 14 1bc 14 2 bc 15 1bc 15 2 bc 14 3 bc 15 3 bc 14 4 bc 15 4 bc 14 5 bc 15 5 bc 14 6 bc 15 6 bc 14 7 bc 15 7 bc 14 0 bc 15 0 bc 16 5bc 16 7 bc 16 0 bc 16 6 bc 16 4 bc 16 1bc 16 2 bc 16 3 block control register 13 (bc 13 ) block control register 14 (bc 14 ) block control register 15 (bc 15 ) block control register 16 (bc 16 )
116 mitsubishi microcomputers single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37274EFSP preliminary notice: this is not a final specification. some paramentic limits are subject to change. 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 (tm1) window register (wn) clock run-in register 1 (cr1) clock run-in register 2 (cr2) caption data register 1 (cd1) caption position register (cp) start bit position register (sp) timer 2 (tm2) timer 3 (tm3) timer 4 (tm4) 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) clock run-in detect register 1 (crd1) clock run-in detect register 2 (crd2) cpu mode register (cpum) sync slice register (ssl) 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 register 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 1 (do not write to 0) name : : 0 immediately after reset : indeterminate immediately after reset 0 1 ? : 1 immediately after reset 1 0 b7 b0 b7 b0 adin0adin1 advref adstr tm20 tm21tm22tm23tm24 tm10 tm11tm12tm13tm14 cm2 tm1r tm2rtm3rtm4rcrtrvscradr ck0 int1r dsrsior tm1e tm2etm3etm4ecrtevsce int1e dsesioeint2e tm25 00 16 ?0 01 00 00 ff 16 07 16 ff 16 07 16 1 0 0 11 1 00 ? 0? 00 0? 0 00 16 ? tm15tm16tm17 tm26tm27 ? sad0sad1sad2sad3sad4sad5sad6 rbw lrbad0aasalpinbbtrxmst bc0bc1bc2es0als 10 bit sad bsel0bsel1 ccr0ccr1ccr2ccr3ccr4 fast mode ack bit ack 00 16 00 16 00 16 00 000 1?0 1msr int2r iicrt56r ade 1mse iicet56et56s cm7 cm5cm6 dsc20dsc21dsc22dsc25dsc27 dsc10dsc11dsc12dsc15dsc17 cp0cp1cp2cp3cp4 sp0sp1sp2sp3sp4sp5sp6sp7 wn0wn1wn2wn3wn4wn5 crd20crd21crd22crd25crd27 crd25 crd25 crd25 cr21 cr11 crd15crd17 crd15 crd15 crd15 100 000 0 11 100111 1 0101 000 000 00 16 00 16 00 16 00 16 00 16 00 16 00 16 00 16 00 16 00 16 00 16 00 16 00 16 00 16 00 16 00 16 cr12cr13 adin2 d7 d6 d5 d4 d3 d2 d1 d0 cr10 ? 0? 00 00 0 ssl7 0 00 00 1 1 0 0 0 caption data register 2 (cd2) caption data register 3 (cd3) caption data register 4 (cd4)
117 mitsubishi microcomputers single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37274EFSP preliminary notice: this is not a final specification. some paramentic limits are subject to change. 210 16 211 16 212 16 213 16 214 16 215 16 216 16 217 16 218 16 219 16 21a 16 21b 16 21c 16 21d 16 21e 16 21f 16 200 16 201 16 202 16 203 16 204 16 205 16 206 16 207 16 208 16 209 16 20b 16 20c 16 20d 16 20e 16 20f 16 20a 16 pwm mode register 1 (pn) timer 5 (tm5) sync pulse counter register (syc) data slicer control register 3 (dsc3) pwm2 register (pwm2) pwm6 register (pwm6) pwm4 register (pwm4) pwm5 register (pwm5) pwm0 register (pwm0) pwm1 register (pwm1) interrupt input polarity register (ip) serial i/o mode register (sm) serial i/o register (sio) clock source control register (cs) extra font color register (ec) window h register 1 (wh1) window l register 1 (wl1) window h register 2 (wh2) window l register 2 (wl2) clock run-in detect register 3 (crd3) clock run-in register (cr3) timer 6 (tm6) border color register (fc) pwm3 register (pwm3) pwm mode register 2 (pw) raster color register (rc) i/o polarity control register (pc) n sfr2 area (addresses 200 16 to 21f 16 ) address register 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 1 (do not write to 0) name : : 0 immediately after reset : indeterminate immediately after reset 0 1 ? : 1 immediately after reset 1 0 b7 b0 b7 b0 syc0 fc2 00 16 ? ? ? ? ? ? ? ff 16 00 16 00 16 pw0pw1pw2pw3pw4pw5pw6 pn3 syc1syc2syc3syc4syc5 dsc30 dsc31dsc32dsc37 dsc35 re3 int3 pol ad/int3 sel int3 pol re1re2re3re5 sm1sm2sm3sm5 pc0 re1re2re3pc4re5 int3 pol ad/int3 sel pc1pc2pc5pc6pc7 re1re2re3re5 int3 pol cs0cs4 cs1cs2cs3cs5cs6 rc0 re1re2re5 int3 pol ad/int3 sel rc1rc2rc5rc6rc7 re1re2re5 fc0fc1 wh20wh21 wl20wl21 ? ? 0 1 0 00 0 00 ? ? ? 00 16 dsc36 dsc34 dsc33 ? ?? ?0 00 00 16 0 crd31crd32crd33crd34crd35 pn0pn1pn2 ec0ec1ec2 ? 00 16 ? 07 16 00 16 00 16 00 16 00 16 00 16 ? ? crd34crd34crd34 cr36 cr35 cr34cr34 cr33 cr32 cr31 cr30 wl17 wl16 wl15 wl14 wl13 wl12 wl21 wl20 int2 pol int1 pol wh17 wh16 wh15 wh14 wh13 wh12 wh11 wh10 00 16 0 00 16 0 0 sm4 sm0 0 00 0 0 0 0 0 0 0 0 0 0 0 0 00
118 mitsubishi microcomputers single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37274EFSP preliminary notice: this is not a final specification. some paramentic limits are subject to change. 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 ) sfr2 area (addresses 220 16 to 248 16 ) address register 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 1 (do not write to 0) name : : 0 immediately after reset : indeterminate immediately after reset 0 1 ? : 1 immediately after reset 1 0 240 16 241 16 242 16 243 16 244 16 245 16 246 16 247 16 rom correction address 1 (high-order) rom correction enable register (rcr) rom correction address 2 (high-order) rom correction address 2 (low-order) da-h register (da-h) rom correction address 1 (low-order) da-l register (da-l) 248 16 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 2vp1 1 3vp1 1 4vp1 1 5vp1 1 6vp1 1 7 vp1 2 2vp1 2 3vp1 2 4vp1 2 5vp1 2 6vp1 2 7 vp1 3 2vp1 3 3vp1 3 4vp1 3 5vp1 3 6vp1 3 7 vp1 4 2vp1 4 3vp1 4 4vp1 4 5vp1 4 6vp1 4 7 vp1 5 2vp1 5 3vp1 5 4vp1 5 5vp1 5 6vp1 5 7 vp1 6 2vp1 6 3vp1 6 4vp1 6 5vp1 6 6vp1 6 7 vp1 7 2vp1 7 3vp1 7 4vp1 7 5vp1 7 6vp1 7 7 vp1 8 2vp1 8 3vp1 8 4vp1 8 5vp1 8 6vp1 8 7 vp1 9 2vp1 9 3vp1 9 4vp1 9 5vp1 9 6vp1 9 7 vp1 10 2vp1 10 3vp1 10 4vp1 10 5vp1 10 6vp1 10 7 vp1 11 2vp1 11 3vp1 11 4vp1 11 5vp1 11 6vp1 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 1vp1 12 2vp1 12 3vp1 12 4vp1 12 5vp1 12 6vp1 12 7 vp2 1 0vp2 1 1 vp2 2 0vp2 2 1 vp2 3 0vp2 3 1 vp2 4 0vp2 4 1 vp2 5 0vp2 5 1 vp2 6 0vp2 6 1 vp2 7 0vp2 7 1 vp2 8 0vp2 8 1 vp2 9 0vp2 9 1 vp2 10 0vp2 10 1 vp2 11 0vp2 11 1 vp2 12 0vp2 12 1 ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? rcr0rcr1 00 16 00 16 ? 00 16 00 16 00 16 00 16 00 16 00?????? 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 00 0 00 00 16 vp2 13 0vp2 13 1 vp2 14 0vp2 14 1 vp2 15 0vp2 15 1 vp2 16 0vp2 16 1 vp1 14 2vp1 14 3vp1 14 4vp1 14 5vp1 14 6vp1 14 7 vp1 15 2vp1 15 3vp1 15 4vp1 15 5vp1 15 6vp1 15 7 vp1 16 2vp1 16 3vp1 16 4vp1 16 5vp1 16 6vp1 16 7 vp1 14 0 vp1 15 0 vp1 16 0 vp1 14 1 vp1 15 1 vp1 16 1 vp1 13 1vp1 13 2vp1 13 3vp1 13 4vp1 13 5vp1 13 6vp1 13 7 vp1 13 0 n
119 mitsubishi microcomputers single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37274EFSP preliminary notice: this is not a final specification. some paramentic limits are subject to change. 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 zcdbtv 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
120 mitsubishi microcomputers single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37274EFSP preliminary notice: this is not a final specification. some paramentic limits are subject to change. structure of register the figure of each register structure describes its functions, contents at reset, and attributes as follows: note : the following registers are the eprom versions registers. they are different from the mask versions. 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 after reset release ??????read enabled ??????read disabled 5 r??????read ??????write enabled ??????write disabled ??????0 can be set by software, but 1 cannot be set. w??????write ] 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 (note) (cm2) 1 b1 b0 0: 0 page 1: 1 page 100 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 fb 16 ] rw rw rw rw rw 5
121 mitsubishi microcomputers single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37274EFSP preliminary notice: this is not a final specification. some paramentic limits are subject to change. port pi direction register port p3 direction register addresses 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 rw 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 6 refer to timer mode register 2 (address 00f5 16 ). timer 3 count source selection bit (t3sc) 0rw 2 to 5 7 refer to clock source control register (address 0216 16 ). ports p6 3 , p6 4 selection bit (p6im) 0rw
122 mitsubishi microcomputers single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37274EFSP preliminary notice: this is not a final specification. some paramentic limits are subject to change. port p4 direction register address 00c9 16 osd port control register address 00cb 16 b7 b6 b5 b4 b3 b2 b1 b0 port p4 direction register (d4) [address 00c9 16 ] b name functions after reset rw port p4 direction register 0 1 to 4, 7 0 0 fix this bit to ?. nothing is assigned. these bits are write disable bits. when these bits are read out, the values are ?. rw r 5 0: s out pin 1: input port p4 5 port p4 5 selection bit 0 r w 6 0: s clk pin 1: input port p4 6 port p4 6 selection bit 0rw 0 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 0 0 2 3 0 : g signal output 1 : port p5 3 output 0 0 fix these bits to ?. rw rw rw rw 0, 1, 7 port p5 3 output signal selection bit (g) 4 0 : b signal output 1 : port p5 4 output 0rw port p5 4 output signal selection bit (b) 0rw 0 : r signal output 1 : port p5 2 output port p5 2 output signal selection bit (r) 5 0 : out1 signal output 1 : port p5 5 output port p5 5 output signal selection bit (out1) 6 0 : port p1 0 output 1 : out2 signal output port p1 0 output signal selection bit (out2) 000 note. set bit 0 of port p1 direction register (address 00c3 16 ) to "1" (output mode). ( note )
123 mitsubishi microcomputers single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37274EFSP preliminary notice: this is not a final specification. some paramentic limits are subject to change. osd control register address 00ce 16 horizontal position register address 00cf 16 b7 b6 b5 b4 b3 b2 b1 b0 osd control register (oc) [address 00ce 16 ] b name functions after reset r w osd control register 0 osd control bit (oc0) (see note 1) 0 : all-blocks display off 1 : all-blocks display on 0 1 scan mode selection bit (oc1) 0 : normal scnan mode 1 : bi-scan mode 0 2 0 : all bordered 1 : shadow bordered (see note 2) 0 0 4 automatic solid space control bit (oc4) 0 border type selection bit (oc2) rw rw rw rw rw 3 0 : color signal of character background part does not flash 1 : color signal of character background part flashes flash mode selection bit (oc3) 6, 7 layer mixing control bits (oc6, oc7) (see note 3) 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. b7 b6 0 : off 1 : on 0rw 5 window control bit (oc5) 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 : set 00 during displaying extra fonts. b7 b6 b5 b4 b3 b2 b1 b0 horizontal position register (hp) [address 00cf 16 ] b name functions after reset rw horizontal position register 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.
124 mitsubishi microcomputers single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37274EFSP preliminary notice: this is not a final specification. some paramentic limits are subject to change. block control register i addresses 00d0 16 to 00db 16 b7 b6 b5 b4 b3 b2 b1 b0 block control register i (bci) (i=1 to 16) [addresses 00d0 16 to 00df 16 ] (see note 1) 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 ? layer selection bit (bci5, bci6) 7 out2 output control bit (bci7) (see note 2) b1 b0 0 0: display off 0 1: osd mode 1 0: cc mode 1 1: exosd mode bc17: window top boundary bc27: window bottom boundary b name functions after reset rw rw indeterminate rw indeterminate rw indeterminate rw 2 border control bit (bci2) 0: border off 1: border on indeterminate rw notes 1: note that mask version the block control registers at addresses 00d0 16 to 00db 16 when programming. 2: bit 4 of the color code 1 controls out1 output when bit 7 is "0". bit 4 of the color code 1 controls out2 output when bit 7 is "1". 3: cs6 : bit 6 of the clock control register (address 0216 16 ) 4: tc : pre-devided clock period for osd 5: h : hsync layerratio 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 1 0 1 1 ? 1 ? 2 ? 3 ? 1 ? 2 1tc ? 1/2h 1tc ? 1h 2tc ? 2h 3tc ? 3h 1tc ? 1/2h 1tc ? 1h 2tc ? 2h 3tc ? 3h 1tc ? 1/2h 1tc ? 1h 2tc ? 2h 3tc ? 3h 1tc ? 1/2h 1tc ? 1h 1tc ? 1/2h 1tc ? 1h 1.5tc ? 1/2h 1.5tc ? 1h 0 0 1 1 1 layer1 layer2 0 1 0 0 1 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 b4 b3 cs6 pre-divide dot size display b6 b5
125 mitsubishi microcomputers single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37274EFSP preliminary notice: this is not a final specification. some paramentic limits are subject to change. window register start bit position register caption position register address 00e0 16 address 00e1 16 address 00e2 16 b7 b6 b5 b4 b3 b2 b1 b0 caption position register (cp) [address 00e0 16 ] caption position register 0 to 4 0rw 0rw specification main data slice line (cp0 to cp4) 7 fix this bit to 0. 5, 6 fix these bits to 0. b after reset functionsname rw 100 0r w b7 b6 b5 b4 b3 b2 b1 b0 start bit position register (sp) [address 00e1 16 ] start bit position register 0 to 6 0rw 0rw start bit generating time (sp0 to sp6) 7 dsc1 bit 7 control bit (sp7) b after reset functionsname rw 0 : generation of 16 pulses 1 : generation of 16 pulses and detection of clock run-in pulse (4 to 6 pulses) time from a falling of the horizontal synchronous signal to occurrence of a start bit = 4 5 set value (00 16 to 7f 16 ) 5 reference clock period b7 b6 b5 b4 b3 b2 b1 b0 window register (wn) [address 00e2 16 ] window register 0 to 5 0rw 0rw window start time (wn0 to wn5) 6, 7 fix these bits to 0. b after reset functionsname rw time from a falling of the horizontal synchronous signal to start of the window = 4 5 set value (00 16 to 3f 16 ) 5 reference clock period 00
126 mitsubishi microcomputers single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37274EFSP preliminary notice: this is not a final specification. some paramentic limits are subject to change. clock run-in register 2 sync slice register address 00e7 16 address 00e3 16 clock run-in register 1 address 00e6 16 b7 b6 b5 b4 b3 b2 b1 b0 sync slice register (ssl) [address 00e3 16 ] sync slice register 7 0rw 0rw vertical synchronous signal (v sep ) generating method selection bit (ssl7) 0, 2 fix these bits to 1. b after reset functionsname rw 0: method 1 1: method 2 000101 0rw 1, 3 to 6 fix these bits to 0. 0 b7 b6 b5 b4 b3 b2 b1 b0 clock run-in register 1 (cr1) [address 00e6 16 ] clock run-in register 1 0 to 3 0r w clock run-in count value of main-data slice line (cr10 to cr13) 0rw 4, 6 fix these bits to 1. b after reset functionsname rw 101 0rw 5, 7 fix these bits to 0. 0 b7 b6 b5 b4 b3 b2 b1 b0 clock run-in register 2 (cr2) [address 00e7 16 ] clock run-in register 2 0rw 0, 2 to 4, 7 fix these bits to 1. b after reset functionsname rw 001 0rw 5, 6 fix these bits to 0. 1111 1 start bit detecting method selection bit (cr21) 0: method 1 1: method 2 0rw
127 mitsubishi microcomputers single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37274EFSP preliminary notice: this is not a final specification. some paramentic limits are subject to change. clock run-in detect register 2 clock run-in detect register i addresses 00e8 16 , 0208 16 address 00e9 16 b7 b6 b5 b4 b3 b2 b1 b0 clock run-in detect register i (crdi) (i=1, 3) [addresses 00e8 16 , 0208 16 ] clock run-in detect register i 0 to 2 0r w test bits 0r 3 to 7 clock run-in detection bits (crdi3 to crdi7) b after reset functionsname rw read-only number of reference clock s to be counted one clock run- in pulse period b7 b6 b5 b4 b3 b2 b1 b0 clock run-in detect register 2 (crd2) [address 00e9 16 ] clock run-in detect register 2 b after reset functionsname rw 0rw 0 to 2 0r w clock run-in pulses for sampling (crd20 to crd22) 3 to 7 data clock generating time (crd23 to crd27) b2 b1 b0 0 0 0 : not available 0 0 1 : 1st pulse 0 1 0 : 2nd pulse 0 1 1 : 3rd pulse 1 0 0 : 4th pulse 1 0 1 : 5th pulse 1 1 0 : 6th pulse 1 1 1 : 7th pulse time from detection of a start bit to occurrence of a data clock = (13 + set value) 5 reference clock period
128 mitsubishi microcomputers single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37274EFSP preliminary notice: this is not a final specification. some paramentic limits are subject to change. data slicer control register 1 address 00ea 16 b7 b6 b5 b4 b3 b2 b1 b0 data slicer control register 1(dsc1) [address 00ea 16 ] b bit functions after reset r w data slicer control register 1 0 0 rw 0 rw 0 rw indeterminate r 0 0: data slicer stopped 1: data slicer operating data slicer control bit (dsc10) fix these bits to 0. 3, 4, 6 00 1, 2 field to be sliced data selection bit (dsc11, dsc12) 5 field determination flag (dsc15) hsep vsep hsep vsep 0 : 1 : definition of fields 1 (f1) and 2 (f2) hsep v sync vsep f1 : hsep v sync vsep f2 : field of main data slice line b2 b1 0 0 f2 0 1 f 1 1 0 f1 and f2 1 1 f1 and f2 f2 f1 f2 f1 field for setting refernce voltage 7 0: data is not yet latched 1: data is latched data latch completion flag for caption data in main data slice line (dsc17) indeterminate r w
129 mitsubishi microcomputers single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37274EFSP preliminary notice: this is not a final specification. some paramentic limits are subject to change. a-d control register data slicer control register 2 address 00eb 16 address 00ef 16 b7 b6 b5 b4 b3 b2 b1 b0 data slicer control register 2 (dsc2) [address 00eb 16 ] b name functions after reset r w data slicer control register 2 0 1 0r 0r w w indeterminate r 0r w 0 0: stopped 1: operating timing signal generating circuit control bit (dsc20) 2, 7 read-only test bit 3, 4, 6 fix these bits to 0. 5 0: match 1: mis match v-pulse shape determination flag (dsc25) indeterminate r 00 0: video signal 1: h sync signal reference clock source selection bit (dsc21) b7 b6 b5 b4 b3 b2 b1 b0 a-d control register (adcon) [address 00ef 16 ] b after reset rw a-d control register 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 : 1 1 1 : 4 v cc connection selection bit (advref) 0: off 1: on 0 indeterminate do not set. 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 indeterminate rw 0 5, 7 fix these bits to 0. r 00 indeterminate
130 mitsubishi microcomputers single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37274EFSP preliminary notice: this is not a final specification. some paramentic limits are subject to change. timer mode register 1 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 wr wr wr wr wr 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 0wr 6 timer 5 count source selection bit 2 (tm16) 0: timer 2 overflow 1: timer 4 overflow 0wr 7 timer 6 internal count source selection bit (tm17) 0wr 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.
131 mitsubishi microcomputers single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37274EFSP preliminary notice: this is not a final specification. some paramentic limits are subject to change. i 2 c data shift register timer mode register 2 address 00f5 16 address 00f6 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) 0rw 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 rw 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) 0 1 : f(x cin ) 1 0 : 1 1 : (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. b7 b6 b5 b4 b3 b2 b1 b0 i c data shift register1(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 2 note: 2 to write data into the i c data shift register after setting the mst bit to 0 (slave mode), keep an interval of 8 machine cycles or more. d0 to d7 rw name
132 mitsubishi microcomputers single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37274EFSP preliminary notice: this is not a final specification. some paramentic limits are subject to change. i 2 c status register i 2 c address register address 00f7 16 address 00f8 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 rw r rw 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 functions after reset rw 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 mismatch 1 : address match 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 = 0 1 : last bit = 1 last receive bit (lrb) (see note) note : these bits and flags can be read out, but cannnot be written. indeterminate r r r r r rw 0 rw
133 mitsubishi microcomputers single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37274EFSP preliminary notice: this is not a final specification. some paramentic limits are subject to change. i 2 c clock control register i 2 c control register address 00f9 16 address 00fa 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 3 i 2 c-bus interface use enable bit (eso) 0 : disabled 1 : enabled 4 data format selection bit (als) 0 : addressing mode 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 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 functions after reset rw note: when using ports p1 1 -p1 4 as i c-bus interface, the output structure changes automatically from cmos output to n-channel open-drain output. 2 2 rw rw rw rw rw 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 functions after reset rw 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 33303 setup disabled 25004 100 400 (see note) 05 83.3 16606 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 4000khz in the high-speed clock mode, the duty is as below . 0 period : 1 period = 3 : 2 in the other cases, the duty is as below. 0 period : 1 period = 1 : 1 setup value of ccr4Cccr0 rw rw rw rw
134 mitsubishi microcomputers single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37274EFSP preliminary notice: this is not a final specification. some paramentic limits are subject to change. interrupt request register 1 cpu mode register address 00fb 16 address 00fc 16 b7 b6 b5 b4 b3 b2 b1 b0 b after reset rw cpu mode register 0, 1 2 3, 4 0 1 1 0 0 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. 1 stack page selection bit (cm2) (see note) 1 b1 b0 0: 0 page 1: 1 page 100 5 6 main clock (x in Cx out ) stop bit (cm6) cpu mode register (cpum) (cm) [address fb 16 ] rw rw rw rw rw x cout drivability selection bit (cm5) 0: low drive 1: high drive 0: oscillating 1: stopped 7 internal system clock selection bit (cm7) rw 0: x in Cx out selected (high-speed mode) 1: x cin Cx cout selected (high-speed mode) note: this bit is set to 1 after the reset release. 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 request bit (tm1r) 1 timer 2 interrupt request bit (tm2r) 2 timer 3 interrupt request bit (tm3r) 3 timer 4 interrupt request bit (tm4r) 4 osd interrupt request bit (crtr) 5v sync interrupt request 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.
135 mitsubishi microcomputers single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37274EFSP preliminary notice: this is not a final specification. some paramentic limits are subject to change. interrupt control register 1 interrupt request register 2 address 00fd 16 address 00fe 16 b7 b6 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 request bit (int1r) 0 : no interrupt request issued 1 : interrupt request issued 1 data slicer interrupt request bit (dsr) 2 serial i/o interrupt request bit (sior) 3 4 int2 interrupt request bit (int2r) 5 7 fix this bit to 0. 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 ] rw f(x in )/4096 interrupt request bit (1msr) 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 request bit (t56r) 0 : no interrupt request issued 1 : interrupt request issued 0 ] r 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 (crte) 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 0. timer 4 interrupt enable bit (tm4e) 0 : interrupt disabled 1 : interrupt enabled 5 v sync interrupt enable bit (vscr) 0 : interrupt disabled 1 : interrupt enabled 0rw 6 a-d conversion ? int3 interrupt enable bit (ade) 0 : interrupt disabled 1 : interrupt enabled 0rw
136 mitsubishi microcomputers single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37274EFSP preliminary notice: this is not a final specification. some paramentic limits are subject to change. clock run-in register 3 interrupt control register 2 address 00ff 16 address 0209 16 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 (int1e) 0 : interrupt disabled 1 : interrupt enabled 1 data slicer interrupt enable bit (dsr) 2 serial i/o interrupt enable bit (sioe) 3 4 int2 interrupt enable bit (int2e) 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 interrupt enable bit (1mse) 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 (t56e) 0 : interrupt disabled 1 : interrupt enabled 0rw 7 timer 5 ? 6 interrupt switch bit (tm56s) 0 : timer 5 1 : timer 6 0rw b7 b6 b5 b4 b3 b2 b1 b0 clock run-in register 3 (cr3) [address 0209 16 ] b name functions after reset r w clock run-in register 3 0 to 3 0rw 4 r w indeterminate r w clock run-in count value of sub-data slice line (cr30 to cr33) 5 6 interrupt mode selection bit (cr36) indeterminate rw 0: data is not latched yet 1: data is latched data latch completion flag for caption data in sub- data slice line (cr34) data slice line selection bit for interrupt request (cr35) 0: main data slice line 1: sub- data slice line 0: interrupt occurs at end of data slice line 1: interrupt occurs at completion of caption data latch nothing is assigned. this bit is a write disable bit. when this bit is read out, the value is 0. 7 indeterminate indeterminate r
137 mitsubishi microcomputers single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37274EFSP preliminary notice: this is not a final specification. some paramentic limits are subject to change. pwm mode register 2 pwm mode register 1 address 020a 16 address 020b 16 b7 b6 b5 b4 b3 b2 b1 b0 pwm mode register 1 (pn) [address 020a 16 ] b after reset rw pwm mode register 1 0 4 to 7 1 0 name functions da/p0 3 output selection bit (pn1) indeterminate 0 nothing is assigned. these bits are write disable bits. when these bits are read out, the values are 0. 0 : p0 3 output 1 : da output rw r rw pwm counts source selection bit (pn0) 0 : count source supply 1 : count source stop 2 da output polarity selection bit (pn2) 0 0 : positive polarity 1 : negative polarity rw 3 pwm output polarity selection bit (pn3) 0 0 : positive polarity 1 : negative polarity rw b7 b6 b5 b4 b3 b2 b1 b0 pwm mode register 2 (pw) [address 020b 16 ] b after reset rw pwm mode register 2 0 1 2 3 4 0 name functions p0 4 /pwm0 output selection bit (pw0) 0 : p0 4 output 1 : pwm0 output p0 6 /pwm2 output selection bit (pw2) 0 : p0 6 output 1 : pwm2 output p0 7 /pwm3 output selection bit (pw3) 0 : p0 7 output 1 : pwm3 output p0 0 /pwm4 output selection bit (pw4) 0 : p0 0 output 1 : pwm4 output 5 p0 1 /pwm5 output selection bit (pw5) 0: p0 1 output 1: pwm5 output 7 fix this bit to 0. p0 5 /pwm1 output selection bit (pw1) 0 : p0 5 output 1 : pwm1 output 0 0 0 0 0 0 rw rw rw rw rw rw rw 0 6 p0 2 /pwm6 output selection bit (pw6) 0: p0 2 output 1: pwm6 output 0rw
138 mitsubishi microcomputers single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37274EFSP preliminary notice: this is not a final specification. some paramentic limits are subject to change. data slicer control register 3 sync pulse counter register address 020f 16 address 0210 16 b7 b6 b5 b4 b3 b2 b1 b0 sync pulse counter register (syc) [address 020f 16 ] r w sync pulse counter register 0 to 4 0r 6, 7 0 r count value (syc0 to syc4) 5 0rw count source (syc5) 0: h sync signal 1: composite sync signal b after reset functionsname nothing is assigned. these bits are write disable bits. when these bits are read out, the values are 0. b7 b6 b5 b4 b3 b2 b1 b0 data slicer control register 3 (dsc3) [address 0210 16 ] b bit functions after reset r w data slicer control register 3 0 0rw 0rw 0rw 0: main data slice line 1: sub-data slice line line selection bit for slice voltage (dsc30) 3 to 7 1, 2 field to be sliced data selection bit (dsc31, dsc32) definition of fields 1 (f1) and 2 (f2) hsep v sync vsep f1 : hsep v sync vsep f2 : field of sub- data slice line b2 b1 0 0 f2 0 1 f 1 1 0 f1 and f2 1 1 f1 and f2 f2 f1 f2 f1 field for setting refernce voltage setting bit of sub-data slice line (dsc33 to dsc37)
139 mitsubishi microcomputers single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37274EFSP preliminary notice: this is not a final specification. some paramentic limits are subject to change. serial i/o mode register interrupt input polarity register address 0212 16 address 0213 16 b7 b6 b5 b4 b3 b2 b1 b0 interrupt input polarity register (ip) [address 0212 16 ] b name functions after reset r w interrupt input polarity register 0 0 to 2, 5 fix these bits to 0. rw int1 polarity switch bit (int1pol) 0 0 3 0 : positive polarity 1 : negative polarity 4 0 : positive polarity 1 : negative polarity 6 int2 polarity switch bit (int2pol) int3 polarity switch bit (int3pol) 0rw rw rw 0 : positive polarity 1 : negative polarity 0000 0 0 : positive polarity 1 : negative polarity 7 a-d conversion ? int3 interrupt source selection bit (re7) rw 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 )/4 or f(x cin )/4 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, 7 5 transfer direction selection bit (sm5) 0 0: p1 1 , p1 3 1: scl1, sda1 0: external clock 1: internal clock 0: lsb first 1: msb first fix these bits to 0. 0 0 0 0 0 0 rw rw rw rw rw rw 0 4 port function selection bit (sm4) 0: p1 2 , p1 4 1: scl2, sda2
140 mitsubishi microcomputers single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37274EFSP preliminary notice: this is not a final specification. some paramentic limits are subject to change. clock source control register address 0216 16 b7 b6 b5 b4 b3 b2 b1 b0 clock source control register (cs) [address 0216 16 ] b name functions after reset rw clock source control register 0 cc mode clock selection bit (cs0) 0rw 1, 2 osd mode clock selection bits (cs1, cs2) 0: data slicer clock 1: osc1 clock 0rw 3 exosd mode clock selection bit (cs3) 0: data slicer clock 1: osc1 clock 0rw 4, 5 0 w 6 pre-divide ratio of layer 2 selection bit (cs6) 0: 5 1 1: 5 2 0 rw 0 rw 7 0 0: data slicer clock 0 1: osc1 clock 1 0: main clock (see note 1) 1 1: do not set b2 b1 test bit (see note 3) r osd oscillating mode selection bits (cs4, cs5) 0 0: 32 khz oscillating mode 0 1: input ports p6 3 , p6 4 (see note 2) 1 0: lc oscillating mode 1 1: ceramic ? quartz-crystal oscillating mode b5 b4 notes 1: when setting 10 2 , main clock is set as a clock in the cc mode and exosd mode regardless of bits 0, 3. 2: when selecting input ports p6 3 and p6 4 , set bit 7 at address 00c7 16 to 0. 3: be sure to set bit 7 to 0 for program of the mask and the eprom versions. for the emulator mcu version (m37274erss), be sure to set bit 7 to 1 when using the data slicer clock for software debugging.
141 mitsubishi microcomputers single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37274EFSP preliminary notice: this is not a final specification. some paramentic limits are subject to change. raster color register i/o polarity control register address 0217 16 address 0218 16 b7 b6 b5 b4 b3 b2 b1 b0 raster color register (rc) [address 0218 16 ] b name functions after reset r w raster color register 0 raster color r control bit (rc0) 0 : no output 1 : output 0 1 raster color g control bit (rc1) 0 : no output 1 : output 0 2 0 : no output 1 : output 0 raster color b control bit (rc2) rw rw rw 3, 4 0 6 raster color out2 control bit (rc6) 0 rw rw 5 0 : no output 1 : output raster color out1 control bit (rc5) 0 : no output 1 : output 7 0r 0rw osd interrupt source selection bit (rc7) 0 : interrupt occurs at end of osd or exosd block display 1 : interrupt occurs at end of cc mode block display fix these bits to 0. 00 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 register 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) rw rw rw r note: refer to figure 79. 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 rw rw rw r fix this bit to "0". 0
142 mitsubishi microcomputers single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37274EFSP preliminary notice: this is not a final specification. some paramentic limits are subject to change. border color register extra font color register address 0219 16 address 021b 16 b7 b6 b5 b4 b3 b2 b1 b0 extra font color register (ec) [address 0219 16 ] b after reset rw extra font color register 0 3, 4 1 0 name functions extra font color g control bit (ec1) 0 fix these bits to 0. 0 : no output 1 : output rw r rw extra font color r control bit (ec0) 0 : no output 1 : output 2 extra font color b control bit (ec2) 0 0 : no output 1 : output rw 0rw 00 nothing is assigned. these bits are write disable bits. when these bits are read out, the values are 0. 5 to 7 0 b7 b6 b5 b4 b3 b2 b1 b0 border color register (fc) [address 021b 16 ] b after reset rw border color register 0 3, 4 1 0 name functions border color g control bit (fc1) 0 fix these bits to 0. 0 : no output 1 : output rw r rw border color r control bit (fc0) 0 : no output 1 : output 2 border color b control bit (fc2) 0 0 : no output 1 : output rw 0rw 00 nothing is assigned. these bits are write disable bits. when these bits are read out, the values are 0. 5 to 7 0
143 mitsubishi microcomputers single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37274EFSP preliminary notice: this is not a final specification. some paramentic limits are subject to change. window h register 2 window h register 1 address 021c 16 address 021e 16 window l register 1 address 021d 16 b7 b6 b5 b4 b3 b2 b1 b0 window h register 1 (wh1) [address 021c 16 ] b name functions after reset r w window h register 1 0 to 7 control bits of window top boundary (wn10 to wn17) (see note 1) top boundary position (low-order 8 bits) t h 5 (setting value of low-order 2 bits of wh2 5 16 2 + setting value of high-order 4 bits of wh1 5 16 1 + setting value of low-order 4 bits of wh1 5 16 0 ) indeterminate rw notes 1: set values except 00 16 to the wh1 when wh2 is 00 16 . 2: t h is cycle of h sync . 3: wh2: window h register 2 b7 b6 b5 b4 b3 b2 b1 b0 window l register 1 (wl1) [address 021d 16 ] b name functions after reset r w window l register 1 0 to 7 control bits of window top boundary (wl10 to wl17) (see note 1) top boundary position (low-order 8 bits) t h 5 (setting value of low-order 2 bits of wl2 5 16 2 + setting value of high-order 4 bits of wl1 5 16 1 + setting value of low-order 4 bits of wl1 5 16 0 ) indeterminate rw notes 1: set values fit for the following condition: (wh1+wh2 5 16 2 )<(wl1+wl2 5 16 2 ) 2: t h is cycle of h sync . 3: wl2: window l register 2 b7 b6 b5 b4 b3 b2 b1 b0 window h register 2 (wh2) [address 021e 16 ] b name functions after reset r w window h register 2 0, 1 control bits of window top boundary (wn20 ,wn21) (see note 1) top boundary position (high-order 2 bits) t h 5 (setting value of low-order 2 bits of wh2 5 16 2 + setting value of high-order 4 bits of wh1 5 16 1 + setting value of low-order 4 bits of wh1 5 16 0 ) indeterminate rw notes 1: set values except 00 16 to the wh1 when wh2 is 00 16 . 2: t h is cycle of h sync . 3: wh1: window h 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
144 mitsubishi microcomputers single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37274EFSP preliminary notice: this is not a final specification. some paramentic limits are subject to change. vertical position register 2i window l register 2 address 021f 16 addresses 0230 16 to 023b 16 vertical position register 1i addresses 0220 16 to 022b 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 r w 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: set values except 00 16 01 16 to vp1i when vp2i is 00 16 . 2: t h is cycle of h sync . 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 (vp1i0, vp1i1) (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: set values except 00 16 01 16 to vp1i when vp2i is 00 16 . 2: t h is cycle of h sync . b7 b6 b5 b4 b3 b2 b1 b0 window l register 2 (wl2) [address 021f 16 ] b name functions after reset r w window l register 2 0, 1 control bits of window top boundary (wl20, wl21) (see note 1) top boundary position (high-order 2 bits) t h 5 (setting value of low-order 2 bits of wl2 5 16 2 + setting value of high-order 4 bits of wl1 5 16 1 + setting value of low-order 4 bits of wl1 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: set values fit for the following condition: (wh1+wh2 5 16 2 )<(wl1+wl2 5 16 2 ) 2: t h is cycle of h sync . 3: wl1: window l register 1
145 mitsubishi microcomputers single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller M37274EFSP preliminary notice: this is not a final specification. some paramentic limits are subject to change. rom correction enable register address 0246 16 b7 b6 b5 b4 b3 b2 b1 b0 rom correction enable register (rcr) [address 0246 16 ] b after reset rw rom correction enable register 0 block 1 enable bit (rc0) name functions 0: disabled 1: enabled 1 block 2 enable bit (rc1) 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 0 rw rw r 00 2, 3 fix these bits to 0. 0 rw
? 1997 mitsubishi electric corp. new publication, effective nov. 1997. 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 best 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, originating 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 at 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 contact 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 under 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 product 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 materials. ? if these products or technologies are subject to the japanese export control restrictions, they must be exported under a license 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 prohibited. ? please contact mitsubishi electric corporation or an authorized mitsubishi semiconductor product distributor for further details 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 your 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.
rev. rev. no. date 1.0 first edition revision description list (1/1) revision description M37274EFSP data sheet 971130