Yard stick one, rfpower amp and Bias-t
Is the external power amp of the Yard Stick One actually used? in cc1111rf.c:
// amplifier external to CC1111
volatile __xdata u8 rfAmpMode = 0;
This ifdef:
#ifdef YARDSTICKONE
SET_TX_AMP;
Should trigger in cc1111rf.h:
#define SET_TX_AMP do { TX_AMP_EN = rfAmpMode; RX_AMP_EN = 0; AMP_BYPASS_EN = rfAmpMode^1; } while (0)
Since rfAmpMode is 0, this disables the TX_AMP and enable the bypass of the amplifier. Also the YSO supports bias-t to power an external power amplifier, it would be nice to make it work! I see that the register for P0_0 is not even configured (that is the pin that controls the Bias-t) If you think I'm on the right track I could try to fix these and write the missing function to enable/disable/bypass power amp and enable/disable bias-t.
You can turn on the amplifier with setAmpMode() on the host which sets rfAmpMode in firmware.
You are correct that we do not yet have a function to control the antenna port power. That would be a welcome contribution!
Hey Michael! Nice to see a reply directly from you. But thats only the TX amp right? What about the RX amp? I have to dig a bit more about that. I think I found the way to toggle both the amp's on and off via the registers. The same about the antenna port power. I just need to do some testing. Maybe even turn on and off the red and yellow led's (that AFAIK are unused at the moment) to indicate RX or TX amp enabled.
setAmpMode() controls both the TX and RX amplifiers.