64
FX3 Programmers Manual, Doc. # 001-64707 Rev. *C
FX3 Firmware
■
Disable the GPIF state machine
■
Start the GPIF state machine from a specified state
■
Switch the GPIF state machine to a required state
■
Pause and resume the GPIF state machine
■
Configure a GPIF socket for data transfers
■
Read or write a specified number of words from/to the GPIF interface
5.2.3
Serial Interfaces
The FX3 device has a set of serial interfaces: UART, SPI, I
2
C, I2S, and GPIOs. All these peripherals
can be configured and used simultaneously. The FX3 library provides a set of APIs to configure and
use these peripherals. The driver must be first initialized in the user application. Full documentation
of all Serial Interface registers is provided in Chapter 9. The source code for the serial interface driv-
ers and access APIs is provided in the FX3 SDK package, in the
firmware/lpp_source
folder.
Each peripheral is configured individually by the set of APIs provided. A set of events are defined for
these peripherals. The user application must register a callback for these events and is notified when
the event occurs.
5.2.3.1
UART
A set of APIs are provided by the serial interface driver to program the UART functionality. The
UART is first initialized and then the UART configurations such as baud rate, stop bits, parity, and
flow control are set. After this is completed, the UART block is enabled for data transfers.
The UART has one producer and one consumer socket for data transfers. A DMA channel must be
created for block transfers using the UART.
A direct register mode of data transfer is provided. This may be used to read/write to the UART, one
byte at a time.
UART APIs
These include APIs to
■
Start of stop the UART
■
Configure the UART
■
Setup the UART to transmit and receive data
■
Read and write bytes from and to the UART
5.2.3.2
I
2
C
The I
2
C initialization and configuration sequence is similar to the UART. When this sequence is
completed, the I
2
C interface is available for data transfer.
An API is provided to send the command to the I
2
C. This API must be used before every data
transfers to indicate the size, direction, and location of data.
The I
2
C has one producer and one consumer socket for data transfers. A DMA channel must be
created for block transfers using the I
2
C.
A direct register mode of data transfer is provided. This may be used to read/write to the I
2
C, one
byte a time. This mechanism can also be used to send commands and/or addresses to the target
I
2
C peripheral.
Содержание EX-USB FX3
Страница 8: ...8 FX3 Programmers Manual Doc 001 64707 Rev C Contents...
Страница 12: ...12 FX3 Programmers Manual Doc 001 64707 Rev C Introduction...
Страница 48: ...48 FX3 Programmers Manual Doc 001 64707 Rev C FX3 Overview...
Страница 74: ...74 FX3 Programmers Manual Doc 001 64707 Rev C FX3 Firmware...
Страница 76: ...76 FX3 Programmers Manual Doc 001 64707 Rev C FX3 APIs...
Страница 84: ...84 FX3 Programmers Manual Doc 001 64707 Rev C FX3 Application Examples...
Страница 98: ...98 FX3 Programmers Manual Doc 001 64707 Rev C FX3 Application Structure...
Страница 148: ...148 FX3 Programmers Manual Doc 001 64707 Rev C FX3 P Port Register Access...
Страница 153: ...FX3 Programmers Manual Doc 001 64707 Rev C 153 FX3 Development Tools 2 Select General Existing projects into Workspace...
Страница 165: ...FX3 Programmers Manual Doc 001 64707 Rev C 165 FX3 Development Tools Click next...
Страница 178: ...178 FX3 Programmers Manual Doc 001 64707 Rev C FX3 Development Tools Click on Apply...
Страница 180: ...180 FX3 Programmers Manual Doc 001 64707 Rev C FX3 Development Tools d Start the GDB server...
Страница 185: ...FX3 Programmers Manual Doc 001 64707 Rev C 185 FX3 Development Tools...
Страница 186: ...186 FX3 Programmers Manual Doc 001 64707 Rev C FX3 Development Tools...
Страница 187: ...FX3 Programmers Manual Doc 001 64707 Rev C 187 FX3 Development Tools...
Страница 188: ...188 FX3 Programmers Manual Doc 001 64707 Rev C FX3 Development Tools...
Страница 192: ...192 FX3 Programmers Manual Doc 001 64707 Rev C GPIF II Designer...