Issue with Low Voltage detect and reset on S32K144

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Issue with Low Voltage detect and reset on S32K144

跳至解决方案
1,299 次查看
akumars4
Contributor II

Hi,

I wanted to configure Low voltage detect and low voltage reset in my S32K144 device.

Case 1: I was successfully able to generate the interrupt on LVDF when LVDIE is set in LVDSC1. The breakpoint hits the ISR when I reduce the voltage on the supply less than VLVD 2.875V .

/***********Code ***********/

IP_PMC->LVDSC1 |= PMC_LVDSC1_LVDIE_MASK; /* Enable Low Voltage Detect Interrupt */

/***************************/

Case2: I enabled both LVDIE and LVDRE at the same time. But with this configuration when I reduce the voltage on the supply less than VLVD 2.875V the debugger connection is lost which means the controller has reset and I have a UART print statement based on reset reason due to LVD. 

/***********Code ***********/

IP_PMC->LVDSC1 |= (PMC_LVDSC1_LVDRE_MASK | /* Enable Low Voltage Reset */
                                             PMC_LVDSC1_LVDIE_MASK); /* Enable Low Voltage Detect Interrupt */

/***************************/

But according to the datasheet typical VLVD = 2.875V and VLVR = 2.58V

akumars4_0-1736158477078.png

Can anyone tell me is this a expected behavior?

 

Regards

Ajeeth Kumar

 

S32K144EVB 

标记 (2)
0 项奖励
回复
1 解答
1,273 次查看
davidtosenovjan
NXP TechSupport
NXP TechSupport

If you have set LVDRE (as you have) then reset is triggered below V_lvd threshold.

davidtosenovjan_0-1736251954622.png

If LVDRE is cleared, then reset will be triggered below V_lvr threshold.

So yes, it is expected.

在原帖中查看解决方案

3 回复数
1,274 次查看
davidtosenovjan
NXP TechSupport
NXP TechSupport

If you have set LVDRE (as you have) then reset is triggered below V_lvd threshold.

davidtosenovjan_0-1736251954622.png

If LVDRE is cleared, then reset will be triggered below V_lvr threshold.

So yes, it is expected.

1,264 次查看
akumars4
Contributor II
Thanks for your swift reply.
So I can either enable LVDRE or LVD interrupt. right ?
0 项奖励
回复
1,259 次查看
davidtosenovjan
NXP TechSupport
NXP TechSupport

Yes, correct.