
Cypress EZ-USB CX3
EZ-USB® CX3 Technical Reference Manual, Doc. No. 001-91492 Rev. *B
14
1.9 Fixed-Function GPIF II Interface on CX3
The fixed-function GPIF II state machine of CX3 is shown in
. This state machine makes the parallel
data provided by the MIPI CSI-2 receiver available for transfer over two sockets, which can be connected to
a manual, Many-to-One DMA channel.
The functionality of this state machine is similar to the GPIF II state machine described in
Application Note
AN75779 - How to Implement an Image Sensor Interface with EZ-
USB® FX3™ in a USB Video Class (UVC)
Figure 7. CX3 GPIFII State Machine
Start
Wait for
Frame Done
Wait for
Frame valid,
Load DATA
Transfer
thread 0 data
DATA++
ADDR=0
Transfer
thread 1 data,
ADDR++
DATA=0
Wait for LV
with thread 0
active
Wait for LV
with thread 1
active
Wait for LV
with thread 0
full
Wait for LV
with thread 1
full
Frame end
full buffer in
thread 0
Intr CPU
Frame end
full buffer in
thread 1
Intr CPU
Frame end
partial buffer
in thread 0
Intr CPU
Frame end
partial buffer
in thread 1
Intr CPU
!FV
FV & LV
LV & DATA Limit
LV & ADDR Limit
!LV & !DATA Limit
!LV& !ADDR Limit
LV
LV
LV
LV
!LV & DATA Limit
!LV &ADDR Limit
!FV
!FV
!FV
!FV
State 0
State 1
State 2
State 3
State 4
State 5
State 6
State 7
State 8
State 9
State 12
State 11
State 10
Start
Wait for
Frame Done
Wait for
Frame valid,
Load DATA
State 13
State 14
State 15
FV & LV
Frame end
Wait for
Firmware
Trigger
Frame end
Wait for
Firmware
Trigger
FW_TRIG
FW_TRIG
FW_TRIG
!FW_TRIG & DATA on thread 1
FW_TRIG
!FW_TRIG & DATA on thread 0
!FV
The FX3 SDK (Software Development Kit) provides the
API to load this fixed-function
state machine into the CX3 GPIF II block. This API allows selection of the bus width (8, 16, or 24 bits) to match
the output from the parallel interface on the MIPI CSI-2 block, and also allows setting of the DMA buffer size
to be used for the GPIF II interface. The buffer size calculation is explained in
API