stop mode problem in s12zvl32 using LIN frame

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

stop mode problem in s12zvl32 using LIN frame

1,491 次查看
deepakchandra
Contributor III

dear sir ,

 

this is very urgent as our team is stuck in stop mode . in our project we

required stop mode current is 100uA. we are unable to achieve this please

suggest all the application detail are give below.

 

1.we are using s12zvl32 controller it is LIN based application we have to

achieve 100uA of current when sleep command is

 

received from LIN master or LIN time out condition .presently i have

implemented below condition but this condition when i send sleep command it

is taking 8 mA and on wake up 15mA , but when it goes 1 time sleep it took

2mA ,and it not going sleep in time out.

 

 

 

if ((SLEEP_MODE == lin_lld_get_state()) & (~cpu_stop_mode_flg))

{

 

 

HallSensorOFF();//hall sensor supply through uCPIN

 

/* Set enter stop mode flag */

cpu_stop_mode_flg = 1;

/* Enable wakeup feature of LIN Physical*/

LP0CR_LPWUE = 1;

asm(andcc #0x6f);

/* Enable Active Edge Detect Circuit in stop mode*/

psci->sciacr1.byte |= SCIACR1_RXEDGIE_MASK;

asm(stop);

 

}

 

if(IDLE == lin_lld_get_state())

{

if (cpu_stop_mode_flg)

{

/* Clear stop mode flag */

cpu_stop_mode_flg = 0;

/* Disable Active Edge Detect Circuit in stop mode*/

psci->sciacr1.byte &= ~SCIACR1_RXEDGIE_MASK;

 

 

HallSensorON();//hall sensor supply through uCPIN

 

}

 

}

 

here i am also attaching my clock setting file and lin setting file .LIN

stack we are using FSL LIN 2.x Stack Package 4.5.7.

Original Attachment has been moved to: PWM67.c.zip

Original Attachment has been moved to: LIN_INT.c.zip

Original Attachment has been moved to: CPU.c.zip

Original Attachment has been moved to: ADC.c.zip

Original Attachment has been moved to: TIMER_INT.c.zip

标签 (1)
0 项奖励
回复
1 回复

1,129 次查看
RadekS
NXP Employee
NXP Employee

Hi Deepak,

I suppose that content of your thread is the same as here:

https://community.nxp.com/thread/435988

I would like to recommend continue the discussion there.

I hope it helps you.

Have a great day,
Radek

0 项奖励
回复