Re: [Tinyos-help] tinyos-2.x CSMA transmit timestamping CC2420

2006-07-20 Thread Jonathan Hui
Phil is right in all his comments. Of course the counter will overflow at some point, all counters of any bit width will. The fact is, the 32khz counter on the tmote is a 16-bit counter in hardware, thus the capture value provided by the msp430 is 16 bits. You can represent it as a 32-bit counter

Re: [Tinyos-help] tinyos-2.x CSMA transmit timestamping CC2420

2006-07-20 Thread Avinash Sridharan
Hi Phil, If the time is a free running counter of a 32khz clock won't it overflow since its just a 16bit counter ?-AvinashOn 7/20/06, Philip Levis <[EMAIL PROTECTED]> wrote:On Jul 20, 2006, at 2:25 PM, Avinash Sridharan wrote: > Hi All,>  I had a question on the timestamping of the packets when th

Re: [Tinyos-help] tinyos-2.x CSMA transmit timestamping CC2420

2006-07-20 Thread Philip Levis
On Jul 20, 2006, at 2:25 PM, Avinash Sridharan wrote: Hi All, I had a question on the timestamping of the packets when the 2.x CSMA transmits a packet in the CC2420 stack. When going through the code for CC2420CsmaTransmitP.nc, I realised that when the CaptureSFD event is called and the s

[Tinyos-help] tinyos-2.x CSMA transmit timestamping CC2420

2006-07-20 Thread Avinash Sridharan
Hi All, I had a question on the timestamping of the packets when the 2.x CSMA transmits a packet in the CC2420 stack. When going through the code for CC2420CsmaTransmitP.nc, I realised that when the CaptureSFD event is called and the state is set to S_SFD the time retrieved in this captured event i