what‘s difference between #0x7F and #0x6F in MC9S12ZVLRM

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

what‘s difference between #0x7F and #0x6F in MC9S12ZVLRM

2,876件の閲覧回数
jingfang
Contributor IV

It directly affects current in Stop Mode.

 

0 件の賞賛
返信
3 返答(返信)

2,808件の閲覧回数
lama
NXP TechSupport
NXP TechSupport

 

Hi,

 I have checked an errata list.
Have you applied the ADC errata solution...
https://www.nxp.com/docs/en/errata/MSE9S12ZVL_0N22G.pdf

Best regards,

Ladislav

0 件の賞賛
返信

2,866件の閲覧回数
lama
NXP TechSupport
NXP TechSupport

Hi,

You should check whether you are in the stop mode.

Of course it affect Stop mode.

S X – I N Z V C
1 1 - 1  /   /  /  / reset status; Only setup function setup bits S,X,I are important in this case


0x7F - CCR = 0B0111XXXX - clears only S bit, enables Stop instruction and all interrupts are globally masked (disabled), none of the interrupt wakes the MCU up from the STOP mode

0x6F - CCR = 0B0110XXXX - enables STOP instruction as well as all I-bit maskable interrupts. These interrupt wakes the MCU up from the STOP mode.

So it looks like you MCU is periodically entered to STOP mode and woken up from it by some of the enabled interrupts.

Best regards,

Ladislav

 

0 件の賞賛
返信

2,841件の閲覧回数
jingfang
Contributor IV

Dear Ladislav,

         Thanks a lot~

0x6F can slove high current in sotp mode.

The problem steps are as follows:

1. Enable ADC Function

2. Enter Stop Mode

Here is my experiment:

Source Code

Modify

Current in Stop Mode

Customer’s Software

 

NONE

High

 

change “andcc #0x7f –>#0x6f”

High

 

Join Solution provided by NXP

Low

Customer’s Software+ Join Solution provided by NXP

change “andcc #0x6f –>#0x7f”

High

0 件の賞賛
返信