Philips pcec886 DATASHEETS

INTEGRATED CIRCUITS
DATA SH EET
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
CONTENTS
1 FEATURES
1.1 General
1.2 Special
1.3 OSD 2 GENERAL DESCRIPTION 3 ORDERING INFORMATION 4 BLOCK DIAGRAM 5 PINNING INFORMATION
5.1 Pinning
5.2 Pin description 6 RESET
6.1 Reset trip level
6.2 Reset status 7 ANALOG (DC) CONTROL
7.1 6 and 7-bit PWM outputs
7.2 14-bit PWM output
7.3 A typical PWM output application 8 ANALOG-TO-DIGITAL CONVERTER (ADC)
8.1 Conversion algorithm 9 ON SCREEN DISPLAY (OSD)
9.1 Horizontal starting position control
9.2 Vertical starting position control
9.3 On-chip clock generator 10 DISPLAY RAM ORGANIZATION
10.1 Description of display RAM codes
10.2 Default values of OSD after Power-on-reset
10.3 Loading character data into display RAM
10.4 Writing character data into display RAM 11 CHARACTER ROM
11.1 Character ROM address map
11.2 Character ROM organization
11.3 Combination of character font cells
PCE84C886
12 OSD CONTROL REGISTERS
12.1 Derivative Register 22
12.2 Derivative Register 23
12.3 Derivative Register 33
12.4 Derivative Register 34
12.5 Derivative Register 35
12.6 Derivative Register 36
12.7 Derivative Register 37 13 TO FORMAT THE OSD
13.1 Number of characters per row
13.2 Number of rows per frame
13.3 Character size selection for different display resolutions
14 8-BIT COUNTER (T3) 15 I2C-BUS INTERFACE 16 OUTPUT PORTS
16.1 Mask options
17 DERIVATIVE REGISTERS 18 LIMITING VALUES 19 DC CHARACTERISTICS 20 AC CHARACTERISTICS 21 DEVELOPMENT SUPPORT 22 PACKAGE OUTLINE 23 SOLDERING
23.1 Introduction
23.2 Soldering by dipping or by wave
23.3 Repairing soldered joints
24 DEFINITIONS 25 LIFE SUPPORT APPLICATIONS 26 PURCHASE OF PHILIPS I2C COMPONENTS
1996 Jan 08 2
Philips Semiconductors Preliminary specification
Microcontroller for monitor OSD and auto-sync applications
1 FEATURES
1.1 General
CMOS 8-bit CPU (enhanced 8048 CPU) with 8 kbytes system ROM and 192 bytes system RAM
One 8-bit timer/event counter (T1) and one 8-bit counter triggered by external input (T3)
Four single level vectored interrupt sources: external (INTN), counter/timer, I
2 directly testable inputs T0 and T1
On-chip oscillator clock frequency: 1 to 10 MHz
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
Idle and Stop modes for reduced power consumption
Operating temperature: 25 to +85 °C
Operating voltage: 4.5 to 5.5 V
Package: SDIP42.
1.2 Special
2
Master-slave I
Four 6-bit Pulse Width Modulated outputs
(PWM4 to PWM7)
Four 7-bit Pulse Width Modulated outputs (PWM0 to PWM3)
One 14-bit Pulse Width Modulated output (PWM8)
Three 4-bit ADC channels
16 derivative I/O ports.
1.3 OSD
Maximum dot frequency (f
Display RAM: 64 × 10 bits
Display character fonts: 62 + 2 special reserved codes
Character matrix: 12 × 18 (no spacing between
characters)
4 character sizes: 1H/1V, 1H/2V, 1H/3V and 1H/4V
64 Horizontal starting positions (4 dots for each step)
64 Vertical starting positions (4 scan lines for each step)
C-bus interface
2
C-bus and VSYNCN
): 14 MHz
OSD
PCE84C886
Spacing between character rows: 0, 4, 8 and 12 scan lines
Foreground colours: 8 on a character-by-character basis
Background colours: 8 on a word-by-word basis
Background/shadowing modes: 4 modes available, No
background, North shadowing, Box shadowing and Frame shadowing (raster blanking) on a frame basis
On-chip Phase-Locked Loop (PLL) oscillator (auto-sync with HSYNCN) with programmable oscillator for On Screen Display (OSD) function
Character blinking frequency: programmable using f
divisors of 16, 32, 64 and 128; on a frame basis
Vsync
Character blinking ratios: 1 : 1, 1 : 3 and 3 : 1
Programmable active level polarities of VSYNCN,
HSYNCN, R, G, B and FB
Flexible display format by using Carriage Return Code
Auto display RAM address (DCRAR) incremented after
write operation to the Character Data Register (DCRCR)
VSYNCN generates an interrupt (enabled by software) when VIEN is active.
2 GENERAL DESCRIPTION
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 I testable lines and an enhanced OSD facility for flexible screen format (64 character types) are also provided.
The block diagram of the PCE84C886 is shown in Fig.1.
2
C-bus interface, 2 directly
3 ORDERING INFORMATION
TYPE NUMBER
PCE84C886 SDIP42 plastic shrink dual in-line package; 42 leads (600 mil) SOT270-1
1996 Jan 08 3
PACKAGE
NAME DESCRIPTION VERSION
Philips Semiconductors Preliminary specification
Microcontroller for monitor OSD and auto-sync applications
4 BLOCK DIAGRAM
handbook, full pagewidth
INTN / T0 T3
CPU
V
DD
XTAL1 (IN)
XTAL2 (OUT)
T1
8-BIT
TIMER /
EVENT
COUNTER
8-BIT
COUNTER
ROM
8 kbytes
RAM
192 bytes
VOW0
FB
VOW2CVSYNCN
VOW1
(3) (3)
ON SCREEN DISPLAY
PCE84C886
HSYNCN
8-bit internal bus
RESET
PARALLEL
I / O
TEST / EMU
V
SS
(1) Alternative function of DP0. (2) Alternative function of DP1. (3) Alternative function of DP2.
PORTS
8
P0
P1
PCF84CXX core excluding ROM / RAM
4
8-BIT
I / O
PORTS
48 4
DP0 DP1 DP2
Fig.1 Block diagram.
4 x 6-BIT PWM 4 x 7-BIT PWM
(1) (2) (2) (3)
PWM0
to
PWM7
14-BIT
PWM
PWM8 ADC0
3 x 4-BIT
ADC
to
ADC2
2
I C-BUS
INTERFACE
SDA SCL
MLC067
(3)
1996 Jan 08 4
Philips Semiconductors Preliminary specification
Microcontroller for monitor OSD and auto-sync applications
5 PINNING INFORMATION
5.1 Pinning
handbook, halfpage
VOW1/DP22 VOW0/DP23
VSYNCN HSYNCN
DP13/PWM8
FB
VOW2
P10 P11
PCE84C886
V
1 2 3 4 5 6 7 8 9
42 41 40 39 38 37 36 35 34
DD
C DP20/SDA DP21/SCL DP10/ADC0 DP11/ADC1 DP12/ADC2 INTN/T0 T1
10
P12
T3
11
PCE84C886
12
P14
13
P00
14
P01
15
P02
16
P03
17
P04
18
P05
19
P06
20
P07
V
21
SS
MLC068
Fig.2 Pin configuration.
33
RESET
32
XTAL2 (OUT)
31
XTAL1 (IN)
30
TEST/EMU
29
DP00/PWM0
28
DP01/PWM1
27
DP02/PWM2
26
DP03/PWM3
25
DP04/PWM4
24
DP05/PWM5
23
DP06/PWM6
22
DP07/PWM7
1996 Jan 08 5
Philips Semiconductors Preliminary specification
Microcontroller for monitor OSD
PCE84C886
and auto-sync applications
5.2 Pin description Table 1 SDIP42 package
SYMBOL PIN DESCRIPTION
FB 1 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 P11 8 Port line 11 or emulation input 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). P14 12 Port line 14 or emulation output DXINT. P00 to P07 13 to 20 General I/O port lines. V
SS
DP00/PWM0 to DP07/PWM7 29, 28, 27, 26
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 I DP20/SDA 40 Derivative port line or I C 41 External capacitor input for on-chip oscillator. V
DD
21 Ground.
Derivative I/O ports or PWM outputs.
25, 24, 23, 22
42 Power supply.
2
C-bus clock input.
2
C-bus data input.
DXWR.
DXRD.
1996 Jan 08 6
Philips Semiconductors Preliminary specification
Microcontroller for monitor OSD and auto-sync applications
6 RESET
The RESET pin may be used as an active LOW input to initialize the microcontroller to a defined state.
An active reset can be generated by driving theRESET pin from an external logic device. Such an active reset pulse should not fall off before VDD has reached its f
-dependent minimum operating voltage.
xtal
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 C RC circuit is shown in Fig.3.
6.1 Reset trip level
The RESET trip voltage level is masked to 1.3 V in the PCE84C886.
If any input (for example Hsync) goes HIGH before V 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 Reset status
Derivative Registers reset status; see Table 38 for details
Program Counter 00H
Memory Bank 0
Register Bank 0
Stack Pointer 00H
All interrupts disabled
Timer/event counter 1 stopped and cleared
Timer pre-scaler modulo-32 (PS = 0)
Timer flag cleared
Serial I/O interface disabled (ESO = 0) and in slave
receiver mode
Idle and Stop mode cleared.
RESET
2.2 µF. The
is
DD
PCE84C886
handbook, halfpage
V
DD
R
RESET
( 100 k)
RESET
C
RESET
V
SS
Fig.3 External components for RESET pin.
handbook, halfpage
V
DD
HSYNCN
V
SS
RESET
Hsync
R
RESET
C
RESET
V
DD
V
SS
Fig.4 The influence of an active HIGH signal being
applied before Power-on-reset.
internal reset
PCA84C8XX
internal V
PCE84C886
internal reset
MLC259
DD
MLC260
1996 Jan 08 7
Philips Semiconductors Preliminary specification
Microcontroller for monitor OSD and auto-sync applications
7 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:
4 PWM outputs with 6-bit resolution (PWM4 to PWM7)
4 PWM outputs with 7-bit resolution (PWM0 to PWM3)
1 PWM output with 14-bit resolution (PWM8).
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.
7.1 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).
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 pulse generated can be calculated as shown below.
Pulse width
3 PWMn()×
=
----------------------------------
Where (PWMn) is the decimal value held in the data latch. The maximum repetition frequency (f
7-bit PWM outputs is shown below.
For the 6-bit PWM outputs:
For the 7-bit PWM outputs:
The block diagram for the 6 and 7-bit PWM outputs is shown in Fig.5.
1
⁄3× f
f
xtal
, the pulse width of the
xtal
) of the 6 and
PWM
f
f
PWM
f
PWM
xtal
=
--------- ­192
f
xtal
=
--------- ­384
The polarity of the PWM outputs is programmable and is selected by the P7LVL and P6LVL bits in Register 23 (see Section 12.2).
handbook, full pagewidth
f
xtal
3
6 or 7-BIT PWM DATA LATCH
6 or 7-BIT DAC PWM
CONTROLLER
internal data bus
Q
Q
P6LVL/P7LVL
DP0x data
I/O
PWMnE
DP0x/PWMx
MLC069
1996 Jan 08 8
Fig.5 Block diagram for 6 and 7-bit PWMs.
Philips Semiconductors Preliminary specification
Microcontroller for monitor OSD and auto-sync applications
f
handbook, full pagewidth
xtal
3
64
or
128
00
01
m
63
or
127
1 2 3 m m + 1 m + 2
decimal value PWM data latch
PCE84C886
64
or
128
1
MLC261
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 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).
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)
14-bit data latch (PWMREG)
14-bit counter
Coarse pulse controller
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.
As the 14-bit counter is clocked by f times of the coarse and fine pulse controllers may be calculated as shown below.
Coarse controller repetition time:
Fine controller repetition time:
t
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.
/3, the repetition
xtal
=
t
sub
49152
=
----------------
r
f
xtal
384
--------- ­f
xtal
PCE84C886
7.2.1 C 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
3f
PWM8H 1+()×[] then go HIGH and remain HIGH until the start of the next subperiod. The coarse pulse width may be calculated as shown below.
Pulse duration 127 PWM8H()
7.2.2 F 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/f
xtal
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:
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.
Table 2 Additional pulse distribution
PWM8L 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
OARSE ADJUSTMENT
xtal
INE ADJUSTMENT
has elapsed. The output will
3
×=
-------­f
xtal
. The contents of PWM8L determine in which
1996 Jan 08 10
Philips Semiconductors Preliminary specification
Microcontroller for monitor OSD and auto-sync applications
handbook, full pagewidth
‘MOVE instruction’
PWM8H
DATA LOAD
TIMING PULSE
LOAD
Internal data bus
7 7
PWMREG
PWM8L
PCE84C886
‘MOV instruction’
polarity control bit
P8LVL
7 7
COARSE 7-BIT
PWM
MIXER
Q
Q14 to 8 Q7 to 1
14-BIT COUNTER
FINE PULSE
GENERATOR
OUT2OUT1
Q
MLC071
PWM8 output
f = f
tdac xtal
3
1996 Jan 08 11
Fig.7 14-bit PWM Block diagram.
Philips Semiconductors Preliminary specification
Microcontroller for monitor OSD and auto-sync applications
f
handbook, full pagewidth
xtal
3
127 0 1 2 m m + 1 m + 2
00
01
m
127
decimal value PWM8H data latch
PCE84C886
127 0 1
MLC263
f
xtal
handbook, full pagewidth
3
127 0 1 2 m m + 1 m + 2
00
01
m
127
Fig.8 Non-inverted PWM8 output patterns - Coarse adjustment only.
127 0 1
MLC262
decimal value PWM8H data latch
1996 Jan 08 12
Fig.9 Non-inverted PWM8 output patterns - Coarse and Fine adjustment.
Philips Semiconductors Preliminary specification
Microcontroller for monitor OSD and auto-sync applications
handbook, full pagewidth
111 1110
111 1011
111 1010
PWM8L
t
sub0
t
sub16
t
sub32
t
sub48
t
t
sub64
PCE84C886
r
t
sub80
t
sub96
t
sub112
t
sub127
MLC755
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).
V
V
min
----------------------------------------------------
max
R1 R3×
--------------------- ­R1 R3+
=
-------------------------------------------------------------------
R3
R2
R1 R2×
+
---------------------­R1 R2+
supply voltage×
R1 R3×
+
---------------------­R1 R3+
The loop from the PWM pin through R1 and C1 to V
SS
(1)
(2)
will
R3 supply voltage×
=
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.
handbook, halfpage
PCE84C886
R2
PWMn
V
SS
MLC070
R1
C1 R3
Fig.11 Typical PWM output circuit.
supply
voltage
analog output
1996 Jan 08 13
Philips Semiconductors Preliminary specification
Microcontroller for monitor OSD and auto-sync applications
8 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.
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).
The 4-bit DAC analog output voltage (V by the decimal value of the data held in bits DAC0 to DAC3 of Register 20. V and Table 3 lists the V
is calculated as shown in Equation (3)
ref
values assuming VDD=5V.
ref
V
ref
DD
---------­16
DAC value 1+()×=
V
When the analog input voltage is higher than V COMP bit in Register 20 will be HIGH.
Table 3 Selection of V
ref
DAC3 DAC2 DAC1 DAC0 V
00000.3125
00010.6250
00100.9375
00111.2500
01001.5625
01011.8750
01102.1875
01112.5000
10002.8125
10013.1250
10103.4375
10113.7500
11004.0625
11014.3750
11104.6875
11115.0000
) is determined
ref
, the
ref
(V)
ref
(3)
PCE84C886
The channel selector, consisting of three analog switches, is controlled by bits ADCS1 and ADCS0 in Register 20 as highlighted in Table 4.
Table 4 Selection of ADC channel
ADCS1 ADCS0 CHANNEL SELECTED
0 0 ADC0 0 1 ADC1 1 0 ADC2 1 1 reserved
8.1 Conversion algorithm
There are many algorithms available to achieve the ADC conversion. The algorithm described below and shown in Fig.13 uses an iteration process.
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 (V lower than the reference voltage (V
4. If COMP = 1; then the analog input voltage is higher than the reference voltage (V 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 (V 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.
). If COMP = 0; the analog input voltage is
ref
).
ref
) and therefore the
ref
) and therefore the
ref
1996 Jan 08 14
Philips Semiconductors Preliminary specification
Microcontroller for monitor OSD and auto-sync applications
7. For the DAC = 1100 case If COMP = 1; then the analog input voltage is still
greater than V 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 V
and therefore the digital input to the DAC
ref
needs to be decreased. Set the input to the DAC to 1010
8. For the DAC = 0100 case If COMP = 1; then the analog input voltage is now
greater than V DAC needs to be increased. Set the input to the DAC to 0110.
If COMP = 0; then the analog input voltage is still lower than V
and therefore the digital input to the DAC
ref
needs to be decreased again. Set the input to the DAC to 0010.
and therefore the digital input to the
ref
and therefore the digital input to the
ref
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):
V
V
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 V the COMP bit.
DD
----------
A
DAC value 1+()×=
16
; select the ADC channel and read
ref
(4)
handbook, full pagewidth
DP10/ADC0
DP11/ADC1
DP12/ADC2
Channel selection
ADCE0 ADCE1 ADCE2
ADC
CHANNEL
SELECTOR
ADCS1 ADCS0
ADC enable selection
Fig.12 Block diagram of 3 channel ADC.
ENABLE
SELECTOR
V
ref
DERIVATIVE PORT
+
DAC3
SELECTOR
EN1 EN2EN0
COMPARATOR
EN
4-BIT DAC
DAC2 DAC1 DAC0
DAC value selection
Internal bus
COMP bit
‘MOV A, D20’
instruction
to read COMP bit
MLC072
1996 Jan 08 15
Philips Semiconductors Preliminary specification
Microcontroller for monitor OSD and auto-sync applications
Value = 0100
TF
COMP = 1
Value = 0010
TF
COMP = 1
Value = 0001
Value = 0011
Value = 0101
PCE84C886
0000
MLC073
COMP = 1
TF
00010011
0010
COMP = 1
TF
COMP = 1
TF
0101 0100
Value = 1000
TF
COMP = 1
Value = 1100
TF
COMP = 1
Value =0110
TF
Value = 1010
TF
Value = 1110
TF
COMP = 1
COMP = 1
COMP = 1
Value = 0111
Value = 1001
Value = 1011
Value = 1101
COMP = 1
TF
0111 0110
COMP = 1
TF
1001 10001011
1010
COMP = 1
TF
COMP = 1
TF
1101 1100
handbook, full pagewidth
Fig.13 Example of converting algorithm for software ADC.
1996 Jan 08 16
Value = 1111
COMP = 1
TF
1111 1110
Philips Semiconductors Preliminary specification
Microcontroller for monitor OSD and auto-sync applications
9 ON SCREEN DISPLAY (OSD)
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 Horizontal starting position control
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 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 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.
PCE84C886
9.3 On-chip clock generator
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 clock frequency is calculated as follows:
f
OSDfHsync
Where (Register 25) denotes the decimal value held in Register 25.
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 (f character width is not effected by changes in the frequency of Hsync. The internal Hsync signal is designed active HIGH, consequently f edge of this signal.
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.
2 Register 25()××=
) will be changed linearly. Therefore, the
OSD
is synchronized with the falling
PLL
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 17
Loading...
+ 38 hidden pages