PRELIMINARY DATA SHEET MICRONAS Edition June 28, 2000 6251-471-1PD CCZ 3005K Central Control Unit MICRONAS CCZ 3005K PRELIMINARY DATA SHEET Contents Page Section Title 4 4 1. 1.1. Introduction Features 5 5 5 5 5 6 6 8 9 10 10 11 16 17 17 18 21 25 25 25 25 26 26 26 26 27 27 28 28 29 31 32 32 33 33 34 34 34 35 36 38 40 40 40 2. 2.1. 2.2. 2.3. 2.4. 2.5. 2.6. 2.7. 2.8. 2.9. 2.10. 2.11. 2.12. 2.13. 2.13.1. 2.13.2. 2.13.3. 2.14. 2.14.1. 2.14.2. 2.14.3. 2.14.4. 2.14.4.1. 2.14.4.1.1. 2.14.4.2. 2.14.4.3. 2.14.4.4. 2.14.5. 2.14.6. 2.14.7. 2.14.8. 2.14.9. 2.14.10. 2.15. 2.15.1. 2.15.2. 2.15.3. 2.15.4. 2.15.5. 2.16. 2.17. 2.17.1. 2.17.2. 2.17.3. Functional Description CPU ROM RAM Clock Generator Control Register Reset Function Watchdog Ports P0-0 to P3-7 6-bit DACs PWM0 to PWM5 14-bit DAC PWM6 I2C and IM-Bus Interface A/D Converter Closed Caption Acquisition Video Input Closed Caption Data Detection Gate and Window Logic OSD Summary of OSD Features Fonts OSD Window Colors OSD Attribute `COLOR' Attribute `Transparent' Available Colors Color Palette Programming Color Palette Hardware Fast Blank Output Half-Video Output Using OSD OSD Attributes Font Definition Soft-Scroll Cursor Cursor Definition Cursor Position Moving and Changing the Cursor Cursor Control Bits Cursor DMA H&V Sync Generator Infrared Input Infrared Detection Status Infrared Detection Control Sample Times 2 Micronas PRELIMINARY DATA SHEET CCZ 3005K Contents, continued Page Section Title 41 41 2.18. 2.19. Timer Interrupt System 42 42 42 45 47 48 50 50 51 52 53 54 54 3. 3.1. 3.2. 3.3. 3.4. 3.5. 3.6. 3.6.1. 3.6.2. 3.6.3. 3.6.4. 3.6.5. 3.6.6. Specifications Outline Dimensions Pin Connections and Short Descriptions Pin Descriptions Pin Configuration Pin Circuits Electrical Characteristics Absolute Maximum Ratings Recommended Operating Conditions Recommended Crystal Characteristics DC Characteristics DC Parameters I2C-Bus Master Interface A/D Converter Characteristics 55 55 4. 4.1. Definitions I/O Definitions 56 5. Register Description 74 74 74 76 76 76 76 77 79 79 80 80 85 85 85 85 6. 6.1. 6.1.1. 6.2. 6.2.1. 6.2.2. 6.2.2.1. 6.2.2.2. 6.2.3. 6.2.4. 6.2.5. 6.2.6. 6.2.7. 6.2.8. 6.2.8.1. 6.2.8.2. Appendix A: Closed Caption The Closed Caption Standard Data Transmission Format Closed Caption Decoder Operating Modes Screen Format Text Mode Caption Mode Presentation Format Character Format Character Attributes Control Codes Data Rejection Automatic Display Enable/Disable Enable Logic and Timing Disable Logic and Timing 86 87 7. 7.1. Appendix B: Pin Configuration of PGA Package Pin Connections in CPGA132F Package 88 8. Data Sheet History Micronas 3 CCZ 3005K PRELIMINARY DATA SHEET Central Control Unit Single Chip Microcontroller with Embedded Closed Caption Decoder 1. Introduction - free running H & V sync generator for stable OSD - full-screen OSD with separate 24*24 pixel Cursor controls RGB and Fast Blank outputs The Central Control Unit CCZ 3005K is an integrated circuit designed in CMOS technology and housed in a 52-pin Plastic Shrink Dual-In-Line Package. It is used as a single-chip TV controller with embedded Closed Caption Decoder and On-Screen Display. - color palette: 8 out of 64 different colors programmable - soft-scroll, underline, flash, italics - Half-Video control output 1.1. Features - I2C/IM-bus master interface - 6 MHz 65C02 CPU, 12 MHz crystal - six 6-bit D/A converters (PWM) - 52-pin PSDIP package - on-chip oscillator - single 14-bit D/A converter (PWM) for voltage synthesizer - clock generator with programmable frequency - up to 29 port lines - 62 KBytes internal ROM - 8-bit A/D converter (6-bit precision) with 5 multiplexed inputs - 1536 Bytes internal RAM - Closed Caption Decoder - infrared input hardware supporting software decoding - programmable TV-line detector - free-running timer generating interrupts - 2 selectable HSYNC inputs - power-on and clock supervision - 2 programmable H & V sync outputs - watchdog 1 Closed Caption Slicer 1 1 1 6 HSYNC2 PWM0 to PWM5 1 6 1 PWM6 IRIN Port 3 Port 2 CURSOR Power on CPU 65C02 Watchdog OSD 7 Oscillator ROM RAM Timer Port 0 A/D Converter 5 Port 1 HV Sync Generator 2 I2C/IM-Bus 6 5 Fig. 1-1: Block Diagram of the CCZ 3005K 4 Micronas CCZ 3005K PRELIMINARY DATA SHEET 2. Functional Description 0 2.1. CPU The CPU is a standard 65C02 core. EEEE EEEE EEEE EEEE EEEE EEEE EEEE EEEE EEEE EEEE Page 0 RAM 2.2. ROM The CCZ 3005K has 62 kBytes of mask-programmable ROM on chip. It covers the addresses from 0800H to FFFFH. 1FFH 2.3. RAM I/O 1536 Bytes RAM are integrated as two portions: 300H Table 2-1: RAM configurations Page Start Stop Length in Bytes 0 and 1 0000H 01FFH 512 3-6 0300H 06FFH 1024 Page 0 offers particularly fast access for the CPU and is therefore very valuable for fast, compact programs. Page 1 contains the stack area. Page 3 and following are used as display memory for CCD (Closed Caption Decoding) and OSD (On-Screen Display). Page 2 is reserved as I/O page (the 65C02 has memory-mapped I/O). 3FFH 6FFH 0800H 2.4. Clock Generator An integrated two-pin oscillator, accompanied by a programmable divider, generates the clock for the microcontroller. The divider is expressed by the equation FFFFH EEEE EEEE EEEE EEEE EEEE EEEE EEEE EEEE EEEE EEEE EEEE CCCC CCCC CCCC CCCC CCCC CCCC CCCC Page 1 Page 2* RAM Page 3 RAM Page 4, 5, 6 ROM ROM Fig. 2-1: Address map fsystem = fXTAL / 2*(n+1) where n is a value from 0 to 255. After reset n is set to 0. fsystem can be modified by writing a new `n' value to address 200H. * With the exception of addr. 02E0H to 02E7H all register addresses of page 2 are internal. With 02E0H to 02E7H external hardware access is possible. These addresses are used for emulation purposes. Important: Any kind of display mode (OSD or CCD) requires a system speed of fXTAL/2 (n = 0). All timings in the CCZ are based on fsystem. Other timings than fsystem = fXTAL/2 are not recommended. Micronas 5 CCZ 3005K PRELIMINARY DATA SHEET 2.5. Control Register nal memory. Only the addresses for the internal I/O registers stay internal (page 2 without 2E0H to 2E7H). This is a combination of control switches in an 8-bit register. During reset it is loaded with the contents of the address FFF9H, but it can also be read and written via software (address 0201H). The switches have the following functions: The logical level at the TEST-pin during RESET decides whether the control byte is read from internal or external memory. For operation without external memory test pin = low-level is used, with the (internal) control byte set to FFH. bit 0 bit 1 bit 2 bit 3 to 7 CPU: `0' = disabled, `1' = enabled RAM; `0' = disabled, `1' = enabled1) ROM: `0' = disabled, `1' = enabled set them to 1 2.6. Reset Function 1) To use the emulator chip version: Set bit 4 to `0'. This enables the additional address and data lines. If bit 1 of the control register is set to `1', addresses 0 to 1FFH and 300H to 7FFH are assumed to be inside the CCZ emulator chip. Thus the data bus may not access external devices (RAM) located in this address range. With the control byte "%11101001" = "E9H" the emulator chip can access almost 64 kBytes of exter- C1 = 22 p The internal reset provides a correct basic setup of the complete hardware on the chip. An internal control register (adr. 201H) is loaded during reset with the byte out of address FFF9H. The internal voltage supervision resets the IC if the voltage is too low. If the frequency is too low, the same function is effected by the clock supervision. Once activated and not refreshed correctly, the watchdog also generates a reset (see chapter 2.7. for details). These internal reset sources (watchdog, voltage detector and clock supervision) use the reset pin as output. Internal resistors limit the maximum current. C2 = 22 p X1 X2 CCZ 3005K OSC /2 2 Clock Supervision CLKRES Voltage Supervision POR Reset + Control- word Logic A0...A15 Internal Reset RESOUT RES RESIN Imax = 10 mA DOGBIT RESET Watchdog Fig. 2-2: Oscillator and reset 6 Micronas CCZ 3005K PRELIMINARY DATA SHEET fOSC 1 2 10 11 12 A0...A15 FFF 9 D0...D7 Control Byte 1 2 3 4 5 6 int. Reset RES VSUP 2 normal operation Fig. 2-3: External reset sequence Micronas 7 CCZ 3005K PRELIMINARY DATA SHEET 2.7. Watchdog Examples: This counter circuit offers hardware support for software problems. It is disabled after reset and enabled with the first write of the desired time value into its register. The value to program is calculated by: (1) To set a cycle time of 1 s with a 6MHz system clock, the value is 91. This value is calculated as follows: system frequency: watchdog cycle time: counter value: n = (TWD * fsystem / 65536) - 1 with n = watchdog counter value to be programmed for TWD = the desired watchdog time and fsystem = system frequency. The nearest integer value is 92. As a 0 loaded into the counter divides by 1, already, the watchdog counter has to be programmed with 92 - 1 = 91. Using the above-mentioned equation (1): Remarks: n = 91 = 1s * 6MHz/65536 - 1 a) To prevent the generation of a "RESET" by the watchdog before it could be retriggered by the software, watchdog counter values of less than 2 should not be programmed. b) The system clock as input of the watchdog counter is influenced by the system clock prescaler, determining the CPU speed (register addr. 200H). The software cannot stop this counter, but has to retrigger it by writing the inverted value (one's complement) of the preceding written pattern into its register, which makes unwanted retrigger loops of disturbed software unlikely. These writes have to occur within the time frame (32 ms to 2 s at 6 MHz system clock), defined with the first write. If no write with the expected pattern occurs within the programmed time period, the watchdog circuit resets the CCZ at the end of the time period. The software can detect if a reset was generated by the watchdog: bit 0 of the watchdog register is `0' if the last reset was generated by the watchdog. This bit is preset (set to '1') only by power-on or writing to the watchdog register. Thus checking it has to occur before the first watchdog register write access. fsystem 65535 (from timer) 8-bit Counter 8 Reset Pin WD Control Logic Clear Counter Internal Reset WR_WD (202H) RD_WD (202H) Data Bus Fig. 2-4: Watchdog 8 6MHz, 65536 / 6MHz = 10.92ms, 1s/10.92ms = 91.55. the software sequences in Assembler could look like this: Definitions: ;constants: WATCHDOG_TIME EQU ;CCZ I/O-address: watchdog_address EQU ;variable: watchdog_value EQU 91 202H 30H ;(address of free RAM ; location) Example 1: During initialization the watchdog is filled with the desired time-value: LDA STA STA #WATCHDOG_TIME watchdog_address watchdog_value ; memorize pattern In the main loop of the program the watchdog has to be retriggered cyclically LDA EOR STA STA watchdog_value #FFH watchdog_address ; invert bits watchdog_value ; memorize new pattern Example 2: If an interrupt function occurs cyclically, one value may be programmed in the interrupt service routine, while the other is written in the main loop. So both, the continuity of executing the interrupt service and the main loop are checked. During initialization the watchdog is filled with the desired time value: LDA STA #WATCHDOG_TIME watchdog_value; memorize pattern Micronas CCZ 3005K PRELIMINARY DATA SHEET Sequence in the interrupt function: LDA CMP BEQ watchdog_value #WATCHDOG_TIME SKIP_IRQ_WD Special Hardware ; STA watchdog_address EOR #$FF STA watchdog_value SKIP_IRQ_WD: Sequence in the main loop: LDA CMP BNE Mode Register watchdog_value #WATCHDOG_TIME SKIP_WD ; STA EOR STA SKIP_WD: watchdog_address #$FF watchdog_value Remark: It is important to program the watchdog register with the new value before this value is memorized in the shadow variable, because this procedure could be interrupted by the interrupt which programs the watchdog with the complementary value. WR_Mode Data Bus Port Pin Data Register WR_Data 2.8. Ports P0-0 to P3-7 Up to 29 port lines grouped in 4 ports (3 * 8bit, 1*5bit) are available: P0-0 to P0-7 P1-0 to P1-4 P2-0 to P2-7 P3-0 to P3-7 8 bits 5 bits 8 bits 8 bits Tristate Register WR_Tristate Some of the port lines can be moved into the `special mode'. Three registers in the I/O-page belong to each port: RD_Data - mode register write only (defines each line as port or special mode pin) `0' = port mode = reset value - tristate register write only (disables or enables the port output stage for each line) `1' = tristate = reset value Fig. 2-5: Port logic After Reset all Ports are in the Port and the output drivers in the tristate mode. The port output drivers have push-pull characteristics. This may be different in the special modes (see description of special mode blocks). - data register read/write (reads pin levels or writes port data) `0' = reset value Micronas 9 CCZ 3005K PRELIMINARY DATA SHEET 2.9. 6-bit DACs PWM0 to PWM5 2.10. 14-bit DAC PWM6 Six digital-to-analog converters belong to the CCZ 3005K. The push-pull outputs of the 6-bit PWMconverters are active if in the corresponding port registers the special mode flag is set and the tristate flag is reset (output=conducting): The CCZ 3005K is equipped with one 14-bit digital-toanalog converter for tuning voltage synthesis. The pushpull output of the 14-bit PWM-converter is active if in the corresponding port register the special mode flag is set and the tristate flag is reset (output=conducting): Table 2-3: 14-bit DAC port Table 2-2: 6-bit DAC ports DAC Port Pin Data Register Address PWM0 P20 250H PWM1 P21 251H PWM2 P22 252H PWM3 P23 253H PWM4 P24 254H PWM5 P25 255H DAC Port Pin Data Register Address PWM6 P37 256H (6 LSBs) 257H (8 MSBs) By writing a 14-bit value to the converter's 2 data registers the software can control the 14-bit DAC. The minimum position (0000H) generates a constant low output signal, the max. value (FF3FH) a 1/16384 low signal. Writing into the MSB register (257H) starts the transfer of the complete 14-bit value into the internal PWM6 logic. This register should therefore be written after the LSB register (256H). The clock of the PWM6 converter is the system clock divided by 2. By writing a 6-bit value to the converter's data register (D0 to D5 = value, D6, D7 = 0) the software can control the DACs. The minimum position (00H) generates a constant low output signal, the max. value (3FH) a 1/64 low signal. The clock of the PWM-converters is 1/8th of the system clock. The PWM6 output needs external circuitry to generate a stable tuning voltage. Fig. 2-6 shows the necessary components. 10k >40V 10k 470p 10k BF240 PWM6 18k 39k 47k 47k ZTK33 470n 47 47k 220n 100n Tuning Voltage 47k Fig. 2-6: Application circuit to generate tuning voltage 10 Micronas PRELIMINARY DATA SHEET 2.11. I2C and IM-Bus Interface In special mode (conducting), port 1 works as a master bus interface. It can generate two different kinds of format: - I2C format - IM format Two terminals are available: 3 pins (special mode of P12 to P14) as IM or I2C lines and 2 pins (special mode of P10, P11) as I2C. Terminal 2 can only operate as I2C interface because of the missing third line. The MSBit of the bus prescaler registers (address 2DBH) is used to switch between terminals. The remaining 7 bits can be used to set the bit rate. bit 7 bit 6 to 0 0= terminal 1, 1= terminal 2 bit rate=fsystem/(4 * n) where n is the value of bits 0 to 6 and the setting value (0 = reset state means n = 128). A complete telegram is assembled by the software out of individual sections. Each section contains an 8-bit data. This data is written into one of the nine possible Control-Data registers. Depending on the chosen address, a certain part of an I2C or IM-bus cycle is generated. By means of corresponding calling sequences it is therefore possible to join even very long telegrams (e.g. long data files for auto increment addressing of I2C slaves). The software interface contains a 3 word deep FIFO for the control-data registers as well as for the received data. Thus all IM and most of the I2C telegrams can be transmitted to the hardware without the software having to wait for empty space in the FIFO. Micronas CCZ 3005K All address and data fields appearing on the bus are constantly read and written into the Read-FIFO. The software can then check these data in comparison with the scheduled data. If a read instruction is handled, the interface must set the data word FFH so that the responding slave can insert its data. In this case the ReadFIFO contains the read-in data. If telegrams longer than 3 bytes (1 address, 2 data bytes) are received, the software must check the filling condition of the control data FIFO and, if necessary, fill it up (or read out the Read-FIFO). A variety of status flags is available for this purpose. Moreover, in the I2C mode the ACK-bit is recorded separately on the bus lines for the address and the data fields. However, the interface itself can set the address ACK=0. In any case the two ACK flags show the actual bus condition. These flags remain until the next I2C start condition is generated. To minimize disturbances generated by the I2C signals, the fall times of both the I2C-SCL and I2C-SDA outputs on both I2C terminals are increased to one fSYSTEM cycle while its output currents are decreased to one third of its maximum. Thus by switching from high to low, it takes one fSYSTEM cycle until the maximum driver current is switched on. It depends on the sizes of the (external) load capacitance and pull-up resistor when the low level is reached (see Fig. 2-8 ). This feature is only active when the port output buffers are current-controlled, i.e., bit 5 of the "Hardware Control Register", address 209H, is set to `1'. Capacities on any of the I2C pins should not exceed 100 pF. Bigger capacitors could effect higher disturbances. RLOAD should be equal to or greater than 2 k. 11 CCZ 3005K PRELIMINARY DATA SHEET WR_Data (chosen address = control info) Address Decoder D0 to D7 WR Transmit FIFO 3 x 11 Control 3 in out SR Transmit Logic 2 empty Start Condition resets ACK flags 3x8 half full Terminal 2 P10, P11 Receive Logic Receive FIFO Terminal 1 P12 to P14 D0 to D7 S R S R Q Q Dat or ADR ACK ready DAT_ACK D0 to D7 ADR_ACK RD_Status (2D7H) Fig. 2-7: I2C/IM-Bus Interface 12 Micronas CCZ 3005K PRELIMINARY DATA SHEET VSUP RLOAD 2 K 2R 1R T1 I2C Q T2 CLOAD100 pF Q fOSC/2 Fig. 2-8: Principle of I2C signal outputs current reduction, during first TOSC, after switching from high to low 2OUT 2OUT I2CCLK I2CCLK Fig. 2-9: Current reduction active, bit 5 of `Hardware Control Register' set to `1' RLOAD = 2 K, CLOAD = 100 pF, recommended 2OUT 2OUT I2CCLK I2CCLK Fig. 2-10: Current reduction active, bit 5 of `Hardware Control Register' set to `1', RLOAD = 1 K, CLOAD = 100 pF, not recommended Micronas Fig. 2-11: Current reduction inactive, bit 5 of `Hardware Control Register' set to `0', RLOAD = 2 K, CLOAD = 100 pF Fig. 2-12: Current reduction active, bit 5 of `Hardware Control Register' set to `1' , RLOAD = 2 K, CLOAD = 350 pF, not recommended 13 CCZ 3005K PRELIMINARY DATA SHEET Table 2-4: I2C and IM-bus interface registers 14 Address Function ( ) 2D0H(w) g generates I2C start condition, transfers Data as I2C address and sets address ACK=1 2D1H(w) same as above, ACK=0 2D2H(w) output 8 I2C Data bits, set ACK=1 2D3H(w) same as above, set ACK=0 ( ) 2D4H(w) output 8 I2C Data bits, sets ACK=1, generates I2C stop condition 2D5H(w) same as above sets ACK=0 2D6H(r) receives FIFO 2D7H(r) status flags: bit 0 not used bit 1 1= receive FIFO empty bit 2 1= contr-dataFIFO half full bit 3 1= Bus busy bit 4 I2C data ACK bit 5 I2C adr ACK bit 6 "OR"ed ACK bit 7 not used 2D8H(w) generates IM-address field 2D9H(w) generates 8 IM-data bits 2DAH(w) generates 8 IM-data bits and the IM-stop condition 2DBH(w) terminal select & speed For example, the software has to work off the following sequence (ACK = 1) to read a 16-bit word from an I2C device address 10H (on condition that the bus is not active): -write 21H to 2D0H -write 0FFH to 2D2H -write 0FFH to 2D4H -read dev. address2D6H -read 1st databyte 2D6H -read 2nd databyte 2D6H check receive FIFO empty flag (bit 1, 2D7H) before read The value 21H in the first step results from the device address in the 7 MSBs and the R/W-bit (read=1) in the LSB. If the telegrams are longer, the software has to ensure that neither the Control-Data-FIFO nor the Read-FIFO can overflow. To write data to this device: -write 20H to -write 1st data byte to -write 2nd data byte to 2D0H 2D2H 2D4H The bus activity starts immediately after the first write to the Control-Data-FIFO. In the I2C mode the transmission can be synchronized by an artificial extension of the Low phase of the clock line. Transmission is not continued until the state of the clock line is High once again. Thus a slave (software slave!) can adjust the transmission rate to its own abilities. The I2C/IM-bus interface is a pure Master system, Multimaster busses are not realizable. The clock and data terminal pins have open-drain outputs. The IM-Bus-Ident Line (terminal 1 only) is a pushpull output stage (see chapter 3.6.5. on page 54). Micronas CCZ 3005K PRELIMINARY DATA SHEET UNIT = Bit-Period 1 Ident SD Data SCL Clock 1 2 1 1 4 Fig. 2-13: Start condition I2C-bus 1 4 1 4 1 4 Fig. 2-16: IM-bus start condition Ident 1 on the 8th address bit only Ident SD Data repeated 7 times SCL clock stays high on the last data bit before stop Clock 1 4 1 2 1 4 Fig. 2-14: Single bit on I2C-bus 1 4 1 4 1 4 1 4 Fig. 2-17: Single bit on IM-bus Ident SD Data SCL Clock 1 4 3 4 Fig. 2-15: Stop condition I2C-bus Micronas 1 4 1 2 1 2 Fig. 2-18: Stop condition IM-bus 15 CCZ 3005K PRELIMINARY DATA SHEET 2.12. A/D Converter Application Tips: The analog voltages at 5 pins of the CCZ can be converted to an 8-bit digital value. With an input multiplexer one of these five inputs is selected. The input voltage is `sampled and held' during conversion time. Conversion gets started with writing the number of the desired analog input pin into the `Analog Input Select and Status' register (address 2A8H). After waiting until the `End of Conversion' (`EOC') flag in this register (bit 7) is set to `1', the result is available in the `A/D Converter Output' value register (address 2A9H). The byte representing the analog voltage at the chosen ADC input pin is evaluated by The input capacitance of an analog input is about 23 pF. The maximum input current depends on the voltage step at the input capacitance and has to be considered when calculating the signal voltage divider. An external capacity between the ADC pin and GND should have a value of at least 10 nF. VIA should be as stable as possible during sample time. VSUPA must not exceed VSUP! CCZ digital value = integer value of (256 x VIA/VSUPA). VIA = Analog Input Voltage VSUPA = Analog Supply Voltage The result of this equation is valid for GNDA < VIA < VSUPA. For VIA VSUPA the digital value is its maximum: FFH. VIA 23 pF The converter needs 68 oscillator clock cycles to sample an input, so with a 12 MHz crystal it takes 5.67 s to convert an analog value. During this time the input voltage should be kept as stable as possible (see Fig. 2-19). The `EOC' flag is comparable with a busy signal and only readable. It is reset (set to `0') by writing into the `Analog Input Select' register and choosing one of the 5 analog inputs that starts conversion. A CCZ Reset also resets the `EOC' flag and selects the ADC0 input pin. Analog Input Select and Status Register (Address 2A8H): Bit 7: EOC-flag (read only) Bits 2 to 0: Number of analog input pin (0 to 4) (write only) TSAMPLE = TON = 68 TOSC Fig. 2-19: A/D converter input Digital Value FF FE FD Important: The ADC hardware must be enabled before the first conversion after RESET can be started, by setting bit 3 of the `Hardware Control' register (addr. 209H) to `1'. Then it is necessary to wait for 68 oscillator clock cycles before the first conversion can be started, by writing the desired ADC input number into the `Analog Input Select' register. Any conversion started earlier delivers useless results. 16 02 01 00 1 2 3 253 254 255 VIA[LSB] Fig. 2-20: A/D converter diagram Micronas CCZ 3005K PRELIMINARY DATA SHEET Table 2-5: Video Input Levels, Clamped, in Volts 2.13. Closed Caption Acquisition 2.13.1. Video Input Video Signal Input Level [IRE] The AC-coupled composite video input signal is applied to the VIDEO IN pin where the negative horizontal sync tip is clamped to a value of 1.911V DC via A1. The gated sync tip clamp circuit is designed to work with a 0.1 F coupling capacitor. The run-in clock of the Closed Caption signal is averaged by R1 and C1. C1 is an external capacitor with a value of 560 pF. The resulting average level is taken as the optimum level for slicing the digital data which follows the run-in clock. It is important for C1 to hold the slicing level for a whole frame (33.2 ms). The best slice level, in terms of common mode range for the chip, is one half of the minimum supply voltage for the CCZ: 4.75V : 2= 2.375V. Since a 1 Vpp video input signal is nominal the clamp level should set the 25 IRE point (data slice level) for the 1 Vpp case to 2.375V. This is done by clamping the sync tips to 1.911 V (2.375 V-0.464 V). Clamp Level at Video Signal Input 1.0 Vpp [V] Clamp Level at Video Signal Input 2.0 Vpp [V] Remarks 100 2.911 3.911 (white) 50 2.554 3.196 - 25 2.375 2.839 (slice) 7.5 2.250 2.589 (black) 0 2.196 2.482 (back porch) -40 1.911 1.911 (sync) The data slicer consists of an on-chip low-pass filter and a high-speed comparator. The sliced data passes through a glitch filter which ignores spikes of less than three fXTAL (12 MHz) periods in duration. The data is then conditioned in a preprocessor stage and transferred to the CPU. The software reads the data from the selected caption line(s) and decodes the caption data further. Blanking Level 7 Cycles of 503 kHz (Clock Run-In) +60 Two 7-Bit + Parity ASCII characters (data) Color Burst +40 25 +20 IRE Units 0 12.91 s (0.20H) -20 Start-Bit 33.764 s 0.53H 3.972 s (0.06H) -40 27.452 s (0.43H) 10.074 s (0.16H) 51.268 s 61.342 s 0.965H Fig. 2-21: Line 21 Field 1 Data Signal Format Micronas 17 CCZ 3005K PRELIMINARY DATA SHEET Peak or Gated Sync-Tip Clamp 3 Sample Averager VClamp (1.911 V) A1 S2 Composite Video in (1 VPP to 2 VPP) 8-Bit SR fXTAL/4 R2 C2 10K Slicer Cap (external) Sync Tip Clamp Gate R1 S1 A2 fXTAL Glitch Filter fXTAL Clock Run-In Key z-1 fXTAL z-1 fXTAL 8-Bit Latch fXTAL/32 fXTAL= 12 MHz C1 560 pF Vclamp+142 mV detect video (Port 237H) 8-Bit Input Port Note: If sync_detect = 1 then S1 always open Data Bus Fig. 2-22: Principle of video input for the detection of Closed Caption Data 2.13.2. Closed Caption Data Detection The sliced data are shifted serially into an 8-bit register with the fXTAL/4 as clock signal. The fXTAL/32 latches these 8 bits so that, as byte, they are available for the processor at register 23FH. As every fXTAL/32 period overwrites the previous latched data, the CPU has to read this register fast enough to get all data. The software part doing so could look like this: ;Capture data port address: capture_data_ EQU $23F ; variables: capt_buffer_ EQU no_of_data_ EQU CAPTURE LDX LDA STA CAPTURE_ LOOP LDA STA INX CPX BNE ; ; 18 $50 capt_buffer_+26 ; ; 26 bytes caption data buffer data counter #0 #26 no_of_data_ ; ; init pointer to captured data in RAM acquire 26 samples capture_data_ capt_buffer_,X ; ; ; no_of_data_ ; CAPTURE_LOOP ; read sliced data store it in RAM point to next location in RAM done 26 samples yet? no, so keep looping ; ; ; ; ; 4 cycles 4 cycles 2 cycles 3 cycles 3 cycles ------ 16 cycles Micronas CCZ 3005K PRELIMINARY DATA SHEET It is important to have all variables used here defined in the address space of the zero page, and not to cross a page boundary with the loop, as otherwise the execution time increases. With 16 processor cycles the sliced data scan rate of this sequence is 12 MHz/2/16 = 375 kHz at a crystal frequency of 12 MHz. This is exactly the clock of the 8-bit slice data latch of fXTAL/32. Caption data are now in the CCZ memory and have to be decoded. The caption data rate is 503 kHz. The shift rate of the slice data register is fXTAL/4 = 12 MHz/4 = 3 MHz. This is almost 6 times the caption data rate of 6*503 kHz = 3.018 MHz. Thus, in the received bit stream, a bit of the caption data is represented by 6 successive sample bits of the same value (the levels of the clock run-ins represented by 3 bits). As the caption data rate is higher than the scan rate and the phases of both clocks are not synchronized, it may occur that a caption data bit is detected as 5 sample bits only: The start-bits begin in the eighth byte: clock-drift = (503 kHz- 500 kHz)/500 kHz = 0.6%. The data start in the 10th byte: The software to decode the captured data has to consider this item. The decoding of the data can be done by several methods: either by comparing the bit-pattern for the last clock run-ins, the start condition and the data bits, or by searching the start condition first, the last clock run-ins next, and then the data, by checking one or several adjacent bits in the center of the six bit portions. The following example shows what the bit pattern of captured data in the CCZ memory could look like: Captured data in memory: 00000000 00000000 01111111 11100111 10111100 11110001 11000111 00000000 00001111 11111111 00000011 11110000 00000000 00000011 11110000 00111111 In the 6th and 7th byte the last clock run-ins may be detected: 00000000 00000000 01111111 11100111 10111100 11110001 11000111 00000000 < clock run-in > 00000000 00000000 01111111 11100111 10111100 11110001 11000111 00000000 00001111 11111111 00000011 11110000 <`1'> <`0'> <`1'> <`0' 00000000 00000011 11110000 00111111 > <`0'> <`0'> <`1'> <`0'> <`1'> 00000000 00000000 00000000 00000011 <`0'> <`0'> <`0'> < `0' > <`0'>< 11111111 11000000 00000000 00000000 `1'> <`1'> capt_buffer_: FCB 00H, 00H, FEH, E7H, 3DH, 8FH, E3H, 00H FCB F0H, FFH, C0H, 0FH, 00H, C0H, 0FH, FCH FCB 00H, 00H, 00H, C0H, FFH, 03H, 00H, 00H FCB 00H, 00H The detected bit stream is: These data are gathered from the following bit stream (as the reception starts with the least significant bits, the notation starts with them, from left to right): 1010001010000011 or 1010 0010 1000 0011 without parity bits (odd parity) and with the most significant bits notices on the left side: 00000000 10111100 00001111 00000000 00000000 11111111 00000000 00000000 11110001 11111111 00000011 00000000 11000000 00000000 01111111 11000111 00000011 11110000 00000000 00000000 11100111 00000000 11110000 00111111 00000011 00000000 1000101 1000001 i.e.: 1000101B = 45H = 'E' 1000001B = 41H = 'A' So "EA" is received. Micronas 19 20 f XTAL/4 Slicer_out D Q D Q Sync_detect (Port 237H) D Q f XTAL/4 1 NMI Supp. WR_236H 3-line mode f XTAL/32 NMI 65C02 CCZ 3005K PRELIMINARY DATA SHEET Fig. 2-23: Gate and Window Logic Micronas CCZ 3005K PRELIMINARY DATA SHEET 2.13.3. Gate and Window Logic The Gate & Window logic is responsible for keeping track of which video field is present at any given time (odd or even field, also known as "Field 1" or "Field 2"), which video line is present (1 to 262 for NTSC, 1 to 312 for PAL/SECAM) and where we are within the line. By keeping track of these three values the Gate & Window logic is able to produce the Run-in-key pulse, which is used by the front-end hardware to determine the best slicing level and to inform the CPU when it is time to start acquiring data from the closed caption video line. The Gate & Window Logic requires a horizontal sync input in addition to the vertical sync input. The active horizontal and vertical pulse width must be at least 6 TOSC, i.e., with a crystal frequency of 6 MHz, it must be greater than or equal to 1 s. Vertical Timing Every TV video frame is made up of two video fields, an odd field and an even field. The CCZ 3005K must be able to distinguish an odd field from an even field because the telecaption data can appear on either or both fields. The CCZ is able to distinguish between odd and even fields, taking advantage of the fact that there is a half-line offset between fields (since 525 & 625 are odd numbers). The difference is measured and used as a basis for determining which field is which. Note that the position of the Vert Sync and Hor Sync is also a function of the sync processor circuit used to provide Vert and Hor Sync. The phasing of Vert Sync can change from one type of Sync processor to another; but there will always be a measurable difference between the fields. Therefore it is up to the user of the CCZ to determine what phasing is suitable for his particular sync processor. The Gate & Window logic measures the difference in phasing between Vert Sync and Hor Sync with an 8-bit "Sample" counter (`Vertical Sync Phase Value' register, Composite Video Field N-1 addr. 23DH). This counter is clocked at fXTAL/4 (3 MHz) and is cleared by the Hsync signal, either derived from the Hsync pin or the COMPOSITE VIDEO, determined with bit 1 in the `Window Logic Control Register2', (addr. 237H). The active edge of VertSync latches the contents of the counter and generates an interrupt request (NMI). The CPU reads the contents of the latched sample counter and determines whether the new field is odd or even. The logic keeps track of lines with a 9-bit line counter which is clocked each horizontal line and cleared by Vert Sync. The desired closed caption line is provided from a loadable register to a comparator as 8 bits. The 9th bit is hardwired "low", so the closed caption line must be in the first 256 lines of the field. The closed captioning decode is combined with the "Field Select" line to generate an interrupt to the CPU. The Field line select is provided by the CPU since it knows what field it is trying to find data on. The closed captioning decode also enables the Run-in key. The acquisition clock is enabled by the CPU at the beginning of the acquisition interrupt routine. The program keeps the acquisition clock enabled for a few cycles beyond the closed caption line to ensure that all of the data has been read from the shift register in the front end. The acquisition clock, fXTAL/32, is combined with the closed caption line decode. The CPU-SO input is active after RESET. The CPU needs to know what causes the interrupt (NMI) since the VertSync pulse also generates an NMI. This is accomplished by feeding the Vert Sync pulse directly into a status register. If this bit is high during the interrupt then the CPU assumes this is a Vert Sync interrupt. This leads to the constraint that the Vert Sync signal must remain high for at least one horizontal line period and must be low during the closed caption line. This is normally the case for sync processors anyway. Also, the Vert Sync interrupt routine must be completed before the acquisition interrupt occurs (see Fig. 2-25). Field N Field N+1 Vert Sync Line Counter Closed Caption Line Field Select Closed Caption Line & Field Select (EMU Pin 25) Run-In Key (EMU Pin 27) NMI (EMU Pin 18) Fig. 2-24: Vertical timing Micronas 21 CCZ 3005K Fig. 2-25: Closed Caption Line Detection 22 Video Line No. COMPOSITE VIDEO NMI Hsync Vsync Closed Caption Line Counter Closed Caption Line Detection: `Video Detect'-bit (= bit 1 of window logic control register 2, addr. 237H) = `0' The closed caption line number is defined in the NMI interrupt function. The line counter is triggered by the Hsync signal. COMPOSITE VIDEO NMI Hsync Vsync Closed Caption Line Counter Video Detection: `Video Detect'-bit (= bit 1 of window logic control register 2, addr. 237H) = `1' The closed caption line number is defined in the NMI interrupt function. The line counter is triggered by the Hsync-clamped composite video signal. Micronas PRELIMINARY DATA SHEET Fig. 2-26: Video Detection Video Line No. PRELIMINARY DATA SHEET CCZ 3005K Horizontal Timing The horizontal timing is based on the Hsync input derived from the Hsync1-pin (default) or the Hsync2 pin (P27 in special mode), defined with bit 3 in the `Window Logic Control' Register (addr. 237H). The critical horizontal rate job performed by the CCZ's Gate & Window Logic is to generate the run-in key pulse during the telecaption line. The run-in key signal may be measured on pin 27 of the emulator chip. Its start time is programmable in register 23BH, while its stop time is determined in register 23CH. An optimized timing of the run-in key referred to the composite video signal delivering the caption data on pin 122 of the CCZ 3005K emulator chip is given in figure 2-28. CLOSED CAPTION LINE The key pulse is used by the front-end circuit to establish the optimum data slicing level. The key pulse start and stop points along the horizontal line are decoded from the sample counter. The decodes are programmable. The start/stop points are combined with the "Closed Caption Line" signal to form a Run-in key that occurs only during the closed caption line. COMPOSITE VIDEO (EMU pin 122) SAMPLE COUNTER START END RUN-IN KEY (EMU PIN 27) NMI (EMU PIN 18) Closed Caption LINE & FIELD SELECT (EMU PIN 25) START OF FIELD 1 ACQUISITION CLOCK SYNC-TIP CLAMP GATE (EMU PIN 26) COMPOSITE VIDEO H SYNC VERT SYNC SAMPLE COUNTER START OF FIELD 2 NMI (EMU PIN 18) COMPOSITE VIDEO H SYNC VERT SYNC SAMPLE COUNTER NMI (EMU PIN 18) Fig. 2-27: Horizontal timing Micronas 23 CCZ 3005K Composite Video (EMU Pin 122) Run-In Key (EMU Pin 27) Sync-Tip Clamp Gate (EMU Pin 26) Fig. 2-28: Optimized Run-In Key and Sync-Tip Clamp A sync tip clamp gate is also decoded from the sample counter. This gate will start a few counts after the leading edge of Hsync and will end a few counts before the trailing edge of the Hsync portion of the video signal. The start and stop counts are programmable. The sync tip clamp gate signal may be measured on pin 26 of the emulator chip. Its start time is programmable in register 239H, while its stop time is determined in register 23AH. An optimized timing of the sync tip clamp gate referred to the composite video signal delivering the caption data on pin 122 is given in figure 2-28. The sync tip clamp gate is used by the front-end circuit to clamp the incoming video to a known reference level. 3-line mode The use of certain video sources (for example VCRs) may cause problems in finding the caption lines (Time Base Jitter). However, owing to the 3-line-mode the wandering of the caption line can be noticed without loosing data. In the 3-line mode 3 consecutive lines are sampled and saved in a RAM-buffer via software. Normally the data line lies in the middle, that is, the second recorded line. In this line only the Run-in key control signal is generated. If the software cannot detect any caption data there, the line before and the line after are searched for data. If data is to be found there, it is decoded as usual. Also, the software corrects the caption counter ((23EH) so that the caption line lies in the middle of the three lines again. Thus the caption decoder can follow the deviations of the caption line. Naturally this method uses up more RAM space and, in that case, more computing power. Video-detect mode (see Fig. 2-26) For Fade and Mute it is necessary for the software to recognize the presence of a video signal. The hardware of the caption decoder can achieve this. The interrupt service routine for data capture can define a line by writing its number into the caption line register 24 PRELIMINARY DATA SHEET (23EH), and setting the window logic control unit to "video detect mode" by programming bit 1 = `1' of the window logic control register (237H). The processor will receive an interrupt (NMI) at the occurrence of the specified line. The time delayed up to this interrupt is given by evaluating the system counter word in registers 203H and 204H. If no line interrupt occurs, the detection of the next VSYNC that is not derived from the video signal indicates the non-existing video signal. If the time up to the occurrence of the line-interrupt is too short, this also means that no stable video signal is available. To detect the correct sync-level on the VIDEOIN pin a low-pass filter to ignore the color burst should be applied. The video detection circuitry is designed for an input signal of 1 Vpp . Software Interface Address Function 237H(w) Window logic control bit 3 Hsync select: `0' = HSYNC1-pin `1 '= HSYNC2-pin bit 2, `1'= gated clamp `0'= peak clamp bit 1, `1'= video det. mode (sync detect) bit 0, `1'= 3-line mode 238H(r/w) Window logic control bit 7 level Vsync pin (read only) bit 6 line counter NMI `0'= disabled `1'= enabled bit 5 `1'= CPU-SO input enabled bit 4 `1'= half-dot rounding on bit 3 OSD active (read only) bit 2 active edge of VSYNC: `0': rising, `1': falling bit 1 active edge of Hsync for acquisition: `0': rising, `1': falling bit 0 active edge of Hsync for OSD: `1': rising, `0': falling 239H(r/w) Sync Tip Clamp Start bit 7 to 0 start pos. pos.= start pos.*4/ fXTAL 23AH(r/w) Sync Tip Clamp End bit 7...0 end pos. pos.= end pos.*4/ fXTAL 23BH(r/w) Run In Key Start bit 7 to 0 start pos. pos.= start pos.*4/ fXTAL 23CH(r/w) Run In Key END bit 7 to 0 end pos. pos.= end pos.*4/ fXTAL 23DH(r/w) Vertic. Sync Phase (odd/even field detect) 23EH(r/w) Caption Line Number NMI is disabled before this register is written for the first time 23FH(r) Captured Data Micronas CCZ 3005K PRELIMINARY DATA SHEET 2.14. OSD - attributes: flash, italics, transparent, underline A powerful on-screen display (OSD) is provided on the CCZ 3005K. Many novel approaches were made to save chip area. The most important area saving technique was to eliminate the redundant storage of displayed data. Traditional display devices transfer fixed text data (such as prompts, menus, graphics etc.) from program ROM to the display RAM. The CCZ's OSD, however, is able to display text directly from program ROM. Additionally, the character font table may be located in the program ROM. This offers the ability to size the table exactly as required. Furthermore, specific characters and symbols can be defined. A second character font may be defined in unused portions of RAM which would allow you to create characters "on-the-fly". - 8 foreground and 8 background colors The ability of the OSD hardware to access font and display data directly from program ROM was facilitated by incorporating direct memory access (DMA) hardware on chip. A minor slow-down of the processor occurs when the DMA hardware is active. The slow-down of the processor is related to how many characters are on screen and how many color changes occur from character to character. - color palette (8 of 64 colors) - line-locked display clock - second color for one text line definable - very effective for pull-down structures - half-dot rounding 2.14.2. Fonts Two different fonts may be defined: one in ROM and one in RAM. The RAM font can be changed by software. This makes it easy to provide foreign language character sets. The basic character set, which is common to all Latin-based languages, for example, can be programmed in the ROM font, containing all characters in the range from ASCII 32 to 127 - i.e., the "printable" ASCII characters. The extensions of the character set that are specific to a language may be contained in the RAM font. These characters can be accessed with offsets to the ROM font or by translating unique ASCII characters with a table. 2.14.1. Summary of OSD Features 2.14.3. OSD Window - 2 character sizes: 13 H x 8 W or 15 H x 8 W - soft-scroll - unlimited numbers of fonts, with any two active at a time Start positions of the display are determined and changed (moved) by setting just two register values: Y_Start and X_Start. There is no restriction on text and window size. MEMORY FONT 1 FONT1 Text FONT2 CPU Display Logic R G B Fast Blank TEXT Program OSD FONT 2 Hsync Vsync Fig. 2-29: Pointer Model OSD Micronas 25 CCZ 3005K PRELIMINARY DATA SHEET 2.14.4. Colors 2.14.4.2. Available Colors 2.14.4.1. OSD Attribute `COLOR' The CCZ 3005K has 8 programmable colors. These colors are selectable out of a palette of 64 different values. Each color consists of the 3 components red, green and blue. Each of these components has 1 out of 4 different intensities. `COLOR' is a control byte that prefixes the data stream for the OSD. It resides anywhere in the CCZ memory, in ROM or RAM. For example, the eight colors could be programmed to be compatible to those of the CCU 3005 C and CCU 3005 D. Example: FDB FCC COLOR ; define color "String" ; display `String' The byte `COLOR' defines the foreground and background color of the characters that follow, until the next `COLOR' attribute is encountered. OSD attribute `COLOR': bits 0 to 2: value 0 to 7 defining foreground color (color 0 to color 7) bits 3 to 5: value 0 to 7 defining background color (color 0 to color 7) bit 6: `0' or `1', if `1': color 0 is replaced by transparent bit 7: `1': marks color attribute. All other data (characters) have bit 7 = `0'. Color 0 = black Color 1 = blue Color 2 = green Color 3 = green/blue = cyan Color 4 = red Color 5 = red/blue = magenta Color 6 = red/green = yellow Color 7 = white Table 2-6: Color component intensity values Intensity MSB LSB Off 0 0 1/3 0 1 2/3 1 0 Maximum 1 1 2.14.4.1.1. Attribute `Transparent' If OSD attribute `COLOR' bit 6 = `1' and background color = `000' but the foreground color is different from `000', the (foreground) character(s) that follow are displayed on a transparent background, i.e., the video source signal is visible instead of the background color. Also the foreground color 0 becomes transparent with OSD attribute `COLOR' bit 6 = `1'. With 4 different intensity values of 3 different colors, 4 4 4 = 64 different colors are possible. Table 2-7: Color palette register R (267H) G (268H) B (269H) 0 0 0 0 Red=Green=Blue=00 0 0 1 1 Red=Green=00; Blue=11 0 1 0 2 Red=00; Green=11; Blue=00 0 1 1 3 Red=00; Green=Blue=11 1 0 0 4 Red=11; Green=Blue=00 1 0 1 5 Red=11; Green=00; Blue=11 1 1 0 6 Red=Green=11; Blue=00 1 1 1 7 Red=Green=Blue=11 26 Address (Color) Reset Value Micronas CCZ 3005K PRELIMINARY DATA SHEET 2.14.4.3. Color Palette Programming The most significant bit of intensity red becomes bit 0 (for color 0) of color palette register red, high byte: 6 register write accesses are necessary for the 3 palette registers to define the 8 possible colors. To program the 16 bits of each of these 3 registers, every register has to be accessed twice. The first write access programs the least significant 8 bits, and the second write access programs the most significant 8 bits. Each of the 8 programmable colors is defined by three 2-bit intensity values: 2 bits for the red component, 2 bits for green and 2 bits for blue. All least significant bits of these 2 bit values form the first byte to be written (low byte), all MSBs form the second byte (high byte). The bits at location 0 of the low and high byte correspond to color 0, bits at location 1 to color 1, bits at location 2 to color 2, ... and bits at location 7 to color 7. Example: To get color 0 as light grey, choose 1/3 intensity for each component: #%xxxxxxx0 color_palette_register_red Intensity green = `01', least significant bit becomes bit 0, green, low byte: LDA STA #%xxxxxxx1 color_palette_register_green The most significant bit becomes bit 0, green, high byte: LDA STA #%xxxxxxx0 color_palette_register_green The same procedure applies to blue: LDA STA LDA STA 1/3 red = 01 1/3 green = 01 1/3 blue = 01 It is not possible to program a single color on its own, thus all 8 selectable colors have to be programmed together. The other 7 color values have to be defined before (`x' is used instead of any `0' or `1' defining the other colors 1 to 7 in this example). #%xxxxxxx1 ;the `1' of `01' color_palette_register_blue #%xxxxxxx0 ;the `0' of `01' color_palette_register_blue A reset changes the color palette to the corresponding colors of the CCU 3005 C and CCU 3005 D (see palette register description in chapter `Registers'). 2.14.4.4. Color Palette Hardware The programming looks as follows: The value for 1/3 intensity red = `01'. The least significant bit of this value becomes bit 0 (for color 0) of color palette register red, low byte: LDA STA LDA STA #%xxxxxxx1 color_palette_register_red A common resistor network is used for the generation of the different intensity levels. The output impedance is maximum 2 kOhms. The following diagram shows the working principle. The color palette controls the 12 transistors of the RGB intensity matrix. Only one transistor per output is active at a time. Color 0 red (of color 7) MSB red LSB LSB D7 D0 DATA BUS CCZ green MSB blue LSB MSB D7 D0 DATA BUS CCZ LSB MSB D7 D0 DATA BUS CCZ Fig. 2-30: Color map, 3 x 2 bytes Micronas 27 CCZ 3005K PRELIMINARY DATA SHEET Table 2-8: RGB output levels Half-Video Level FB1) RGB Level at VSUP = 4.75V at VSUP = 5V at VSUP = 5.25V `1' off 0% 0V 0V 0V `0' off 0% 0V 0V 0V `0' on 0% 0V 0V 0V `0' on 33 % 1,58V 1,66V 1,75V `0' on 66 % 3,16V 3,33V 3,5V `0' on 100 % 4,75V 5V 5,25V 1) The active level of the Fast Blank output is programmable with bit 7 of the `OSD Separate Color Definition Register' (addr. 266H). 2.14.5. Fast Blank Output The `Fast Blank' output is active during any OSD activities, i.e.,: the display hardware controlled by the `Fast Blank' must only evaluate the CCZ RGB outputs with `Fast Blank' = active. The polarity of the `Fast Blank' is programmable (`0' or `1' active). R G 2.14.6. Half-Video Output The OSD generates a `Half-Video' output signal to control external hardware and subdue the video signal. This effects better readability of the OSD, in particular if the video signal's color and contrast are similar to the OSD signal's. The `Half-Video' is active instead of `color 1', no matter whether this color 1 is the background or foreground color. Whatever the value of color 1 is defined to be (palette values), the `Half-Video' output becomes `1'-level and the RGB outputs become inactive (`0'-level). The `Half-Video' output can be switched off (set to `0' throughout) by setting bit 0 of the `OSD Half-Video Control' register to `1'. After reset, this bit is cleared (`0') and the Half-Video Output is active. B +5V T100 T100 T100 T66 T66 T66 T33 T33 T33 T0 T0 T0 100% 1 66% 1 33% 1 0% Fig. 2-31: Principle of color palette 28 Micronas CCZ 3005K PRELIMINARY DATA SHEET 2.14.7. Using OSD fined in `Last Active Scan Line', or after the access to the TEXT-END character. The OSD is organized to display character streams (strings), i.e., data streams in the memory are interpreted as OSD attributes or display characters. Via font data the display characters are converted into display pixels. A number of registers offer a convenient method of telling the OSD `where' and `what' shall be displayed. As only 8 bits can be handled at a time, parameters with more than 8 bits in size require multiple writes to the same register, with the MSByte written first. The (unused) high bits of such registers should be set to `1'.1) So, for example, to program 12CH as `Last Active scan line', an "FFH" would first be written into address 261H and then a "2CH". 260H(w) `OSD First Active Scan Line' 9 bits: Specifies the Start Scan Line of the OSD window. 261H(w) `OSD Last Active Scan Line' 9 bits: Determines the last Scan Line of the OSD window to be displayed. Note that it is possible to set this value to a number that causes the last character lines to be "cut off". This is a desirable feature when smooth scrolling is in operation. 262H(w) `OSD Horizontal Start Position' 6 bits: Determines horizontal start position of the OSD window in character steps. (must be greater than 1!). Don't use values less than 6 or greater than 46 if `Halfdot Rounding' is enabled (`Halfdot Rounding' is enabled if bit 4 in register 0238H = `Window Logic Control Register 1' is set to `1'). The size of one horizontal character step is 8 pixels. (Fine adjust in pixels is possible with `OSD Horizontal Start Fine Adjust', address 26FH). The horizontal stop position of the OSD window is determined in the OSD data stream with the attribute `CR' (= 0DH) or `END' (= 0CH). To avoid a flickering display, writing to the OSD register should occur synchronized with the vertical synchronization signal. The active horizontal and vertical pulse width must be at least 6 TOSC, i.e., with a crystal frequency of 6 MHz, it must be greater than or equal to 1 s. 1) Disturbing effects caused by internal compare evaluations may appear if unused high bits of values with more than 8 bits are set to `0', and these values are programmed without being synchronized to the horizontal synchronization signal. Explanation of register functions: 238H(r/w) Window Logic Control Register 1: bit 7 level Vsync pin (read only) bit 6 line counter NMI `0'= disabled `1'= enabled bit 5 `1'= CPU-SO input enabled bit 4 `1'= halfdot rounding *) on bit 3 OSD active **) (read only) bit 2 active edge of Vsync: `0': rising, `1': falling bit 1 active edge of Hsync for acquisition: `0': rising, `1': falling bit 0 active edge of Hsync for OSD: `1': rising, `0': falling *) Halfdot rounding is not defined for Horizontal Start position (Reg. 0262H) less than 6 and greater than 46. **) The OSD active bit is set to `0' at the beginning of the `First Active Scan Line'. It is set to `1' either after the access to the last scan line of the active display part, de- Micronas Remark: 263H(w) `OSD Control Register', 8 bits: bit 7 `1' = caption mode `0' = OSD mode must be set to `1' for caption data. bit 6 `1' = display active bit 5 `1' = flash off `0' = flash on all characters between the attributes `FLASH ON' and `FLASH OFF' are displayed only if this bit is set to `0' bit 4 `1' = 13x8 font `0' = 15x8 font bit 3..0 first active character Scan Line: determines the start scan line of the first character row of the OSD window. This ability allows the smooth scrolling feature to look correct at the top of the window. 29 CCZ 3005K 264H(w) Remark: 265H(w) 266H(w) 30 `OSD Text Start Address Register', 16 bits: Points to the first character of an OSD data stream. All subsequent characters are encountered until either the OSD attribute `END' or the `Vertical Stop Position' determined in the specific register (address 261H) limits the OSD window. The horizontal expansion of the OSD window is determined in character rows which are terminated with `CR' (=0DH). `OSD Separate Colored Line', 9 bits: Start scan line value for a single character line to be displayed with a separate color. Color attributes as part of the OSD data stream (display string) have no effects on the one character high scan lines selected by this register. The color is defined in the `Separate Color Definition Register'. Thus an entire character line may be highlighted by simply writing its start scan line into this register. This highlighted character line may overlap the boundary of two neighbored ordinary character lines. Thus it can be soft-scrolled through the OSD window. `OSD Separate Color Definition Register' and two more control bits, 8 bits: bit 7: fast blank output level: `1'= active high `0'= active low bit 6: `1'= replace black by transparent `0'= don't replace black by transparent separate color definition: bits 5 to 3: background color (color no. 0 to 7) bits 2 to 0: foreground color (color no. 0 to 7) PRELIMINARY DATA SHEET 26AH(w) `OSD Half-Video Control Register': bit 0: `0'= disable half-video (default after RESET), half-video output pin level=`0' `1'=enable half-video 26EH(w) `OSD Font 1, Font 2, Start Addresses', 32 bits: write in the order MSB font1 (first access) LSB font 1 MSB font 2 LSB font 2 (last access) Two pointers to the start of character fonts. Font 1 displays all characters in the range of 0 to 15H, and Font 2 displays all characters in the range between 20H to 7FH. The OSD assumes the address of the first character (= 00H) as font pointer. 26FH(w) `OSD Horizontal Start Fine Adjust and Display Modes': bit 7 `1'= horizontal shadow active bit 6 `1'= blank display bits 5..3 not used, set to `0' bits 2..0 horizontal start fine adjust Micronas CCZ 3005K PRELIMINARY DATA SHEET 2.14.8. OSD Attributes The OSD receives control information from attribute bytes which are part of the OSD data stream. They reside in the CCZ memory (RAM or ROM) together with the text characters to be displayed. 80H to FFH: `COLOR' bit 7 `1'= color code (to distinguish this attribute from ASCII or control codes). bit 6 `1'= color 0 replaced by transparent bit 5,4,3= background color (color no. 0 to 7) bit 2,1,0= foreground color (color no. 0 to 7) 01H: `UNDERLINE_ON' All subsequent characters are underlined until the OSD attribute `UNDERLINE_OFF' or `END' is encountered 02H: `UNDERLINE_OFF' See `UNDERLINE_ON'. 03H: `FLASH_ON' The following characters up to the attribute `FLASH_OFF' or `END' are displayed only if the `FLASH' bit in the `OSD Control Register' is set to `0' (= bit 5, addr. 263H). The flashing occurs only when the flash bit is toggled. This could be done in the interrupt timer function, for example. 04H: `FLASH_OFF' See `FLASH ON'. 05H: `ITALICS_ON' All subsequent characters are displayed in italics format until the OSD attribute `ITALICS_OFF' or `END'is encountered. Micronas 06H: `ITALICS_OFF' See `ITALICS_ON'. 07H: `TRANSPARENT' For this character space the underlying video image is shown. 08H: (in standard OSD mode only) `DOUBLE_UNDERLINE_ON' like `UNDERLINE_ON' (01H) but the last two character scan lines are used instead of only the last one. `UNDERLINE_OFF' (02H) or `END' turns this mode off again. 09H: (in standard OSD mode only) `FONT_1 AND_2 ' automatic change of FONT_pointers depending on ASCII-value (default mode, initialized by RESET and the active VSYNC edge) 0AH: (in standard OSD mode only) `FONT_1_ONLY' OSD uses only FONT_1 0BH: (in standard OSD mode only) `FONT_2_ONLY' OSD uses only FONT_2 0CH: `END' End of the OSD. Your text must end with this code. 0DH: `CR' Carriage return. The following characters are displayed in the next text line. The OSD insertion must be terminated with CR (0DH) or END (0CH) before the next Hsync! 31 CCZ 3005K PRELIMINARY DATA SHEET The addressing of the pixel pattern to be displayed is given by: 2.14.9. Font Definition The OSD has no separate character generator, but the definitions of the characters reside in ROM and/or RAM of the CCZ. Each character is defined by 16 bytes. One byte corresponds to the pixels in the scan line on the screen, the MSB being the first (leftmost) output. The following 15 addresses contain the pixel information for the remaining scan lines of the character. Three bytes for the 13x8 characters and one byte for the 15x8 characters are left unused. For example, the definition of the letter "A" in the 13x8 matrix could look as follows: bit n n+1 n+2 n+3 n+4 n+5 n+6 n+7 n+8 n+9 n+10 n+11 n+12 n+13 n+14 n+15 76543210 -------- ---x---- --x-x--- --x-x--- -x---x-- -x---x-- x-----x- xxxxxxx- x-----x- x-----x- x-----x- -------- -------- 00000000 00000000 00000000 =00H =10H =28H =28H =44H =44H =82H =FEH =82H =82H =82H =00H =00H =00H =00H =00H OSD insertion must be terminated with `CR' (0DH) or `END' (0CH) before the next Hsync! address= font pointer+ASCII*16+scan line with scan line= 0...12 If the font table does not start with the ASCII character 00H, the font pointer has to be programmed with the corresponding offset. If, for example, the font table starts with the letter "A" (ASCII 65) at address "n", the the following value results for the font pointer: font pointer = n-(65*16) This assumes, of course, that the ASCII representation is used. Font pointer 1 is used to access ASCII characters 00H..1FH, Font pointer 2 is used to access ASCII characters 20H ... 7FH. A single continuous font table results when font pointer 1 and font pointer 2 are set to the same address. 2.14.10. Soft-Scroll To produce soft-scroll, the software regularly changes the start-scan line of the display (263H, bits 3 to 0). The display of the text line designated by the text pointer starts with this scan line. When the value reaches the last scan line, the text pointer is set to the beginning of the next text line and to the start scan line. Thus the text slowly seems to move upwards. The lower edge is defined by the parameter Y_END. The scroll speed and the direction are determined by how fast the software increments (or decrements) the start scan line register. To avoid flickering, the change should be effected during the Vsync Interrupt routine. 32 Micronas CCZ 3005K PRELIMINARY DATA SHEET 2.15. Cursor 2.15.1. Cursor Definition A cursor can be displayed independently from the OSD output . This cursor is always displayed at the top. It can be of any shape within a field of 24x24 pixels. The logic needs a pointer to a cursor definition bit map. This bit map must be defined somewhere in the CPU address space. The other control registers define the three selected colors, the position of the upper left corner, the fast blank polarity and the half-video or transparent mode. There can be multiple cursor bit maps in memory. Changing the cursor shape just needs a new cursor pointer content. Two masks of 24x24 pixels define the shape. This gives 2 bits per pixel for color definition. If both mask-bits of a cursor pixel are zero, the background (OSD or video) is displayed instead of a cursor pixel. Every other mask-bit combination (01b, 10b and 11b) has a 3-bit color definition register (Col_M1 to Col_M3). The content of the selected register will be used as address for the color palette: Mask 1 Pixel Mask 2 Pixel Displayed Color Spec. Mode 0 0 background 1 0 Col_M1 transparent (video) 0 1 Col_M2 1/2 video 1 1 Col_M3 Hsync Pixel count Vsync X Y 24 24 Cursor Bit Map Bit 7 Bit 0 Left pixel Mask 1, line 1 X-Position (9 bits) Col_M1 Col_M2 on/off Right pixel 272H Left pixel LSB LSB 273H Mask 2, line 1 Y-Position (9 bits) Right pixel Mask 1, line 2 274H LSB LSB FB-Pol Hvideo Transp. X 275H CURSOR Pointer Mask 2, line 2 etc.. Col_M3 270H LSB LSB 271H Fig. 2-32: Register model Cursor Micronas 33 CCZ 3005K PRELIMINARY DATA SHEET The cursor logic reads the bitmap using DMA cycles. There is a 16-bit pointer to a block of 3*2*24 = 144 bytes. For every cursor scanline the logic needs 6 bytes: 3 bytes(= 24 pixels) for mask1, and 3 bytes for mask2. This explains the cursor definition format: Cursor pointer line1, mask1, byte1 address N line1, mask1, byte2 N+1 line1, mask1, byte3 N+2 line1, mask2, byte1 N+3 line1, mask2, byte2 N+4 line1, mask2, byte3 N+5 line2, mask1, byte1 N+6 line2, mask1, byte2 N+7 line2, mask1, byte3 N+8 line2, mask2, byte1 N+9 line2, mask2, byte2 N+10 line2, mask2, byte3 N+11 The cursor can be positioned with pixel resolution. Two 9-bit registers define the X and Y position of the upper left corner of the cursor field. The logic uses the same display clock, H-sync and V-sync signals as the OSD. This guarantees a perfect match between OSD and Cursor positions. The OSD has a character-based X and a scanline-based Y position scheme, the cursor needs positions in pixel resolution. Note: the X-fine Register in the OSD acts as an offset of the OSD_Hsync. Changing this register will move both, the OSD and the cursor. It is not necessary to include the x-fine position into the cursor position calculation. 2.15.3. Moving and Changing the Cursor The cursor logic has 6 I/O registers. Changing only the cursor position requires 2 to 4 write operations, changing the shape and the position needs 6 writes. The content of the registers from the first write to the last write is intermediate and can therefore produce jumping effects, wrong colors or wrong cursor shapes. To avoid these effects, disable the cursor with the first write and synchronize your cursor control software with Vsync_OSD. Enable the cursor again as last write to the corresponding control register. Doing all the changes after Vsync gives enough time to complete the modifications before the first cursor scanline is reached. 2.15.4. Cursor Control Bits etc.. Even if the OSD has the character rounding active, the cursor logic displays the same 24*24 pixels on both fields. The visible cursor field is therefore (on interlaced displays) 24 pixels*48 scan lines wide. 34 2.15.2. Cursor Position The color `Col_M1' can be replaced by transparent, the color `Col_M2' by 1/2 video, if the corresponding controlbit is set. Instead of the cursor pixel the video pixel will be displayed (with reduced intensity for `1/2 video'), even if the cursor is over an OSD area. This is different from the `background' color (both mask bits=0): `background' displays the background of the cursor (OSD or video), `transparent' always uses the video as color. The FB_polarity bit selects the active state of the FB signal during the display of the cursor field. This flag must be set to the same level as the FB_select bit in the OSD. The on/off flag allows the software to enable - or disable the cursor. Micronas CCZ 3005K PRELIMINARY DATA SHEET 2.15.5. Cursor DMA The cursor and the OSD access the CPU memory via DMA. The DMA of the cursor logic is done right after the OSD-H-sync of a cursor-scanline (this is a scanline that shows cursor pixels, 24 lines per field). Six subsequent DMA cycles transfer the two mask patterns for one cur- sor scanline into the display buffer of the cursor logic. Collisions with the OSD-DMA are avoided since it is not allowed to select OSD positions less than 1 (without rounding) or 6 (with rounding): the DMA cycles are completed before the OSD can become active. (Note: OSDX-positions count in character steps, an X-position increment of one is equivalent to 8 bus cycles). System clock Hsync_OSD Cursor DMA System bus CPU Cursor Cursor Cursor Cursor Cursor Cursor CPU CPU CPU CPU Cursor_load Cursor_pointer CP CP+1 CP+2 CP+3 CP+4 CP+5 CP+6 Fig. 2-33: Cursor DMA timing Vsync_OSD Hsync_OSD D0 to D7 active edge select selected Vsync_OSD Vint Hint D0 to D7 sync mux FB D0 to D7 to NMI control OSD OSD_ color Transparent & 1/2 video logic FB 1/2 Video Color Palette R G B FB_cursor, Hvideo_cursor D0 to D7 Cursor Cursor_color Display_cursor Fig. 2-34: OSD and Cursor block diagram Micronas 35 CCZ 3005K PRELIMINARY DATA SHEET 2.16. H & V Sync Generator The OSD and cursor logic of CCZ 3005K needs horizontal and vertical synchronization inputs to generate the internal timing signals. If these sync inputs are not stable (e.g. during channel search) the OSD will not have a stable position on the TV screen. The H & V sync generator delivers stable horizontal and vertical sync pulses which can be used to synchronize the OSD. Via a programmable sync multiplexer the OSD can be connected either to the HSYNC and VSYNC input pins or the output signals of the H & V sync generator (see Fig. 2-35). The switching of the sync multiplexer should only occur when the OSD is inactive! After reset the OSD is connected to the HSYNC and VSYNC input pins. The H & V sync generator can be used either in free running or in tracking mode. In free running mode the H & V sync generator simply counts with fsystem and generates syncs at fixed positions (H = 384, V = 312/262). In tracking mode the sync generator tries to follow the HSYNC and VSYNC input signals, but only within programmable limits. Both horizontal and vertical tracking can be programmed independently. If tracking is enabled, a 5-bit speed value can be set which defines how fast the internal counters will be adapted (for example: H = 38410, V = 3125). Sync Mux HSYNC VSYNC '1' '0' active edge select sync format '1' '0' sync mode H&V Sync Generator OSD & Cursor HOSD VOSD FB R G B Fig. 2-35: OSD synchronization 36 Micronas CCZ 3005K PRELIMINARY DATA SHEET The output signals of the H & V sync generator can be programmed in various ways to adapt to different applications. Both outputs can be inverted independently and can be combined into a composite sync signal. The vertical field length can be set to PAL or NTSC mode. inverted HOSD composite H V Mux HOSD Mux VOSD inverted VOSD H PAL NTSC 309 259 310 260 311 261 1 2 3 22 23 24 V HOSD=V & H VOSD=V ^ H Fig. 2-36: Programming sync format of HOSD and VOSD Micronas 37 CCZ 3005K PRELIMINARY DATA SHEET 2.17. Infrared Input The hardware of the CCZ 3005K offers the possibility to program two time values that define the moments when the infrared signal is scanned. Two values of 0 to 14 as nibbles in the 8-bit `IR Sample Times' register determine two delays starting at the active infrared signal edge. The value 15 for `IR sample times' is not allowed. With bit 5 in the `IR Control and Status' register, the step size of the sample time value is programmable: with bit 5 set to `0', the step size is 85 s and values from 0 to 14 x 85 s = 1.19 ms are determined. With bit 5 = `1', the step size is 170 s and the values are from 0 to 14 x 170 s = 2.38 ms. The absolute delay error is +1 LSB, for example. With step size = 85 s and sample time value = 2, the delay is in the range between 170 s and 255 s. Programmed to work in special input mode, P35 (bit 5 of port 3) may be used to detect infrared signals. The hardware of the infrared input is designed to support software decoding of different infrared signals. In most infrared telegrams, data are coded as pulse sequences or different logical levels that follow start edges or pulses. A logical `0' differs from a `1' in the availability of a defined logical level (`0' or `1') during specific time slots after this start edge or pulse, in defined delays between the start edge (or pulse) and a followed data pulse or a logical level during some time after the start edge. start edge start pulse infrared telegram data pulse data pulse delay time time slot Fig. 2-37: Part of an infrared telegram data = `1' data = `0' a) data = `1' data = `0' b) data = `1' data = `0' c) T1 T2 sample time Fig. 2-38: Examples of differently coded infrared signals 38 Micronas CCZ 3005K PRELIMINARY DATA SHEET In the `IR Control and Status' register, it is programmable whether a rising or falling edge has to be evaluated as active infrared signal start edge and whether infrared detection has to generate interrupts. Either the active infrared signal start edge or the detection of the higher of both programmed sampling times (`both samples taken') may generate an interrupt. The result of scanning is delivered in the `IR Control and Status' register. (from timer) n.c. bit 7 Sample T2 Q `1' IRIN n.c. Q CLR Edge Detector OSC/2 bit 6 Timer Caused Interrupt bit 5 bit 4 CLR S Sample Clock Divider IRIN Pin Level 4-bit Counter Both Samples Taken CLR Q bits TSAMPLE2 4 to 7 bits 0 to 3 bit 1 bit 0 TSAMPLE1 IR `Sample Times' Write (addr. 2F6H) Active IRIN Trigger Edge Selection bit 7 IRQ active/inactive bit 6 IRIN sample rate bit 5 bit 4 bit 2 Sample T1 Q CCZ Data Bus bit 3 CCZ Data Bus R `1' CCZ Data Bus Q IRIN Edge Found IRQ (CPU) n.c. IRQ Source: bit 3 bit 2 n.c. bit 1 n.c. bit 0 n.c. `IR Control and Status' Read (addr. 2F5H) Both Samples Taken/IRIN Active Edge `IR Control and Status' write (addr. 2F5H) Fig. 2-39: Block diagram of infrared input Micronas 39 CCZ 3005K 2.17.1. Infrared Detection Status Infrared Status Register as Part of the `IR Control and Status Register' (addr. 2F5H): Bit 6 = Bit 4 = Bit 3 = Bit 2 = Bit 1 = Bit 0 = IRIN pin level at moment T2 Interrupt source: If `1': timer caused interrupt (2.048 ms if system clock = 12 MHz) If `1': IRIN active start edge found IRIN pin level (direct, as if read by standard input port) If `1': both samples taken IRIN pin level at moment T1 PRELIMINARY DATA SHEET If and what can generate an interrupt is also selectable: Bit 6 = `0': disable IRQ Bit 6 = `1': enable IRQ . This IRQ can be caused by the chosen active edge (selected with bit 7) or if both samples are taken, (in parallel to bit 1 of the status register): bit 3 = `0': use active IRIN edge, bit 3 = `1': generate IRQ when both samples are taken (same signal as in status register). Bit 5 of the control part of the `IR Control and Status' register determines the step size for the programmable sample rate: Bit 4 `interrupt source' is set to `0' after every read access to the `IR Control and Status' register, while bits 0, 1, 3 and 6 become `0' after reading the status with a `1' in bit 1, indicating that both samples have been taken, i.e.,: bits 0 and 6 are valid. To trigger the infrared signal start edge only, and not the data edges as well, the sample counters are not retriggerable. They start with the first occurrence of the edge they are programmed for (rising or falling) and become sensitive for the next start after the higher of both sampling times has passed (`both samples taken'), so, in the worst case, after 2.55 ms. Programming the `IR Control and Status' register may already cause an IRQ after having been enabled by the processors' command `CLI' before. Also the `CLI' that follows the write to the register may cause the IRQ if it was not cleared by reading this register before (refer to chapter 2.19.). 2.17.2. Infrared Detection Control 2.17.3. Sample Times By writing to the `IR Control and Status' register, the active start edge of the IRIN signal can be determined: With two nibbles in the `IR Sample Times' register (addr. 2F6H), two moments for sampling the IRIN signal are programmable. The values between 0 and 14 have to be multiplied with either 85 s or 170 s, depending on how bit 5 of the `IR Control and Status' register is programmed. Thus values between 0 and 14 x 170 s = 2.38 ms are programmable. bit 7 = `0': use first detected falling edge, bit 7 = `1': use first detected rising edge of the IRIN signal to start the two sample timers. 40 bit 5 = `0': step size = 85 s, bit 5 = `1': step size = 170 s. Micronas CCZ 3005K PRELIMINARY DATA SHEET 2.18. Timer 2.19. Interrupt System The IRQ input is accessed by a free-running timer with 2.048 ms (fsystem = 6 MHz). As soon as an IRQ has been generated, each further IRQ depends on the reading of the infrared register, which has to be done first and which also provides information on the IRQ-source (IR-input is also an IRQ-source) (see fig. 2-39). The CPU 65C02 contains two interrupts. The readable system counter is derived from the 16-bit prescaler. Although this counter cannot be preset, it can be read. Its value is incremented by 1 with every 2 clock. Overrun occurs from FFFFH to 0000H. To get a definite value, the MSByte is copied into a register that can later be read out (204H) while the LSByte (203H) is read; i.e., the MSByte is latched by reading the LSByte. Address 203H(r) 204H(r) Function LSByte timer, save MSByte MSByte (saved value) Interrupt - IRQ - NMI Sources IR-Interface, Timer VSYNC, Caption line The IRQ is mask-programmable via software. The infrared register detects which of the two sources has triggered the interrupt. The IR interface can also separately be switched off as INT source. As soon as an IRQ is generated, it is disabled until the `IR Control and Status' register is read. If the `IR Control and Status' register is read while an enabled IRQ is pending, the IRQ can be ignored. The software is responsible for starting the IRQ function if an IRQ is detected. The NMIs also become disabled with occurrence. The sources are distinguished by testing the VSYNC-input, bit 7 of the `Window Logic Control Register 1'. To get a further NMI, a WRITE with any value to the `NMI Return' register (addr. 236H) has to be executed immediately before the "RTI" of the NMI service routine. As WRITEs to the `NMI Return' register are registered, the first WRITE should not occur before the first occurrence of an NMI. Therefore it is not advisable to execute a WRITE to the `NMI Return' during initialization, because in that case, the first NMI does not block itself and the second NMI may be nested! A WRITE (of any data) to the `NMI Return' register enables a succeeding NMI with the next processor SYNC signal. The NMI for both the VSYNC and caption line is disabled until a first WRITE to the `Closed Caption Line Number' register (address 23EH) occurs. 8 bit 8 bit fsystem IR Input 2.048 ms Latch S Q R IRQ `IR Control and Status'(addr. 2F5H) read Vsync Caption_Line RD_TIMER_HIGH RD_TIMER_LOW S Q R `NMI-Return' register (addr. 236H) write NMI CPU Data-Bus Fig. 2-40: Readable Timer Micronas Fig. 2-41: INT system CCZ 3005K 41 CCZ 3005K PRELIMINARY DATA SHEET 3. Specifications 3.1. Outline Dimensions SPGS703000-1(P52)/1E 27 1 26 15.6 0.1 14 0.1 0.6 0.2 4.0 0.1 52 47.0 0.1 0.48 0.06 1.778 2.8 0.2 0.28 0.06 1 0.05 16.3 1 25 x 1.778 = 44.4 0.1 Fig. 3-1: 52-Pin Plastic Shrink Dual-In-Line Package (PSDIP52) Weight approximately 5.5 g Dimensions in mm 3.2. Pin Connections and Short Descriptions X = obligatory; connect as described in circuit diagram Pin No. Pin Name Type PSDIP 52-pin Connection Short Description (if not used) 1 P34 IN/OUT X Port 3, Bit 4 2 P35 /IRIN IN/OUT X or output signal of ext. infrared receiver Port 3, Bit 5 or infrared signal input 3 P36 IN/OUT X Port 3, Bit 6 4 P37/PWM6 IN/OUT X Port 3, Bit 7 or pulse width modulator (D/A converter) output no. 6 5 P00 IN/OUT X Port 0, Bit 0 6 P01 IN/OUT X Port 0, Bit 1 7 P02 IN/OUT X Port 0, Bit 2 8 P03 IN/OUT X Port 0, Bit 3 9 P04/VOSD IN/OUT X Port 0, Bit 4 or Vertical synchronization output of internal H&V sync generator 10 P05/HOSD IN/OUT X Port 0, Bit 5 or Horizontal synchronization output of internal H&V sync generator 11 P06 IN/OUT X Port 0, Bit 6 42 Micronas CCZ 3005K PRELIMINARY DATA SHEET Pin Connections and Short Descriptions, continued Pin No. Pin Name Type PSDIP 52-pin Connection Short Description (if not used) 12 P07 IN/OUT X Port 0, Bit 7 13 VIDEOIN IN external video source signal Input for external video signal (for Closed Caption data decoding) 14 SLICER CAPACITANCE IN/OUT slicer capacitor Connection for slicer capacitor 15 PORQTEST IN GND Test pin (usable by manufacturer only) 16 ADC0 IN Analog converter input no. 0 17 ADC1 IN external analog signal 18 ADC2 IN Analog converter input no. 2 19 ADC3 IN Analog converter input no. 3 20 ADC4 IN Analog converter input no. 4 21 GNDA SUPPLY GND Ground connection (same as digital ground) 22 VSUPA SUPPLY +5V analog Analog power supply 23 HALF-VIDEO OUT Half-Video control input of external RGB stage Half-Video control output of internal OSD circuit 24 BOUT OUT blue input of external RGB stage Blue color control output of internal OSD circuit 25 GOUT OUT green input of external RGB stage Green color control output of internal OSD circuit 26 ROUT OUT red input of external RGB stage Red color control output of internal OSD circuit 27 FAST BLANK OUT Fast Blank input of external RGB stage Fast Blank control output of internal OSD circuit 28 HSYNC1 IN HSYNC output of external OSD stage Horizontal synchronization input of internal OSD circuit and Closed Caption Detection circuit 29 VSYNC IN VSYNC output of external OSD stage Vertical synchronization input of internal OSD circuit Micronas Analog converter input no. 1 43 CCZ 3005K PRELIMINARY DATA SHEET Pin Connections and Short Descriptions, continued Pin No. Pin Name Type PSDIP 52-pin Connection Short Description (if not used) 30 P10 / IM2-DAT / I2C2-SDA IN/OUT X or I2C-data line of external device(s) Port 1, Bit 0 or I2C-data 31 P11 / IM2-CLK / I2C2-SCL IN/OUT X or IM-ident line of external device(s) Port 1, Bit 1 or I2C-clock 32 P12 / IM-ID IN/OUT 33 P13 / IM1-DAT / I2C1-SDA IN/OUT X or IM-data resp. I2Cdata line of external device(s) Port 1, Bit 3 or IM-data resp. I2C-data 34 P14 / IM1-CLK / I2C1-SCL IN/OUT X or IM-clock resp. I2Cclock line of external device(s) Port 1, Bit 4 or IM-clock resp. I2C-clock 35 RESET IN/OUT external reset signal CCU reset signal 36 XTAL1 IN CCU clock crystal Crystal connector 37 XTAL2 OUT 38 GND SUPPLY GND Ground connection 39 VSUP SUPPLY +5 V (digital) Power supply (digital) 40 TEST IN GND Test pin (usable by manufacturer only) 41 P20 / PWM0 IN/OUT Port 2, Bit 0 or pulse width modulator (D/A converter) output no. 0 42 P21 / PWM1 IN/OUT X or low pass filter and analog input of external device 43 P22 / PWM2 IN/OUT Port 2, Bit 2 or pulse width modulator (D/A converter) output no. 2 44 P23 / PWM3 IN/OUT Port 2, Bit 3 or pulse width modulator (D/A converter) output no. 3 45 P24 / PWM4 IN/OUT Port 2, Bit 4 or pulse width modulator (D/A converter) output no. 4 46 P25 / PWM5 IN/OUT Port 2, Bit 5 or pulse width modulator (D/A converter) output no. 5 44 Port 1, Bit 2 or IM-ident Crystal connector Port 2, Bit 1 or pulse width modulator (D/A converter) output no. 1 Micronas CCZ 3005K PRELIMINARY DATA SHEET Pin Connections and Short Descriptions, continued Pin No. Pin Name Type PSDIP 52-pin Connection Short Description (if not used) 47 P26 IN/OUT X Port 2, Bit 6 48 P27 / HSYNC1 IN/OUT X or HSYNC output of external OSD stage Port 2, Bit 7 or horizontal synchronization input of internal OSD circuit and Closed Caption Detection circuit 49 P30 IN/OUT X Port 3, Bit 0 50 P31 IN/OUT X Port 3, Bit 1 51 P32 IN/OUT X Port 3, Bit 2 52 P33 IN/OUT X Port 3, Bit 3 3.3. Pin Descriptions Pin 6: Pin numbers refer to the 52-pin PSDIP package. The functions of some port pins can be changed to either `Standard Mode' or `Special Mode' by setting the specific bits in their mode registers. P01: Bit 1 of port 0, connection depends on application Pin 7: P02: Bit 2 of port 0, connection depends on application Pin 8: P03: Bit 3 of port 0, connection depends on application Pin 1: P34: Bit 4 of port 3, connection depends on application Pin 2: P35 or IRIN: in Standard Mode: Bit 5 of port 3, connection depends on application in Special Mode: Infrared signal input, to connect with the output of the infrared receiver Pin 3: P36: Bit 6 of port 3, connection depends on application Pin 9: P04 or VOSD: in Standard Mode: Bit 4 of port 0, connection depends on application in Special Mode: vertical synchronization output of internal H&V sync generator Pin 10: P05 or HOSD: in Standard Mode: Bit 5 of port 0, connection depends on application in Special Mode: horizontal synchronization output of internal H&V sync generator Pin 4: P37 or PWM6: in Standard Mode: Bit 7 of port 3, connection depends on application in Special Mode: PWM (D/A converter) output no. 6 Pin 11: P06 Bit 6 of port 0 connection depends on application Pin 5: Pin 13: VideoIN: Video signal input to connect the closed caption data signal P00: Bit 0 of port 0, connection depends on application Micronas Pin 12: P07 Bit 7 of port 0 connection depends on application 45 CCZ 3005K Pin 14: Slicer Capacitance: Slicer Capacitance connector, with the other side of the capacitor to GND Pin 15: GND (PORQTEST): has to be connected to GND (usable by manufacturer only) Pin 16: ADC0: Analog to digital converter input no. 0 Pin 17: ADC1: Analog to digital converter input no. 1 Pin 18: ADC2: Analog to digital converter input no. 2 Pin 19: ADC3: Analog to digital converter input no. 3 Pin 20: ADC4: Analog to digital converter input no. 4 Pin 21: GNDA: Analog ground (GND) input Pin 22: VSUPA: Analog voltage supply (+5V) input Pin 23: Half-Video: Half-video output signal, to control the OSD output stage working in half-video mode Pin 24: BOUT: Blue intensity output, to control the OSD output stage Pin 25: GOUT Green intensity output, to control the OSD output stage Pin 26: ROUT: Red intensity output, to control the OSD output stage Pin 27: Fast Blank: Fast Blank output, to enable the OSD output stage using the CCZ's R, G, B outputs Pin 28: HSYNC1: One of two available horizontal synchronization signal inputs to connect with the horizontal synchronization output signal of the external OSD source Pin 29: VSYNC: Vertical synchronization input signal to connect with the horizontal synchronization output signal of the external OSD source. 46 PRELIMINARY DATA SHEET Pin 30: P10 or IM2-DAT resp. I2C2-SDA: in Standard Mode: Bit 0 of port 1, connection depends on application in Special Mode: IM-bus data or I2C-bus data, to connect with the same signal(s) of external device(s). It depends on the register that was written to (IM-bus control or I2C-bus control) whether the terminal is used as IM-bus or as I2C-bus data line. Pin 31: P11 or IM2-CLK resp. I2C2-SCL: in Standard Mode: Bit 1 of port 1, connection depends on application in Special Mode: IM-bus clock or I2C-bus clock, to connect with the same signal(s) of external device(s). It depends on the register that was written to (IMbus control or I2C-bus control register) whether the terminal is used as IM-bus or as I2C-bus clock line. Pin 32: P12 or IM-ID: in Standard Mode: Bit 2 of port 1, connection depends on application in Special Mode: IM-bus ident, to connect with the same signal(s) of external device(s). Pin 33: P13 or IM1-DAT resp. I2C1-SDA: in Standard Mode: Bit 3 of port 1, connection depends on application in Special Mode IM-bus data or I2C-bus data, to connect with the same signal(s) of external device(s). It depends on the register that was written to (IM-bus control or I2C-bus control) whether the terminal is used as IM-bus or as I2C-bus data line. Pin 34: P14 or IM1-CLK resp. I2C1-SCL: in Standard Mode: Bit 4 of port 1, connection depends on application in Special Mode: IM-bus clock or I2C-bus clock, to connect with the same signal(s) of external device(s). It depends on the register that was written to (IMbus control or I2C-bus control register) whether the terminal is used as IM-bus or as I2C-bus clock line. Pin 35: RESET: CCZ reset pin to connect with a signal to reset the CCZ. Pin 36: XTAL1: First crystal connector. Micronas CCZ 3005K PRELIMINARY DATA SHEET Pin 37: XTAL2: Second crystal connector Pin 38: GND: Digital ground (GND) input Pin 39: VSUP: Digital Voltage supply (+5V) input Pin 40: TEST: Test input, leave vacant or connect with GND Pin 41: P20 or PWM0: in Standard Mode: Bit 0 of port 2, connection depends on application in Special Mode: PWM (D/A converter) output no. 0 Pin 42: P21 or PWM1: in Standard Mode: Bit 1 of port 2, connection depends on application in Special Mode: PWM (D/A converter) output no. 1 Pin 43: P22 or PWM2: in Standard Mode: Bit 2 of port 2, connection depends on application in Special Mode: PWM (D/A converter) output no. 2 Pin 44: P23 or PWM3: in Standard Mode: Bit 3 of port 2, connection depends on application in Special Mode: PWM (D/A converter) output no. 3 Pin 45: P24 or PWM4: in Standard Mode: Bit 4 of port 2, connection depends on application in Special Mode: PWM (D/A converter) output no. 4 Pin 46: P25 or PWM5: in Standard Mode: Bit 5 of port 2, connection depends on application in Special Mode: PWM (D/A converter) output no. 5 Pin 47: P26: Bit 6 of port 2, connection depends on application Micronas Pin 48: P27 or HSYNC2: in Standard Mode: Bit 7 of port 2, connection depends on application in Special Mode: One of two available horizontal synchronization signal inputs to connect with the horizontal synchronization output signal of the external OSD source Pin 49: P30: Bit 6 of port 3, connection depends on application Pin 50: P31: Bit 1 of port 3, connection depends on application Pin 51: P32: Bit 2 of port 3, connection depends on application Pin 52: P33: Bit 3 of port 3, connection depends on application 3.4. Pin Configuration A2 Output/P34 1 52 P33/CC line IRIN/P35 2 51 P32/Sync Tip IRINOutput/P36 3 50 P31/Run-In Key P37/PWM6 4 49 P30/Average P00 5 48 P27/HSYNC2 P01 6 47 P26/Ext. Slicer P02 7 46 P25/PWM5 P03 8 45 P24/PWM4 P04/VOSD 9 44 P23/PWM3 P05/HOSD 10 43 P22/PWM2 P06 11 42 P21/PWM1 P07 12 41 P20/PWM0 VIDEOIN 13 40 GND (TEST) Slicer Capacitance 14 39 VSUP GND (PORQTEST) 15 38 GND ADC0 16 37 XTAL2 XTAL1 ADC1 17 36 ADC2 18 35 RESET ADC3 19 34 P14/IM1-CLK/I2C1-SCL ADC4 20 33 P13/IM1-DAT/I2C1-SDA GNDA 21 32 P12/IM-ID VSUPA 22 31 P11/IM2-CLK/I2C2-SCL Half-Video 23 30 P10/IM2-DAT/I2C2-SDA BOUT 24 29 VSYNC GOUT 25 28 HSYNC1 ROUT 26 27 Fast Blank Fig. 3-2: 52-pin PSDIP package, top view 47 CCZ 3005K PRELIMINARY DATA SHEET 3.5. Pin Circuits Pin numbers refer to 52-pin PSDIP package. VSUP VSUP VSUP Pad Pad Fig. 3-7: Analog input XTAL1: Pin 36 ADC0 to ADC4: Pins 16 to 20 Fig. 3-3: Push-Pull I/O P30 to P37: Pins 1 to 4 and 49 to 52 P20 to P27: Pins 41 to 48 P12: Pin 32 P00 to P07: Pins 5 to 12. VSUP VSUP Pad Pad Fig. 3-8: Schmitt-Trigger input with Pull-Down Resistor PORQTEST: Pin 15 TEST: Pin 40 Fig. 3-4: Open drain I/O P10, P11, P13, P14: Pins 30, 31, 33, 34 VSUP VSUP VSUP Pin 14 Slicer Capacitance Run-in Key Pad VSUP 10 k Fig. 3-5: Push-Pull output Half-Video and Fast Blank: Pins 23, 27. Video in Pin 13 VSUP Fig. 3-9: VIDEOIN, Slicer Capacitance VIDEOIN: Pin 13 Slicer Capacitance: Pin 14 Pad Fig. 3-6: XTAL output XTAL2: Pin 37 48 Micronas CCZ 3005K PRELIMINARY DATA SHEET VSUP VSUP Pad Pad Power-on Watchdog fOSC < 500 kHz Fig. 3-10: Schmitt-Trigger input Pin 29 VSYNC: HSYNC1: Pin 28 Fig. 3-11: Reset Reset: Pin 35 VSUP VSUP VSUP VSUP\G COLOR CPAD\I 1 VREF66 1 VREF33 RGB pins in standby bit `0' `Hardware Control Register' 1 DR0\I DR33\I DR66\I DR100\I Fig. 3-12: Pin circuit RGB-out Micronas 49 CCZ 3005K PRELIMINARY DATA SHEET 3.6. Electrical Characteristics All voltages refer to ground 3.6.1. Absolute Maximum Ratings Symbol Parameter Pin Min. Max. Unit TA Ambient Operating Temperature - 0 70 C TS Storage Temperature - -40 125 C VSUP Supply Voltage 39 -0.5 6 V VSUPA Analog Supply Voltage 22 -0.5 6 V ISUP Supply Current 39 -50 50 mA ISUPA Analog Supply Current 22 -50 50 mA VI Input Voltage 1 to 12, 23, 27 to 34, 41 to 52 -0.3 VSUP+0.3 V VIA Analog Input Voltage 16 to 20 -0.3 VSUPA +0.3 V IO Output Current 1 to 12, 23, 27 to 34, 41 to 52 -5 5 mA IOR,G,B R, G, B Output Current 24 to 26 -1.6 1.6 mA IOA Analog Output Current 13, 14, 37 -2 00 200 A Stresses beyond those listed in the "Absolute Maximum Ratings" may cause permanent damage to the device. This is a stress rating only. Functional operation of the device at these or any other conditions beyond those indicated in the "Recommended Operating Conditions/Characteristics" of this specification is not implied. Exposure to absolute maximum ratings conditions for extended periods may affect device reliability. 50 Micronas CCZ 3005K PRELIMINARY DATA SHEET 3.6.2. Recommended Operating Conditions at TA = 0 to 70 C, Fxtal = 12.0 MHz Symbol Parameter Pin Min. Typ. Max. Unit VSUP1) Supply Voltage (digital) 39 4.75 5.0 5.25 V VSUPA1) Analog Supply Voltage 22 4.75 5.0 VSUP V VVIDEO Video Input Level 13 1.0 - 2.0 Vpp VSYNCL Sync Input Low Voltage 28, 29, 48 - - 0.8 V VSYNCH Sync Input High Voltage 3.0 - - V Xtal1DUTY Clock Input High/Low Ratio 0.9 1.0 1.1 - Xtal1TRAN Clock Rise/Fall Time - - 12.5 ns VIL2) Input Low Voltage - - 0.8 V VIH2) Input High Voltage all port pins 1 to 12, 12 30 to 34, 41 to 52 3.0 - - V 24 to 26 20 - - K - - 20 pF 2 - - K - - 100 pF 36 RGB Analog Outputs RLoad External Load Resistor CLoad External Load Capacitor IM-Bus/I2C Outputs RLoad External Load Resistor CLoad External Load Capacitor 30 to 34 SYNC Inputs THSYNC Pulse Width of Horizontal Sync 28, 48 6 - - TOSC TVSYNC Pulse Width of Vertical Sync 29 6 - - TOSC 1) GND and GNDA are short-circuited on chip. Both of these pins should be hardwired to common GND plane. Capacitors should be used as near as possible to the VSUP and VSUPA pins against GND to minimize supply voltage disturbance. VSUPA must not exceed VSUP! 2) All port pins have Schmitt-Trigger inputs with a hysteresis of about 0.9 V. Micronas 51 CCZ 3005K PRELIMINARY DATA SHEET 3.6.3. Recommended Crystal Characteristics 52 Symbol Parameter Min. Typ. Max. Unit Test Cond. fxtal Parallel Resonance Frequency for NTSC 11.5 12.083712 12.5 MHz CL = 17.5 pF fxtal Parallel Resonance Frequency for PAL, SECAM 11.5 12.000000 12.5 MHz CL = 17.5 pF dfp/fp Frequency Deviation versus Temperature and Aging - - 100 ppm Rr Series Resistance - - 40 Ohm C0 Shunt Capacitance 5.5 - 7 pF C1 Motional Capacitance 0.015 - 0.025 pF CXTAL1 = CXTAL2 = 22 pF1 pF, CSTRAY 2 pF Micronas CCZ 3005K PRELIMINARY DATA SHEET 3.6.4. DC Characteristics at TA = 0 to 70 C, VSUP = 4.75 to 5.25 V, fxtal = 12 MHz for min./max. values at TA = 60 C, VSUP = 5 V, fxtal = 12 MHz for typical values Symbol Parameter Pin No. Min. Typ. Max. Unit Test Conditions ISUP1) Supply Current (digital) 39 - 22 50 mA no loads on outputs ISUPA1) Analog Supply Current 22 - - 1 mA no loads on outputs - - 1 A no loads on outputs ISUPASTBY 2) 1) Analog Standby Supply Current ADC Inputs Analog Input Leakage Current 16 to 20 -1 - 1 A GNDVINVSUP Leakage Current 1 to 14, 23, 27 to 35, 41 to 52 -1 - 1 A GNDVINVSUP Internal Resistance 24 to 26 - - 2 K (guaranteed by design) VOL Output Low Voltage 0.4 V IOUT = 2 mA VOH Output High Voltage 1 to 12, 30 to 34 34, 41 to 52 V IOUT = -1 mA ILIA1) Inputs ILI RGB Analog Outputs Ri Port Outputs VSUP-0. 5 Port 1 in Special Mode (I2C-Bus) VOD Output Low Voltage in Open Drain Configuration 30, 31, 33, 34 0.4 V IOUT = 5 mA Reset Pin Output Low Voltage 35 0.4 V IOUT = 2 mA Reset Pin VROL 1) GND and GNDA are short-circuited on chip. Both of these pins should be hardwired to common GND plane. Capacitors should be used as near as possible to the VSUP and VSUPA pins against GND to minimize supply voltage disturbance. VSUPA must not exceed VSUP! 2) ADC hardware disabled with bit 3 in `Hardware Control' register, address 209H, set to `0'. Micronas 53 CCZ 3005K PRELIMINARY DATA SHEET 3.6.5. DC Parameters I2C-Bus Master Interface The input and output parameters of the I2C-bus interface (Clock and Data) are designed according to the Micronas specification for Port and IM-bus pins (the interface can also be operated as IM-bus interface). The differences are Symbol Meaning Micronas I2C Specification VIL Input Low Voltage max. 0.8 V max. 1.5 V VIH Input High Voltage min. 2.5 V min. 3 V VOL Output Low Voltage 0.4 / 5 mA 0.4 V / 3 mA The Micronas parameters are equivalent to software I2C-bus solutions using Port-lines for the bus. In applications with series resistors in the clock or data line these differences may become important. Capacities on any of these pins should not exceed 100 pF. Higher capacities could effect higher disturbances. Table 2-9: AC Characteristics Symbol Parameter Min. Typ. Max. Unit Test Conditions TPH2 CPU Cycle Time - 2 - TOSC - Test Conditions 3.6.6. A/D Converter Characteristics Symbol Parameter Min. Typ. Max. Unit - Resolution - - 8 Bits - Absolute Accuracy - - 4 LSB tCONV Conversion Time - - 68 TOSC VIA Analog Input Voltage - - VSUPA V DWMIN Minimum Digital Value 00H - - VIA N i n n F / ? O o o Micronas 83 CCZ 3005K PRELIMINARY DATA SHEET Table 6-5: Preamble address codes (the values are hexadecimal numbers) Row No. First byte of code pair 1 2 3 4 12 13 14 15 Data Channel 1 11 11 12 12 13 13 14 14 Data Channel 2 19 19 1A 1A 1B 1B 1C 1C White 40 60 40 60 40 60 40 60 White Underline 41 61 41 61 41 61 41 61 Green 42 62 42 62 42 62 42 62 Green Underline 43 63 43 63 43 63 43 63 Blue 44 64 44 64 44 64 44 64 Blue Underline 45 65 45 65 45 65 45 65 Cyan 46 66 46 66 46 66 46 66 Cyan Underline 47 67 47 67 47 67 47 67 Red 48 68 48 68 48 68 48 68 Red Underline 49 69 49 69 49 69 49 69 Yellow 4A 6A 4A 6A 4A 6A 4A 6A Yellow Underline 4B 6B 4B 6B 4B 6B 4B 6B Magenta 4C 6C 4C 6C 4C 6C 4C 6C Magenta Underline 4D 6D 4D 6D 4D 6D 4D 6D White Italics 4E 6E 4E 6E 4E 6E 4E 6E White Italics Underline 4F 6F 4F 6F 4F 6F 4F 6F Indent 0 50 70 50 70 50 70 50 70 Indent 0 Underline 51 71 51 71 51 71 51 71 Indent 4 52 72 52 72 52 72 52 72 Indent 4 Underline 53 73 53 73 53 73 53 73 Indent 8 54 74 54 74 54 74 54 74 Indent 8 Underline 55 75 55 75 55 75 55 75 Indent 12 56 76 56 76 56 76 56 76 Indent 12 Underline 57 77 57 77 57 77 57 77 Indent 16 58 78 58 78 58 78 58 78 Indent 16 Underline 59 79 59 79 59 79 59 79 Indent 20 5A 7A 5A 7A 5A 7A 5A 7A Indent 20 Underline 5B 7B 5B 7B 5B 7B 5B 7B Indent 24 5C 7C 5C 7C 5C 7C 5C 7C Indent 24 Underline 5D 7D 5D 7D 5D 7D 5D 7D Indent 28 5E 7E 5E 7E 5E 7E 5E 7E Indent 28 Underline 5F 7F 5F 7F 5F 7F 5F 7F Second byte of code pair Note: All indent codes (second byte equals 50H-5FH, 70H-7FH) assign white as the color attribute. 84 Micronas PRELIMINARY DATA SHEET CCZ 3005K 6.2.7. Data Rejection 6.2.8.1. Enable Logic and Timing The decoder tends to reject data for three reasons: the data are invalid, they are signalled for the data channel not selected by the user, or they are in the line 21 field not selected by the user. Invalid data are data which fail to pass a check for odd parity or data which, having passed the parity check, are assigned no function. The effect of invalid data in control codes is covered in section 6.2.6. Other data which fail parity are always displayed in the current mode (i.e. the same mode as the preceding non-null byte) as block characters (7FH). A parity error in 45 successive frames will disable the video display and erase all memories (see section 6.2.8.). Data rejected for any other reason are ignored and, therefore, lost. The minimum time for the display to be enabled while disabled is 15 frames. When the decoder is first turned on, or after the display has been disabled, it will not be enabled until 15 consecutive frames have been received in which both data bytes pass the check for odd parity. If, while accumulating the 15 frames, a frame occurs in which no data is detected or in which one or more data bytes have even parity, the count of consecutive frames will be reset to zero. The data contained in the 15 frames counted to enable the display are preserved and will be displayed appropriately immediately after the 15th frame. 6.2.8. Automatic Display Enable/Disable The decoder will automatically enable and disable the display of box and text in response to the presence or absence of valid data on line 21. Micronas 6.2.8.2. Disable Logic and Timing The minimum time for the display to be disabled while enabled is 45 frames. After the display has been enabled, it will not be disabled until 45 consecutive frames have been received in which no data are detected or in which at least one data byte has even parity. If, while accumulating the 45 frames, a frame occurs in which both data bytes have odd parity, the count of consecutive frames will be reset to zero. 85 CCZ 3005K PRELIMINARY DATA SHEET 7. Appendix B: Pin Configuration of CPGA Package 14 13 12 11 10 9 8 7 6 5 4 3 2 1 100 104 106 108 110 114 116 118 120 122 124 126 128 1 97 99 102 105 109 112 113 119 121 125 129 130 132 5 95 98 101 103 107 111 115 117 123 127 131 2 3 9 93 94 96 4 6 11 89 90 92 7 8 13 87 88 91 10 12 15 85 86 84 16 14 17 83 80 82 18 20 19 81 78 76 25 22 21 79 74 73 26 24 23 77 72 70 30 28 27 75 69 68 65 61 57 51 49 45 41 37 35 32 29 71 66 64 63 59 55 53 47 46 43 39 36 33 31 67 62 60 58 56 54 52 50 48 44 42 40 38 34 14 13 12 11 10 9 8 7 6 5 4 3 2 1 A A B B C C D D E E F F G G Bottom View H H J J K K L L M M N N P P Fig. 7-1: Pinning of EMU CCZ 3005K in 132-pin Ceramic Package Grid Array (CPGA132F) 86 Micronas CCZ 3005K PRELIMINARY DATA SHEET 7.1. Pin Connections in CPGA132F Package Bond Pin Symbol Bond Pin Symbol Bond Pin Symbol Bond Pin Symbol 1 A-1 nc 34 P-1 nc 67 P-14 nc 100 A-14 nc 2 C-3 nc 35 M-3 P13 68 M-12 P26 101 C-12 P02 3 C-2 GNDA 36 N-3 nc 69 M-13 nc 102 B-12 nc 4 D-3 VSUPA 37 M-4 P14 70 L-12 P27 103 C-11 P03 5 B-1 Half-Video 38 P-2 nc 71 N-14 nc 104 A-13 nc 6 D-2 BOUT 39 N-4 RESET 72 L-13 P30 105 B-11 P04/VOSD 7 E-3 nc 40 P-3 nc 73 K-12 nc 106 A-12 nc 8 E-2 GOUT 41 M-5 XTAL1 74 K-13 P31 107 C-10 P05/HOSD 9 C-1 nc 42 P-4 nc 75 M-14 nc 108 A-11 nc 76 J-12 P32 109 B-10 P06 77 L-14 nc 110 A-10 nc 78 J-13 P33 111 C-9 P07 79 K-14 A0 112 B-9 D0 10 F-3 ROUT 43 N-5 XTAL2 11 D-1 Fast Blank 44 P-5 nc 12 F-2 HSYNC1 45 M-6 GND 13 E-1 VSYNC 46 N-6 nc 14 G-2 EMU 47 N-7 VSUP 80 H-13 A1 113 B-8 D1 15 F-1 R/W 48 P-6 TEST 81 J-14 A2 114 A-9 D2 16 G-3 CE 49 M-7 A8 82 H-12 A3 115 C-8 D3 17 G-1 2 50 P-7 A9 83 H-14 A4 116 A-8 D4 18 H-3 NMI 51 M-8 A10 84 G-12 A5 117 C-7 D5 19 H-1 2CPU 52 P-8 A11 85 G-14 A6 118 A-7 D6 20 H-2 DMA 53 N-8 A12 86 G-13 A7 119 B-7 D7 21 J-1 NMICPU 54 P-9 A13 87 F-14 IRQ 120 A-6 nc 22 J-2 2OUT 55 N-9 A14 88 F-13 P34 121 B-6 nc 23 K-1 RESETCPU 56 P-10 A15 89 E-14 nc 122 A-5 VIDEOIN 24 K-2 SYNCCPU 57 M-9 P20 90 E-13 P35 123 C-6 Slicer Cap. 25 J-3 CCLINE 58 P-11 P21 91 F-12 nc 124 A-4 GND 26 K-3 SYNCTIP CLAMP GATE 59 N-10 P22 92 E-12 P36 125 B-5 ADC0 27 L-1 RUN-IN KEY 60 P-12 nc 93 D-14 nc 126 A-3 ADC1 28 L-2 P10 61 M-10 P23 94 D-13 P37/PWM6 127 C-5 ADC2 29 M-1 nc 62 P-13 nc 95 C-14 nc 128 A-2 nc 30 L-3 P11 63 N-11 P24 96 D-12 P00 129 B-4 ADC3 31 N-1 nc 64 N-12 nc 97 B-14 nc 130 B-3 nc 32 M-2 P12 65 M-11 P25 98 C-13 P01 131 C-4 ADC4 33 N-2 nc 66 N-13 nc 99 B-13 nc 132 B-2 nc (PORQTEST) standard pin additional EMU pin nc Micronas input output bidirectional direction programmable 87 CCZ 3005K PRELIMINARY DATA SHEET 8. Data Sheet History 1. Preliminary data sheet: "CCZ 3005K Central Control Unit", June 28, 2000, 6251-471-1PD. First release of the preliminary data sheet. Micronas GmbH Hans-Bunte-Strasse 19 D-79108 Freiburg (Germany) P.O. Box 840 D-79008 Freiburg (Germany) Tel. +49-761-517-0 Fax +49-761-517-2174 E-mail: docservice@micronas.com Internet: www.micronas.com Printed in Germany Order No. 6251-471-1PD 88 All information and data contained in this data sheet are without any commitment, are not to be considered as an offer for conclusion of a contract, nor shall they be construed as to create any liability. Any new issue of this data sheet invalidates previous issues. Product availability and delivery are exclusively subject to our respective order confirmation form; the same applies to orders based on development samples delivered. By this publication, Micronas GmbH does not assume responsibility for patent infringements or other rights of third parties which may result from its use. Further, Micronas GmbH reserves the right to revise this publication and to make changes to its content, at any time, without obligation to notify any person or entity of such revisions or changes. No part of this publication may be reproduced, photocopied, stored on a retrieval system, or transmitted without the express written consent of Micronas GmbH. Micronas