English
Language : 

FT121 Datasheet, PDF (10/46 Pages) Future Technology Devices International Ltd. – FT121 ENHANCED USB DEVICE CONTROLLER WITH SPI SLAVE IC Datasheet Version 1.2
Document No.: FT_000648
FT121 ENHANCED USB DEVICE CONTROLLER WITH SPI SLAVE IC
Datasheet Version 1.2
OUT Buffer. Data sent from the USB host controller to FT121 via the USBCdlaetaaraOnUcTeeNndop.:oFinTtDisI#sto3r1e2d in
the OUT buffer. Data is removed from the OUT buffer to system memory under control of the parallel
interface block.
IN Buffer. Data from system memory is stored in the IN buffer. The USB host controller removes data
from the IN buffer by sending a USB request for data from the device data IN endpoint.
RESET Generator. The integrated Reset Generator cell provides a reliable power-on reset to the device
internal circuitry at power up. The RESET_n input pin allows an external device to reset the FT121.
SPI Controller Block. The SPI slave controller provides control and data interfaces between the external
MCU and internal registers and endpoint buffers. It supports 4-wire (default) or 3-wire SPI operation.
4.2 Interrupt Modes
The FT121 interrupt pin (INT_n) can be programmed to generate an interrupt in different modes. The
interrupt source can be any bit in the Interrupt Register, an SOF packet being received, or both. The
interrupt modes are selectable by two register bits, one is the SOF-only Interrupt Mode bit (bit 7 of Clock
Division Factor register), and the other is the Interrupt Pin Mode bit (bit 5 of Interrupt Configuration
register).
Interrupt
mode
Bit SOF-only
Interrupt
Mode
Bit Interrupt
Pin Mode
0
0
0
1
0
1
2
1
X
Table 4.1 Interrupt modes
Interrupt source
Any bit in Interrupt register
Any bit in Interrupt register and SOF
SOF only
4.3 SPI Slave Interface
The SPI slave interface supports 4-wire (default) and 3-wire operation. In 4-wire operation the SPI
master will drive data on the MOSI pin and the SPI slave will drive data on the MISO pin. In 3-wire
operation both SPI master and SPI slave share the same data pin (MOSI pin becomes a bi-directional
pin). Upon power-on or hardware reset, the FT121 SPI slave interface is in 4-wire mode. The 3-wire
operation is enabled when a Set 3-wire command is issued to the FT121.
The SPI protocol will follow a command + data format where a command is transmitted after SS_n is
asserted and each subsequent byte will be a data byte. When all data bytes for this command are
completed the SS_n is de-asserted. This can be seen in Figure 4-1.
Copyright © 2014 Future Technology Devices International Limited
10