Hi All,
I know from cc2420 datasheet that during the transmission of a packet the
fsd pin must be kept high. Two questions regarding the sendPacket function:

1) where the sfd is set high

2) why the use of TOSH_uwait(450) instead of      while
(TOSH_READ_CC_SFD_PIN()){};    only?


 void sendPacket() {
   uint8_t status;

   call HPLChipcon.cmd(CC2420_STXONCCA);

   status = call HPLChipcon.cmd(CC2420_SNOP);

   if ((status >> CC2420_TX_ACTIVE) & 0x01) {

     TOSH_uwait(450);           // ~ 400 usec delay until SFD goes high!!!
     while (TOSH_READ_CC_SFD_PIN()){};  // wait until SFD pin goes low
     atomic stateRadio = POST_TX_STATE;

     // other code lines


thanks

Bob
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to