RxDoneInt and RxProduceIndex

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

RxDoneInt and RxProduceIndex

616 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by tom84 on Mon May 21 07:07:29 MST 2012
Hello everybody,

i need help and cannot find any answer in the usermanual. I'm using an LPc1758 and my question is: When a packet is received what happend first?

increment the RxProduceIndex?
Or set the RxDoneInt?

RxDoneInt Bit is set in the Cotrol field.
0 项奖励
回复
4 回复数

608 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by tom84 on Tue May 22 00:23:03 MST 2012
Thank you very much, now i stupid human understands it.
0 项奖励
回复

608 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Ex-Zero on Tue May 22 00:17:32 MST 2012
Generating an interrupt is the last step in this procedure after everything else is finished (including incrementing RxProduceIndex)  :rolleyes:
0 项奖励
回复

608 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by tom84 on Tue May 22 00:09:25 MST 2012
Thanks, but your answer says nothing about the RxProduceIndex.
I know after Data ist received ans stored in memory, the interrupt comes and the produceindex is incremented!
but my question is: What comes FIRST?

a) first the RxDoneInt is triggered and then the RxProduceIndex is incremented
b) first the ProduceIndex is incremented and then the interrupt triggered
0 项奖励
回复

608 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Ex-Zero on Mon May 21 07:57:53 MST 2012

Quote:

cannot find any answer in the usermanual...

:confused:


Quote:

The Rx DMA manager uses an internal tag protocol in the memory interface to check that the receive data and status have been committed to memory. After the status of the fragments are committed to memory, an RxDoneInt interrupt will be triggered, which activates the device driver to inspect the status information. In this example, all descriptors have the Interrupt bit set in the Control word i.e. all descriptors will generate an interrupt[B][COLOR=Red] after[/COLOR][/B] committing data and status to memory.

0 项奖励
回复