Hi
im having problems with ACK - my transmitter is set to repeat trasnmission for 15 times and then the MAX_RT irq appeard. I dont know why - all the adresses are equal - i mean an adresses of Tx_addr, RxP0 and reciver’s RXP0, the freq channels are the same, then length of data also is set to 16b for each side
here’s my code for transmitter (pic16f684)
unsigned char txAddr[5]={0x34,0x43,0x10,0x10,0x01};
status = SPI_write_reg(0x20,0x0e);
status = SPI_write_reg(0x21,0x01);
status = SPI_write_reg(0x22,0x01);
status = SPI_write_reg(0x23,0x03);
status = SPI_write_reg(0x24,0xFF);
status = SPI_write_reg(0x25,0x02);
status = SPI_write_reg(0x26,0x07);
status = SPI_write_reg(0x27,0x70);
SPI_write_buffer(0x30,txAddr,5);
SPI_write_buffer(0x2A,txAddr,5);
SPI_write_reg(0x31,0x10);
and for receiver (at91sam7s128)
status = SPI_write_reg(0x20,0x0f);
status = SPI_write_reg(0x21,0x01);
status = SPI_write_reg(0x22,0x01);
status = SPI_write_reg(0x23,0x03);
status = SPI_write_reg(0x24,0xFF);
status = SPI_write_reg(0x25,0x02);
status = SPI_write_reg(0x26,0x07);
status = SPI_write_reg(0x27,0x70);
SPI_write_buffer(0x2A,txAddr,5);
SPI_write_reg(0x31,0x10);
when ack is off all works fine, maybe i missed something in my configuration ?