LMH0366
SNAS585D –APRIL 2012–REVISED APRIL 2013
www.ti.com
SPI Register Access
Setting SPI_EN high enables the optional SPI register access mode. The LMH0366 supports SPI daisy-chaining
among an unlimited number of LMH0366 devices. With SPI_EN set low, the device operates in pin mode.
Table 8 shows the SPI register table for the LMH0366. The LMH0366 provides over 50 accessible registers,
which are divided into over 100 bit fields. When writing to the device registers, it is important to ensure that
reserved register values are not changed.
In configuring the LMH0366, it is often required to write to a bit field that makes up only part of a register value
while leaving the remainder of the register value unchanged. The procedure for accomplishing this is to read in
the current value of the register to be written, modify only the desired bits in this value, and write the modified
value back to the register.
When power is first applied to the LMH0366, the host must wait 500 ms to ensure the power-on reset has
competed before initiating SPI transactions.
SPI Transaction Overview
Each SPI transaction to a single device is 16-bits long. The transaction is initiated by driving SS low, and
completed by returning SS high. The 16-bit MOSI payload consists of the read/write command (“1” for reads and
“0” for writes), the seven address bits of the device register (MSB first), and the eight data bits (MSB first). The
LMH0366 MOSI input data is latched on the rising edge of SCK, and the MISO output data is sourced on the
falling edge of SCK.
In order to facilitate daisy-chaining, the prior SPI command, address, and data are shifted out on the MISO
output as the current command, address, and data are shifted in on the MOSI input. For SPI writes, the MISO
output is typically ignored as “Don't Care” data. For SPI reads, the MISO output provides the requested read data
(after 16 periods of SCK). The MISO output is active when SS low, and tri-stated when SS is high.
SPI Write
The SPI write is shown in Figure 4. The SPI write is 16 bits long. The 16-bit MOSI payload consists of a “0” (write
command), seven address bits, and eight data bits. The SS signal is driven low, and the 16 bits are sent to the
LMH0366's MOSI input. After the SPI write, SS must return high. The prior SPI command, address, and data
shifted out on the MISO output during the SPI write is shown as “Don't Care” on the MISO output in Figure 4.
SPI Read
The SPI read is shown in Figure 5. The SPI read is 32 bits long, consisting of a 16-bit read transaction followed
by a 16-bit dummy read transaction to shift out the read data on the MISO output. The first 16-bit MOSI payload
consists of a “1” (read command), seven address bits, and eight “1”s which are ignored. The second 16-bit MOSI
payload consists of 16 “1”s which are ignored but necessary in order to shift out the requested read data on the
MISO output. The SS signal is driven low, and the first 16 bits are sent to the LMH0366's MOSI input. The prior
SPI command, address, and data are shifted out on the MISO output during the first 16-bit transaction, and are
typically ignored (this is shown as “Don't Care” on the MISO output in Figure 5. SS must return high and then is
driven low again before the second 16 bits (all “1”s) are sent to the LMH0366's MOSI input. Once again, the prior
SPI command, address, and data are shifted out on the MISO output, but this data now includes the requested
read data. The read data is available on the MISO output during the second 8 bits of the 16-bit dummy read
transaction, as shown by D7-D0 in Figure 5.
SPI Daisy-Chain Operation
The LMH0366 SPI controller supports daisy-chaining the serial data between an unlimited number of LMH0366
devices. Each LMH0366 device is directly connected to the SCK and SS pins on the host. However, only the first
LMH0366 device in the chain is connected to the host’s MOSI pin, and only the last device in the chain is
connected to the host’s MISO pin. The MISO pin of each intermediate LMH0366 device in the chain is connected
to the MOSI pin of the next LMH0366 device, creating a serial shift register. This daisy-chain architecture is
shown in Figure 6.
16 Submit Documentation Feedback Copyright © 2012–2013, Texas Instruments Incorporated
Product Folder Links: LMH0366