Hi,
I tried with the possible changes as per the swru191b.pdf(page 59~63) CC2530
PCON , SLEEPCMD
Question Power-Management
1. PCON = 1; <- power idele?
SLEEPCMD =3; <-PM3?
2.Wakeup
PCON = 0; <- power active?
SLEEPCMD =0; <- wake up?
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi,
I tried with the possible changes as per the swru191b.pdf(page 59~63) CC2530
PCON , SLEEPCMD
Question Power-Management
1. PCON = 1; <- power idele?
SLEEPCMD =3; <-PM3?
2.Wakeup
PCON = 0; <- power active?
SLEEPCMD =0; <- wake up?
When going to power mode, you need to set the mode to go into first, using SLEEPCMD. Then you set PCON to 1 to actually go to power mode. So change the order of your instructions. Also note that bit 2 of SLEEPCMD is reserved and must always be written as 1. So the correct code is:
SLEEPCMD = (SLEEPCMD & ~0x03) | 0x03;
PCON = 1;
Note that a special alignment is needed for the PCON instruction, cf. Section 4.2 in the user guide. The code I posted in this thread obtains that: http://e2e.ti.com/support/low_power_rf/f/155/t/69809.aspx.
At wakeup, you do not need to modify any of the registers on CC2530. PCON will automatically be 0, and SLEEPCMD.MODE don't matter when you are in active mode.