MRF24J40-I MICROCHIP [Microchip Technology], MRF24J40-I Datasheet - Page 30

no-image

MRF24J40-I

Manufacturer Part Number
MRF24J40-I
Description
Manufacturer
MICROCHIP [Microchip Technology]
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
MRF24J40-I/ML
Manufacturer:
MICROCHIP
Quantity:
12 000
Part Number:
MRF24J40-I/ML
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
EXAMPLE 6-1:
DS39776A-page 28
MRF24J40
void MRF24J40Init(void)
{
}
BYTE i;
WORD j;
/* place the device in hardware reset */
RESETn = 0;
for(j=0;j<(WORD)300;j++){}
/* remove the device from hardware reset */
RESETn = 1;
for(j=0;j<(WORD)300;j++){}
/* reset the RF module */
SetShortRAMAddr(RFCTL,0x04);
/* remove the RF module from reset */
SetShortRAMAddr(RFCTL,0x00);
/* flush the RX fifo */
SetShortRAMAddr(WRITE_RXFLUSH,0x01);
/* Program the short MAC Address, 0xffff */
SetShortRAMAddr(SADRL,0xFF);
SetShortRAMAddr(SADRH,0xFF);
SetShortRAMAddr(PANIDL,0xFF);
SetShortRAMAddr(PANIDH,0xFF);
/* Program Long MAC Address*/
for(i=0;i<(BYTE)8;i++)
{
}
/* enable the RF-PLL */
SetLongRAMAddr(RFCTRL2,0x80);
/* set TX for max output power */
SetLongRAMAddr(RFCTRL3,0x00);
/* enabled TX filter control */
SetLongRAMAddr(RFCTRL6,0x80);
SetLongRAMAddr(RFCTRL8,0b00010000);
/* Program CCA mode using RSSI */
SetShortRAMAddr(BBREG2,0x78);
/* Enable the packet RSSI */
SetShortRAMAddr(BBREG6,0x40);
/* Program CCA, RSSI threshold values */
SetShortRAMAddr(RSSITHCCA,0x00);
SetLongRAMAddr(RFCTRL0,0x00); //channel 11
SetShortRAMAddr(RFCTL,0x04);
SetShortRAMAddr(RFCTL,0x00);
SetShortRAMAddr(EADR0+i*2,myLongAddress[i]);
INITIALIZING THE MRF24J40
//reset the RF module with new settings
Advance Information
© 2006 Microchip Technology Inc.

Related parts for MRF24J40-I