Application Note
AN_289 FT51A Programming Guide
Version 1.0
Document Reference No.: FT_000962 Clearance No.: FTDI# 483
27
Copyright © 2015 Future Technology Devices International Limited
transfer_size_done_int
interrupt in SPI_MASTER_INT. The
SPI_MASTER_DATA_DELAY
register must
be non-zero to use this method.
Data transfers can also be controlled by DMA: more details can be found in the DMA section of this
document.
2.3.1
SPI_MASTER_CONTROL
Bit
Position
Bit Field Name
Type
Reset
Description
7..2
Reserved
RFU
0
Reserved
1
spi_master_dev_en
R/W
0
Enable SPI Master
0
spi_master_soft_reset
R/W
0
Reset SPI Master
Table 2.23 SPI Master Control Register
The SPI Master Control register provides top-level enable and reset functions for the SPI Master
module.
The SPI Master module is enabled by setting the
spi_master_dev_en
bit to 1. Clearing this bit will
disable the module.
To reset the module, a 1 is written to the
spi_master_soft_reset
bit. This is cleared when the reset
is performed and will therefore always read as ‘0’.
2.3.2
SPI_MASTER_TX_DATA
Bit
Position
Bit Field Name
Type
Reset
Description
7..0
Data
R/W
0
Byte of data to clock out on SPI
Master bus.
Table 2.24 SPI Master Transmit Register
This register contains data to transmit from the Master to the Slave. Writing to this register will
start an SPI Master Write if a Slave Select (SS#) line is asserted.
2.3.3
SPI_MASTER_RX_DATA
Bit
Position
Bit Field Name
Type
Reset
Description
7..0
Data
R
0
Byte of data to clocked in on SPI
Master bus.
Table 2.25 SPI Master Receive Register
Data transmitted from the Slave to the Master is stored in this register. This will contain the data
clocked from the Slave during the previous Master Write.