Hi all,
I'm using my own design with a CC2530 and a CC2591 onto. I used the same pins than the reference design to interconnect both chips.
When I use the GenericApp example from Z-Stack and I compile it with the option "HAL_PA_LNA" and without the HAL_LED and HAL_LCD stuff, the HGM pin and EN pin are working fine, but the PAEN pin is always 0. That's still a little problem, because with PAEN always to 0, I can't send data packets to the coordinator (my own card is defined as End device).
When I manually set PAEN to 1, there is no problem (so it can't be an electrical problem). And when I set both pin EN and PAEN to 0, my packets are sent and received correctly, so the code for data transfers functions well and the card sends data packets.
It seems to be initialized correctly (when placing a breakpoint the code stops here):
/* P1_1 -> PAEN */
RFC_OBS_CTRL0 = RFC_OBS_CTRL_PA_PD_INV;
OBSSEL1 = OBSSEL_OBS_CTRL0;
/* P1_4 -> EN (LNA control) */
RFC_OBS_CTRL1 = RFC_OBS_CTRL_LNAMIX_PD_INV;
OBSSEL4 = OBSSEL_OBS_CTRL1;
with all values like suggested in the application note AN086.
Does somebody know how I could make function the PAEN pin? Maybe it is used by another module (Timer 1 or 4) but I didn't found any part of code using the pin P1_1 for another use than the interconnection to CC2591.
Maybe I could change the pin manually to 1, but where should I place this code?
Thanks in advance,
Tobias