RxDoneInt and RxProduceIndex

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

RxDoneInt and RxProduceIndex

274件の閲覧回数
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 返答(返信)

266件の閲覧回数
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 件の賞賛

266件の閲覧回数
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 件の賞賛

266件の閲覧回数
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 件の賞賛

266件の閲覧回数
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 件の賞賛