How to define the stop mode command? (S08DZ96)

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

How to define the stop mode command? (S08DZ96)

464 Views
mehdializadeh
Contributor II

I am using MC9S08DZ96 microcontroller and I using code warrior version 11. I want to put the MCU to sleep mode(STOP3). In the CPU settings, I have changed the sleep mode setting and the relevant registers have been activated.

Capture.PNG

I know with the asm stop; command MCU goes to sleep mode. But it doesn't work. I think this command:

 

#define StopMode {asm STOP;}

 


should be defined somewhere. Does anyone know how to define stop mode?

0 Kudos
3 Replies

450 Views
vicentegomez
NXP TechSupport
NXP TechSupport

I believe that you already solved the problem from your other thread

 

Regards

Vicente 

0 Kudos

441 Views
mehdializadeh
Contributor II

Thanks a lot.
I am now in the process of trying to wake it up using  pin interrupt, LIN and CAN protocol. 
Do you have any comments for this item?

0 Kudos

434 Views
vicentegomez
NXP TechSupport
NXP TechSupport

There are some applications note about CAN and LIN using the S08DZ, 

 

please check

https://community.nxp.com/t5/8-bit-Microcontrollers/LIN-Bus-support-for-the-MC9S08PL-series/m-p/9241...

and you can download the CAN stack from

https://www.nxp.com/webapp/Download?colCode=MSCAN_S08&appType=license

 

I hope this will help you

0 Kudos