Skip to main content
lucapodesta
Associate II
December 10, 2009
Question

LVD problem

  • December 10, 2009
  • 2 replies
  • 746 views
Posted on December 10, 2009 at 18:12

LVD problem

This topic has been closed for replies.

2 replies

tomas23
Visitor II
May 17, 2011
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.

lucapodesta
Associate II
May 17, 2011
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.