MAX3420 -usb资料
USB Peripheral Controller
with SPI Interface
Figure 14. SPI Clocking Modes
In full-duplex mode (FDUPSPI = 1), the MOSI and MISOIf SSgoes high before a complete byte is clocked in,pins are separate, and the MISO pin drives only when SSthe byte-in-progress is discarded. The SPI master canis low. In this mode, the first eight SCLK edges (after SS=terminate an SPI cycle after clocking in the first 8 bits0) clock the command byte into the MAX3420E on MOSI,(the command byte). This feature can be used in a full-and eight USB status bits are clocked out of theduplex system to retrieve the USB status bits (Figure 5)MAX3420E on MISO. For an SPI write cycle, any byteswithout sending or receiving SPI data.
following the command byte are clocked into theMAX3420E on MOSI, and zeros are clocked out on MISO.Applications Information
For an SPI read cycle, any bytes following the commandSPI Interface
byte are clocked out of the MAX3420E on MISO and thedata on MOSI is ignored. At the conclusion of the SPIThe MAX3420E operates as an SPI slave device. A reg-cycle (SS= 1), the MISO output tri-states.
ister access consists of the SPI master first writing anSPI command byte, followed by reading or writing theIn half-duplex mode, the MOSI pin is a bidirectional pincontents of the addressed register (see the Registerand the MISO pin is tri-stated. This saves a pin in the SPIDescriptionsection for more details). All SPI transfersinterface. Because of the shared data pin, this modeare MSB first. The external SPI master provides a clockdoes not offer the eight USB status bits (Figure 5) as thesignal to the MAX3420E SCLK input. This clock fre-command byte is clocked into the MAX3420E. The MISOquency can be between DC and 26MHz. Bit transferspin can be left unconnected in half-duplex mode.
occur on the positive edge of SCLK. The MAX3420ESCLK (Serial Clock)
counts bits and divides them into bytes. If fewer than 8bits are clocked into the MAX3420E when SSgoesThe SPI master provides the MAX3420E SCLK signal tohigh, the MAX3420E discards the partial byte.
clock the SPI interface. SCLK has no low-frequency limit,and can be as high as 26MHz. The MAX3420E changesThe MAX3420E SPI interface operates without adjust-its output data (MISO) on the falling edge of SCLK andment in either SPI mode (CPOL = 0, CPHA = 0) orsamples input data (MOSI) on the rising edge of SCLK.(CPOL = 1, CPHA = 1). No mode bit is required toThe MAX3420E ignores SCLK transitions when SSisselect between the two modes since the interface useshigh. The inactive level of SCLK may be low or high,the rising edge of the clock in both modes. The twodepending on the SPI operating mode (Figure 14).
clocking modes are illustrated in Figure 14. Note thatthe inactive SCLK value is different for the two modes.SS(Slave Select)
Figure 14 illustrates the full-duplex mode, where data isThe MAX3420E SPI interface is active only when SSissimultaneously clocked into and out of the MAX3420E.
low. When SSis high, the MAX3420E tri-states the SPIoutput pin and resets the internal MAX3420E SPI logic.
______________________________________________________________________________________15

MAX3420E
Connect load capacitors (20pF max) to ground on both XI and XO. XI can also be driven with an external 12MHz ±0.25% clock. If driving XI with...
Connect load capacitors (20pF max) to ground on both XI and XO. XI can also be driven with an external 12MHz ±0.25% clock. If driving XI with...
热门文档