Hi, This is compliant with the datasheet, which reads "A SFLUSHRX command strobe is required after a RXFIFO overflow to enable reception of new data. Note that the SFLUSHRX command strobe should be issued *twice* to ensure that the SFD pin goes back to its idle state."
What about when RXFIFO is not overflowed? Just one SFLUSHRX is sufficient? What happens if SFLUSHRX when there is no byte in RXFIFO? Essentially, I want to manually flush RXFIFO at any time, so I'm curious if how to flush it is dependent on its status, namely, empty or not, and overflowed or not. Similar question is asked here<http://www.mail-archive.com/[email protected]/msg21417.html>but no answer is given. Please help me understand. Thanks in advance for your attention. -Xiaohui Liu On Tue, Sep 25, 2012 at 6:46 PM, Xiaohui Liu <[email protected]> wrote: > Hi everyone, > > The following shows up in CC2420ReceiveP.nc to flush the RXFIFO: > *void flush() {* > * reset_state();* > * call CSN.set();* > * call CSN.clr();* > * call SFLUSHRX.strobe();* > * call SFLUSHRX.strobe();* > * call CSN.set();* > * call SpiResource.release();* > * waitForNextPacket();* > *}* > > Why is SFLUSHRX strobe issued twice? Thanks for your explanation. > > -- > -Xiaohui Liu > -- -Xiaohui Liu
_______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
