2009-12-10 09:12 AM
2011-05-17 12:59 AM
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.2011-05-17 12:59 AM
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.