cancel
Showing results for 
Search instead for 
Did you mean: 

Maximum EXT INT frequency under LPWFI ???

shinnlin
Associate II
Posted on March 09, 2005 at 11:48

Maximum EXT INT frequency under LPWFI ???

6 REPLIES 6
shinnlin
Associate II
Posted on March 04, 2005 at 10:33

What is the maximum frequency of External Interrupt under LPWFI ?

I enter LPWFI with PCU_EnterWFI( WFI_EXTERNAL, ENABLE, ENABLE). CK_AF is 32768Hz.

Then, put an 1k RisingEdge trigger signal at one GPIO port.

Expect we can get this external interrupt at every 1ms.

However, it fails.....

Seems this circumstance is the same as RTC INT under LPWFI.....

:(

hichem2
Associate II
Posted on March 04, 2005 at 11:11

Hi Shinn,

Could you please send your code I will take a look at it.

Regards

Hich

shinnlin
Associate II
Posted on March 04, 2005 at 12:58

I had send it to your private message box.

thanks !

shinnlin
Associate II
Posted on March 07, 2005 at 06:17

see this project for my test.

I put an external 1kHz signal on p2.10 to trigger EXT INT.

________________

Attachments :

rtc.rar : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006HtBG&d=%2Fa%2F0X0000000aK2%2F._DdNi1cAYOkMiM2rCBFHfnwcT0IIc5hZrqzgiMQjpA&asPdf=false
shinnlin
Associate II
Posted on March 09, 2005 at 07:03

Thank you, RISC !!!

This code works fine on evaluation board with codes executed on RAM.

Our target is running on flash.

If I modified this rtc1.zip to execute codes on FLASH, the RTC INT interval becomes 2ms, not 1ms.

I still can't get 1ms RTC tick....

shinnlin
Associate II
Posted on March 09, 2005 at 10:52

Thanks, RISC !!!

It works !

However, it crashes when I enable FLASH LP and then disable it again and again. (I enter FLASH LP after entering WFI, leave it before entering RUN mode)

I use

PCU->PWRCTRL |= 0x1<

PCU->PWRCTRL &= ~(0x1<

or

PCU->PWRCTRL |= 0x1<

PCU->PWRCTRL = (0x1<

to leave FLASH LP.