AN2262 Motorola / Freescale Semiconductor, AN2262 Datasheet - Page 86

no-image

AN2262

Manufacturer Part Number
AN2262
Description
Wireless HC08 Modem
Manufacturer
Motorola / Freescale Semiconductor
Datasheet
AN2262/D
//////////////////////////////////////////////////////////
// RF receiver part
void DischargeAGC(void)
{
BYTE i=0xff;
}
//////////////////////////////////////////////////////////
// enable receiver
void RF_RxStart(void)
{
#ifdef RF_ECC
#endif
}
86
// ground AGC capacitors
RFDchrgOutputs();
RFDchrgCMixAgcOff();
RFDchrgCAgcOff();
// delay ... ??
while (i--)
{ asm nop; asm nop; }
// enable AGC capacitors again
RFDchrgInputs();
// get ready to listen
DischargeAGC();
// reconfigure SPI (slave, no ints, cpol=0, cpha=1, disabled)
SPCR = 0x08;
// clear any pending SPI RX interrupt
SPSCR; SPDR;
// signal receiver is listenning
rfRxActive = 1;
// enable SPI RX int
SPCR_SPRIE = 1;
// last: enable SPI
SPCR_SPE = 1;
// initialize buffer oriented variables
rfRxLen = 0;
rfRxIdx = 0;
eccNibble = 0;
// intialize RX timeout int. but still do not enable!
RFTimerTMOUT_MSA = 1;
RFTimerTMOUT_ELSB = 0;
RFTimerTMOUT_ELSA = 0;
RFTimerCHTMOUT = RF_RXTIMEOUT;
Wireless HC08 Modem
MOTOROLA

Related parts for AN2262