0x160
MST_SLVN
0x160
SPI_IGNR_ID
0x162
SPIM_SS1_ACT_H
0x162
SPIM_SS2_ACT_H
0x166
RWN_IO_EN
0x166
BNE_IO_EN
0x166
BNE
0x167
SPI_TX_OVRFLW
0x167
SPI_RX_OVRFLW
SPI Initialization
Configure the serializer and deserializer in the following order to initialize SPI (starting from the default values) on
GMSL devices:
1. Configure SPI mode 0 or 3 on the serializer and deserializer.
2. Set SS output polarity (remote side).
3. Set the clock delay and SCLK rate high/low times (in number of 300MHz clocks).
4. Program the IO pin enables (BNE/RO/SS1/SS2).
5. Configure internal GMSL Main/Subordinate mode, SPI ID (if needed), and enable SPI.
SPI Example with Register Writes
Below is the SPI setup example script for MAX96751 with its accompanying device MAX96752 (0x80 is the serializer
address, 0x90 is the deserializer address), assuming micro-controller or external SPI main is on the serializer side*.
0x80,0x160,0x09 #enable SPI, default set to subordinate, and ignore the SPI header ID.
0x80,0x161,0x1D #default, sets SPI packet size and GMSL link scheduler priority.
0x80,0x162,0x00 #subordinate select (SS) is active low, SPI mode is 0.
0x80,0x163,0x00 #default, delay between assertion of subordinate select (SS) and SPI clock (SCLK) start.
0x80,0x166,0x03 #enable RO and BNE.
0x80,0x168,0x00 #default, timeout delay.
www.analog.com
1
0
2
1
0
1
1
1
0
0
1
0
5
0
6
0
7
0
1 = SPI enabled
0 = SPI subordinate
1 = SPI main
0 = Accept packets with proper ID
1 = Ignore ID and accept all packets
(recommended)
0 = SS1 is active low
1 = SS1 is active high
0 = SS2 is active low
1 = SS2 is active high
0 = Do not bring RO out to MFP pin
1 = Bring out RO to MFP pin
0 = Do not bring BNE out to MFP pin
1 = Bring out BNE to MFP pin
0 = No bytes to read
1 = Bytes ready to read
0 = No overflow
1 = Overflow
0 = No overflow
1 = Overflow
Analog Devices | 26
Need help?
Do you have a question about the MAX96752 and is the answer not in the manual?
Questions and answers