cancel
Showing results for 
Search instead for 
Did you mean: 

LVD problem

lucapodesta
Associate II
Posted on December 10, 2009 at 18:12

LVD problem

2 REPLIES 2
lucapodesta
Associate II
Posted on May 17, 2011 at 09:59

Hi,

I need to put a system on sleep-mode when voltage brownout.

On my system VBAT is active for sram and rtc.

SCU is configured this way:

FMI_Config(FMI_READ_WAIT_STATE_1, FMI_WRITE_WAIT_STATE_0, FMI_PWD_ENABLE, FMI_LVD_ENABLE, FMI_FREQ_LOW);

VIC is configured this way:

SCU_AHBPeriphClockConfig(__VIC,ENABLE);

SCU_AHBPeriphReset(__VIC,DISABLE);

VIC_DeInit();

VIC_InitDefaultVectors();

VIC_Config(LVD_ITLine,VIC_IRQ,0);

VIC_ITCmd(LVD_ITLine,ENABLE);

When I turn OFF the system, nothing happens with LVD irq...

It never enters LVD_IRQHandler(void);

I proved this with a tampered sram flag.

I tryed change VDD threshold with JTAG utility, but nothing changes.

Is there some RESET_FLAG, or some other else?

I looked on documenetation more and more times.

Thank for any suggestion.

tomas23
Associate II
Posted on May 17, 2011 at 09:59

Try turning LVD on in option bytes through JTAG.

I didn't find any obstacle in your code, though.

How fast the voltage falls? Try to decrease it gradually and keep before you see active reset on RESET_OUT pin.