I am using the AccelerometerV2 example... I added a 1ms timer on TPM1C0. I am currently manually sending messages from another 1392SARD. It appears that I do not always catch messages (the example also does not use any ACK) here is my code.... Also I am not entirely sure what the LOW_POWER_WHILE gets me other than a asm "WAIT" comamnd... which i think is the problem... however if i remove it, the program NEVER recieves messages from the other SARD board...
Thanks...
/*************************/
// //
// RX LOOPS //
// //
//************************/
void Rx_TaskLoop_0001ms() {
} // end Rx_TaskLoop_0001ms( )
void Rx_TaskLoop_0025ms() {
} // end Rx_TaskLoop_0025ms( )
void Rx_TaskLoop_0050ms() {
/*if(++i250counter >= 4) {
i250counter = 0x00;
}// end if
*/
} // end Rx_TaskLoop_0050ms( )
void Rx_TaskLoop_0100ms() {
// Heartbeat
LED2 ^= 1;
} // end Rx_TaskLoop_0100ms( )
void Rx_TaskLoop_1000ms() {
} // end Rx_TaskLoop_1000ms()
void Rx_bk_loop() {
switch (app_status) {
case IDLE_STATE:
//Switch to RECEIVER_ALWAYS_ON
app_status = RECEIVER_ALWAYS_ON;
break;
case RECEIVER_ALWAYS_ON:
MLME_RX_enable_request(&rx_packet, 0);
LOW_POWER_WHILE;
break;
//Should not get here.
default:
app_status = RECEIVER_ALWAYS_ON;
}
}