NRF905

Hi everyone,

I am using the nrf905 modules with ATMEGA32L. I am having a problem with my receiver code. I have programmed a module to transmit at certain intervals. However my receiver doesn’t even set the CD pin high to detect any transmission at all. Can any one help?

Here is my receiving code:

//STANDBY

PORTA.0 = 0; //TRX_EN LOW

PORTA.1 = 0; //TRX_CE LOW

PORTA.2 = 1; //PWR_UP HIGH

//RECEIVING

PORTA.1 = 1;

DR = PINA.5; //STORING DATA READY PIN

PORTC.7 = DR;

delay_ms(500);

while (DR!=1)

DR = PINA.5; //CHECKING IF DATA IS READ

delay_ms(500);

PORTC.7 = DR;

PORTA.1 = 0; //GOIN INTO STANDBY MODE

PORTB.4 = 0; //SPI PROGRAMMING ENABLED

spi(0x24); //READING THE RX PAYLOAD

buffer = spi(0x00); //GENERATING THE SPI CLOCK

PORTC = buffer; //OUTPUTTING RECEIVED BYTE

delay_ms(1000);

PORTB.4 = 1; //SPI PROGRAMMING DISABLED */