LPI2C related doubts

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

LPI2C related doubts

跳至解决方案
752 次查看
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 解答
722 次查看
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 回复数
728 次查看
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 项奖励
回复
723 次查看
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 项奖励
回复
732 次查看
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 项奖励
回复