HI
I'm using CC2531 and programming it on "rf_modem" example.
I'm try to set chip in PM2, and wake up from RF signal.
I wonder PM2 can do that? If can what should I notice?
Here is my code to enter PM2:
void main(void){ halBoardInit(); halTimer32kIntEnable(); halIntOn(); IEN2 = 0x01; RFIRQM0 = 0x40; while(TRUE){ halLedSet(1); if(mrfiLinkDataRdy()){ mrfiLinkRecv(pRxData); if(pRxData[0] == 0x41){ halLedSet(2); EnterPowerMode(); } else{ halLedClear(2); } } } } void EnterPowerMode(void){ do{ halLedClear(1); SLEEPCMD = 0x06; PCON = 0x01; }while(!mrfiLinkRecv(pRxData) == 0); }
From now the chip can sleep when I send "A", but it can't wake up anymore.
I want it wake up when I send some message not even "A".
Thanks for any help.