The MAX4455 is an eight-channel arbitrary graphics
on-screen display (OSD) video generator that inserts
arbitrary gray-scale bit-mapped graphics into eight
asynchronous composite video sources. Ideal for security camera surveillance systems, the MAX4455 supports the insertion of graphics and text on up to eight
video output channels in 15 levels of brightness. It easily displays information such as company logo, camera
location, time, and date with arbitrary fonts and sizes.
Arbitrary graphics capability enables the display of
unique languages and fonts, allowing manufacturers to
tailor their system for any geographic market. The
MAX4455 is designed to work with Maxim’s video
crosspoint switches, such as the MAX4356 and
MAX4358, which include circuitry that simplifies the
insertion of the OSD information. The MAX4455 can
also be used with discrete fast mux switches.
The MAX4455 operates from a 3V to 3.6V digital supply, and a 2.7V to 5.5V analog supply. Independent
interface supplies enable the MAX4455 to communicate with microprocessors and OSD crosspoint switch
logic with logic levels ranging from 2.7V to 5.5V. The
MAX4455 uses an external 16Mb SDRAM for graphical
image storage for all eight video channels. The
MAX4455 manages all memory interface functions,
allowing a simple host µP interface. The MAX4455’s
multiple-channel memory sharing and multiple-location
write function allow fast memory updates of shared
graphics information necessary for rapidly changing
OSD information, such as a time stamp.
The MAX4455 is available in a thin 100-pin TQFP package (200mm2area), and is fully specified over the
extended temperature range (-40°C to +85°C). The
MAX4455EVSYS is available to evaluate the MAX4455
along with the MAX4358 (32 × 16 video crosspoint
switch with OSD).
Stresses beyond those listed under “Absolute Maximum Ratings” may cause permanent damage to the device. These are stress ratings only, and functional
operation of the device at these or any other conditions beyond those indicated in the operational sections of the specifications is not implied. Exposure to
absolute maximum rating conditions for extended periods may affect device reliability.
AVDDto DVDD.............................................................-6V to +6V
AV
DD
to AGND .........................................................-0.3V to +6V
AV
DD
to DGND .........................................................-0.3V to +6V
DV
DD
to AGND.........................................................-0.3V to +6V
DV
DD
to DGND.........................................................-0.3V to +6V
V
H1
, VK1to DGND....................................................-0.3V to +6V
V
H1
, VK1to AGND ....................................................-0.3V to +6V
AGND to DGND.....................................................-0.3V to +0.3V
Analog Inputs (VIDIN_) to AGND.............-0.3V to (AV
DD
+ 0.3V)
Analog Outputs (OSDFILL_) to AGND.....-0.3V to (AV
DD
+ 0.3V)
RSET to AGND .........................................-0.3V to (AV
DD
+ 0.3V)
Memory Interface to DGND .....................-0.3V to (DV
DD
+ 0.3V)
Host Interface to DGND ..............................-0.3V to (V
H1
+ 0.3V)
OSDKEY_ to DGND.....................................-0.3V to (V
(DVDD= 3.0V to 3.6V, AVDD= 2.7V to 5.5V, VK1= VH1= 2.7V to 5.5V, AGND = DGND = 0, R
RSET
= 11.75kΩ ±1%, R
OSDFILL_
= 75Ω,
f
XTAL1/SYNC
= 40.5MHz, TA= -40°C to +85°C, unless otherwise noted. Typical values are at TA= +25°C.)
Note 1: f
XTAL1/SYNC
is production tested at 1MHz. Application operating frequency is f
XTAL1/SYNC
= 40.5MHz.
Note 2: Pertains to host interface pins: ADDR/DATA, CS, WR, RD, AD7–AD0, RDY/BSY. V
H1
is connected to µP host power supply
rail (2.7V to 5.5V).
Note 3: Read operation is combinational. Access time is from the latter of either RD or CS.
Note 4: Pertains to XTAL1/SYNCIN and XTAL2 pins (external clock is supplied to XTAL1/SYNCIN pin). All input signals are specified
with t
R
= tF= 5ns (10% to 90% of DVDD), and timed from a voltage level of 1.6V.
5CSHost Chip Select Digital Input. Drive CS logic high to enable the host data interface.
6
7RDHost Read Strobe Digital Input
8ADDR/DATAHost Address or Data Select Digital Input
9–16AD7–AD0Host Address/Data Bus Digital I/O
17RDY/BSYHost Ready/Busy Handshake Digital Output
18–23, 26, 27, 37,
36, 35, 34, 31, 30,
29, 28
24, 32, 41, 49, 57, 71DV
38DQM
39CLKMemory Clock Digital Output
48WEMemory Write Enable Digital Output
51CASMemory Column Address Strobe Digital Output
52RASMemory Row Address Strobe Digital Output
53BAMemory Bank Address Digital Output
55, 56, 59, 60, 47,
46, 45, 44, 43, 40, 54
61–64, 67–70
VIDIN0–VIDIN7
DGNDDigital Ground
D0–D15Memory Data Digital I/O
A0–A10Memory Address Digital Outputs
OSDKEY0–
OSDKEY7
Analog Video Inputs. The MAX4455 extracts video timing information from each VIDIN_
input. AC-couple the input signal with a 0.1µF capacitor.
H1
WRHost Write Strobe Digital Input
DD
Host Interface Supply Voltage Input. VH1 supplies the level shifters for logic outputs to the
host µP interface. Connect V
Positive Digital Power Supply. Bypass each DVDD pin with a 0.1µF capacitor to DGND.
Memory DQM Digital Output. DQM controls the memory output buffer in read mode, and
masks input data in write mode.
OSDKEY Digital Outputs. OSDKEY_ logic low controls the fast mux switches (available in
the Maxim crosspoint switches, MAX4356/MAX4358) to insert OSDFILL_ signal.
to the µP logic supply.
H1
65V
73XTAL1/SYNC
74XTAL2
76, 78, 80, 82, 84,
86, 88, 90, 92
77, 79, 81, 83, 85,
87, 89, 91
K1
AV
DD
OSDFILL7–
OSDFILL0
OSDKEY Interface Power-Supply Input. VK1 supplies the level shifters for OSDKEY_ logic
outputs to the fast mux switches (available in the Maxim crosspoint switches,
MAX4356/MAX4358). Connect V
the MAX4356/MAX4358).
Crystal Oscillator/External Clock Input. Connect a crystal oscillator module to
XTAL1/SYNC, or connect a fundamental mode crystal oscillator between XTAL1/SYNC and
XTAL2.
Crystal Oscillator Output. Leave XTAL2 unconnected when using a crystal oscillator
module, or connect a fundamental mode crystal oscillator between XTAL1/SYNC and
XTAL2.
Positive Analog Power Supply. Bypass each AVDD pin with a 0.1µF capacitor to AGND.
OSDFILL Analog Outputs. OSDFILL_ are video DAC current outputs and require a
termination resistor (nominally 75Ω) to AGND.
to the digital supply of the fast mux switches (VDD of
K1
MAX4455
Arbitrary Graphics On-Screen Display
Video Generator
The MAX4455 provides 4-bit gray-scale graphics video
to eight simultaneous independent composite video
inputs. The bit-mapped approach allows an arbitrary
message to be inserted into the camera video when
used in conjunction with the MAX4356/MAX4358 video
crosspoint switch or discrete fast mux switch. The
inserted graphics can include camera location, date,
time, company logo, or warning prompts.
The graphics palette for each of the eight video channels
in the MAX4455 is logically organized into 1024 pixels by
512 lines. This memory arrangement facilitates easy
row/column pixel addressing by the host processor. The
actual displayed area is 712 × 484 NTSC (712 × 512 PAL)
pixels. The remaining 312 logical pixels per line are
blanked. The remaining 28 NTSC (0 PAL) horizontal lines
are also blanked as shown in Figure 4.
The MAX4455 controls a 16Mb SDRAM (such as
MT48LC1M16A) that stores video graphics insertion data.
The MAX4455 performs all SDRAM support functions,
including refresh, RAS/CAS timing, video addressing, and
CPU access cycles for host processor read/write support.
Since the SDRAM is organized as a 16-bit wide × 1 million deep array, each SDRAM memory location holds 4
pixels (based on the fact that a pixel is 4 bits and memory is 16 bits wide). The host processor thus accesses
pixels four at a time. The host processor interface is 8
bits wide so the 16 bit wide SDRAM data is written into
(or read from) the pixel data register as two separate
8-bit bytes.
The MAX4455 establishes a video raster time base by
sensing the video signal on either the output of the
Maxim crosspoint switch, or the output buffer of the fast
mux switch. The MAX4455 uses this raster timing to
produce an OSD image signal that can be inserted into
the camera video by controlling the OSDKEY input to
the Maxim crosspoint switch or fast mux switch. The
OSD image is inserted wherever the OSD video level
pixel code has a nonzero value, and the crosspoint
switch or discrete fast mux is made to pass the original
video wherever the OSD video level pixel code is zero.
When the OSD video level is nonzero, it represents a
gray-level code such that level 1 is near black and
code 15 (the maximum possible with a 4-bits-per-pixel
code) is maximally white (Table 1). The host computer
fills the external OSD frame memory with a bit-mapped
image such that each pixel has a value between zero
and 15, controlling both insertion locations and the
brightness levels within an inserted video image. There
are eight channels in the MAX4455 that share memory
resources but are logically completely independent.
Writing/reading image data to/from any channel’s memory does not disrupt other channels.
The MAX4455 features a memory-sharing function
where the even channels or the odd channels can be
updated simultaneously by writing to a designated
source channel. The memory-sharing function minimizes the number of memory writes by the host processor. This is useful for updating information that changes
rapidly (i.e., time stamp).
Video Inputs
The MAX4455’s eight VIDIN_ inputs include circuitry to
extract video timing from each asynchronous video
channel for proper display of the OSD specific to that
channel. Each VIDIN_ time-base circuitry includes a
horizontal sync detector, vertical sync detector, vertical
interval detector, horizontal line counter, and even/odd
field counter. The VIDIN_ inputs sense a standard 1V
P-P
video signal at the output of the crosspoint switch, or
fast mux buffer in order to make video timing insensitive
to delays through the switch/mux. AC-couple the input
with a 0.1µF capacitor.
OSDFILL_ Video Outputs
The MAX4455 has eight independent current output
video DACs that provide 7 IRE to 100 IRE video levels
(R
RSET
= 11.75kΩ) when terminated with 75Ω to
AGND. Connect OSDFILL_ to either the OSDFILL_
input of the Maxim crosspoint switch (MAX4356/
MAX4358) or to one of the inputs of the fast mux switch.
OSDKEY Control Outputs
Each OSD channel has an OSDKEY_ logic output that
drives low when OSDFILL_ output video is to be multiplexed into the active video. The OSDKEY_ output
interfaces directly to the OSDKEY_ inputs of the
MAX4356/MAX4358 or control inputs of the fast mux
switch to allow pixel-by-pixel OSD insertion. The V
K1
supply sets the OSDKEY_ logic output voltage levels.
Pin Description (continued)
PINNAMEFUNCTION
93RSET
94AGNDAnalog Ground
OSDFILL Reference Voltage. Connect a resistor (typically 11.75kΩ) from RSET to AGND to
set the full-scale output current of all eight OSDFILL_ outputs.
Connect VK1to the MAX4356/MAX4358 VDDlogic supply, or a 5V logic supply for TTL output compatibility.
OSDFILL_ Reference Voltage (RSET)
Set the video DAC’s full-scale output current for all
eight channels by connecting a resistor between RSET
and ground. The nominal 11.75kΩ R
RSET
provides a
100 IRE video output level when OSDFILL_ outputs are
terminated with 75Ω resistors to ground. R
RSET
can typ-
ically range between 5kΩ and 15kΩ.
The full-scale OSD DAC output current = (106.5) / R
RSET
.
The full-scale OSD DAC output voltage is the OSD DAC
output current × R
OSDFILL
, where ROSDFILL_ is the termi-
nation resistor to AGND at OSDFILL_.
Crystal Oscillator
The MAX4455 requires a 40.5MHz clock. Connect a 3.3V
crystal oscillator module to XTAL1/SYNC and leave
XTAL2 unconnected, or connect a lower cost 40.5MHz
fundamental mode crystal between XTAL1/SYNC and
XTAL2. The MAX4455 is designed to operate with a 50%
clock duty cycle, but typically operates with up to 40% to
60% duty cycles. The oscillator circuitry typically requires
10ms to settle after the DV
DD
supply is powered up.
Microprocessor Interface
The MAX4455 µP interface includes a byte-wide
address/data bus (AD7–AD0) for parallel programming
of the MAX4455, write strobe input (WR), read strobe
input (RD), active-high chip-select input (CS), address
or data-select input (ADDR/DATA), and a ready/busy
hand-shaking output (RDY/BSY) (Figures 5 and 6). The
MAX4455 allows for interfacing to a µP powered from a
different supply than the MAX4455 by connecting V
H1
to the µP supply. For example, the MAX4455 can be
operated with a single 3.3V supply, while the µP interface can be operated with 3.3V or 5V logic levels by
connecting VH1to the µP power supply.
Host Access Protocol Sequence
1) Host sets ADD/DATA = 1.
2) Host outputs register address on AD7–AD0.
3) Host pulses WR low, then high to write register
1) Host removes drive from AD7–AD0 in anticipation of
register read operation and sets ADD/DATA = 0.
2) Host then pulses RD low and reads register data.
3) The MAX4455 three states when RD is deasserted
(high).
SDRAM Memory Interface
The MAX4455 interfaces directly to a 16Mb SDRAM
with 16-bit-wide data bus. The MAX4455 performs all
SDRAM support functions, including refresh, RAS/CAS
timing, data addressing, and CPU access cycles for
host processor read/write support.
MAX4455 Register Description
OSD Register Organization
The host processor controls each of the MAX4455’s
eight video channels through eight groups (blocks) of 8bit command, status, data, and address registers, plus
one multichannel register block. The register set description for a single channel is described in Table 2. The
eight identical sets of 16 registers (14, plus 2 reserved)
are selected by 4 LSB bits in the host interface address
field as described in Tables 3 and 4. The lower address
bits select which register is accessed within any given
channel. Even channels can share buffer data for display
Table 1. Pixel Data Mapping (4 Bits per
Pixel)
PIXEL DATAGRAY SCALEDESCRIPTION
Transparent—no OSD
00000
000117 IRE (black)
0010213 IRE
0011320 IRE
0100427 IRE
0101533 IRE
0110640 IRE
0111747 IRE
1000853 IRE
1001960 IRE
10101067 IRE
10111173 IRE
11001280 IRE
11011387 IRE
11101493 IRE
111115100 IRE (white)
insertion. Background
video appears normally.
MAX4455
Arbitrary Graphics On-Screen Display
Video Generator
among even channels. Odd channels can also share
buffer data for display among odd channels (see the
Memory Sharing section).
Detailed Description of the Channel-N
Block Registers
QPH, QPL (Quad Pixel Register)
Read/write pixel data 16-bits at a time to the quad pixel
registers due to the SDRAM memory organization. The 4
MSBs (nybble) of QPH represent the left-most pixel and
the 4 LSBs of QPL represent the right-most pixel (4 bits
per pixel). To transfer the QPH/QPL value into display
memory, set the QPHORIZ/QPLINE registers and then
write 0000 0010 to the command register (see CommandRegister section).
QPHORIZ
This 8-bit value is the address of the quad pixel within
the line specified by QPLINE HI and QPLINE LO. A
zero in QPHORIZ addresses the leftmost displayed
quad pixel in the specified line, and increasing
QPHORIZ addresses indexes towards the right-hand
side of the video screen. Valid values range from zero
to 177. Write a 1 in the HINC bit of the channel status
register to enable autoincrement of QPHORIZ.
QPHORIZ autoincrement saturates at 177.
QPLINEH, QPLINEL
The QPLINE_ 9-bit address specifies the horizontal line
of the quad pixel to be accessed (host read or write).
The 9th bit resides in the LSB position (bit 0) of the
QPLINEH register. The lower 8 bits of the 9-bit address
are specified by QPLINEL. Table 5 shows valid displayed line numbers. Note that for NTSC, lines 1
through 20 are never valid, as this is the vertical blank
interval. Write a 1 in the VINC bit of the channel status
register to enable autoincrement of QPLINE_. QPLINE_
autoincrement saturates at 511.
Figure 4. OSD Raster Dimensions
Figure 5. µP Host Interface
t
= 33.367ms
T = 1 / (13.5MHz) = 74.074ns = 1 PIXEL TIME
FRAME
VERTICAL 1 (20 NTSC LINES, 25 PAL LINES)
FLD1: 262H/
312H (PAL)
HBLANK
525H / 625H PER FRAME
FLD2: 263H/
313H (PAL)
HBLANK
APPROX
144T NTSC,
162T PAL
HBLANK PIXEL COUNT IS DEPENDENT
UPON INCOMING VIDEO HLINE PERIOD
FIELD 1 ACTIVE VIDEO (242H NTSC, 287H PAL)
VERTICAL 2 (21 NTSC LINES, 26 PAL LINES)
FIELD 2 ACTIVE VIDEO (242H NTSC, 287 PAL)
712T NTSC,
702T PAL
1ST DISPLAYED PIXEL POSITION IS CONTROLLED
BY HOFFSET REGISTER
The channel status register contains a group of individual control bits and a loss-of-sync (LOS) flag bit. BLANK
(when set to 1) forces suppression of the OSD insertion
graphics, independent of the memory contents. ASYNC
(when set to 1) enables the SHRxxxx registers to be
updated by the host immediately; otherwise, they are
updated at the next complete video field. HINC (when
set to 1) enables autoincrement of the QPHORIZ regis-
ter after each host read/write to OSD memory. VINC
(when set to 1) enables autoincrement of QPLINEH/L
after each host read/write to OSD memory. The LOS flag
is useful in detecting the presence (or absence) of composite video at the channel VIDIN_. LOS is a 1 if the
channel’s valid composite sync is lost for more than one
horizontal line period. It resets back to zero once a valid
sync pulse is detected.
Figure 6. Host Data Write and Read Sequences
The channel status register is described below:
BIT7BIT0
000VINCHINCASYNCBLANKLOS
CS
ADD/DATA
AD7–AD0
HIGH-Z
ADDRESS
DATA IN
WR
RD
CS
ADD/DATA
AD7–AD0
WR
RD
HOST ADDRESS AND DATA WRITE OPERATION
HIGH-Z
ADDRESS
HOST ADDRESS AND DATA READ OPERATION
DATA OUT
MAX4455
Arbitrary Graphics On-Screen Display
Video Generator
The channel command register allows writing and reading of quad pixel data into external SDRAM memory.
The read and write operations are described below:
• Writing 0000 0010 to the COMMAND register caus-
es the pixel data in QPH and QPL to be stored into
external SDRAM memory.
• Writing 0000 0001 to the COMMAND register copies
from external SDRAM memory the quad pixels specified by QPHORIZ/QPLINE into QPH/QPL.
• Writing 0000 0011 to COMMAND register causes a
write followed by a readback to verify the data.
Table 4. Multichannel Block Register Map (Common to All Eight Channels)
Table 5. QPLINE Mapping
The command register is described below:
HOFFSET
The channel horizontal offset register defaults at powerup to 128. Values less than 128 shift the OSD image to
the left (as viewed on the display), while values greater
than 128 shift the OSD image to the right. For example,
changing HOFFSET from 128 to 110 shifts the image to
the left by approximately 10% of the visible display.
Changing HOFFSET from 128 to 156 shifts the image to
the right by approximately 10% of the visible display.
The image portion shifted beyond the active video is
automatically blanked on any edge. The units of HOFFSET are in quad pixels. Horizontal offset is used to
allow flexibility in the video timing for various video
sources. Horizontal offset ensures that the first logical
OSD pixel is visible on the left-hand edge of the video
monitor screen.
ADDRESSNAMEDESCRIPTION
10000000QPHQuad pixel high data read/write for multiple write
10000001QPLQuad pixel low data read/write for multiple write
10000010QPHORIZQuad pixel within H line address
10000011QPLINEHQuad pixel line address high
10000100QPLINELQuad pixel line address low
10000101LOSALLLoss-of-sync flags for channels 0 through 7
Share begin line HI, share begin line LO. This register
pair contains a 9-bit address, which specifies the starting horizontal line to be used from the shared video
frame buffer memory. SHRBEG HI contains only 1 bit,
which resides in the LSB position (bit 0) of the SHRBEG
HI register. The lower 8 bits of the 9-bit address are
specified by SHRBEG LO. Valid shared line numbers
range from 0 to 483 NTSC (511 PAL). The ASYNC flag
in the channel status register controls the time of actual
update, either immediate (asynchronous) or video field
synchronous. SHRBEGH contains the upper bits of the
starting line address and SHRBEGL contains the lower
bits of the line starting address. To allow the entire
value to be changed at once, the internal value of
SHRBEG (which uses both SHRBEGH and SHRBEGL)
is not updated until SHRBEGL is written. A write to
SHRBEGH alone does not trigger an update of the
internal SHRBEG value.
SHRENDH, SHRENDL
This register pair, share end line HI, share end line LO,
contains a 9-bit address, which specifies the ending
horizontal line to be used from the shared video frame
buffer memory. SHREND HI contains only 1 bit, which
resides in the LSB position (bit 0) of the SHREND HI
register. The lower 8 bits of the 9-bit address are specified by SHREND LO. Valid shared line numbers range
from 0 to 483 visible NTSC (511 PAL). The ASYNC flag
in the channel status register controls the time of actual
update, either immediate (asynchronous) or video field
synchronous. To allow the entire value to be changed
at once, the internal value of SHREND (which uses both
SHRENDH and SHRENDL) is not updated until
SHRENDL is written. A write to SHRENDH alone does
not trigger an update of the internal SHREND value.
The shared memory source channel register is described below:
VOFFSET
The channel vertical offset register defaults at power-up
to 128. Values less than 128 shift the image up while
values greater than 128 shift the OSD image down. For
example, changing VOFFSET from 128 to 80 shifts the
image up by approximately 10% of the visible display.
Changing VOFFSET from 128 to 176 shifts the image
down by approximately 10% of the visible display. This
register controls the vertical offset of the OSD graphics
insertion video. The units of VOFFSET are logical lines.
Vertical offset ensures that the first logical OSD graphics line is visible on the video monitor screen. Updates
to VOFFSET can take up to two full frame periods to
take effect.
SHRSRC
Shared memory source channel. A nonzero value in
SHRSRC replaces a horizontal band of display with data
from another channel. When an SHRSRC channel is
selected (nonzero value in the SHRSRC register), the
channel’s graphics video is generated from the channel’s memory, except for the horizontal video lines
between (and including) SHRBEGH/L and SHRENDH/L,
which instead comes from the memory channel specified by the SHRSRC register (see Applications
Information for more details on how video memory sharing works). Time of actual update, either immediate
(asynchronous) or field synchronous, is controlled by the
ASYNC flag in the channel command register. Even
channels can only be shared with even channels. Odd
channels can only be shared with odd channels.
Note: If multiple even or odd channels are set to 1, data
is taken from the lowest even channel and shared with
the higher even channels. This is also true for the odd
channels.
This register is common to all eight channels and
reflects the status of sync presence on each of the
eight VIDIN_ inputs. If valid composite sync is present
at each of the eight VIDIN_ inputs, this register contains
all zeros. If any channel loses sync for more than one
horizontal line period, a flag is set for that respective
channel indicating sync loss. Normally, the host
processor polls this register periodically and checks for
nonzero flag bits, indicating loss of video on any or all
channels. This feature detects vandalism, security
threats, or simple camera/link failure. The loss of sync
register is described below:
MWRITE
Multiple write command register. Trigger multiple write
operations to OSD frame buffer memory by writing to
MWRITE, specifying which channels should receive
data. This is useful in updating graphics common to
multiple channels (i.e., time of day, etc.). Writing a 1
triggers writes to the desired channel as defined below.
This register autoclears itself after a multiple write cycle
completes. The multiple write register is described
below:
Control
Control bits for the multichannel block register. VINC,
when set to 1, enables autoincrement of QPLINEH/L in
the multichannel block after each host multichannel
write to OSD memory. HINC, when set to 1, enables
autoincrement of QPHORIZ in the multichannel block
after each host multichannel write operation to OSD
buffer memory. The control register is described below:
Detailed Description of the Multichannel
Block Registers
QPH, QPL
Pixel data is read/written 16 bits at a time to the quad
pixel registers due to the SDRAM memory organization.
The most significant 4 bits (nybble) of QPH represents
the leftmost pixel and the least significant 4 bits of QPL
represents the rightmost pixel (4 bits per pixel). Table 1
shows pixel data mapping. QPH and QPL for the multichannel block is read/written the same as the individual
channel-N register function, except multichannel pixel
data is used for multiple write operations to selected
channels.
QPHORIZ
This 8-bit value is the address of the quad pixel within
the line specified by QPLINE HI and QPLINE LO. A
zero value in QPHORIZ addresses the leftmost displayed quad pixel in the specified line and increasing
QPHORIZ addresses indexes towards the right-hand
side of the video screen. This register addresses multichannel write operations. Valid values range from zero
to 177. Write a 1 in the HINC bit of the multichannel
CONTROL register to enable autoincrement of
QPHORIZ. QPHORIZ autoincrement saturates at 177.
QPLINEH, QPLINEL
This 9-bit address specifies the horizontal line of the
quad pixel to be accessed (host read or write). QPLINE
HI is only 1 bit that resides in the LSB (bit 0) of the
QPLINE HI register. The lower 8 bits of the 9-bit
address are specified by QPLINE LO. Valid displayed
line numbers range from 0 to 483 NTSC (511 PAL). This
register is used for addressing for multichannel write
operations. Write a 1 in the VINC bit of the channel
CONTROL register to enable autoincrement of
QPLINE_. QPLINE_ autoincrement saturates at 511.
BIT7BIT0
Ch7Ch6Ch5Ch4Ch3Ch2Ch1Ch0
BIT7BIT0
Ch7Ch6Ch5Ch4Ch3Ch2Ch1Ch0
BIT7BIT0
000VINCHINC000
MAX4455
Arbitrary Graphics On-Screen Display
Video Generator
The MAX4455 interfaces directly to MAX4356/MAX4358
video crosspoint switches with OSD insertion function
(Figure 7). The MAX4455 OSDKEY_ and OSDFILL_ outputs connect directly to the OSDKEY_ and OSDFILL_
inputs on the MAX4356/MAX4358 and utilize the internal fast mux in the MAX4356/MAX4358 to implement
the OSD insertion. To ensure correct video timing, the
MAX4455 VIDIN_ input senses and extracts the video
timing directly from the crosspoint switch output.
Interfacing the MAX4455 with a Fast Mux
Switch
The MAX4455 interfaces directly to a fast mux switch, as
shown in Figure 8. Choose a device with a switch time of
less than 30ns, such as the MAX4258, for accurate OSD
insertion. The MAX4258 is a single-channel wideband
video amplifier with input multiplexing and a channel-tochannel switching time of 20ns. Configure the amplifier
using external resistors for a 6dB gain to drive a 75Ω
back-terminated video line. Connect the OSDFILL_ output
of the MAX4455 to IN0 of the MAX4258 and connect the
video source (camera output) to IN1. Connect the
OSDKEY_ output of the MAX4455 to A0, the channel
select input of the MAX4258. When the OSDKEY_ signal
is low, the OSDFILL_ analog signal on channel IN0 passes through the mux and the OSD information is inserted
into the video image. When the OSDKEY_ signal is high,
the camera video output passes through the mux and is
displayed on the monitor.
Channel Blanking During Video Input
Source Switching
Before switching input video sources on a channel with
active OSD, set the BLANK bit to 1 in the channel status register to prevent OSDKEY assertion during the
video blanking interval. Failure to blank the OSD prior
to switching input video sources can cause OSD information to be inserted over the new video input’s vertical
blanking interval, resulting in a loss of sync on that
channel. The MAX4455 timing synchronizes to the
video output of the channel, such that switching another asynchronous input video source can cause writing
of OSD information over the new video source with
unpredictable results (i.e., OSD insertion over the vertical blanking interval).
The channel blanking procedure follows:
1) Set BLANK = 1.
2) Switch camera/video source input.
3) Set BLANK = 0.
Figure 7. Interfacing MAX4455 with MAX4358 Video Crosspoint Switch
*OPTIONAL COMPONENTS. USED TO ATTENUATE THE COLOR BURST SIGNAL
OF COLOR CAMERAS TO AVOID FALSE TRIGGERING OF THE SYNC DETECTOR
IN THE MAX4455.
The result of writing OSD over the vertical blanking
interval is a rolling picture that the display monitor cannot sync to, and the MAX4455 loss-of-sync flag is set
for that channel. Reestablish sync by blanking the
channel’s OSD for at least one full video frame period,
allowing the MAX4455’s sync timing circuitry to correctly sense the new video source’s timing, and reset the
LOS flag.
Optimizing OSDFILL Load Termination
and R
RSET
The MAX4455 provides standard 100 IRE (0.714V) fullscale OSDFILL_ output levels with R
RSET
= 11.75kΩ and
OSDFILL_ terminated with R
OSDFILL_
= 75Ω to AGND.
The MAX4455 OSDFILL_ outputs can drive as high as
1.5V by selecting a lower R
RSET
value, or increasing the
value of R
OSDFILL
, or a combination of both. OSDFILL
output levels higher than 0.714V can have increased distortion and degraded linearity (see the OSDFILL_Reference Voltage (RSET) section).
SDRAM Memory Selection
The MAX4455 EV kit uses the Micron MT48LC1M16TG7S SDRAM. The MAX4455 has not been tested with, but
is designed to operate with the following SDRAMS:
Micron MT48LC1M16A1-8 or faster, VIS VG3617161DT-8
or faster, Hyundai HY57V161610D or HY57V161610C,
Mitsubishi M2V64S40DTP, Micron MT48LC4M16A2, and
Hitachi HM5264165F.
Anti-Aliasing and Flicker
The MAX4455 is a high-resolution graphics system
capable of accurately displaying a single pixel line. A
line with the height of one pixel, by definition, occurs
only on one of the two interlaced fields that make up the
standard interlaced video signal. Since the interlaced
system has a frame rate of about 60Hz, the field rate is
half of this (30Hz). Any object occurring only on one
field is displayed at a 30Hz rate, resulting in a flickering
image. Any signal displayed at less than a 50Hz rate is
perceived to visibly flicker. The slower the display rate
is, the higher the perceived flicker.
The amount of flicker in a one-pixel-high horizontal line
is dependent on the length of the line. The flicker associated with very short lines that are part of another
shape are typically very minimal. For example, the flicker of the legs of the letter F is almost imperceptible. At
the other extreme, a one-pixel horizontal line that spans
the width of a display exhibits flicker that can be very
noticeable.
The perceived flicker due to thin horizontal lines can be
minimized by making the line thicker or by using antialiasing techniques. For the best results, these two
Figure 8. Interfacing MAX4455 with a Fast Mux Switch
FB
OSDFILL_
(FROM MAX4455)
+1
IN0
CAMERA
SWITCH
MATRIX
OUT1
IN1
(FROM MAX4455)
AO
OSDKEY_
510Ω510Ω
+5V
TO MAX4455
VIDIN_ INPUT
+1
75Ω
MAX4258
-5V
MAX4455
Arbitrary Graphics On-Screen Display
Video Generator
techniques can be used in conjunction. A thicker line
exhibits much less of the flicker effect. Once the line is
from five to six lines thick, the additional improvement
from thicker lines is negligible.
Anti-aliasing is a fairly well-known technique that involves
decreasing the severity of the transition of the graphic or
font structure. Here, it involves bracketing a horizontal line
with two or more other lines that have a relative brightness that is between the brightness level of the line and
the background. This is illustrated in Figure 9.
The proper application of this technique softens the
look of the line, which can be undesirable in some
cases. In general, it makes the display easier to read.
Finite Switch Time Effects
The MAX4455 generates the OSDFILL_ and OSDKEY_
signals time coincident with each other within a few
nanoseconds. Since the OSDKEY_ signal controls
when the external fast mux switch switches from normal
camera video to the OSDFILL signal, any finite delay in
the response time of this fast mux switch has an effect
on the resulting OSD insertion (Figure 10).
Due to the finite switching time of the fast mux switch,
both the leading and trailing portions of the OSDFILL_
are inserted slightly later in time. The leading edge
does not create a visible artifact on the screen since it
only shifts the image to the right an amount equal to the
switch delay. The trailing edge of the OSDFILL_ can
result in a visible artifact because the OSDFILL_ signal
has already returned to 0 IRE before the fast mux
switch can transition back to the camera video signal.
This effect is shown in Figure 11.
In a typical NTSC system with a bandwidth of 4.2MHz,
the narrowest resolved image is about 120ns wide. If the
delay of the fast mux switch is less than half of this, 60ns
or less, no visible artifact should be seen on the display.
The displayed information can be designed to dramatically minimize the adverse effect of the finite switch time,
if desired. For example, virtually all fonts and graphics
that are overlayed on normal video need to be outlined
for good readability. A very common technique is to use
white structures with a black outline border. To compensate for the above finite switch time effect, construct the
graphic or font with a thinner trailing edge. When displayed, it looks symmetrical with the trailing edge appearing normal. Figure 12 illustrates this technique.
Memory Sharing
Memory sharing is a feature that reduces the host
processor burden for tasks such as time-stamp update.
The MAX4455 supports user-specified starting and
ending lines to be shared by any number of channels.
In Figure 13, the time stamp is written only to channel 0
on line start through line end. Graphics data stored in
lines outside of start and end remain unique for each of
the eight video channels (Figure 13).
In Figure 13, channel 0’s start line number through end
line number are duplicated onto channel 2 and channel
4’s display. The source of shared data is defined in the
SHRSHC register (see the MAX4455 Registed Descrip-tion section). For example, channel 15 can be programmed to display channel 7’s graphics beginning at
channel 7 start line #n through end line #m, etc.
Sharing is restricted to even channels with even channels and odd channels with odd channels. For example, channels 1, 3, 5, 7 can share lines and channels 0,
2, 4, 6 can share lines in any combination.
Power Supplies and Bypassing
The MAX4455 operates from a single 2.7V to 5.5V analog
supply and a 3V to 3.6V digital supply. Additional logic
supplies for host µP interface (VH1) and the OSDKEY_
interface (VK1) allow the MAX4455 to interface with other
logic supplies from 2.7V to 5.5V. Bypass each supply pin
with a 0.1µF capacitor to ground.
Layout Concerns
For best performance, make the OSDFILL_ and OSDKEY_ output traces as short as possible, and place the
75Ω termination resistor close to the crosspoint switch
OSDFILL_ input with the resistor terminated to the solid
analog ground plane. The SDRAM interface is the highest speed connection and therefore requires careful
layout. Place the SDRAM close to the MAX4455 to minimize trace lengths. The MAX4455 pinout is optimized
for memory bus trace routing to the SDRAM without
crossing traces. Refer to the MAX4455 EV kit for a
proven PC board layout.
The MAX4455 EV kit provides a high-level user interface with free-hand drawing, bit-mapped graphics, and
text-insertion tools. Listings 1 through 5 show some
pseudocode examples based on the MAX4455 EV kit
source code for low-level register access, line drawing,
RGB-to-gray-scale conversion, and block memory
transfer to the OSD.
//--------------------------------------------------------------------------// Example code: low-level register access.
// The MAX4455 Evaluation Software uses a bidirectional parallel port under windows.
// Practical applications should use a microprocessor memory or I/O bus.
// User-defined subroutine to wait until READY/BUSY signal is READY.
// Return false if the BUSY signal seems to be stuck low.
extern bool Wait_Until_Ready(void);
// User-defined subroutines to read and write the host data bus
extern void Set_Data(int value);
extern int Get_Data(void);
// User-defined subroutine to write the host control lines
//--------------------------------------------------------------------------//--------------------------------------------------------------------------// Example code: Drawing a horizontal line.
//--------------------------------------------------------------------------// Drawing primitives for On-Screen Display memory
// Draw a line in the OSDEVKIT's display memory.
void osd_hline (int ch_base, int xleft, int xright, int y)
{
// In the STATUS register, set HINC=1 and clear VINC=0
unsigned __int8 status = Read_Register(ch_base | ch_STATUS);
status &=~ ch_STATUS_VINC;
status |= ch_STATUS_HINC;
Write_Register(ch_base | ch_STATUS, status);
//--------------------------------------------------------------------------//--------------------------------------------------------------------------// Example code: Copying a block from host memory to the on-screen display.
//--------------------------------------------------------------------------// Copy a rectangular area from PC memory to the On Screen Display memory
// Registers affected: ch_STATUS, ch_QPH, ch_QPL, ch_QPLINEH, ch_QPLINEL, ch_QPHORIZ
void osd_from_win (int ch_base, TCanvas* canvas,
int xleft, int ytop, int xright, int ybottom)
{
// In the STATUS register, set HINC=1 and clear VINC=0
unsigned __int8 status = Read_Register(ch_base | ch_STATUS);
status &=~ ch_STATUS_VINC;
status |= ch_STATUS_HINC;
Write_Register(ch_base | ch_STATUS, status);
// Make sure that xleft and xright are on quad pixel boundaries
xleft = (int) (floor(xleft / 4.0 + 0.5)) * 4;
xright = (int) (floor(xright / 4.0 + 0.5) + 1) * 4;
for (int y = ytop; y <= ybottom; y++) {
// Under Windows, be a good citizen and service the message quque.
Application->ProcessMessages();if (Application->Terminated) return;
// In the MAX4455 Evaluation Software,// the picture is copied from the host's screen.// A real application would replace win_get_quadpixels with// an application-specific data generating routine.
int nybble_3, nybble_2, nybble_1, nybble_0;
get_quadpixels (x, y, nybble_3, nybble_2, nybble_1, nybble_0);
//--------------------------------------------------------------------------//--------------------------------------------------------------------------// Example code: converting RGB values to 4-bit key+luma control value.
//--------------------------------------------------------------------------// convert TColor (RGB) to a 4-bit color value for the MAX4455
//
// This 4-bit value controls OSDFILL and OSDKEY as follows:
//
// 0000 transparent
// 0001 black
// 0010 lighter black
// 0111 medium gray
// 1110 lightest gray
// 1111 white
//
// The RGB equations are based on Keith Jack's book,
// Video Demystified, chapter 3, "Color Spaces",
// which is copyright 2001 LLH Technology Publishing.
// ISBN: 1-878707-56-6
// URL: http://www.video-demystified.com/
//
unsigned __int8 RGB_To_OSDFILL(TColor color)
{
unsigned __int8 osd_control_value;
if (color == clTransparent) {
osd_control_value = 0; // transparent} else {
// convert TColor into red, green, blue values in the range 0..255
unsigned __int8 red = (color >> 0) & 0xFF;
unsigned __int8 green = (color >> 8U) & 0xFFU;
unsigned __int8 blue = (color >> 16U) & 0xFFU;
const double ar = 0.299, ag = 0.587, ab = 0.114, offset = 0;
double luma = ar * red + ag * green + ab * blue + offset;
// maximum luma value is 255
unsigned __int8 greyscale_nybble = ((luma * 16.0) / 256) + 0.5;
if (greyscale_nybble > 15+1) {
greyscale_nybble = 15+1; // white limit
}
if (greyscale_nybble < 1+1) {
(The package drawing(s) in this data sheet may not reflect the most current specifications. For the latest package outline information,
go to www.maxim-ic.com/packages
.)
14x14x1.00L TQPF, EXP. PAD.EPS
MAX4455
Arbitrary Graphics On-Screen Display
Video Generator
Maxim cannot assume responsibility for use of any circuitry other than circuitry entirely embodied in a Maxim product. No circuit patent licenses are
implied. Maxim reserves the right to change the circuitry and specifications without notice at any time.
30 ____________________Maxim Integrated Products, 120 San Gabriel Drive, Sunnyvale, CA 94086 408-737-7600
(The package drawing(s) in this data sheet may not reflect the most current specifications. For the latest package outline information,
go to www.maxim-ic.com/packages
.)
Loading...
+ hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.