EasyManua.ls Logo

Cypress EX-USB FX3 - 7.3 Serial Interface Examples

Cypress EX-USB FX3
192 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
FX3 Programmers Manual, Doc. # 001-64707 Rev. *C 81
FX3 Application Examples
7.3.1 cyfxgpioapp – Simple GPIO
This example demonstrates the use of simple GPIOs to be used as input and output. It also
implements the use of GPIO interrupt on the input line.
7.3.2 cyfxgpiocomplexapp – Complex GPIO
The FX3 device has eight complex GPIO blocks that can be used to implement various functions
such as timer, counter and PWM. The example demonstrates the use of complex GPIO APIs to
implement three features: a counter, PWM and to measure the low time period for an input signal.
7.3.3 cyfxuartlpregmode – UART in Register Mode
This example demonstrates the use of UART in register mode of operation. The data is read from
the UART RX byte by byte and is sent out on UART TX byte by byte using register mode APIs.
Register mode APIs are useful when the data to be transmitted / received is very small.
7.3.4 cyfxuartlpdmamode – UART in DMA Mode
This example demonstrates the use of UART in DMA mode of operation. The data is read from
UART RX and sent to UART TX without any firmware intervention. The data is received and
transmitted only when the buffer is filled up. DMA mode of operation is useful when there is large
amount of data to be transferred.
7.3.5 cyfxusbi2cregmode – I2C in Register Mode
This example demonstrates the use of I2C master in register mode of operation. The example read /
writes data to an I2C EEPROM attached to the FX3 device using register mode APIs.
7.3.6 cyfxusbi2cdmamode – I2C in DMA Mode
This example demonstrates the use of I2C master in DMA mode of operation. The example read /
writes data to an I2C EEPROM attached to the FX3 device using DMA channels.
7.3.7 cyfxusbspiregmode – SPI in Register Mode
This example demonstrates the use of SPI master in register mode of operation. The example read /
writes data to an SPI Flash attached to the FX3 device using register mode APIs.
7.3.8 cyfxusbspidmamode – SPI in DMA Mode
This example demonstrates the use of SPI master in DMA mode of operation. The example read /
writes data to an SPI Flash attached to the FX3 device using DMA channels.
7.3.9 cyfxusbspigpiomode – SPI using GPIO
This example demonstrates the use of GPIO to build an SPI master. The example read / writes data
to an SPI Flash attached to the FX3 device using FX3 GPIOs.
7.3.10 cyfxusbi2sdmamode – I2S in DMA Mode
This example demonstrates the use of I2S APIs. The example sends the data received on EP1 OUT
to the left channel and EP2 OUT to the right channel.

Table of Contents