INTEGRATED CIRCUITS
DATA SHEET
PCE84C886
Microcontroller for monitor OSD and auto-sync applications
Preliminary specification |
|
1996 Jan 08 |
|||||
File under Integrated Circuits, IC14 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Philips Semiconductors Preliminary specification
Microcontroller for monitor OSD |
|
PCE84C886 |
||
and auto-sync applications |
|
|||
|
|
|||
|
|
|
||
|
|
|
||
CONTENTS |
12 |
OSD CONTROL REGISTERS |
||
1 |
FEATURES |
12.1 |
Derivative Register 22 |
|
12.2 |
Derivative Register 23 |
|||
1.1 |
General |
|||
12.3 |
Derivative Register 33 |
|||
1.2 |
Special |
12.4 |
Derivative Register 34 |
|
1.3 |
OSD |
12.5 |
Derivative Register 35 |
|
2 |
GENERAL DESCRIPTION |
12.6 |
Derivative Register 36 |
|
3 |
ORDERING INFORMATION |
12.7 |
Derivative Register 37 |
|
13 |
TO FORMAT THE OSD |
|||
4 |
BLOCK DIAGRAM |
|||
|
|
5 |
PINNING INFORMATION |
5.1Pinning
5.2Pin description
6 RESET
6.1Reset trip level
6.2Reset status
7 |
ANALOG (DC) CONTROL |
7.16 and 7-bit PWM outputs
7.214-bit PWM output
7.3A typical PWM output application
8 |
ANALOG-TO-DIGITAL CONVERTER (ADC) |
8.1Conversion algorithm
9 |
ON SCREEN DISPLAY (OSD) |
9.1Horizontal starting position control
9.2Vertical starting position control
9.3On-chip clock generator
10 DISPLAY RAM ORGANIZATION
10.1Description of display RAM codes
10.2Default values of OSD after Power-on-reset
10.3Loading character data into display RAM
10.4Writing character data into display RAM
11 CHARACTER ROM
11.1Character ROM address map
11.2Character ROM organization
11.3Combination of character font cells
13.1Number of characters per row
13.2Number of rows per frame
13.3Character size selection for different display resolutions
148-BIT COUNTER (T3)
15I2C-BUS INTERFACE
16OUTPUT PORTS
16.1Mask options
17DERIVATIVE REGISTERS
18LIMITING VALUES
19DC CHARACTERISTICS
20AC CHARACTERISTICS
21DEVELOPMENT SUPPORT
22PACKAGE OUTLINE
23SOLDERING
23.1Introduction
23.2Soldering by dipping or by wave
23.3Repairing soldered joints
24DEFINITIONS
25LIFE SUPPORT APPLICATIONS
26PURCHASE OF PHILIPS I2C COMPONENTS
1996 Jan 08 |
2 |
|
|
|
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
Philips Semiconductors |
Preliminary specification |
|
|
Microcontroller for monitor OSD
PCE84C886
and auto-sync applications
1 FEATURES
1.1General
∙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, I2C-bus and VSYNCN
∙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.
∙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 fVsync divisors of 16, 32, 64 and 128; on a frame basis
∙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)
1.2Special
∙Master-slave I2C-bus interface
∙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.3OSD
∙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)
∙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)
∙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 I2C-bus interface, 2 directly 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.
3 ORDERING INFORMATION
TYPE NUMBER |
|
PACKAGE |
|
|
|
|
|
||
NAME |
DESCRIPTION |
VERSION |
||
|
||||
|
|
|
|
|
PCE84C886 |
SDIP42 |
plastic shrink dual in-line package; 42 leads (600 mil) |
SOT270-1 |
|
|
|
|
|
1996 Jan 08 |
3 |
Philips Semiconductors |
Preliminary specification |
|
|
Microcontroller for monitor OSD
PCE84C886
and auto-sync applications
4 BLOCK DIAGRAM
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
VOW0 |
VOW2 |
|
VSYNCN |
|||||||||||
|
|
|
|
|
|
|
T1 |
|
|
INTN / T0 |
|
|
|
T3 |
|
|
|
|
|
|
|
|
|
|
|
FB |
|
VOW1 |
|
|
C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|
|
|
|
|
|
|
I / O |
|
|
|
|
8-BIT |
|
|
|
|
4 x 6-BIT PWM |
|
14-BIT |
|
|
3 x 4-BIT |
|
|
|
I2C-BUS |
|
|
|||||||||||||||||
|
|
|
|
|
|
|
|
core |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||||||||||||||||||||||
TEST / EMU |
PORTS |
|
|
|
|
I / O |
|
|
|
|
4 x 7-BIT PWM |
|
PWM |
|
|
|
ADC |
|
|
|
|
INTERFACE |
|
|
|||||||||||||||||||||
|
|
|
excluding |
|
|
PORTS |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|||||||||||||||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||||||
|
|
|
|
|
|
|
|
|
|
ROM / RAM |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||
|
|
VSS |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8 |
|
4 |
|
|
|
8 |
4 |
4 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
MLC067 |
||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|||||||||||||
|
|
|
|
|
|
|
|
|
|
|
(1) |
|
(2) |
|
|
|
|
|
(2) |
|
|
|
|
(3) |
|
(3) |
|
|
|||||||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||||||||||
|
|
|
|
|
|
|
P0 P1 |
|
|
|
|
|
DP0 |
DP1 |
DP2 |
|
PWM0 |
|
PWM8 |
|
ADC0 |
|
|
|
SDA |
SCL |
|||||||||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
to |
|
|
|
|
|
|
|
to |
|
|
|
|
|
|
|
|
|
|
|
||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
PWM7 |
|
|
|
|
|
|
|
ADC2 |
|
|
|
|
|
|
|
|
|
|
|
(1)Alternative function of DP0.
(2)Alternative function of DP1.
(3)Alternative function of DP2.
Fig.1 Block diagram.
1996 Jan 08 |
4 |
Philips Semiconductors |
Preliminary specification |
|
|
Microcontroller for monitor OSD
PCE84C886
and auto-sync applications
5 PINNING INFORMATION
5.1Pinning
FB |
|
|
|
VDD |
|||
1 |
|
42 |
|||||
|
|
|
|
|
|
|
|
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 |
PCE84C886 |
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 |
||
|
|
|
|
|
|
|
|
|
|
|
MLC068 |
|
|
|
Fig.2 Pin configuration.
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 |
|
|
|
|||
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). |
||||||
|
|
|
||||||
P14 |
12 |
Port line 14 or emulation output DXINT. |
||||||
|
|
|
||||||
P00 to P07 |
13 to 20 |
General I/O port lines. |
||||||
|
|
|
||||||
VSS |
21 |
Ground. |
||||||
|
DP00/PWM0 to DP07/PWM7 |
29, 28, 27, 26 |
Derivative I/O ports or PWM outputs. |
|||||
|
|
|
25, 24, 23, 22 |
|
|
|
|
|
|
|
|
|
|||||
|
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. |
|||||
|
|
|
||||||
|
|
|
33 |
Reset input; active LOW input initializes device. |
||||
|
RESET |
|
||||||
|
|
|
||||||
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
PCE84C886
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 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.
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 mF. The RC circuit is shown in Fig.3.
6.1Reset trip level
The RESET trip voltage level is masked to 1.3 V in the PCE84C886.
handbook, halfpage |
|
|
|
|
||||||||||||
|
VDD |
|
|
|
|
|
|
|
|
|
|
|||||
|
|
|
|
|
|
|
|
|
|
|
|
|||||
R RESET |
|
|
|
|
|
|
|
|
|
|
internal reset |
|||||
|
|
|
|
|
|
|
|
|
|
|||||||
|
|
|
|
|
|
|
|
|
|
|
|
|||||
( 100 kΩ) |
|
|
|
|
|
|
|
|
||||||||
|
|
|
|
|
|
|
|
|
|
|
||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
RESET |
|
|
|
|
||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
C RESET |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||
|
|
|
|
|
|
|
|
|
|
|||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|||
|
VSS |
|
|
|
|
|
|
|
|
|
|
PCA84C8XX |
||||
|
|
|
|
|
|
|||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
MLC259 |
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.2Reset 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.
handbook, halfpage |
|
|
VDD |
VDD |
|
|
|
internal V DD |
Hsync |
HSYNCN |
|
|
|
|
|
VSS |
PCE84C886 |
|
|
|
R RESET |
|
|
|
RESET |
internal reset |
C RESET |
|
|
VSS |
|
MLC260 |
|
|
Fig.4 The influence of an active HIGH signal being applied before Power-on-reset.
1996 Jan 08 |
7 |
Philips Semiconductors |
Preliminary specification |
|
|
Microcontroller for monitor OSD
PCE84C886
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.16 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 polarity of the PWM outputs is programmable and is selected by the P7LVL and P6LVL bits in Register 23 (see Section 12.2).
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.
3 ´ (PWMn) Pulse width = ---------------------------------
fxtal
Where (PWMn) is the decimal value held in the data latch.
The maximum repetition frequency (fPWM) of the 6 and 7-bit PWM outputs is shown below.
fxtal
For the 6-bit PWM outputs: fPWM = ---------
192
fxtal
For the 7-bit PWM outputs: fPWM = ---------
384
The block diagram for the 6 and 7-bit PWM outputs is shown in Fig.5.
|
internal data bus |
|
|
|
|
|
DP0x data |
fxtal |
6 or 7-BIT PWM DATA LATCH |
P6LVL/P7LVL |
I/O |
3 |
|
||
|
|
|
|
|
|
|
PWMnE |
|
Q |
|
|
|
6 or 7-BIT DAC PWM |
|
|
|
CONTROLLER |
|
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
PCE84C886
and auto-sync applications
fxtal 3
64 |
1 |
2 |
3 |
m |
m + 1 m + 2 |
64 |
1 |
or |
|
|
|
|
|
or |
|
128 |
|
|
|
|
|
128 |
|
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
PCE84C886
and auto-sync applications
7.214-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 fxtal/3, the repetition times of the coarse and fine pulse controllers may be
calculated as shown below.
7.2.1COARSE ADJUSTMENT
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 ¤ fxtal ´ (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.
Pulse duration = (127 |
3 |
–PWM8H) ´ -------- |
|
|
fxtal |
7.2.2FINE ADJUSTMENT
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:
·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.
384 Coarse controller repetition time: tsub = ---------
fxtal
49152 Fine controller repetition time: tr = ----------------
fxtal
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.
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 |
|
|
|
1996 Jan 08 |
10 |
Philips Semiconductors |
Preliminary specification |
|
|
Microcontroller for monitor OSD
PCE84C886
and auto-sync applications
Internal data bus
‘MOVE instruction’
‘MOV instruction’
PWM8H |
PWM8L |
|
7 |
7 |
|
DATA LOAD |
LOAD |
PWMREG |
|
TIMING PULSE |
|||
|
|
||
|
7 |
7 |
|
|
COARSE 7-BIT |
FINE PULSE |
|
|
PWM |
GENERATOR |
|
|
OUT1 |
OUT2 |
|
polarity |
|
MIXER |
|
control bit |
Q |
Q |
|
|
PWM8 output
P8LVL
Q14 to 8 |
Q7 to 1 |
|
|
|
14-BIT COUNTER |
|
|
f tdac = fxtal |
|
|
|
|||
|
|
|
3 |
|
|
|
|
|
|
|
MLC071 |
Fig.7 14-bit PWM Block diagram.
1996 Jan 08 |
11 |
Philips Semiconductors |
Preliminary specification |
|
|
Microcontroller for monitor OSD
PCE84C886
and auto-sync applications
handbook, ffullxtalpagewidth |
|
|
|
|
|
|
|
|
|
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.
fxtal 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
PCE84C886
and auto-sync applications
t r
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.3A 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).
Vmax = R3----------------------------------------------------× supply voltage |
(1) |
||
R3 + |
----------------------R1 × R2 |
|
|
|
R1 + R2 |
|
|
---------------------R1 × R3 × supply voltage |
|
||
Vmin = ------------------------------------------------------------------R1 + R3 |
R1 |
× R3 |
(2) |
R2 + |
|
||
|
R1 |
+ R3 |
|
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.
handbook, halfpage |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
supply |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
voltage |
|
|
|
|
|
|
|
|
|
|
R1 |
|
|
R2 |
|||||
|
|
|
|
|
|
|
|
|
|
|
|
|||||||
|
PWMn |
|
|
|
|
|
|
|
|
|
|
|
analog |
|||||
|
|
|
|
|
|
|
|
|
|
|
|
|||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
output |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|||
|
PCE84C886 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
C1 |
|
|
R3 |
||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||||
|
|
|
|
|
|
|
|
|
|
|
|
|||||||
|
VSS |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
MLC070 |
|
|
|
||||||||||||||
|
|
|
|
|
|
Fig.11 Typical PWM output circuit.
1996 Jan 08 |
13 |
Philips Semiconductors |
Preliminary specification |
|
|
Microcontroller for monitor OSD
PCE84C886
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 (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 |
|
VDD |
× ( DAC value + 1) |
(3) |
ref |
= ---------- |
|||
|
16 |
|
|
When the analog input voltage is higher than Vref, the COMP bit in Register 20 will be HIGH.
Table 3 Selection of Vref
DAC3 |
DAC2 |
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 |
|
|
|
|
|
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.1Conversion 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 (Vref). If COMP = 0; the analog input voltage is lower than the reference voltage (Vref).
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.
1996 Jan 08 |
14 |
Philips Semiconductors |
Preliminary specification |
|
|
Microcontroller for monitor OSD
PCE84C886
and auto-sync applications
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
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.
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.
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 |
|
VDD |
× ( DAC value + 1) |
(4) |
A |
= ---------- |
|||
|
16 |
|
|
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.
handbook, full pagewidth |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
DERIVATIVE PORT |
Internal bus |
|||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
SELECTOR |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||
DP10/ADC0 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
EN0 |
EN1 |
EN2 |
|
|
|||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|||||||
|
|
|
|
|
|
|
ADC |
|
|
|
|
|
|
|
|
|
|
|
|
|
COMP bit |
||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||||||
DP11/ADC1 |
|
|
|
|
|
|
|
CHANNEL |
|
|
|
|
|
|
|
+ |
|
|
|
|
|
|
|
||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||||||
|
|
|
|
|
|
|
SELECTOR |
|
|
|
|
|
Vref |
− |
COMPARATOR |
|
|
‘MOV A, D20’ |
|||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|||||
DP12/ADC2 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
EN |
|
|
instruction |
||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
to read COMP bit |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Channel selection |
|
|
|
|
|
|
|
|
ENABLE |
|
|
|
|
|
|
|
|
||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||||||||||
|
ADCS1 |
ADCS0 |
|
|
|
|
|
|
|
|
|
||||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
SELECTOR |
|
|
|
|
|
|
|
|
||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4-BIT DAC |
|
|
ADCE0 |
ADCE1 |
ADCE2 |
|
|
|
|
ADC enable selection |
DAC3 |
DAC2 |
DAC1 |
DAC0 |
||
|
|
|
|
|
|
MLC072 |
|
|
|
|
DAC value selection |
|
Fig.12 Block diagram of 3 channel ADC.
1996 Jan 08 |
15 |
08 Jan1996 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Value = 1000 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
T |
|
|
|
F |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
||||
16 |
|
|
|
|
Value = 1110 |
|
|
|
|
|
|
|
|
|
|
Value = 1010 |
|
|
|
|
|
Value =0110 |
|
|
|
|
|
|
|
|
|
|
Value = 0010 |
|
|
|
|
|||||||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||
|
|
|
T |
|
|
|
|
|
F |
|
|
|
|
T |
|
|
|
F |
|
|
|
|
T |
|
|
|
F |
|
|
|
|
T |
|
|
|
F |
||||||||||||||||||
|
|
|
|
|
COMP = 1 |
|
|
|
|
|
|
|
|
|
|
COMP = 1 |
|
|
|
|
|
|
|
|
|
|
COMP = 1 |
|
|
|
|
|
|
|
|
|
|
COMP = 1 |
|
|
|
|
||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|||||||||||||
|
|
Value = 1111 |
|
Value = 1101 |
|
Value = 1011 |
|
Value = 1001 |
|
|
Value = 0111 |
|
Value = 0101 |
|
Value = 0011 |
|
Value = 0001 |
|||||||||||||||||||||||||||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|||||
|
T |
COMP = 1 |
|
F T |
|
COMP = 1 |
F T |
|
COMP = 1 |
F T |
|
COMP = 1 |
F |
|
T |
|
COMP = 1 |
F T |
|
COMP = 1 |
F T |
|
COMP = 1 |
F T |
|
COMP = 1 |
F |
|||||||||||||||||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||||||||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||||||
|
1111 |
|
|
1110 |
1101 |
1100 |
1011 |
1010 |
1001 |
1000 |
0111 |
0110 |
0101 |
0100 |
0011 |
0010 |
0001 |
0000 |
||||||||||||||||||||||||||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
MLC073 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
handbook,full pagewidth |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Fig.13 Example of converting algorithm for software ADC. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|||||||||||||||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
sync-auto and |
Microcontroller |
applications |
monitor for |
|
OSD |
PCE84C886
Semiconductors Philips
specification Preliminary
Philips Semiconductors |
Preliminary specification |
|
|
Microcontroller for monitor OSD
PCE84C886
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.1Horizontal 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.2Vertical 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.
9.3On-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:
fOSD = fHsync × 2 × ( Register 25)
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 (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 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.
1996 Jan 08 |
17 |