AnsweredAssumed Answered

stop mode problem in s12zvl32 using LIN frame

Question asked by deepak chandra on Oct 5, 2016

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

Outcomes