106
FX3 Programmers Manual, Doc. # 001-64707 Rev. *C
FX3 Serial Peripheral Register Access
9.1.2.1
I2C_CONFIG register
The I2C_CONFIG register is used to configure I2C interface parameters and to enable the block.
9.1.2.2
I2C_STATUS register
The I2C_STATUS register provides the current transfer status for the I2C interface.
Bits
Field Name
HW
Access
SW
Access
Default
Value
Description
0
DMA_MODE
R
RW
0
0: Register-based transfers
1: DMA-based transfers
2
I2C_100KHz
R
RW
1
1: I2C is in the 100-KHz mode, use clock with
50% duty cycle.
0: Other speeds, use 40% duty cycle.
29
RX_CLEAR
R
RW
0
0: Do nothing
1: Clear receive FIFO
Firmware must wait for RX_DATA = 0 before
clearing this bit after it is set.
30
TX_CLEAR
R
RW
0
0: Do nothing
1: Clear transmit FIFO
Use only when ENABLE = 0; behavior unde-
fined when ENABLE = 1
Once TX_CLEAR is set, firmware must wait for
TX_DONE before clearing it.
31
ENABLE
R
RW
0
Enable block here, but only after all other con-
figuration is set. Do not set this bit to 1 while
changing any other configuration value in this
register.
Disabling the block resets all I
2
C controller
state machines and stops all transfers at the
end of current byte. When DMA_MODE=1,
data hanging in the transmit pipeline may be
lost. Any unread data in the ingress data regis-
ter is lost.
Bits
Field Name
HW
Access
SW
Access
Default
Value
Description
0
RX_DONE
W
R
0
Indicates receive operation completed. Non
sticky.
1
RX_DATA
W
R
0
Indicates data is available in the RX FIFO. Only
relevant when I2C_CONFIG.DMA_MODE=0.
This bit is updated immediately after reads from
INGRESS_DATA register. Non sticky
2
RX_HALF
W
R
0
Indicates that the RX FIFO is at least half full.
Only relevant when I2C_CONFIG.DMA_MODE
= 0.
This bit is updated immediately after reads from
INGRESS_DATA register. Non sticky
Summary of Contents for EX-USB FX3
Page 8: ...8 FX3 Programmers Manual Doc 001 64707 Rev C Contents...
Page 12: ...12 FX3 Programmers Manual Doc 001 64707 Rev C Introduction...
Page 48: ...48 FX3 Programmers Manual Doc 001 64707 Rev C FX3 Overview...
Page 74: ...74 FX3 Programmers Manual Doc 001 64707 Rev C FX3 Firmware...
Page 76: ...76 FX3 Programmers Manual Doc 001 64707 Rev C FX3 APIs...
Page 84: ...84 FX3 Programmers Manual Doc 001 64707 Rev C FX3 Application Examples...
Page 98: ...98 FX3 Programmers Manual Doc 001 64707 Rev C FX3 Application Structure...
Page 148: ...148 FX3 Programmers Manual Doc 001 64707 Rev C FX3 P Port Register Access...
Page 165: ...FX3 Programmers Manual Doc 001 64707 Rev C 165 FX3 Development Tools Click next...
Page 178: ...178 FX3 Programmers Manual Doc 001 64707 Rev C FX3 Development Tools Click on Apply...
Page 180: ...180 FX3 Programmers Manual Doc 001 64707 Rev C FX3 Development Tools d Start the GDB server...
Page 185: ...FX3 Programmers Manual Doc 001 64707 Rev C 185 FX3 Development Tools...
Page 186: ...186 FX3 Programmers Manual Doc 001 64707 Rev C FX3 Development Tools...
Page 187: ...FX3 Programmers Manual Doc 001 64707 Rev C 187 FX3 Development Tools...
Page 188: ...188 FX3 Programmers Manual Doc 001 64707 Rev C FX3 Development Tools...
Page 192: ...192 FX3 Programmers Manual Doc 001 64707 Rev C GPIF II Designer...