MAX9257/MAX9258
UART-to-I
2
C Converter
The UART-to-I
2
C converter accepts UART read or write
packets issued by the ECU and converts them to an I
2
C
master protocol when in base mode. A slave can use an
ACK or NACK to indicate a busy or wait state, but cannot
hold SCL low to indicate a wait state. Multiple slaves are
supported. The UART-to-I
2
C conversion delay is less
than 22 UART bit times and needs to be taken into
account when setting the ETO and STO timeout periods
for read commands. UART-to-I
2
C converter converts
standard UART format to standard I
2
C format (Figure
25). This includes data-bit ordering conversion because
UART transmits the LSB in first while I
2
C transmits the
MSB first. UART/I
2
C read delay is a maximum 34 bit
times when reading from an I
2
C peripheral.
The MAX9257/MAX9258 store their own 7-bit device
addresses in register REG5. All packets not addressed
to the MAX9257/MAX9258 are forwarded to the UART-
to-I
2
C converter. The I
2
C interfaces (SDA and SCL) are
open drain and actively drive a low state. When idle,
SDA and SCL are high impedance and pulled high by a
pullup resistor. SDA and SCL are idle when packets are
addressed to the MAX9257 or MAX9258. SDA and SCL
are also idle when the I
2
C interface is programmed to
be disabled.
Bypass Mode (Details)
In bypass mode, ECU activity and UART communica-
tion from the camera reset the ETO and CTO timers.
This allows the control channel to stay in bypass as
long as there is camera activity. In base mode, only
ECU activity resets the ETO and CTO timers.
Bypass mode temporarily or permanently blocks pro-
gramming of the MAX9257/MAX9258. Bypass mode
allows only UART programming of peripheral device by
ECU. There is no I
2
C connection in bypass mode. Bypass
mode is entered by writing a 0 to INTMODE and by writ-
ing a 1 to INTEN (Table 23). Bypass mode disables ECU
programming of the MAX9257/MAX9258 to allow any
UART communication protocol with the peripheral device.
Once bypass mode is entered, the MAX9257/MAX9258
stay in bypass mode until CTO times out.
In bypass mode, the STO and ETO timers determine
the control channel duration. CTO timer determines
whether to revert back to base mode or not, and EF is
not recognized.
A useful setting in bypass mode is to set STO > CTO >
ETO because this setting is an alternative to permanent
bypass (Figure 24). Use this setting to stay in bypass
mode to avoid the overhead of entering from base mode
every time the control channel opens. If the ECU uses the
channel within a CTO timeout, ETO is activated and then
ETO times out before CTO. The channel closes because
ETO times out, but channel stays in bypass mode
because CTO does not time out. At the next vertical
blanking time, bypass mode continues with CTO reset
and the ECU can immediately send commands to the
camera. If the ECU or camera does not use the channel,
CTO times out before STO. STO closes the channel
(because ETO is not enabled) if no communication is
34 ______________________________________________________________________________________
Fully Programmable Serializer/Deserializer
with UART/I
2
C Control Channel
T1 = TIME TO ENTER CONTROL CHANNEL
T2 = STO TIMER
T3 = CTO TIMER
T4 = ETO TIMER
T5 = CONTROL CHANNEL EXIT TIME
HSK = HANDSHAKING BETWEEN THE MAX9257 & THE MAX9258
= TIMER RESET
VIDEO VIDEOHSK
FROZEN
BYPASS MODE BASE MODE
VIDEO VIDEOHSK
VSYNC_IN
SDI/O ±
CCEN
T1
T1 T2T5 T5
T4
T3
T3
T2
TX
RX
DOUT_
FROZEN
BYPASS MODE
CONTROL
CHANNEL
STO > CTO > ETO
ECU
ACTIVITY
Figure 24. CTO Timing
sent, but since CTO timed out, bypass mode ends and
base mode is active for the next vertical blanking period.
With STO > CTO > ETO, bypass mode can be made
continuous by having the ECU send real commands or
dummy commands (such as a command to a nonexist-
ing address) each time the control channel opens.
Then the ECU does not have to send a command to
enter bypass mode each time it wants to program the
peripheral device.
UART
UART Frame Format
The UART frame used to program the MAX9257 and
the MAX9258 has a low start bit, eight data bits, an
even parity bit and a high stop bit. The data following
the start bit is the LSB. With even parity, when there are
an odd number of 1s in the data bits (D0 through D7)
the parity bit is set to 1. The stop bit is sampled and if it
is not high, a frame error is generated (Figure 26).
UART Synchronization Frame
The synchronization frame must precede any read or
write packets (Figure 26). Transitions in the frame cali-
brate the oscillators on the MAX9257/MAX9258. The
baud rate of the synchronization frame sets the operat-
ing baud rate of the control channel. At power-up,
UART data rate must be between 95kbps to 400kbps.
After power-up, UART data rate can be programmed
according to Tables 28 and 29. Data is serialized start-
ing with the LSB first. The synchronization frame is 0x54
as shown in Figure 27.
Write Packet
The ECU writes the sync frame, 7-bit device address
plus read/write bit (R/W = 0 for write), 8-bit register
address, number of bytes to be written, and data bytes
(Figure 28). The ECU must follow this UART protocol to
correctly program the MAX9257/MAX9258.
MAX9257/MAX9258
______________________________________________________________________________________ 35
Fully Programmable Serializer/Deserializer
with UART/I
2
C Control Channel
I
2
C
REG ADDR DATA 0 DATA N
LSB MSB LSB
MSB
LSB MSB
MAX9257
PERIPHERAL
ECU
MAX9258
UART
MSB
S
SLAVE ADDRESS
I
2
C SLAVE ADDRESS + Wr
W
A
REG ADDRESS
A
DATA 0 A
DATA N A
LSB
MSB
LSB
MSB
LSB
P
Figure 25. UART-to-I
2
C Conversion
START
D3
D4
D5
D6 D7
PARITY
STOP
D0
D1
D2
Figure 26. UART Frame Format
1
0
1
0
1
0
0
0
START
SYNCHRONIZATION FRAME
STOP
PARITY
45
0
1
1
Figure 27. UART Synchronization Frame
NUMBER OF BYTES
REG ADDRESS
DEV ADDR +
R/W
SYNC
BYTE 1 BYTE N
Figure 28. UART Write Packet to MAX9257/MAX9258
MAX9257/MAX9258
36 ______________________________________________________________________________________
Fully Programmable Serializer/Deserializer
with UART/I
2
C Control Channel
Read Packet
The ECU writes the sync frame, 7-bit device address
plus read/write bit (R/W = 1 for read), 8-bit register
address, and number of bytes to be read. The
addressed device responds with read data bytes
(Figure 29). UART read delay is maximum 4 bit times
when reading from the MAX9257 or the MAX9258.
Time Between Frames
Up to two high bit times are allowed between frames.
Reset of Packet Boundary
A high time ranging from 14 UART bit times or more
resets the packet boundary. In this case, the next frame
received is assumed to belong to a new packet by the
MAX9257/MAX9258 and UART-to-I
2
C converter.
Resetting the boundary is required. Not resetting the
boundary treats the following packets as part of the first
packet, and they may be processed incorrectly.
Data Rate
The control channel data rate in base mode is between
95kbps to 4.25Mbps (Table 28). In bypass mode, the
allowed data rate is DC to 10Mbps (Table 29). For data
rates faster than 4.25Mbps in bypass mode, REG8[5] in
MAX9257 and REG7[5] in MAX9258 must be set high.
Set the control channel data rate in base mode by writ-
ing to REG8[1:0] in the MAX9257 and REG7[1:0] in the
MAX9258. These write commands take effect in the
next control channel.
Programming the FAST bit takes effect in the same con-
trol channel. Both the MAX9257 and the MAX9258
should have the same settings for FAST. It is recom-
mended to first program the FAST bit in the MAX9257.
Programming FAST to 1 results in shorter UART pulses
on the differential link.
MAX9257/MAX9258 Device
Address Programming
The MAX9257/MAX9258 have device addresses that
can be programmed to any 7-bit address. Table 30
shows the default addresses.
MAX9257 REG8[1:0]
MAX9258 REG7[1:0]
RANGE
00
95kbps–400kbps
(default)
01 400kbps–1Mbps
10 1Mbps–4.25Mbps
11 1Mbps–4.25Mbps
Table 28. Control Channel Data Rate in
Base Mode
MAX9257 REG8[5]
MAX9258 REG7[5]
RANGE
0 DC–4.25Mbps
1 4.25Mbps–10Mbps
Table 29. Control Channel Data Rate in
Bypass Mode
DEFAULT
DEVICE
BINARY HEX
MAX9257 1111 1010 0xFA
MAX9258 1111 1000 0xF8
Table 30. Default Device Address
NUMBER OF BYTES
REG ADDRESS
BYTE 1
BYTE N
DEV ADDR +
R/W
SYNC
Figure 29. UART Read Packet

MAX9258GCM/V+

Mfr. #:
Manufacturer:
Maxim Integrated
Description:
Serializers & Deserializers - Serdes Prog Serializer / Deserializer
Lifecycle:
New from this manufacturer.
Delivery:
DHL FedEx Ups TNT EMS
Payment:
T/T Paypal Visa MoneyGram Western Union