Quiesent current for MCU S912ZVML64F1MKHR

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Quiesent current for MCU S912ZVML64F1MKHR

Jump to solution
1,158 Views
vijay_anandk
Contributor I

Hi,

I am vijay. I am using S912ZVML64F1MKHR microcontroller for one of my project application.

I need to now the quiesent current for S912ZVML64F1MKHR.

Can anybody send me the quiesent current of this MCU.

 

I was not able to find in datasheet.

 

 

 

 

S912ZVML64F1MKHR
Labels (1)
Tags (2)
0 Kudos
1 Solution
823 Views
Martin35804
NXP Employee
NXP Employee

Hi,

Check the A.1.11 Supply Currents section of the S12ZVM reference manual, starting page 762.

http://cache.freescale.com/files/microcontrollers/doc/ref_manual/MC9S12ZVMRMV1.pdf?pspll=1

MC9S12ZVM-Family Reference Manual

Regarding the stop mode here is some code for CAN wake-up. I hope it helps you.

In your MSCAN initialization routine, you need to add the following:

       CAN0CTL0_WUPE = 1;   /* Enable WAKEUP */      

    CAN0RIER_WUPIE = 1;  /* Enable wake-up interrupt */      

    CAN0CTL1_WUPM = 0;   /* Wake up mode: any dominant level */


Before the MCU is commanded to go to sleep, you need to request the module to enter sleep:

       CAN0CTL0_SLPRQ = 1;              /* MSCAN enter sleep mode */

       while (!(CAN0CTL1_SLPAK));       /* Wait for sleep mode acknowledge */


Then, you can drive the MCU into STOP mode with:

       asm(andcc #0x7F);    /* Enable STOP mode */

       EnableInterrupts;    /* Enable interrupts */
   
asm{STOP};           /* Enter STOP mode */


At the MSCAN wakeup interrupt service request, you need to clear the wakeup flag

       CAN0RFLG_WUPIF = 1;  /* Clear wakeup flag */

View solution in original post

0 Kudos
5 Replies
824 Views
Martin35804
NXP Employee
NXP Employee

Hi,

Check the A.1.11 Supply Currents section of the S12ZVM reference manual, starting page 762.

http://cache.freescale.com/files/microcontrollers/doc/ref_manual/MC9S12ZVMRMV1.pdf?pspll=1

MC9S12ZVM-Family Reference Manual

Regarding the stop mode here is some code for CAN wake-up. I hope it helps you.

In your MSCAN initialization routine, you need to add the following:

       CAN0CTL0_WUPE = 1;   /* Enable WAKEUP */      

    CAN0RIER_WUPIE = 1;  /* Enable wake-up interrupt */      

    CAN0CTL1_WUPM = 0;   /* Wake up mode: any dominant level */


Before the MCU is commanded to go to sleep, you need to request the module to enter sleep:

       CAN0CTL0_SLPRQ = 1;              /* MSCAN enter sleep mode */

       while (!(CAN0CTL1_SLPAK));       /* Wait for sleep mode acknowledge */


Then, you can drive the MCU into STOP mode with:

       asm(andcc #0x7F);    /* Enable STOP mode */

       EnableInterrupts;    /* Enable interrupts */
   
asm{STOP};           /* Enter STOP mode */


At the MSCAN wakeup interrupt service request, you need to clear the wakeup flag

       CAN0RFLG_WUPIF = 1;  /* Clear wakeup flag */

0 Kudos
823 Views
Martin35804
NXP Employee
NXP Employee

Hi,

you mean quiescent current = sleep mode?

0 Kudos
823 Views
vijay_anandk
Contributor I

Hi Martin,

Yes i wants to know the Quiesent current in sleep mode and in Normal mode for S912ZVML64F1MKHR.

0 Kudos
823 Views
vijay_anandk
Contributor I

Hi Martin,

Thanks for your guidance.

I understood now from the datasheet.

0 Kudos
823 Views
Martin35804
NXP Employee
NXP Employee

sleep mode is rather stop mode described.

You can download the example code posted on our community space:

https://community.freescale.com/message/459856#459856

It was tested on S12ZVM EVB board. After you program the micro, disconnect the BDM and push the reset button. After reset, the micro will enter Stop mode. It can be waken-up with push button SW3  (aka "UP) which is connected to IRQ pin. After the push, MCU will exit Stop mode, go to ISR which will be indicated by few LED blinks and after that the MCU goes into Stop mode again.

0 Kudos