LPI2C related doubts

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 
754件の閲覧回数
vignesh3
Contributor II

See LpI2C has only one transmit data register MDER.

Then how we can use the FIFO "LPI2C_Set_MasterTxFIFOWatermark" ?

can you give me some idea bout LpI2C fifo?

0 件の賞賛
返信
1 解決策
724件の閲覧回数
PetrS
NXP TechSupport
NXP TechSupport

Hi,

yes, it is like fifo threshold, to determine when fifo flag is set.
Fifo is not memory mapped.
There is just 1 TX and 1 RX fifo.

BR, Petr

元の投稿で解決策を見る

0 件の賞賛
返信
3 返答(返信)
730件の閲覧回数
vignesh3
Contributor II

Hi @PetrS ,

can you tell me about the watermark is it like fifo threshold or what?

These fifo locations are not memory mapped right? so we can not directly access the fifo.

Can I use 2 fifo for RX and 2 for TX? 

If I can, how I need to configure the watermark for these requirement?

0 件の賞賛
返信
725件の閲覧回数
PetrS
NXP TechSupport
NXP TechSupport

Hi,

yes, it is like fifo threshold, to determine when fifo flag is set.
Fifo is not memory mapped.
There is just 1 TX and 1 RX fifo.

BR, Petr

0 件の賞賛
返信
734件の閲覧回数
PetrS
NXP TechSupport
NXP TechSupport

Hi,

the LPI2C has 4 deep TX/RX FIFO. A MTDR register is used to write CMD+DATA or DATA into TXFIFO.
You should write MTDR when MSR(TDF) is set indicating whether transmit data is requested. This flag is set when the number of words in the transmit FIFO is equal or less than MFCR[TXWATER]. TXWATER is usually set to 3.

BR, Petr

0 件の賞賛
返信