Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Yard stick one, rfpower amp and Bias-t #24

Open
lvenuto opened this issue Nov 15, 2018 · 3 comments
Open

Yard stick one, rfpower amp and Bias-t #24

lvenuto opened this issue Nov 15, 2018 · 3 comments

Comments

@lvenuto
Copy link

lvenuto commented Nov 15, 2018

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.

@mossmann
Copy link

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!

@lvenuto
Copy link
Author

lvenuto commented Nov 16, 2018

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.

@mossmann
Copy link

setAmpMode() controls both the TX and RX amplifiers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants