cancel
Showing results for 
Search instead for 
Did you mean: 

Wake up[using XTI] from STOP Mode

elcommselva
Associate II
Posted on January 17, 2007 at 23:49

Wake up[using XTI] from STOP Mode

3 REPLIES 3
elcommselva
Associate II
Posted on January 17, 2007 at 10:21

Hello,

I'm using the STOP Mode as the Power Down mode for my hand held device. I'm using STR711FR2T6 controller for my application. As per the referance manual I should be able to wakeup my device by XTI pins[Rising Edge]. I'm using the XTI Line #14[P0.13] to wake up the device from STOP Mode. But am unable to wake up the Device.My Device is not getting out of the STOP Mode even when I make P0.13 HIGH.Here goes my code fragment:

I want to make this code work. Help me out!

//configure GPIO pin P0.13 as rising edge wakeup interrupt

GPIO_Config (GPIO0 , 0x2000, GPIO_IN_TRI_TTL); //configure the GPIO pin P0.13

XTI_Init(); //initialize the XTI

XTI_LineModeConfig(XTI_Line14, XTI_RisingEdge); //Configure the line8 mode ,select //Rising edge trig

XTI_LineConfig(XTI_Line14, ENABLE); //Enable line 14 Wake-Up interrupts

XTI_ModeConfig(XTI_WakeUp, ENABLE); //Enable Wake-Up mode in the XTI

//change the system clock to the RTC 32KHz Or the Free runnig mode clock

SLOW(RTC_CLK); //change the system clock to RTC

//change the system clock to the Free runnig mode with Freq =~ 1 MHz /8

RCCU->CFR &=~0x1; //PLL not sys clock

RCCU->PLL1CR |= 0x7; //PLL off DX[2:0] = '111'

PCU->PLL2CR |= 0x7; // PLL2 OFF

RCCU->PLL1CR |= 0x30; //MX[1:0] = '11'

RCCU->PLL1CR &=~0x40; //REF_RANGE = 0

RCCU->PLL1CR |=0x80; //FREEN =1

//RCCU->CFR |=0x1; //PLL as system clock

//PCU->PWRCR |= 0x8000;

//PCU->PWRCR |=0x0080; //32KHz could be disabled if RTC

//clock not used (Free runnig mode clock used)

for(i=0; i

STOP(DISABLE,DISABLE); //enter in STOP mode ( flash disabled, MVR stopped)

GPIO_BitWrite (GPIO1,15,1); //reenable the oscillator using pin P1.15

for(i=0; i

RCCU_PLL1Config(RCCU_PLL1_Mul_12, RCCU_Div_2); //restore the PLL

RCCU_RCLKSourceConfig(RCCU_PLL1_Output); //Set the RCLK to the PLL1 output

ben2
Associate II
Posted on January 17, 2007 at 11:59

to come out of STOP mode the external oscillator must be running.

from your code it appears you are turning it on and off under software control. that wont work.

if you cant restart the external oscillator by the wakeup signal, the best you can use if LPWFI mode.

Ben

elcommselva
Associate II
Posted on January 17, 2007 at 23:49

K Thanks.

Regards,

Selva