AN2262 Motorola / Freescale Semiconductor, AN2262 Datasheet - Page 85

no-image

AN2262

Manufacturer Part Number
AN2262
Description
Wireless HC08 Modem
Manufacturer
Motorola / Freescale Semiconductor
Datasheet
}
/////////////////////////////////////////////////////////////////////////////
// output compare interrupt toggles the data bit to achieve Manchester coding
#pragma TRAP_PROC
void RFTimerTmout_Int(void)
{
}
MOTOROLA
}
RFTimerTMOUT;
RFTimerTMOUT_CHF = 0;
RF_RxStop();
LedFn2Off();
rfRxLen = rfRxIdx;
RF_RxTimeoutOff();
if(txTail)
{
}
else if(txPre)
{
}
// header
else if(txHead)
{
}
// nothing => finish
else
// serve the interrupt for branches which have not called ‘return’
RFTimerTXD; RFTimerTXD_CHF = 0;
// if no head is pending, this is End-Of-Packet tail
// tail done
txTail = 0;
// our preamble will be our next char
txChar = RF_PREAMBLE;
txBits = RF_PREAMBLE_BITS;
// preamble is done
txPre = 0;
// don’t serve interrupt
return;
// our character is header
txChar = RF_HEADER;
txBits = RF_HEADER_BITS;
// head done
txHead = 0;
// don’t serve interrupt
return;
TXFinish();
// preamble
// copy the length
// and disable this timer
/* clearing RFTimer CH0 flag */
Wireless HC08 Modem
/* clearing RFTimer CH1 flag */
Source Code
AN2262/D
85

Related parts for AN2262