Hi,
I am currently trying to set up a simple program that constantly transmits an incrementing 8-bit value at 433MHz. We want to do signal strength testing, and it's the first time I've worked with an RF module so I wanted to start simple. I am working in CCS 5.4 and my code is as follows:
unsigned char TxSingleByte(uint8_t transmit){
int i;
Strobe (RF_SWOR); //turn on radio
while(!(RF1AIFCTL1 & RFINSTRIFG)); //wait for the radio to be ready for the next instruction
RF1AINSTRW = (0x3F<<4)|transmit; //send instruction and value
while(!(RFDINIFG & RF1AIFCTL1)); //wait for TX to finish
i = RF1ADOUTB; //reset RFDOUTIFG flag
Strobe( RF_STX ); //strobe STX
return i;
}
My configurations use values determined by smartRF studio and look like this (sorry for the low image-quality):
For the time being I'm using the initialize functions provided by TI to reduce the number of variables. I have Vcore at level 2. What is it that I am doing wrong?
Thanks!