The pull up resistor is using. After I reset the the chip by set reset pin to 1,I wait for 500ms, and then send the reset message to ANT, and then send the channel config message to the ANT, and the RTS never goes up, I always receive 0xEB in the receive buffer
I want to make sure one thing ,what is the correct value for the pull up reister. The ANT chip I used is nRF24AP2
My code is as below....Thank you very much!
WDTCTL = WDTPW + WDTHOLD;
System_Init();//Initialize the System
bPendingRxMessage = FALSE;//No message Received
pucTxBuffer = NULL;//No message need to be transmit.
int WaitingForRTS;
/////////////////////////
//Begin ANT Communication
/////////////////////////
P1DIR = 0x0E;
P3DIR = 0X10;
P1OUT = 0x00;
__delay_cycles(500000);
P1OUT = 0x02;
__delay_cycles(500000);
WriteByte(0xA4);
WriteByte(0X01);
WriteByte(0X4A);
WriteByte(0X00);
WriteByte(0XEF);
__delay_cycles(500000);
WriteByte(0XA4);
WriteByte(0X03);
WriteByte(0X42);
WriteByte(0X00);
WriteByte(0X10);
WriteByte(0X00);
WriteByte(0xF5);
_delay_cycles(5000000);