INTEGRATED CIRCUITS DATA SHEET PCE84C886 Microcontroller for monitor OSD and auto-sync applications Preliminary specification File under Integrated Circuits, IC14 1996 Jan 08 Philips Semiconductors Preliminary specification Microcontroller for monitor OSD and auto-sync applications PCE84C886 CONTENTS 12 OSD CONTROL REGISTERS 12.1 12.2 12.3 12.4 12.5 12.6 12.7 Derivative Register 22 Derivative Register 23 Derivative Register 33 Derivative Register 34 Derivative Register 35 Derivative Register 36 Derivative Register 37 13 TO FORMAT THE OSD 13.1 13.2 13.3 Number of characters per row Number of rows per frame Character size selection for different display resolutions 1 FEATURES 1.1 1.2 1.3 General Special OSD 2 GENERAL DESCRIPTION 3 ORDERING INFORMATION 4 BLOCK DIAGRAM 5 PINNING INFORMATION 5.1 5.2 Pinning Pin description 6 RESET 14 8-BIT COUNTER (T3) 6.1 6.2 Reset trip level Reset status 15 I2C-BUS INTERFACE 7 ANALOG (DC) CONTROL 16 OUTPUT PORTS 7.1 7.2 7.3 6 and 7-bit PWM outputs 14-bit PWM output A typical PWM output application 16.1 Mask options 17 DERIVATIVE REGISTERS 18 LIMITING VALUES DC CHARACTERISTICS 8 ANALOG-TO-DIGITAL CONVERTER (ADC) 19 8.1 Conversion algorithm 20 AC CHARACTERISTICS 9 ON SCREEN DISPLAY (OSD) 21 DEVELOPMENT SUPPORT 9.1 9.2 9.3 Horizontal starting position control Vertical starting position control On-chip clock generator 22 PACKAGE OUTLINE 23 SOLDERING 10 DISPLAY RAM ORGANIZATION 10.1 10.2 10.3 10.4 Description of display RAM codes Default values of OSD after Power-on-reset Loading character data into display RAM Writing character data into display RAM 23.1 23.2 23.3 Introduction Soldering by dipping or by wave Repairing soldered joints 24 DEFINITIONS 25 LIFE SUPPORT APPLICATIONS 11 CHARACTER ROM 26 PURCHASE OF PHILIPS I2C COMPONENTS 11.1 11.2 11.3 Character ROM address map Character ROM organization Combination of character font cells 1996 Jan 08 2 Philips Semiconductors Preliminary specification Microcontroller for monitor OSD and auto-sync applications 1 1.1 PCE84C886 • Spacing between character rows: 0, 4, 8 and 12 scan lines FEATURES General • Foreground colours: 8 on a character-by-character basis • CMOS 8-bit CPU (enhanced 8048 CPU) with 8 kbytes system ROM and 192 bytes system RAM • Background colours: 8 on a word-by-word basis • One 8-bit timer/event counter (T1) and one 8-bit counter triggered by external input (T3) • Background/shadowing modes: 4 modes available, No background, North shadowing, Box shadowing and Frame shadowing (raster blanking) on a frame basis • Four single level vectored interrupt sources: external (INTN), counter/timer, I2C-bus and VSYNCN • On-chip Phase-Locked Loop (PLL) oscillator (auto-sync with HSYNCN) with programmable oscillator for On Screen Display (OSD) function • 2 directly testable inputs T0 and T1 • On-chip oscillator clock frequency: 1 to 10 MHz • Character blinking frequency: programmable using fVsync divisors of 16, 32, 64 and 128; on a frame basis • On-chip Power-on-reset with low power detector • Twelve quasi-bidirectional I/O lines, configuration of each I/O line individually selected by mask option • Character blinking ratios: 1 : 1, 1 : 3 and 3 : 1 • Programmable active level polarities of VSYNCN, HSYNCN, R, G, B and FB • Idle and Stop modes for reduced power consumption • Operating temperature: −25 to +85 °C • Flexible display format by using Carriage Return Code • Operating voltage: 4.5 to 5.5 V • Package: SDIP42. • Auto display RAM address (DCRAR) incremented after write operation to the Character Data Register (DCRCR) 1.2 • VSYNCN generates an interrupt (enabled by software) when VIEN is active. Special • Master-slave I2C-bus interface • Four 6-bit Pulse Width Modulated outputs (PWM4 to PWM7) 2 • Four 7-bit Pulse Width Modulated outputs (PWM0 to PWM3) GENERAL DESCRIPTION • 4 character sizes: 1H/1V, 1H/2V, 1H/3V and 1H/4V The PCE84C886 is a member of the 84CXXX CMOS microcontroller family. It is suitable for use in 14", 15" and 17" auto-sync monitors for OSD and auto-sync applications. The device uses the PCE84CXX processor core and has 8 kbytes of ROM and 192 bytes of RAM. I/O requirements are adequately catered for with 12 general purpose bidirectional I/O lines plus 16 function combined I/O lines. 9 PWM analog outputs are provided specifically for analog control purposes and also three 4-bit ADCs. The device has an 8-bit counter, suitable for use in pulse counting applications; an 8-bit timer/counter with programmable clock and an on-chip programmable PLL oscillator that generates the OSD clock. In addition to all these features a master-slave I2C-bus interface, 2 directly testable lines and an enhanced OSD facility for flexible screen format (64 character types) are also provided. • 64 Horizontal starting positions (4 dots for each step) The block diagram of the PCE84C886 is shown in Fig.1. • One 14-bit Pulse Width Modulated output (PWM8) • Three 4-bit ADC channels • 16 derivative I/O ports. 1.3 OSD • Maximum dot frequency (fOSD): 14 MHz • Display RAM: 64 × 10 bits • Display character fonts: 62 + 2 special reserved codes • Character matrix: 12 × 18 (no spacing between characters) • 64 Vertical starting positions (4 scan lines for each step) 3 ORDERING INFORMATION PACKAGE TYPE NUMBER NAME PCE84C886 1996 Jan 08 SDIP42 DESCRIPTION plastic shrink dual in-line package; 42 leads (600 mil) 3 VERSION SOT270-1 Philips Semiconductors Preliminary specification Microcontroller for monitor OSD and auto-sync applications 4 PCE84C886 BLOCK DIAGRAM VOW0 handbook, full pagewidth INTN / T0 T1 T3 FB VOW2 VOW1 (3) VSYNCN C HSYNCN (3) VDD XTAL1 (IN) XTAL2 (OUT) 8-BIT TIMER / EVENT COUNTER CPU 8-BIT COUNTER ROM 8 kbytes RAM 192 bytes ON SCREEN DISPLAY 8-bit internal bus RESET TEST / EMU PARALLEL I/O PORTS PCF84CXX core excluding ROM / RAM 8-BIT I/O PORTS 4 x 6-BIT PWM 4 x 7-BIT PWM 14-BIT PWM 3 x 4-BIT ADC 2 I C-BUS INTERFACE V SS 8 P0 4 P1 8 4 MLC067 4 (1) PWM0 to PWM7 DP0 DP1 DP2 (1) Alternative function of DP0. (2) Alternative function of DP1. (3) Alternative function of DP2. Fig.1 Block diagram. 1996 Jan 08 4 (2) PWM8 (2) ADC0 to ADC2 (3) SDA (3) SCL Philips Semiconductors Preliminary specification Microcontroller for monitor OSD and auto-sync applications 5 5.1 PCE84C886 PINNING INFORMATION Pinning handbook, halfpage FB 1 42 VDD VOW2 2 41 C VOW1/DP22 3 40 DP20/SDA VOW0/DP23 4 39 DP21/SCL VSYNCN 5 38 DP10/ADC0 HSYNCN 6 37 DP11/ADC1 P10 7 36 DP12/ADC2 P11 8 35 INTN/T0 DP13/PWM8 9 34 T1 P12 10 33 RESET T3 11 32 XTAL2 (OUT) P14 12 31 XTAL1 (IN) P00 13 30 TEST/EMU P01 14 29 DP00/PWM0 P02 15 28 DP01/PWM1 P03 16 27 DP02/PWM2 P04 17 26 DP03/PWM3 P05 18 25 DP04/PWM4 P06 19 24 DP05/PWM5 P07 20 23 DP06/PWM6 VSS 21 22 DP07/PWM7 PCE84C886 MLC068 Fig.2 Pin configuration. 1996 Jan 08 5 Philips Semiconductors Preliminary specification Microcontroller for monitor OSD and auto-sync applications 5.2 PCE84C886 Pin description Table 1 SDIP42 package SYMBOL FB PIN 1 DESCRIPTION Video Fast Blanking output. VOW2 2 Video character output VOW2. VOW1/DP22 3 Video character output VOW1 or Derivative Port line DP22. VOW0/DP23 4 Video character output VOW0 or Derivative Port line DP23. VSYNCN 5 Vertical synchronization signal input. HSYNCN 6 Horizontal synchronization signal input. P10 7 Port line 10 or emulation input DXWR. P11 8 Port line 11 or emulation input DXRD. DP13/PWM8 9 Derivative I/O port or PWM8 output. P12 10 Port line 12 or emulation input DXALE. T3 11 Secondary 8-bit counter input (Schmitt trigger). 12 Port line 14 or emulation output DXINT. P14 P00 to P07 VSS DP00/PWM0 to DP07/PWM7 13 to 20 21 29, 28, 27, 26 25, 24, 23, 22 General I/O port lines. Ground. Derivative I/O ports or PWM outputs. TEST/EMU 30 Control input for testing and emulation mode, normally LOW. XTAL1 (IN) 31 Oscillator input pin for system clock. XTAL2 (OUT) 32 Oscillator output pin for system clock. RESET 33 Reset input; active LOW input initializes device. T1 34 Direct testable pin or event counter input. INTN/T0 35 External interrupt or direct testable pin. DP10/ADC0 38 Derivative I/O port or ADC Channel 0 input. DP11/ADC1 37 Derivative I/O port or ADC Channel 1 input. DP12/ADC2 36 Derivative I/O port or ADC Channel 2 input. DP21/SCL 39 Derivative port line or I2C-bus clock input. DP20/SDA 40 Derivative port line or I2C-bus data input. C 41 External capacitor input for on-chip oscillator. VDD 42 Power supply. 1996 Jan 08 6 Philips Semiconductors Preliminary specification Microcontroller for monitor OSD and auto-sync applications 6 PCE84C886 RESET The RESET pin may be used as an active LOW input to initialize the microcontroller to a defined state. handbook, halfpage An active reset can be generated by driving the RESET pin from an external logic device. Such an active reset pulse should not fall off before VDD has reached its fxtal-dependent minimum operating voltage. V DD R RESET RESET A Power-on-reset can be generated using an external RC circuit. To avoid overload of the internal diode, an external diode should be added in parallel if CRESET ≥ 2.2 µF. The RC circuit is shown in Fig.3. 6.1 C RESET V SS PCA84C8XX MLC259 Reset trip level The RESET trip voltage level is masked to 1.3 V in the PCE84C886. Fig.3 External components for RESET pin. If any input (for example Hsync) goes HIGH before VDD is applied, latch-up may occur and in this situation the PCE84C886 cannot be reset. The cause and effect of latch-up is shown in Fig.4. 6.2 internal reset ( 100 kΩ) handbook, halfpage V DD Reset status V DD internal V DD • Derivative Registers reset status; see Table 38 for details • Program Counter 00H Hsync • Memory Bank 0 V SS • Register Bank 0 PCE84C886 • Stack Pointer 00H R RESET • All interrupts disabled RESET • Timer/event counter 1 stopped and cleared internal reset C RESET • Timer pre-scaler modulo-32 (PS = 0) V SS • Timer flag cleared • Serial I/O interface disabled (ESO = 0) and in slave receiver mode Fig.4 • Idle and Stop mode cleared. 1996 Jan 08 HSYNCN 7 MLC260 The influence of an active HIGH signal being applied before Power-on-reset. Philips Semiconductors Preliminary specification Microcontroller for monitor OSD and auto-sync applications 7 PCE84C886 The duty cycle of outputs PWM0 to PWM7 is dependent on the programmable contents of the data latches (Registers 10 to 17 respectively). As the clock frequency of each PWM circuit is 1⁄3 × fxtal, the pulse width of the pulse generated can be calculated as shown below. ANALOG (DC) CONTROL The PCE84C886 has nine Pulse Width Modulated (PWM) outputs for analog control purposes e.g. brightness, contrast, H-shift, V-shift, H-width, V-size, E-W, R (or G or B) gain control etc. Each PWM output generates a pulse pattern with a programmable duty cycle. The nine PWM outputs are specified below: 3 × ( PWMn ) Pulse width = ---------------------------------f xtal • 4 PWM outputs with 6-bit resolution (PWM4 to PWM7) Where (PWMn) is the decimal value held in the data latch. • 4 PWM outputs with 7-bit resolution (PWM0 to PWM3) • 1 PWM output with 14-bit resolution (PWM8). The maximum repetition frequency (fPWM) of the 6 and 7-bit PWM outputs is shown below. The 6 and 7-bit PWM outputs are described in Section 7.1; the 14-bit PWM output is described in Section 7.2 and a typical PWM output application is described in Section 7.3. f xtal For the 6-bit PWM outputs: f PWM = --------192 7.1 f xtal For the 7-bit PWM outputs: f PWM = --------384 6 and 7-bit PWM outputs PWM outputs PWM0 to PWM7 share the same pins as Derivative Port lines DP00 to DP07 respectively. Selection of the pin function as either a PWM output or a Derivative Port line is achieved using the appropriate PWMnE bit in Register 21 (see Table 38). The block diagram for the 6 and 7-bit PWM outputs is shown in Fig.5. The polarity of the PWM outputs is programmable and is selected by the P7LVL and P6LVL bits in Register 23 (see Section 12.2). internal data bus handbook, full pagewidth f xtal 6 or 7-BIT PWM DATA LATCH P6LVL/P7LVL DP0x data I/O 3 PWMnE 6 or 7-BIT DAC PWM CONTROLLER Q DP0x/PWMx Q MLC069 Fig.5 Block diagram for 6 and 7-bit PWMs. 1996 Jan 08 8 Philips Semiconductors Preliminary specification Microcontroller for monitor OSD and auto-sync applications PCE84C886 f xtal handbook, full pagewidth 3 64 or 128 1 2 3 m m+1 m+2 64 or 128 1 00 01 m 63 or 127 MLC261 decimal value PWM data latch Fig.6 Typical non-inverted output pulse patterns for 6 or 7-bit PWM outputs. 1996 Jan 08 9 Philips Semiconductors Preliminary specification Microcontroller for monitor OSD and auto-sync applications 7.2 PCE84C886 7.2.1 14-bit PWM output PWM8 shares the same pin as Derivative Port line DP13. Selection of the pin function as either a PWM output or as a Derivative Port line is achieved using the PWM8E bit in Register 22 (see Section 12.1). COARSE ADJUSTMENT • 14-bit data latch (PWMREG) An active HIGH pulse is generated in every subperiod; the pulse width being determined by the contents of PWM8H. The coarse output (OUT1) is LOW at the start of each subperiod and will remain LOW until the time [ 3 ⁄ f xtal × ( PWM8H + 1 ) ] has elapsed. The output will then go HIGH and remain HIGH until the start of the next subperiod. The coarse pulse width may be calculated as shown below. 3 Pulse duration = ( 127 – PWM8H ) × -------f xtal • 14-bit counter 7.2.2 The Block diagram for the 14-bit PWM output is shown in Fig.7 and comprises: • Two 7-bit latches: PWM8L (Register 18) and PWM8H (Register 19) • Coarse pulse controller Fine adjustment is achieved by generating an additional pulse in specific subperiods. The pulse is added at the start of the selected subperiod and has a pulse width of 3/fxtal. The contents of PWM8L determine in which subperiods a fine pulse will be added. It is the logic 0 state of the value held in PWM8L that actually selects the subperiods. When more than one bit is a logic 0 then the subperiods selected will be a combination of those subperiods specified in Table 2. For example, if PWM8L = 111 1010 then this is a combination of: • Fine pulse controller • Mixer. Data is loaded into the 14-bit data latch (PWMREG) from the two 7-bit data latches (PWM8H and PWM8L) when either of these data latches is written to. The upper seven bits of PWMREG are used by the coarse pulse controller and determine the coarse pulse width; the lower seven bits are used by the fine pulse controller and determine in which subperiods fine pulses will be added. The outputs OUT1 and OUT2 of the coarse and fine pulse controllers are ‘ORED’ in the mixer to give the PWM8 output. The polarity of the PWM8 output is programmable and is selected by the P8LVL bit in Register 23, this is described in Section 12.2. • PWM8L = 111 1110: subperiod 64 and • PWM8L = 111 1011: subperiods 16, 48, 80 and 112. Pulses will be added in subperiods 16, 48, 64, 80 and 112. This example is illustrated in Fig.10. When PWM8L holds 111 1111 fine adjustment is inhibited and the PWM8 output is determined only by the contents of PWM8H. As the 14-bit counter is clocked by fxtal/3, the repetition times of the coarse and fine pulse controllers may be calculated as shown below. Table 2 384 Coarse controller repetition time: t sub = ---------f xtal Additional pulse distribution PWM8L 49152 Fine controller repetition time: t r = ---------------f xtal Figure 8 shows typical PWM8 outputs, with coarse adjustment only, for different values held in PWM8H. Figure 9 shows typical PWM8 outputs, with coarse and fine adjustment, after the coarse and fine pulse controller outputs have been ‘ORED’ by the mixer. 1996 Jan 08 FINE ADJUSTMENT 10 ADDITIONAL PULSE IN SUBPERIOD 111 1110 64 111 1101 32 and 96 111 1011 16, 48, 80 and 112 111 0111 8, 24, 40, 56, 72, 88, 104 and 120 110 1111 4, 12, 20, 28, 36, 44, 52...116 and 124 101 1111 2, 6, 10, 14, 18, 22, 26, 30...122 and 126 011 1111 1, 3, 5, 7, 9, 11, 13, 15, 17...125 and 127 Philips Semiconductors Preliminary specification Microcontroller for monitor OSD and auto-sync applications PCE84C886 Internal data bus handbook, full pagewidth ‘MOVE instruction’ PWM8L PWM8H 7 DATA LOAD TIMING PULSE ‘MOV instruction’ 7 LOAD PWMREG 7 7 COARSE 7-BIT PWM FINE PULSE GENERATOR OUT1 OUT2 MIXER polarity control bit Q Q PWM8 output P8LVL Q14 to 8 Q7 to 1 f tdac = f xtal 14-BIT COUNTER 3 MLC071 Fig.7 14-bit PWM Block diagram. 1996 Jan 08 11 Philips Semiconductors Preliminary specification Microcontroller for monitor OSD and auto-sync applications PCE84C886 xtal handbook, ffull pagewidth 3 127 0 1 2 m m+1 m+2 127 0 1 00 01 m 127 MLC263 decimal value PWM8H data latch Fig.8 Non-inverted PWM8 output patterns - Coarse adjustment only. handbook,f xtal full pagewidth 3 127 0 1 2 m m+1 m+2 127 0 1 00 01 m 127 MLC262 decimal value PWM8H data latch Fig.9 Non-inverted PWM8 output patterns - Coarse and Fine adjustment. 1996 Jan 08 12 Philips Semiconductors Preliminary specification Microcontroller for monitor OSD and auto-sync applications PCE84C886 tr handbook, full pagewidth t sub0 t sub16 t sub32 t sub48 t sub64 t sub80 t sub96 t sub112 t sub127 111 1110 111 1011 111 1010 MLC755 PWM8L Fig.10 Fine adjustment output (OUT2). 7.3 A typical PWM output application A typical PWM application is shown in Fig.11. The buffer is used to reduce jitter on the OSD. R1 and C1 form the integration network the time constant of which should be equal to or greater than 5 times the repetition period of the PWM output pattern. In order to smooth a changing PWM output a high value of C1 should be chosen. The value of C1 will normally be in the range 1 to 10 µF. The potential divider chain formed by R2 and R3 is used only when the output voltage is to be offset. The output voltages for this application are calculated using Equations (1) and (2). R3 × supply voltage V max = ---------------------------------------------------(1) R1 × R2 R3 + ---------------------R1 + R2 V min R1 × R3 ---------------------- × supply voltage R1 + R3 = ------------------------------------------------------------------R1 × R3 R2 + ---------------------R1 + R3 R2 R1 analog output PWMn PCE84C886 C1 R3 VSS MLC070 (2) The loop from the PWM pin through R1 and C1 to VSS will radiate high frequency energy pulses. In order to limit the effect of this unwanted radiation source, the loop should be kept short and a high value of R1 selected. The value of R1 will normally be in the range 3.3 to 100 kΩ. It is good practice to avoid sharing VSS (pin 21) with the return leads of other sensitive signals. 1996 Jan 08 supply voltage handbook, halfpage Fig.11 Typical PWM output circuit. 13 Philips Semiconductors Preliminary specification Microcontroller for monitor OSD and auto-sync applications 8 PCE84C886 The channel selector, consisting of three analog switches, is controlled by bits ADCS1 and ADCS0 in Register 20 as highlighted in Table 4. ANALOG-TO-DIGITAL CONVERTER (ADC) The 3 channel ADC comprises a 4-bit Digital-to-Analog Converter (DAC); a comparator; an analog channel selector and control circuitry. As the digital input to the 4-bit DAC is loaded by software (a subroutine in the program), it is known as a software ADC. The block diagram is shown in Fig.12. Table 4 The ADC inputs ADC0 to ADC2 share the same pins as Derivative Port lines DP10 to DP12 respectively. Selection of the pin function as either an ADC input or as a Derivative Port line is achieved using bits ADCE0 to ADCE2 in Register 22. When ADCEn = 1, the ADC function is enabled (see Section 12.1). DAC1 DAC0 Vref (V) 0 0 0 0 0.3125 0 0 0 1 0.6250 0 0 1 0 0.9375 0 0 1 1 1.2500 0 1 0 0 1.5625 0 1 0 1 1.8750 0 1 1 0 2.1875 0 1 1 1 2.5000 1 0 0 0 2.8125 1 0 0 1 3.1250 1 0 1 0 3.4375 1 0 1 1 3.7500 1 1 0 0 4.0625 1 1 0 1 4.3750 1 1 1 0 4.6875 1 1 1 1 5.0000 1996 Jan 08 CHANNEL SELECTED 0 0 ADC0 0 1 ADC1 1 0 ADC2 1 1 reserved Conversion algorithm 1. Select ADCn channel for conversion. Channel selection is achieved using bits ADCS1 and ADCS0 in Register 20. 2. Set the digital input to the DAC to 1000. The digital input to the DAC is selected using bits DAC3 to DAC0 in Register 20. 3. Determine the result of the compare operation. This is achieved by reading the COMP bit in Register 20 using the instruction MOV A, D20. If COMP = 1; the analog input voltage is higher than the reference voltage (Vref). If COMP = 0; the analog input voltage is lower than the reference voltage (Vref). Selection of Vref DAC2 ADCS0 There are many algorithms available to achieve the ADC conversion. The algorithm described below and shown in Fig.13 uses an iteration process. When the analog input voltage is higher than Vref, the COMP bit in Register 20 will be HIGH. DAC3 ADCS1 8.1 The 4-bit DAC analog output voltage (Vref) is determined by the decimal value of the data held in bits DAC0 to DAC3 of Register 20. Vref is calculated as shown in Equation (3) and Table 3 lists the Vref values assuming VDD = 5 V. V DD (3) V ref = ---------- × ( DAC value + 1 ) 16 Table 3 Selection of ADC channel 4. If COMP = 1; then the analog input voltage is higher than the reference voltage (Vref) and therefore the digital input to the DAC needs to be increased. Set the input to the DAC to 1100. 5. If COMP = 0; then the analog input voltage is lower than the reference voltage (Vref) and therefore the digital input to the DAC needs to be decreased. Set the input to the DAC to 0100. 6. Determine the result of the compare operation by reading the COMP bit in Register 20. 14 Philips Semiconductors Preliminary specification Microcontroller for monitor OSD and auto-sync applications PCE84C886 9. The operations detailed in 6, 7 and 8 above are repeated and each time the digital input to the DAC is changed accordingly; as dictated by the state of the COMP bit. The complete process is shown in Fig.13. Each time the DAC input is changed the number of values which the analog input can take is reduced by half. In this manner the actual analog value is honed into. The value of the analog input (VA) is determined using Equation (4): 7. For the DAC = 1100 case If COMP = 1; then the analog input voltage is still greater than Vref and therefore the digital input to the DAC needs to be increased again. Set the input to the DAC to 1110. If COMP = 0; then the analog input voltage is now less than Vref and therefore the digital input to the DAC needs to be decreased. Set the input to the DAC to 1010 V DD V A = ---------- × ( DAC value + 1 ) 16 8. For the DAC = 0100 case If COMP = 1; then the analog input voltage is now greater than Vref and therefore the digital input to the DAC needs to be increased. Set the input to the DAC to 0110. As the conversion time of each compare operation is greater than 6 µs but less than 9 µs; a NOP instruction is recommended to be used in between the instructions that change the value of Vref; select the ADC channel and read the COMP bit. If COMP = 0; then the analog input voltage is still lower than Vref and therefore the digital input to the DAC needs to be decreased again. Set the input to the DAC to 0010. handbook, full pagewidth Internal bus DERIVATIVE PORT SELECTOR EN0 EN1 EN2 DP10/ADC0 ADC CHANNEL SELECTOR DP11/ADC1 ADCS1 ADCS0 COMP bit + Vref DP12/ADC2 Channel selection COMPARATOR − ‘MOV A, D20’ instruction to read COMP bit EN ENABLE SELECTOR 4-BIT DAC ADCE0 ADCE1 ADCE2 DAC3 ADC enable selection DAC2 DAC1 DAC value selection Fig.12 Block diagram of 3 channel ADC. 1996 Jan 08 (4) 15 DAC0 MLC072 T F COMP = 1 Value = 1100 T Value = 0100 F COMP = 1 T T F COMP = 1 Value = 1111 1111 T Value = 1101 COMP = 1 T 1110 T 1101 COMP = 1 Value = 1011 COMP = 1 F Value =0110 Value = 1010 1100 T 1011 T COMP = 1 F 1010 T 1001 T 1000 0111 T COMP = 1 F 0110 T 0101 F COMP = 1 Value = 0011 Value = 0101 COMP = 1 F Value = 0010 F COMP = 1 Value = 0111 Value = 1001 COMP = 1 F F Value = 0001 COMP = 1 F 0100 T 0011 COMP = 1 F 0010 T 0001 F 0000 MLC073 Preliminary specification Fig.13 Example of converting algorithm for software ADC. PCE84C886 handbook, full pagewidth 16 Value = 1110 F COMP = 1 Philips Semiconductors Microcontroller for monitor OSD and auto-sync applications 1996 Jan 08 Value = 1000 Philips Semiconductors Preliminary specification Microcontroller for monitor OSD and auto-sync applications 9 PCE84C886 9.3 ON SCREEN DISPLAY (OSD) The on-chip oscillator generates an OSD clock that is auto-sync with Hsync. The frequency of the OSD clock is programmable and is determined by the contents of Register 25 which forms the 7-bit counter. The OSD feature of the PCE84C886 enables the user to display information on the monitor screen. Display information can be created using 62 customer designed characters, a space character and a carriage return code. The OSD block diagram is shown in Fig.14. 9.1 The OSD clock frequency is calculated as follows: f OSD = f Hsync × 2 × ( Register 25 ) Horizontal starting position control Where (Register 25) denotes the decimal value held in Register 25. The horizontal starting position counter is incremented every OSD clock after Hsync becomes inactive and is reset when Hsync becomes active. The horizontal starting position of the display row is determined by the contents of Register 36; 1 of 64 positions may be selected as explained in Section 12.6. The block diagram of the OSD clock is shown in Fig.16. The internal reference frequency is connected to Hsync, and if the frequency of Hsync changes, the output frequency (fOSD) will be changed linearly. Therefore, the character width is not effected by changes in the frequency of Hsync. The internal Hsync signal is designed active HIGH, consequently fPLL is synchronized with the falling edge of this signal. The polarity of the active state of the HSYNCN input is programmable and is determined by the Hp bit in Register 34; see Section 12.4. The active HIGH and active LOW states as selected by the Hp bit are shown in Fig.15. 9.2 The OSD clock is enabled/disabled by the state of the EN bit in Register 34; see Section 12.4. When the OSD clock is disabled the oscillator remains active, therefore the transient time from the OSD clock start-up to locking into the external Hsync signal is reduced. As the on-chip oscillator is always active after power-on, when the OSD clock is enabled no large currents flow (as in the case of RC or LC oscillators) and therefore radiated noise is dramatically reduced. Vertical starting position control The vertical starting position counter is incremented every Hsync cycle and is reset when Vsync becomes active. The vertical starting position of the display row is determined by the contents of Register 35; 1 of 64 positions may be selected as explained in Section 12.5. The vertical starting position of the display is dependent upon the number of scan lines per frame. To achieve the same starting position with different display resolutions, only the contents of Register 35 need to be changed, the contents of Register 36 remain the same. The lowest vertical starting position that can be selected, is located on the 256th scan-line. However, lower positions may be achieved using the Carriage Return Code. When the selected horizontal and vertical starting positions are reached on screen; the OSD is enabled. The character selected in display RAM is then displayed. The polarity of the active state of the VSYNCN input is programmable and is determined by the Vp bit in Register 34; see Section 12.4. The active HIGH and active LOW states as selected by the Vp bit are shown in Fig.15. 1996 Jan 08 On-chip clock generator 17 HORIZONTAL POSITION REGISTER/ COUNTER R1 PLL OSCILLATOR R2 VSYNCN POLARITY CONTROL ADDRESS BUFFER SELECTOR DISPLAY CHARACTER RAM control signals INTERNAL SYNCHRONOUS CIRCUIT CONTROL REGISTER DISPLAY ROM VERTICAL POSITION REGISTER/ COUNTER INSTRUCTION DECODER CONTROL REGISTER C1 DISPLAY CONTROL AND OUTPUT STAGE R G B FB MLC285 VOW1 VOW0 VOW2 Preliminary specification Fig.14 OSD block diagram. FB PCE84C886 handbook, full pagewidth 18 C HSYNCN COUNTER WRITE ADDRESS Philips Semiconductors CHARACTER SIZE CONTROL Microcontroller for monitor OSD and auto-sync applications 1996 Jan 08 CPU bus Philips Semiconductors Preliminary specification Microcontroller for monitor OSD and auto-sync applications handbook, full pagewidth PCE84C886 HSYNCN/VSYNCN pin Hp/Vp = 0 (active LOW) character display interval HSYNCN/VSYNCN pin Hp/Vp = 1 (active HIGH) MLC286 Fig.15 HSYNCN and VSYNCN active level selection. C handbook, full pagewidth HSYNCN (30 to 64 kHz) PHASE/ FREQUENCY DETECTOR CHARGE PUMP AND LOOP FILTER VOLTAGE CONTROLLED OSCILLATOR divided by N PROGRAMMABLE 7-BIT COUNTER 2 f PLL f OSD MLC074 OSD disable Fig.16 Block diagram for OSD oscillator. 1996 Jan 08 19 Philips Semiconductors Preliminary specification Microcontroller for monitor OSD and auto-sync applications PCE84C886 10 DISPLAY RAM ORGANIZATION The display RAM is organized as 64 × 10 bits. The general format of each RAM location is as follows. Bits <9-4> hold character data (62 customer designed character fonts plus two reserved codes). Bits <3-0> contain the attributes of the character font, for example colour, character size, blinking etc. 10.1 Description of display RAM codes There are three data formats for display RAM code: 1. Character Font Code 2. Carriage Return Code 3. Space Code. The three data formats are shown in Tables 5, 6 and 7. Table 5 Format of Character Font Code 9 8 C5 C4 7 6 5 4 3 C3 C2 C1 C0 T3 Character Font Code (00H - 3DH) Table 6 1 T2 T1 Foreground colour 0 T0 Blink Format of Carriage Return Code 9 8 C5 C4 7 6 5 4 C3 C2 C1 C0 Carriage Return Code (3EH) Table 7 2 3 2 1 0 T3 T2 T1 T0 Character size Line Spacing Format of Space Code 9 8 7 6 5 4 3 2 1 0 C5 C4 C3 C2 C1 C0 T3 T2 T1 T0 Space Code (3FH) 1996 Jan 08 Background colour 20 End Philips Semiconductors Preliminary specification Microcontroller for monitor OSD and auto-sync applications 10.1.1 PCE84C886 CHARACTER FONT CODE Table 10 Selection of character size If bits <9-4> are in the range (00H to 3DH), then this is a Character Font Code and 1 from 62 customer designed character fonts can be selected. Bits <3-1> determine the colour of the character, a choice of 8 colours being available. Bit <0> determines whether the character blinks or not. The format of the Character Font Code is shown in Table 5. T3 T2 CHARACTER DOT SIZE(1) 0 0 1H/1V 0 1 1H/2V 1 0 1H/3V 1 1 1H/4V Note Table 8 Selection of Foreground colour 1. H is the OSD clock period; V is the number of horizontal scan lines per dot. T3 (RED) T2 (GREEN) T1 (BLUE) 0 0 0 black 0 0 1 blue 0 1 0 0 1 1 Table 11 Selection of line spacing T1 T0 LINE SPACING green 0 0 0H line cyan 0 1 4H line 0 8H line 1 12H line 1 0 0 red 1 1 0 1 magenta 1 1 1 0 yellow 1 1 1 white Table 9 10.1.2 COLOUR 10.1.3 If bits <9-4> hold 3FH, then this is the Space Code. A transparent pattern, equal to one character width, will be displayed on the screen. Bits <3-1> determine the background colour of the characters including the Space Code in Box shadowing mode but following the Space Code in North shadowing mode. See Sections 12.4 and 12.3.1 for more details. Background colour selection is the same as foreground colour selection. Bit <0> is the End-of-Display bit and indicates the end of display of the current screen before exhaustion of display RAM (i.e. before the 64th RAM location). The format of the Space Code is shown in Table 7. Selection of Blinking function T0 BLINKING 0 OFF 1 ON CARRIAGE RETURN CODE If bits <9-4> hold 3EH, then this is the Carriage Return Code. The current display line is terminated (a transparent pattern appears on the screen) and the next character will be displayed at the beginning of the next line. Bits <3-2> select the size of the of the character to be displayed on the next line. Bits <1-0> determine the spacing between lines of displayed characters. Spacing is a multiple of the number of horizontal scan lines. In order to prevent vertical jumping of the display, the first line should be a non-displayed line i.e. the Carriage Return Code. The line spacing for this code must not be zero (see Table 11). The format of the Carriage Return Code is shown in Table 6. 1996 Jan 08 SPACE CODE Table 12 End of display control T0 21 DISPLAY CONTROL 0 continue display of next character; this is also the default setting 1 end of display Philips Semiconductors Preliminary specification Microcontroller for monitor OSD and auto-sync applications 10.2 PCE84C886 Default values of OSD after Power-on-reset 10.3.2 • Frequency of OSD clock: undefined, must be programmed This is Derivative Register 31 and holds the character font attribute data. The data will be loaded into bits <3-0> of the location in RAM pointed to by the contents of DCRAR. Bits 7 to 4 are reserved. • Background/Shadowing mode: No background mode • Background/Shadowing colour: blue • Character size: 1H/1V Table 14 DCR Attribute Register (DCRTR) • OSD disabled • Full 64 display RAM displayed (End-of-Display bit = 0) • VOW1E and VOW0E disabled • Horizontal starting position: 5th dot 7 6 5 4 3 2 1 0 − − − − T3 T2 T1 T0 10.3.3 • Vertical starting position: 256th scan-line DCR CHARACTER REGISTER (DCRCR) This is Derivative Register 32 and holds the character data that will be loaded into bits <9-4> of the location in RAM addressed by the contents of DCRAR. Bits 7 and 6 are reserved. • Polarity of HSYNCN: active LOW • Polarity of VSYNCN: active LOW • Output polarities of FB, VOW0 to VOW2: active HIGH • Blinking ratio: 3 : 1 • Blinking frequency: DCR ATTRIBUTE REGISTER (DCRTR) Table 15 DCR Character Register (DCRCR) 1⁄ 128 × fVsync • Frame background colour: blue. After a Power-on-reset, the OSD can be set-up as required by selecting the Space Code as the first character (address 0) and the Carriage Return Code as the next character (address 1). This procedure allows the user to select the initial background colour; character size and inter-line spacing. 7 6 5 4 3 2 1 0 − − C5 C4 C3 C2 C1 C0 10.4 Writing character data into display RAM The procedure for writing character data into the display RAM is as follows: Loading character data into display RAM 1. Select the start address in display RAM. The start address is stored in DCRAR and can take any value between 0 and 63. Three Derivative Registers are used to address and load data into the display RAM. These registers are described below. 2. Load the character attributes into DCRTR. If the attributes of a series of displayed characters are the same, only DCRCR needs to be updated. 10.3 10.3.1 3. Load the character data into DCRCR. The character data will specify either a Character Font Code, the Carriage Return Code or the Space Code. This operation loads the selected RAM location with the data held in registers DCRTR and DCRCR. The address held in DCRAR is then incremented by ‘1’ pointing to the next RAM location in anticipation of the next operation. DCR ADDRESS REGISTER (DCRAR) This is Derivative Register 30 and holds the address of the location in display RAM to which the data held in registers DCRTR and DCRCR will be written to. 1 of 64 locations can be addressed. Bits 7 and 6 are reserved. The contents of this register are automatically incremented after each write operation to a RAM address, and become zero on overflow. After a master reset the contents of DCRAR, DCRTR and DCRCR are zero. Table 13 DCR Address Register (DCRAR) 7 6 5 4 3 2 1 0 − − A5 A4 A3 A2 A1 A0 1996 Jan 08 22 Philips Semiconductors Preliminary specification Microcontroller for monitor OSD and auto-sync applications PCE84C886 The combination of two cells in a horizontal direction is straight forward and requires no special precautions to be taken. When combining character cells in this manner all 4 Background/Shadowing modes are available. An example of combining two character font cells in a horizontal direction is shown in Fig.19. 11 CHARACTER ROM 64 character fonts may be held in ROM; 62 customer selected character fonts plus the Carriage Return Code and the Space Code. Customer selected fonts are mask programmable. Each character font is stored in a 12 × 19 dot matrix. However, only elements in Rows 1 to 18 can be selected as visible dots on the screen. Row 0 is only used for the combination of two characters in a vertical direction when North shadowing mode is selected. 11.1 However, the combination of two character font cells in a vertical direction is more difficult and care must be taken; otherwise, the new pattern may be created with gaps in its shadowing. An example of a character pattern with gaps is shown in Fig.20. Providing the steps listed below are followed no problems with shadowing will occur. Character ROM address map Figure 17 shows the ROM address map. Addresses 3EH and 3FH hold the reserved codes for carriage return and space functions, respectively. Addresses (00H to 3DH) hold the customer selected character font codes. 11.2 • The line spacing between two rows of characters must be programmed to 0H. This procedure is explained in Section 10.1.2. • If the North shadowing mode is selected then when combining two character cells in a vertical direction Row 0 must contain the same bit pattern as held in Row 18 of the character directly above it. This is shown in Fig.21. Character ROM organization ROM is divided into two parts: ROM1 and ROM2. The organization of the bit patterns stored in ROM 1 and ROM 2 and the file format to submit to Philips for customized character sets is shown in Fig.18. Regarding Fig.18 the following points should be noted. • If North shadowing is not required then Row 0 should contain all zeros. 1. Row 0 of each font is reserved for vertical combination of two fonts. 0 2. Binary 1 denotes visual dots. 3. ROM1 and ROM2 data files are in INTEL hex format on a byte basis. Each byte is structured high nibble followed by low nibble. 4. The unused last byte of each font in ROM1 must be filled with FFH. 5. The unused last 21⁄2 bytes in ROM2 must be filled with the same data as held in the corresponding address in ROM1. 6. The data bytes of the last 2 reserved fonts (Carriage Return and Space Codes) should be filled with 00H. Mask Programmable Font 7. CS denotes Checksum. reserved code A software package (OSDGEM) that assists in the design of character fonts on-screen and that also automatically generates the bit pattern HEX files is available on request. The package is run under the MS-DOS environment for IBM compatible PCs. 11.3 61 (3DH) 62 (3EH) 63 (3FH) Combination of character font cells Two (or more) character font cells may be combined in a horizontal or vertical direction to create a new higher resolution pattern. 1996 Jan 08 Carriage return code Space code MLC287 Fig.17 ROM address map. 23 Philips Semiconductors Preliminary specification handbook, full pagewidth Column PCE84C886 LSB MSB Microcontroller for monitor OSD and auto-sync applications ROM1 11 10 9 8 7 6 5 4 3 2 1 0 Row 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 ROM1 0 3 2 2 3 2 2 3 2 2 3 0 0 5 5 0 0 0 0 00 FC 20 20 FC 20 20 FC 20 20 FF 01 01 53 52 06 0C 58 30 ROM1 ROM2 ROM1 ROM2 ROM1 ROM2 ROM1 ROM2 ROM1 ROM2 ROM1 ROM2 ROM1 ROM2 ROM1 ROM2 ROM1 ROM2 ROM1 ROM2 0 0 0 3 F C 2 2 0 2 2 0 3 F C 2 2 0 2 2 0 3 F C 2 2 0 2 2 0 3 F F 0 0 1 0 0 1 5 5 3 5 5 2 0 0 6 0 0 C 0 5 8 0 3 0 :10000000 byte # 0 __ 1 2 D __ E __ __ 3 __ 4__ 5__ 6__ 7 __8 __9 __A __B __C __ 00 00 22 FC 03 22 20 F2 3F 01 20 55 0C 00 03 FF CS :10001000 < - - - - - - - - - DATA FOR FONT 2 - - - - - - - - - - 12 34 - - - > FF CS :10002000 < - - - - - - - - - DATA FOR FONT 3 - - - - - - - - - - 56 78 - - - > FF CS F ROM2 : 1 0 0 0 0 0 0 0 FC 03 22 20 C2 3F 20 12 00 53 65 00 58 00 03 FF C S : 1 0 0 0 1 0 0 0 < - - - - - - - - - DATA FOR FONT 2 - - - - - - - - - - > 1X 34 FF C S : 1 0 0 0 2 0 0 0 < - - - - - - - - - DATA FOR FONT 3 - - - - - - - - - - > 5X 78 FF C S MLC076 Fig.18 Character font pattern stored in ROM1 and ROM2. 1996 Jan 08 24 Philips Semiconductors Preliminary specification Microcontroller for monitor OSD and auto-sync applications 0 1 2 3 4 5 6 7 8 PCE84C886 9 10 11 0 1 2 3 4 5 6 7 8 9 10 11 0 0 1 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 (a) Character designed in character ROM 0 1 2 3 4 5 6 7 8 9 10 11 0 1 2 3 4 5 6 7 8 9 10 11 0 0 1 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 (b) North shadowing background mode display on screen MLB402 Fig.19 Combination of two character cells to form new font (in horizontal direction). 1996 Jan 08 25 Philips Semiconductors Preliminary specification Microcontroller for monitor OSD and auto-sync applications PCE84C886 0 1 2 3 4 5 6 7 8 9 10 11 handbook, full pagewidth 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 0 1 2 3 4 5 6 7 8 9 10 11 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 cell boundary 0 1 2 If Row 0 of the lower character 3 does not contain the bit 4 pattern of Row 18 of 5 the upper character 6 in North shadowing 7 mode, a gap in the 8 shadow might occur 9 10 11 12 13 14 15 16 17 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 ,, MLB403 0 1 2 3 4 5 6 7 8 9 10 11 0 1 2 3 4 5 6 7 8 9 10 11 Character pattern stored in character ROM Character pattern displayed on the screen Fig.20 Combination of two character fonts in a vertical direction - with gap. 1996 Jan 08 26 Philips Semiconductors Preliminary specification Microcontroller for monitor OSD and auto-sync applications PCE84C886 0 1 2 3 4 5 6 7 8 9 10 11 handbook, full pagewidth 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 0 1 2 3 4 5 6 7 8 9 10 11 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 cell boundary 0 1 2 Row 0 of the lower character 3 should contain the bit 4 pattern of Row 18 of 5 the upper character 6 in North shadowing mode 7 to avoid a "break" in the 8 shadow 9 10 11 12 13 14 15 16 17 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 MLB404 0 1 2 3 4 5 6 7 8 9 10 11 0 1 2 3 4 5 6 7 8 9 10 11 Character pattern stored in the character ROM Character pattern displayed on the screen Fig.21 Combination of two character fonts in a vertical direction - without gap. 1996 Jan 08 27 Philips Semiconductors Preliminary specification Microcontroller for monitor OSD and auto-sync applications PCE84C886 12 OSD CONTROL REGISTERS The functions of the OSD are controlled by Derivative Registers 22, 23, 33, 34, 35, 36 and 37. An overview of the function of each register is given in Table 16. A full description of each register is given in Sections 12.1 to 12.7. Table 16 OSD Control Registers overview REGISTER NAME REGISTER NUMBER ADDRESS (HEX) CON1 Derivative Register 22 22 This register is used to enable PWM8; the I2C-bus lines; the ADC channels and the VOW0 and VOW1 lines. CON2 Derivative Register 23 23 This register selects the output polarity of the PWM outputs and also enables and selects the VSYNCN interrupt. CON3 Derivative Register 33 33 This register selects the blinking frequency and the active ratio of the blinking frequency for the OSD. CON4 Derivative Register 34 34 This register selects the 4 display modes; the active state of the HSYNCN and VSYNCN inputs and the output polarity of the FB and VOW0 to VOW2 outputs. It also enables/disables the OSD clock. VPOS Derivative Register 35 35 This register selects the vertical starting position of the display row. HPOS Derivative Register 36 36 This register selects the horizontal starting position of the display row. FRC Derivative Register 37 37 This register selects the background colour in Frame shadowing mode. 1996 Jan 08 FUNCTION 28 Philips Semiconductors Preliminary specification Microcontroller for monitor OSD and auto-sync applications 12.1 PCE84C886 Derivative Register 22 This register is used to enable PWM8; the I2C-bus lines; the ADC channels and the VOW0 and VOW1 lines. Table 17 Derivative Register 22 7 6 5 4 3 2 1 0 PWM8E SCLE SDAE ADC2E ADC1E ADC0E VOW1E VOW0E Table 18 Description of Derivative Register 22 bits BIT SYMBOL 7 PWM8E Pulse Width Modulated output PWM8 enable bit. When PWM8E = 1; pin 9 is selected as an output for PWM8. When PWM8E = 0; pin 9 is selected as Derivative Port line DP13 and the PWM function is disabled. 6 SCLE I2C-bus clock enable bit. When SCLE = 1; pin 39 is selected as the I2C-bus clock line. When SCLE = 0; pin 39 is selected as Derivative Port line DP21 and the I2C-bus function is disabled. 5 SDAE I2C-bus data enable bit. When SDAE = 1; pin 40 is selected as the I2C-bus data line. When SDAE = 0; pin 40 is selected as Derivative Port line DP20 and the I2C-bus function is disabled. 4 ADC2E ADC Channel 2 enable bit. When ADC2E = 1; Channel 2 is enabled. When ADC2E = 0; Channel 2 is disabled. 3 ADC1E ADC Channel 1 enable bit. When ADC1E = 1; Channel 1 is enabled. When ADC1E = 0; Channel 1 is disabled. 2 ADC0E ADC Channel 0 enable bit. When ADC0E = 1; Channel 0 is enabled. When ADC0E = 0; Channel 0 is disabled. 1 VOW1E VOW1E enable bit, When VOW1E = 1; pin 3 is selected as the VOW1 output. When VOW1E = 0; pin 3 is selected as Derivative Port line DP22 and the VOW function is disabled. 0 VOW0E VOW0E enable bit, When VOW0E = 1; pin 4 is selected as the VOW0 output. When VOW0E = 0; pin 4 is selected as Derivative Port line DP23 and the VOW function is disabled. 1996 Jan 08 DESCRIPTION 29 Philips Semiconductors Preliminary specification Microcontroller for monitor OSD and auto-sync applications 12.2 PCE84C886 Derivative Register 23 This register selects the output polarity of the PWM outputs and also enables and selects the VSYNCN interrupt. Table 19 Derivative Register 23 7 6 5 4 3 2 1 0 VINT VIEN − − − P8LVL P7LVL P6LVL Table 20 Description of Derivative Register 23 bits BIT SYMBOL DESCRIPTION 7 VINT VSYNCN/SIO interrupt indication bit. This bit indicates which of the two possible interrupt sources, the Vsync signal (at the VSYNCN pin) or the SIO, generated the interrupt. The interrupt causes the program to jump to the I2C interrupt subroutine at address 05H. If VINT = 1; then the interrupt was generated by Vsync. If VINT = 0; then the I2C-bus generated the interrupt.This bit must be reset after the interrupt has been serviced, otherwise additional unwanted interrupts will be generated. 6 VIEN VSYNCN interrupt enable bit. When the SIO interrupt is enabled and VIEN = 1; the Vsync signal (at the VSYNCN pin) will generate an interrupt to the CPU. The VSYNCN interrupt is edge-triggered and can be selected to become active, using the Vp bit in Register 34, on the rising or falling edge of the Vsync signal. In order to generate a VSYNCN interrupt at the start of the vertical back tracing period, the Vp bit must be set correctly; see Section 12.4. The VSYNCN interrupt and the I2C-bus interrupt share the same interrupt vector. 5 − 4 − 3 − 2 P8LVL Polarity select bit for output PWM8. When P8LVL = 0; the PWM8 output is not inverted. When P8VL = 1; the PWM8 output is inverted. 1 P7LVL Polarity select bit for outputs PWM0 to PWM3. When P7LVL = 0; the PWM outputs are not inverted. When P7LVL = 1; the PWM outputs are inverted. 0 P6LVL Polarity select bit for outputs PWM4 to PWM7. When P6LVL = 0; the PWM outputs are not inverted. When P6LVL = 1; the PWM outputs are inverted. 1996 Jan 08 These three bits are reserved. 30 Philips Semiconductors Preliminary specification Microcontroller for monitor OSD and auto-sync applications 12.3 PCE84C886 Derivative Register 33 Derivative Register 33 controls the character blinking functions. Table 21 Derivative Register 33 7 6 5 4 3 2 1 0 − − − − BR1 BR0 BF1 BF0 Table 22 Description of Derivative Register 33 bits BIT SYMBOL 7 − 6 − 5 − 4 − 3 BR1 2 BR0 1 BF1 0 BF0 DESCRIPTION These 4 bits are reserved. Blinking active ratio select bits. These two bits allow one from a choice of three active blinking ratios to be selected; see Table 23. Blinking frequency select bits. These two bits allow one from a choice of four blinking frequencies to be selected; see Table 24. Table 23 Selection of Blinking active ratio BR1 BR0 ACTIVE RATIO 0 0 3 : 1; this is also the default setting. 0 1 1:1 1 0 1:3 1 1 reserved Table 24 Selection of Blinking frequency BF1 BF0 0 0 f Vsync -------------16 0 1 f Vsync -------------32 1 0 f Vsync -------------64 1 1 f Vsync -------------- ; this is also the default setting. 128 1996 Jan 08 BLINKING FREQUENCY (Hz) 31 Philips Semiconductors Preliminary specification Microcontroller for monitor OSD and auto-sync applications 12.3.1 PCE84C886 • Mode 2: Box shadowing mode. The Space Code is displayed as a transparent pattern with selected background colour. This will also be the background colour of the character following the Space Code. However, when the Space Code is used as an end bit, it will be displayed as a transparent pattern superimposed on the video (see Fig.29). The Carriage Return Code in Mode 2 is also displayed as a transparent pattern superimposed on the video signal. THE DISPLAY OF SPACE AND CARRIAGE RETURN CHARACTERS IN THE 4 DISPLAY MODES Figures 22 to 25 show the display of Space and Carriage Return Characters in the 4 display modes, with the Blinking function ON and OFF. • Mode 0: No background mode. Both the Space Code and the Carriage Return Code are displayed as transparent (no bit) patterns, with the video signal as the background. This is shown in Fig.22. • Mode 1: North shadowing mode. Both codes are displayed in the same manner as for Mode 0. This is shown in Fig.23. ,, , , ,, , ,, ,, ,, ,, ,,, ,, ,, ,, ,, ,, ,, ,,,,, ,,, ,, ,,, ,, ,,, ,,, ,,, ,,, ,,, ,,, SP code CR code Character ON • Mode 3: Frame shadowing mode. The Space Code and the Carriage Return Code are both displayed as transparent patterns with background colour (see Fig.25). ,, ,, ,, , ,, , ,, ,, ,, ,, ,,, ,, ,, ,, ,, ,, ,, ,,,,, ,,, ,, ,,, ,, ,,, ,,, ,,, ,,, ,,, ,,, SP code CR code Character OFF MLB397 Fig.22 Blinking in No background (superimpose) mode. ,, ,, ,, ,, , ,, , ,, , ,, ,,, ,, ,, ,, ,, ,, ,, ,, ,, ,,,,, ,,, ,, ,,, ,, ,,, ,,, ,,, ,,, ,,, ,,, SP code CR code ,,, Character ON , ,, ,, ,, ,,, ,, ,,, ,, ,,, ,, ,,, ,,, ,,, ,,, ,,, ,,, ,,, ,,, ,,, ,, ,,, ,,,,, ,,, , ,,, ,,, ,,, ,,, , ,,,,,, SP code 1996 Jan 08 ,,, Character OFF Fig.23 Blinking in North shadowing mode. 32 CR code MLB398 Philips Semiconductors Preliminary specification Microcontroller for monitor OSD and auto-sync applications ,, , , ,, , ,, ,, ,, ,, ,,, ,, ,, ,, ,, ,, ,, ,,,,, ,,, ,, ,,, ,, ,,, ,,, ,,, ,,, ,,, ,,, SP code CR code Character ON PCE84C886 ,, ,, ,, , ,, , ,, ,, ,, ,, ,,, ,, ,, ,, ,, ,, ,, ,,,,, ,,, ,, ,,, ,, ,,, ,,, ,,, ,,, ,,, ,,, SP code Character OFF CR code MLB399 Fig.24 Blinking in Box shadowing mode. SP code CR code SP code Character ON Character OFF Fig.25 Blinking in Frame shadowing mode. 1996 Jan 08 33 CR code MLB401 Philips Semiconductors Preliminary specification Microcontroller for monitor OSD and auto-sync applications 12.4 PCE84C886 Derivative Register 34 This register selects the 4 display modes; the active state of the signal at the HSYNCN and VSYNCN inputs and the output polarity of the FB and VOW0 to VOW2 outputs. It also enables/disables the OSD clock. Table 25 Derivative Register 34 7 6 5 4 3 2 1 0 − − S1 S0 Hp Vp Bp EN Table 26 Description of Derivative Register 34 bits BIT SYMBOL 7 − DESCRIPTION These two bits are reserved. 6 − 5 S1 4 S0 3 Hp HSYNCN signal polarity control bit. When Hp = 0, the active level of the signal at the HSYNCN input is LOW; this is also the default state. When Hp = 1, the active level of the signal at the HSYNCN input is HIGH. See Fig.15. 2 Vp VSYNCN signal polarity control bit. When Vp = 0, the active level of the signal at the VSYNCN input is LOW; this is also the default state. When Vp = 1, the active level of the signal at the VSYNCN input is HIGH. See Fig.15. 1 Bp Output polarity control bit for FB, VOW0, VOW1 and VOW2. When Bp = 1; these outputs are active HIGH; this is also the default state. When Bp = 0; these outputs are active LOW. 0 EN OSD clock enable/disable bit. When EN = 1; the OSD clock is enabled. When EN = 0; the OSD clock is disabled. Display mode select bits on a frame basis; see Table 27. Table 27 Selection of Display Modes S1 S0 DISPLAY MODE 0 0 Mode 0: No background (superimpose) mode. The OSD characters are superimposed on the monitor video signals. See Fig.26. 0 1 Mode 1: North shadowing mode. The characters’ shadows are generated as if a light source was placed North of the character (see Fig.27). Character shadowing only appears within the cell boundary. Consequently, if Row 18 contains a bit pattern then North shadowing will not be shown on the screen (see Fig.19). The depth of shadow displayed is dependent upon the character size. Characters with sizes of 1H/1V; 1H/2V and 1H/3V have a depth of shadow equivalent to 1 scan line whereas a character of size 1H/4V has a depth of shadow equivalent to 2 scan lines. Examples of characters with North shadowing, for the 4 character sizes, are shown in Fig.28. 1 0 Mode 2: Box shadowing mode. A background dot matrix of 12 × 18 bits surrounds the character font; where there is no foreground dot a background dot is displayed (see Fig.29). 1 1 Mode 3: Frame shadowing mode. A background colour fills the whole screen when no bit patterns are being displayed (see Fig.30). 1 of 8 background colours can be selected using Derivative Register 37; the default background colour is blue. 1996 Jan 08 34 Philips Semiconductors Preliminary specification Microcontroller for monitor OSD and auto-sync applications PCE84C886 handbook, full pagewidth M O S SP code SP code SP code FB R G B MLC077 "M" : Red + Blue "O" : Blue "S" : Red + Green Fig.26 Mode 0: No background (superimpose) mode. 1996 Jan 08 35 scan line Philips Semiconductors Preliminary specification Microcontroller for monitor OSD and auto-sync applications PCE84C886 handbook, full pagewidth scan line FB R G B 1st character : Green 2nd character : Blue Character background shadowing : Red MLC078 Fig.27 Mode 1: North shadowing background mode. 1996 Jan 08 36 Philips Semiconductors Preliminary specification Microcontroller for monitor OSD and auto-sync applications PCE84C886 0 MLB396 1 0 2 1 3 2 4 3 5 4 6 5 7 6 8 7 9 8 10 9 11 10 12 11 13 12 14 13 15 14 16 15 17 16 18 17 (a) Character designed in character ROM (b) 1H/2V or 1H/4V character displayed on the screen 0 0 1 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 (c) 1H/1V character displayed on the screen (d) 1H/3V character displayed on the screen Fig.28 Example of North shadowing mode. 1996 Jan 08 37 Philips Semiconductors Preliminary specification Microcontroller for monitor OSD and auto-sync applications PCE84C886 handbook, full pagewidth ,,, ,,,, M,,, O S ,,,, SP code SP code SP code (End) FB R G B MLC079 "M" : Foreground - Red + Blue Background - Green "O" : Foreground - Blue Background - Red "S" : Foreground - Red + Green Background - Blue Fig.29 Mode 2: Box shadowing (background) mode. 1996 Jan 08 38 scan line Philips Semiconductors Preliminary specification Microcontroller for monitor OSD and auto-sync applications PCE84C886 handbook, full pagewidth M O S SP code SP code SP code FB R G B MLC080 "M" : Red + Blue "O" : Blue "S" : Red + Green Frame background : Green Fig.30 Mode 3: Frame shadowing mode. 1996 Jan 08 39 scan line Philips Semiconductors Preliminary specification Microcontroller for monitor OSD and auto-sync applications 12.5 PCE84C886 Derivative Register 35 Derivative Register 35 selects the vertical starting position of the display row. Table 28 Derivative Register 35 7 6 5 4 3 2 1 0 − − V5 V4 V3 V2 V1 V0 Table 29 Description of Derivative Register 35 bits. 12.6 BIT SYMBOL 7 − DESCRIPTION These 2 bits are reserved. 6 − 5 V5 4 V4 These 6 bits enable 1 of 64 vertical start positions to be selected for the display row. The vertical starting position is calculated as follows: 3 V3 VP = [ 4 × ( V5 → V0 ) ] × horizontal scan lines 2 V2 Where (V5 → V0) is the decimal value of the contents of Register 35; (V5 → V0) ≥ 0. 1 V1 0 V0 Derivative Register 36 Derivative Register 36 selects the horizontal starting position of the display row. Table 30 Derivative Register 36 7 6 5 4 3 2 1 0 − − H5 H4 H3 H2 H1 H0 Table 31 Description of Derivative Register 36 bits BIT SYMBOL DESCRIPTION 7 − 6 − 5 H5 4 H4 These 6 bits enable 1 of 64 horizontal start positions to be selected for the display row. The horizontal starting position is calculated as follows: 3 H3 HP = [ 4 × ( H5 → H0 ) + 5 ] × OSD clock 2 H2 Where (H5 → H0) is the decimal value of the contents of Register 36; (H5 → H0) ≥ 10. 1 H1 0 H0 1996 Jan 08 These 2 bits are reserved. 40 Philips Semiconductors Preliminary specification Microcontroller for monitor OSD and auto-sync applications 12.7 PCE84C886 Derivative Register 37 Derivative Register 37 selects the background colour when the OSD is in Frame shadowing mode. Table 32 Derivative Register 37 7 6 5 4 3 2 1 0 − − − − − FRR FRG FRB Table 33 Description of Derivative Register 37 bits BIT SYMBOL 7 − 6 − 5 − 4 − 3 − 2 FRR 1 FRG 0 FRB DESCRIPTION These 5 bits are reserved. These three bits are used to select the background colour in Frame shadowing mode; see Table 34. The default colour is blue. Table 34 Selection of Background colour FRR (RED) FRG (GREEN) FRB (BLUE) 0 0 0 black 0 0 1 blue 0 1 0 green 0 1 1 cyan 1 0 0 red 1 0 1 magenta 1 1 0 yellow 1 1 1 white 1996 Jan 08 41 COLOUR Philips Semiconductors Preliminary specification Microcontroller for monitor OSD and auto-sync applications PCE84C886 13 TO FORMAT THE OSD 13.1 13.3 Number of characters per row To cater for the variable display resolutions (640 x 400, 640 × 480, 800 × 600, 1024 × 768 and 1 280 × 1 024) of auto-sync monitors, the PCE84C886 offers a choice of 4 different character sizes: 1H/1V, 1H/2V, 1H/3V and 1H/4V. This allows the height of displayed characters to be of similar size even when the monitors resolution is changed (see Table 35). The number of characters per row is a function of character width. The width of the character displayed is only dependent upon the value held in the 7-bit programmable counter (PLLCN) and is not affected by a change in horizontal resolution (any change in fHsync will be reflected by a linear change in the frequency of the OSD clock). Table 35 Recommended character size selection for different display resolutions The maximum number of characters per row can be determined by calculating the number of OSD clock pulses that occur during the Hsync active period and dividing the result by the number of horizontal dots in the character matrix (which is 12). If Hsync is assumed to be active for 85% of its cycle period then the maximum number of characters per row (N) can be calculated as follows: RESOLUTION 0.85 × f OSD N = ---------------------------12 × f Hsync 13.2 Number of rows per frame The number of rows per frame is a function of character height and the spacing between the rows of characters. The height of a character displayed on the screen is determined by the number of visible scan lines per frame and the character size. The number of scan lines is dependent upon the resolution of the monitor; character size is selected by the user (see Section 10.1.2). The PCE84C886 also provides a choice of four inter-line spaces: 0H, 4H, 8H and 12H (see Section 10.1.2). If the inter-line spacing is assumed to be zero then the number of rows per frame (R) can be calculated by dividing the number of visible scan lines (SL) by the character size (CS) and dividing the result by the number of vertical dots in the character matrix (which is 18). This can be expressed mathematically as follows: SL R = --------------------18 × CS Table 35 shows the number of rows per frame for different horizontal resolutions. 1996 Jan 08 Character size selection for different display resolutions 42 CHARACTER SIZE ROWS/FRAME 640 × 400 1H/2V 11 640 × 480 1H/2V 13 800 × 600 1H/3V 11 1 024 × 768 1H/4V 10 1280 × 1024 1H/4V 14 Philips Semiconductors Preliminary specification Microcontroller for monitor OSD and auto-sync applications PCE84C886 14 8-BIT COUNTER (T3) 15 I2C-BUS INTERFACE One application for this counter is in the frequency measurement of the Hsync signal. The PCE84C886 has an on-chip I2C-bus interface that can be used in master or slave mode. Full details of the I2C-bus are given in the document “The I2C-bus and how to use it”. This document may be ordered using the code 9398 393 40011. The block diagram of the 8-bit counter is shown in Fig.31. A Schmitt trigger is used at the input for noise rejection and also to shape the input signal into a square wave. The rising edge of the input increments the ripple counter by ‘1’. The minimum distance between the rising edges of two successive input pulses is 10 µs; the minimum pulse width (HIGH-to-LOW level) of the input is 1 µs. The I2C-bus interface lines SDA and SCL share the same pins as Derivative Port lines DP20 and DP21 respectively. Selection of the pin function as either an I2C-bus line or a Derivative Port line is achieved using the SDAE and SCLE bits in Derivative Register 22 (see Section 12.1). Only port Option 2 is available for both of these pins. T3 may be read using the instruction MOV A, D24 (where D24 is Derivative Register 24). To ensure that a valid read operation has been carried out, the counter needs to be read at least twice. As soon as data is read, the counter is reset to zero. The counter is also reset to zero on overflow or Power-on-reset. The piggy-back device to be used with the PCE84C886 is the PCA84C841B. As this piggy-back device is also used with other microcontrollers in the 84CXXXA family, in order to prevent contention between the T3 pin of the PCE84C886 and the corresponding pin P13 used by the other microcontrollers, when writing to Port 1, P13 must be set to a logic 1 (this port line is not available in the PCE84C886). handbook, full pagewidth T3 Power-on-reset READ D24 CK RESET 8-BIT COUNTER READ ENABLE Q0 to Q7 Data bus MLC075 Fig.31 Block diagram of the 8-bit counter (T3). 1996 Jan 08 43 Philips Semiconductors Preliminary specification Microcontroller for monitor OSD and auto-sync applications PCE84C886 16 OUTPUT PORTS Each I/O port line may be individually configured using one of three mask options. The three I/O mask options are specified below: Option 1 Standard input/output with switched pull-up current source; this is shown in Fig.32. Option 2 Input/output with Open drain output; this is shown in Fig.33. Option 3 Push-pull output; this is shown in Fig.34. The state of each output port after a Power-on-reset can also be selected using the mask options. All port mask options are given in Section 16.1. WRITE PULSE handbook, full pagewidth OUTL/ORL/ANL/MOV TR2 TR3 DATA BUS D MQ MASTER D SQ constant current source 100 µA typ. SLAVE SQ I/O PORT LINE TR1 VSS ORL/ANL/MOV MLA696 IN/MOV Fig.32 Standard I/O with pull-up current source (Option 1). 1996 Jan 08 VDD 44 Philips Semiconductors Preliminary specification Microcontroller for monitor OSD and auto-sync applications handbook, full pagewidth PCE84C886 WRITE PULSE OUTL/ORL/ANL VDD DATA BUS D D MQ MASTER SQ SLAVE I/O PORT LINE SQ TR1 VSS ORL/ANL MLA697 IN Fig.33 I/O with open-drain output (Option 2). WRITE PULSE handbook, full pagewidth VDD OUTL / ORL / ANL DATA BUS TR2 D MQ MASTER D constant current source 100 µA typ. SQ SLAVE SQ OUTPUT LINE TR1 VSS ORL / ANL MLB998 IN Fig.34 Push-pull output (Option 3). 1996 Jan 08 45 Philips Semiconductors Preliminary specification Microcontroller for monitor OSD and auto-sync applications 16.1 PCE84C886 Mask options Table 36 lists the port mask options for the PCE84C886. Table 37 is intended for customer use when ordering the device. Table 36 Port options Table 37 Customer selected mask options OPTION PORT OPTION PIN CONFIGURATION PORT RESET STATE PIN CONFIGURATION P00 13 1, 2 or 3 HIGH or LOW P00 13 P01 14 1, 2 or 3 HIGH or LOW P01 14 P02 15 1, 2 or 3 HIGH or LOW P02 15 P03 16 1, 2 or 3 HIGH or LOW P03 16 P04 17 1, 2 or 3 HIGH or LOW P04 17 P05 18 1, 2 or 3 HIGH or LOW P05 18 P06 19 1, 2 or 3 HIGH or LOW P06 19 P07 20 1, 2 or 3 HIGH or LOW P07 20 P10 7 1, 2 or 3 HIGH or LOW P10 7 RESET STATE P11 8 1, 2 or 3 HIGH or LOW P11 8 P12 10 1, 2 or 3 HIGH or LOW P12 10 P14 12 1, 2 or 3 HIGH or LOW P14 12 DP00 29 1, 2 or 3 HIGH or LOW DP00 29 DP01 28 1, 2 or 3 HIGH or LOW DP01 28 DP02 27 1, 2 or 3 HIGH or LOW DP02 27 DP03 26 1, 2 or 3 HIGH or LOW DP03 26 DP04 25 1, 2 or 3 HIGH or LOW DP04 25 DP05 24 1, 2 or 3 HIGH or LOW DP05 24 DP06 23 1, 2 or 3 HIGH or LOW DP06 23 DP07 22 1, 2 or 3 HIGH or LOW DP07 22 DP10 38 1, 2 or 3 HIGH or LOW DP10 38 DP11 37 1, 2 or 3 HIGH or LOW DP11 37 DP12 36 1, 2 or 3 HIGH or LOW DP12 36 DP13 9 1, 2 or 3 HIGH or LOW DP13 9 DP20 40 2 HIGH DP20 40 2 S DP21 39 2 HIGH DP21 39 2 S DP22 3 1, 2 or 3 HIGH or LOW DP22 3 DP23 4 1, 2 or 3 HIGH or LOW DP23 4 FB 1 2 or 3 HIGH or LOW FB 1 VOW2 2 2 or 3 HIGH or LOW VOW2 2 1996 Jan 08 46 Philips Semiconductors Preliminary specification Microcontroller for monitor OSD and auto-sync applications PCE84C886 17 DERIVATIVE REGISTERS There are 30 Derivative Registers in the PCE84C886. The Derivative Port I/O registers are located at addresses 00 to 05H. When DP0TR, DP1TR and DP2TR are read the data is read directly from the pin. However, when DP0R, DP1R and DP2R are read the data is read from the port latch (see Figs 32 to 34 for the port configuration). Table 38 Register map (see note 1) ADDR (HEX) REG 7 6 5 4 3 2 1 0 R/W 00 DP0TR DP07 (X) DP06 (X) DP05 (X) DP04 (X) DP03 (X) DP02 (X) DP01 (X) DP00 (X) R 01 DP1TR − (X) − (X) − (X) − (X) DP13 (X) DP12 (X) DP11 (X) DP10 (X) R 02 DP2TR − (X) − (X) − (X) − (X) DP23 (X) DP22 (X) DP21 (X) DP20 (X) R 03 DP0R DP07 (1) DP06 (1) DP05 (1) DP04 (1) DP03 (1) DP02 (1) DP01 (1) DP00 (1) RW 04 DP1R − (X) − (X) − (X) − (X) DP13 (1) DP12 (1) DP11 (1) DP10 (1) RW 05 DP2R − (X) − (X) − (X) − (X) DP23 (1) DP22 (1) DP21 (1) DP20 (1) RW 10 PWM0 − (X) PWM06 (0) PWM05 (0) PWM04 (0) PWM03 (0) PWM02 (0) PWM01 (0) PWM00 (0) RW 11 PWM1 − (X) PWM16 (0) PWM15 (0) PWM14 (0) PWM13 (0) PWM12 (0) PWM11 (0) PWM10 (0) RW 12 PWM2 − (X) PWM26 (0) PWM25 (0) PWM24 (0) PWM23 (0) PWM22 (0) PWM21 (0) PWM20 (0) RW 13 PWM3 − (X) PWM36 (0) PWM35 (0) PWM34 (0) PWM33 (0) PWM32 (0) PWM31 (0) PWM30 (0) RW 14 PWM4 − (X) − (X) PWM45 (0) PWM44 (0) PWM43 (0) PWM42 (0) PWM41 (0) PWM40 (0) RW 15 PWM5 − (X) − (X) PWM55 (0) PWM54 (0) PWM53 (0) PWM52 (0) PWM51 (0) PWM50 (0) RW 16 PWM6 − (X) − (X) PWM65 (0) PWM64 (0) PWM63 (0) PWM62 (0) PWM61 (0) PWM60 (0) RW 17 PWM7 − (X) − (X) PWM75 (0) PWM74 (0) PWM73 (0) PWM72 (0) PWM71 (0) PWM70 (0) RW 18 PWM8L − (X) PWM86L PWM85L PWM84L PWM83L PWM82L PWM81L PWM80L RW (0) (0) (0) (0) (0) (0) (0) 19 PWM8H − (X) PWM86H PWM85H PWM84H PWM83H PWM82H PWM81H PWM80H RW (0) (0) (0) (0) (0) (0) (0) 20 ADCCN − (X) ADCS1 (0) 21 PWME 22 CON1 1996 Jan 08 ADCS0 (0) DAC3 (0) DAC2 (0) DAC1 (0) DAC0 (0) COMP(2) (0) RW PWM7E PWM6E (0) (0) PWM5E (0) PWM4E (0) PWM3E (0) PWM2E (0) PWM1E (0) PWM0E (0) RW PWM8E SCLE (0) (0) SDAE (0) ADCE2 (0) ADCE1 (0) ADCE0 (0) VOW1E (0) VOW0E (0) RW 47 Philips Semiconductors Preliminary specification Microcontroller for monitor OSD and auto-sync applications ADDR (HEX) REG 7 6 PCE84C886 5 4 3 2 1 0 R/W 23 CON2 VINT (0) VIEN (0) − (X) − (X) − (X) P8LVL (0) P7LVL (0) P6LVL (0) RW 24 T3CON T3B7 (0) T3B6 (0) T3B5 (0) T3B4 (0) T3B3 (0) T3B2 (0) T3B1 (0) T3B0 (0) R 25 PLLCN − (X) PLL6 (0) PLL5 (0) PLL4 (0) PLL3 (0) PLL2 (0) PLL1 (0) PLL0 (0) RW 30 DCRAR − (X) − (X) DCRA5 (0) DCRA4 (0) DCRA3 (0) DCRA2 (0) DCRA1 (0) DCRA0 (0) RW 31 DCRTR − (X) − (X) − (X) − (X) DCRT3 (1) DCRT2 (1) DCRT1 (1) DCRT0 (1) W 32 DCRCR − (X) − (X) DCRC5 (1) DCRC4 (1) DCRC3 (1) DCRC2 (1) DCRC1 (1) DCRC0 (1) W 33 CON3 − (X) − (X) − (X) − (X) BR1 (0) BR0 (0) BF1 (1) BF0 (1) RW 34 CON4 − (X) − (X) S1 (0) S0 (0) Hp (0) Vp (0) Bp (1) EN (0) RW 35 VPOS − (X) − (X) V5 (1) V4 (1) V3 (1) V2 (1) V1 (1) V0 (1) W 36 HPOS − (X) − (X) H5 (0) H4 (0) H3 (0) H2 (0) H1 (0) H0 (0) W 37 FRC − (X) − (X) − (X) − (X) − (X) FRR (0) FRG (0) FRB (1) W Notes 1. Values within parenthesis show the bit state after a reset operation. ‘X’ denotes an undefined state. 2. This bit is Read only. 18 LIMITING VALUES In accordance with the Absolute Maximum Rating System (IEC 34). SYMBOL PARAMETER MIN. −0.3 MAX. UNIT VDD supply voltage VI input voltage on any pin with respect to ground (VSS) −0.3 VDD + 0.3 V IOH maximum source current for all port lines − −10.0 mA IOL maximum sink current for all port lines − 30.0 mA Ptot total power dissipation − 1 W Tamb operating ambient temperature −25 +85 °C Tstg storage temperature −55 +125 °C 1996 Jan 08 48 +8.0 V Philips Semiconductors Preliminary specification Microcontroller for monitor OSD and auto-sync applications PCE84C886 19 DC CHARACTERISTICS VDD = 5 V ±10%; VSS = 0 V; Tamb = −25 to +85 °C; all voltages with respect to VSS; unless otherwise specified. SYMBOL PARAMETER CONDITIONS MIN. TYP. MAX. UNIT Supply VDD operating supply voltage IDD operating supply current VPOR 4.5 5.0 5.5 V fOSD = fxtal = 10 MHz − 5 10 mA fOSD = fxtal = 6 MHz − 3.5 7 mA fOSD = Stop; fxtal = 10 MHz − 3 6 mA fOSD = Stop; fxtal = 6 MHz − 1.5 4 mA 0.7 1.3 1.9 V − 0.3VDD V Power-on-reset voltage level Ports P0, P1, DP0, DP1 and DP2 inputs VIL LOW level input voltage 0 VIH HIGH level input voltage 0.7VDD − VDD V ILI input leakage current VSS < VI < VDD − − ±10 µA VDD = 5 V; IOL = 10 mA − − 1.2 V VDD = 5 V; VO = 0.7VDD −40 −100 − µA VDD = 5 V; VO = VSS − −140 −400 µA −7.0 − mA Port P0 outputs VOL LOW level output voltage IOH1 HIGH level pull-up output source current IOH2 HIGH level push-pull output source current VDD = 5 V; VO = VDD − 0.4 V −3.0 DP00/PWM0 to DP07/PWM7 as derivative ports IOL LOW level output sink current VDD = 5 V; VOL = 0.4 V 5.0 12.0 − mA IOH1 HIGH level pull-up output source current VDD = 5 V; VO = 0.7VDD −40 −100 − µA VDD = 5 V; VO = VSS − IOH2 HIGH level push-pull output source current VDD = 5 V; VO = VDD − 0.4 V −3.0 −140 −400 µA −7.0 − mA DP00/PWM0 to DP07/PWM7 as PWM outputs IOL LOW level output sink current VDD = 5 V; VOL = 0.4 V 0.7 1.5 − mA IOH1 HIGH level pull-up output source current VDD = 5 V; VO = 0.7VDD −40 −100 − µA VDD = 5 V; VO = VSS − −140 −400 µA −1.5 − mA IOH2 HIGH level push-pull output source current VDD = 5 V; VO = VDD − 0.4 V −0.7 P10 to P14, DP20 and DP21 outputs IOL LOW level output sink current VDD = 5 V; VOL = 0.4 V 5.0 12.0 − mA IOH1 HIGH level pull-up output source current VDD = 5 V; VO = 0.7VDD −40 −100 − µA VDD = 5 V; VO = VSS − IOH2 HIGH level push-pull output source current VDD = 5 V; VO = VDD − 0.4 V −3.0 −140 −400 µA −7.0 − mA DP20/SDA and DP21/SCL outputs IOL LOW level output sink current VDD = 5 V; VOL = 0.4 V 3.0 − − mA IOH1 HIGH level pull-up output source current VDD = 5 V; VO = 0.7VDD −40 −100 − µA VDD = 5 V; VO = VSS − −140 −400 µA HIGH level push-pull output source current VDD = 5 V; VO = VDD − 0.4 V − −7.0 − mA IOH2 1996 Jan 08 49 Philips Semiconductors Preliminary specification Microcontroller for monitor OSD and auto-sync applications SYMBOL PCE84C886 PARAMETER CONDITIONS MIN. TYP. MAX. UNIT VOW1/DP22; VOW0/DP23 and DP13/PWM8 as derivative output ports IOL LOW level output sink current VDD = 5 V; VOL = 0.4 V 5.0 12.0 − mA IOH1 HIGH level pull-up output source current VDD = 5 V; VO = 0.7VDD −40 −100 − µA VDD = 5 V; VO = VSS − −140 −400 µA −7.0 − mA IOH2 HIGH level push-pull output source current VDD = 5 V; VO = VDD − 0.4 V −3.0 VOW1/DP22 and VOW0/DP23 as VOW outputs IOL LOW level output sink current IOH1 HIGH level pull-up output source current IOH2 VDD = 5 V; VOL = 0.4 V 1.4 3.0 − mA VDD = 5 V; VO = 0.7VDD −40 −100 − µA VDD = 5 V; VO = VSS − −140 −400 µA −3.0 − mA HIGH level push-pull output source current VDD = 5 V; VO = VDD − 0.4 V −1.4 DP13/PWM8 as PWM8 output IOL LOW level output sink current VDD = 5 V; VOL = 0.4 V 1.4 3.0 − mA IOH1 HIGH level pull-up output source current VDD = 5 V; VO = 0.7VDD −40 −100 − µA VDD = 5 V; VO = VSS − −140 −400 µA −3.0 − mA IOH2 HIGH level push-pull output source current VDD = 5 V; VO = VDD − 0.4 V −1.4 Outputs FB and VOW2 IOL LOW level output sink current IOH1 HIGH level pull-up output source current IOH2 VDD = 5 V; VOL = 0.4 V 1.4 3.0 − mA VDD = 5 V; VO = 0.7VDD −40 −100 − µA VDD = 5 V; VO = VSS − −140 −400 µA −3.0 − mA HIGH level push-pull output source current VDD = 5 V; VO = VDD − 0.4 V −1.4 DP10/ADC0 to DP12/ADC2 as derivative output ports IOL LOW level output sink current VDD = 5 V; VOL = 0.4 V 5.0 12.0 − mA IOH1 HIGH level pull-up output source current VDD = 5 V; VO = 0.7VDD −40 −100 − µA VDD = 5 V; VO = VSS − IOH2 HIGH level push-pull output source current VDD = 5 V; VO = VDD − 0.4 V −3.0 −140 −400 µA −7.0 − mA TEST/EMU; RESET; INTN/T0; T1; HSYNCN; VSYNCN and T3 − VIL LOW level input voltage 0 VIH HIGH level input voltage 0.7VDD − VDD V ILI input leakage current −1.0 +1.0 µA 1996 Jan 08 VSS < VI < VDD 50 − 0.3VDD V Philips Semiconductors Preliminary specification Microcontroller for monitor OSD and auto-sync applications PCE84C886 20 AC CHARACTERISTICS SYMBOL fxtal fPXE PARAMETER Crystal oscillator frequency CONDITIONS MIN. TYP. MAX. UNIT VDD = 5 V Option 1: gm = 0.4 mS 1 − 6 MHz Option 2: gm = 1.2 mS 4 − 10 MHz 1 − 6 MHz 4.0 − 14 MHz 30 − 64 kHz PXE resonator frequency VDD = 5 V Option 2: gm = 1.2 mS fOSD OSD clock frequency fHsync Hsync frequency duty cycle = 10 : 90 fVsync Vsync frequency duty cycle = 10 : 90 50 − 120 Hz COSD external capacitance at pin C − 0.33 − µF Cxtal1 external capacitance at XTAL1 (IN) pin (PXE resonator) − 30 100 pF Cxtal2 external capacitance at XTAL2 (OUT) pin (PXE resonator) − 30 100 pF tT3 minimum pulse width period at T3 input 1 − − µs rising or falling edge of T3 pulse < 30 ns Analog-to-Digital (software) Converter VAI comparator analog input voltages ADC0; ADC1 and ADC2 VSS − VDD V VAE conversion error range − − ±1 ⁄ 2 LSB TAFC conversion time (from any change in ADC input i.e. channel number; voltage level or enable/disable) − − 7 µs 1996 Jan 08 51 Philips Semiconductors Preliminary specification Microcontroller for monitor OSD and auto-sync applications PCE84C886 21 DEVELOPMENT SUPPORT Table 39 details the hardware items available for development support and Table 40 lists the development support documentation. Table 39 Hardware ITEM TYPE ORDER NUMBER Mother board - LCDS84 OM1025 9339 931 50112 Daughter board - LCD84C846 OM4833 9350 426 00112 − 9350 419 50112 LCDS Development System Piggy-back version PCA84C841B Table 40 Documentation DOCUMENT NAME REPORT NUMBER OSD + BCM monitor application board (BCM9211) and software (Version 1.0) Taiwan/AN9302 OSD + BCM Software Version 1.1 and Monitor Application Board (BCM9211) Taiwan/AN9308 PCE84C886 OSD microcontroller optimization techniques Taiwan/AN9311 1996 Jan 08 52 Philips Semiconductors Preliminary specification Microcontroller for monitor OSD and auto-sync applications PCE84C886 22 PACKAGE OUTLINE seating plane SDIP42: plastic shrink dual in-line package; 42 leads (600 mil) SOT270-1 ME D A2 L A A1 c e Z b1 (e 1) w M MH b 22 42 pin 1 index E 1 21 0 5 10 mm scale DIMENSIONS (mm are the original dimensions) UNIT A max. A1 min. A2 max. b b1 c D (1) E (1) e e1 L ME MH w Z (1) max. mm 5.08 0.51 4.0 1.3 0.8 0.53 0.40 0.32 0.23 38.9 38.4 14.0 13.7 1.778 15.24 3.2 2.9 15.80 15.24 17.15 15.90 0.18 1.73 Note 1. Plastic or metal protrusions of 0.25 mm maximum per side are not included. OUTLINE VERSION REFERENCES IEC JEDEC EIAJ ISSUE DATE 90-02-13 95-02-04 SOT270-1 1996 Jan 08 EUROPEAN PROJECTION 53 Philips Semiconductors Preliminary specification Microcontroller for monitor OSD and auto-sync applications PCE84C886 23 SOLDERING 23.1 Introduction There is no soldering method that is ideal for all IC packages. Wave soldering is often preferred when through-hole and surface mounted components are mixed on one printed-circuit board. However, wave soldering is not always suitable for surface mounted ICs, or for printed-circuits with high population densities. In these situations reflow soldering is often used. This text gives a very brief insight to a complex technology. A more in-depth account of soldering ICs can be found in our “IC Package Databook” (order code 9398 652 90011). 23.2 Soldering by dipping or by wave The maximum permissible temperature of the solder is 260 °C; solder at this temperature must not be in contact with the joint for more than 5 seconds. The total contact time of successive solder waves must not exceed 5 seconds. The device may be mounted up to the seating plane, but the temperature of the plastic body must not exceed the specified maximum storage temperature (Tstg max). If the printed-circuit board has been pre-heated, forced cooling may be necessary immediately after soldering to keep the temperature within the permissible limit. 23.3 Repairing soldered joints Apply a low voltage soldering iron (less than 24 V) to the lead(s) of the package, below the seating plane or not more than 2 mm above it. If the temperature of the soldering iron bit is less than 300 °C it may remain in contact for up to 10 seconds. If the bit temperature is between 300 and 400 °C, contact may be up to 5 seconds. 1996 Jan 08 54 Philips Semiconductors Preliminary specification Microcontroller for monitor OSD and auto-sync applications PCE84C886 24 DEFINITIONS Data sheet status Objective specification This data sheet contains target or goal specifications for product development. Preliminary specification This data sheet contains preliminary data; supplementary data may be published later. Product specification This data sheet contains final product specifications. Limiting values Limiting values given are in accordance with the Absolute Maximum Rating System (IEC 134). Stress above one or more of the limiting values may cause permanent damage to the device. These are stress ratings only and operation of the device at these or at any other conditions above those given in the Characteristics sections of the specification is not implied. Exposure to limiting values for extended periods may affect device reliability. Application information Where application information is given, it is advisory and does not form part of the specification. 25 LIFE SUPPORT APPLICATIONS These products are not designed for use in life support appliances, devices, or systems where malfunction of these products can reasonably be expected to result in personal injury. Philips customers using or selling these products for use in such applications do so at their own risk and agree to fully indemnify Philips for any damages resulting from such improper use or sale. 26 PURCHASE OF PHILIPS I2C COMPONENTS Purchase of Philips I2C components conveys a license under the Philips’ I2C patent to use the components in the I2C system provided the system conforms to the I2C specification defined by Philips. This specification can be ordered using the code 9398 393 40011. 1996 Jan 08 55 Philips Semiconductors – a worldwide company Argentina: IEROD, Av. Juramento 1992 - 14.b, (1428) BUENOS AIRES, Tel. (541)786 7633, Fax. (541)786 9367 Australia: 34 Waterloo Road, NORTH RYDE, NSW 2113, Tel. (02)805 4455, Fax. (02)805 4466 Austria: Triester Str. 64, A-1101 WIEN, P.O. Box 213, Tel. (01)60 101-1236, Fax. (01)60 101-1211 Belgium: Postbus 90050, 5600 PB EINDHOVEN, The Netherlands, Tel. (31)40-2783749, Fax. (31)40-2788399 Brazil: Rua do Rocio 220 - 5th floor, Suite 51, CEP: 04552-903-SÃO PAULO-SP, Brazil, P.O. Box 7383 (01064-970), Tel. (011)821-2333, Fax. (011)829-1849 Canada: PHILIPS SEMICONDUCTORS/COMPONENTS: Tel. (800) 234-7381, Fax. (708) 296-8556 Chile: Av. Santa Maria 0760, SANTIAGO, Tel. (02)773 816, Fax. (02)777 6730 China/Hong Kong: 501 Hong Kong Industrial Technology Centre, 72 Tat Chee Avenue, Kowloon Tong, HONG KONG, Tel. (852)2319 7888, Fax. (852)2319 7700 Colombia: IPRELENSO LTDA, Carrera 21 No. 56-17, 77621 BOGOTA, Tel. (571)249 7624/(571)217 4609, Fax. (571)217 4549 Denmark: Prags Boulevard 80, PB 1919, DK-2300 COPENHAGEN S, Tel. (45)32 88 26 36, Fax. (45)31 57 19 49 Finland: Sinikalliontie 3, FIN-02630 ESPOO, Tel. (358)0-615 800, Fax. (358)0-61580 920 France: 4 Rue du Port-aux-Vins, BP317, 92156 SURESNES Cedex, Tel. (01)4099 6161, Fax. (01)4099 6427 Germany: P.O. Box 10 51 40, 20035 HAMBURG, Tel. (040)23 53 60, Fax. (040)23 53 63 00 Greece: No. 15, 25th March Street, GR 17778 TAVROS, Tel. (01)4894 339/4894 911, Fax. (01)4814 240 India: Philips INDIA Ltd, Shivsagar Estate, A Block, Dr. Annie Besant Rd. Worli, Bombay 400 018 Tel. (022)4938 541, Fax. (022)4938 722 Indonesia: Philips House, Jalan H.R. Rasuna Said Kav. 3-4, P.O. Box 4252, JAKARTA 12950, Tel. (021)5201 122, Fax. (021)5205 189 Ireland: Newstead, Clonskeagh, DUBLIN 14, Tel. (01)7640 000, Fax. (01)7640 200 Italy: PHILIPS SEMICONDUCTORS S.r.l., Piazza IV Novembre 3, 20124 MILANO, Tel. (0039)2 6752 2531, Fax. (0039)2 6752 2557 Japan: Philips Bldg 13-37, Kohnan 2 -chome, Minato-ku, TOKYO 108, Tel. (03)3740 5130, Fax. (03)3740 5077 Korea: Philips House, 260-199 Itaewon-dong, Yongsan-ku, SEOUL, Tel. (02)709-1412, Fax. (02)709-1415 Malaysia: No. 76 Jalan Universiti, 46200 PETALING JAYA, SELANGOR, Tel. (03)750 5214, Fax. (03)757 4880 Mexico: 5900 Gateway East, Suite 200, EL PASO, TX 79905, Tel. 9-5(800)234-7381, Fax. (708)296-8556 Netherlands: Postbus 90050, 5600 PB EINDHOVEN, Bldg. VB, Tel. (040)2783749, Fax. (040)2788399 New Zealand: 2 Wagener Place, C.P.O. Box 1041, AUCKLAND, Tel. (09)849-4160, Fax. (09)849-7811 Norway: Box 1, Manglerud 0612, OSLO, Tel. (022)74 8000, Fax. (022)74 8341 Pakistan: Philips Electrical Industries of Pakistan Ltd., Exchange Bldg. ST-2/A, Block 9, KDA Scheme 5, Clifton, KARACHI 75600, Tel. (021)587 4641-49, Fax. (021)577035/5874546 Philippines: PHILIPS SEMICONDUCTORS PHILIPPINES Inc., 106 Valero St. Salcedo Village, P.O. Box 2108 MCC, MAKATI, Metro MANILA, Tel. (63) 2 816 6380, Fax. (63) 2 817 3474 Portugal: PHILIPS PORTUGUESA, S.A., Rua dr. António Loureiro Borges 5, Arquiparque - Miraflores, Apartado 300, 2795 LINDA-A-VELHA, Tel. (01)4163160/4163333, Fax. (01)4163174/4163366 Singapore: Lorong 1, Toa Payoh, SINGAPORE 1231, Tel. (65)350 2000, Fax. (65)251 6500 South Africa: S.A. PHILIPS Pty Ltd., 195-215 Main Road Martindale, 2092 JOHANNESBURG, P.O. Box 7430, Johannesburg 2000, Tel. (011)470-5911, Fax. (011)470-5494 Spain: Balmes 22, 08007 BARCELONA, Tel. (03)301 6312, Fax. (03)301 42 43 Sweden: Kottbygatan 7, Akalla. S-164 85 STOCKHOLM, Tel. (0)8-632 2000, Fax. (0)8-632 2745 Switzerland: Allmendstrasse 140, CH-8027 ZÜRICH, Tel. (01)488 2211, Fax. (01)481 77 30 Taiwan: PHILIPS TAIWAN Ltd., 23-30F, 66, Chung Hsiao West Road, Sec. 1. Taipeh, Taiwan ROC, P.O. Box 22978, TAIPEI 100, Tel. (886) 2 382 4443, Fax. (886) 2 382 4444 Thailand: PHILIPS ELECTRONICS (THAILAND) Ltd., 209/2 Sanpavuth-Bangna Road Prakanong, Bangkok 10260, THAILAND, Tel. (66) 2 745-4090, Fax. (66) 2 398-0793 Turkey: Talatpasa Cad. No. 5, 80640 GÜLTEPE/ISTANBUL, Tel. (0 212)279 27 70, Fax. (0212)282 67 07 Ukraine: Philips UKRAINE, 2A Akademika Koroleva str., Office 165, 252148 KIEV, Tel. 380-44-4760297, Fax. 380-44-4766991 United Kingdom: Philips Semiconductors LTD., 276 Bath Road, Hayes, MIDDLESEX UB3 5BX, Tel. (0181)730-5000, Fax. (0181)754-8421 United States: 811 East Arques Avenue, SUNNYVALE, CA 94088-3409, Tel. (800)234-7381, Fax. (708)296-8556 Uruguay: Coronel Mora 433, MONTEVIDEO, Tel. (02)70-4044, Fax. (02)92 0601 Internet: http://www.semiconductors.philips.com/ps/ For all other countries apply to: Philips Semiconductors, International Marketing and Sales, Building BE-p, P.O. Box 218, 5600 MD EINDHOVEN, The Netherlands, Telex 35000 phtcnl, Fax. +31-40-2724825 SCDS47 © Philips Electronics N.V. 1996 All rights are reserved. Reproduction in whole or in part is prohibited without the prior written consent of the copyright owner. The information presented in this document does not form part of any quotation or contract, is believed to be accurate and reliable and may be changed without notice. No liability will be accepted by the publisher for any consequence of its use. Publication thereof does not convey nor imply any license under patent- or other industrial or intellectual property rights. Printed in The Netherlands 453061/1100/01/pp56 Document order number: Date of release: 1996 Jan 08 9397 750 00551