Bita Sobhani

anybody knows what is my Uart code problem

Discussion created by Bita Sobhani on Sep 1, 2008
Latest reply on Sep 1, 2008 by Jim Burdus
Hi all
I am working on zigbee 1321x.
I want to send two bytes at periodic time intervals from zigbee node to uart (for example every 1 seconds).
I used this code in the interval timer callback.

void TimerCallBack
  (
  tmrTimerID_t  timerId
  )
{
  uint8_t testByte[2]={0x12,0x34};
  (void) timerId;
 
  (void)UartX_Transmit(testByte , 2, NULL);
    
}

anybody knows what is the problem? The first byte is received correctly (0x01), but the second byte does not appear stable, it changes continuosly and some instances takes the correct value (0x34).

PLEASE REPLY..................



Outcomes