MC9S08LC60: Why is stop mode being reset?

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

MC9S08LC60: Why is stop mode being reset?

1,029件の閲覧回数
MotownSide
Contributor I

Hi,

 

We are unable to get into any stop mode. The current is always high ~4mA. It seems that when we enter stop mode, it is immediately being reset. We are interested in getting into stop3 mode.

 

We followed the settings in the datasheet. (Table 3.1)

Below is the settings we set for stop3 mode

 

  SOPT1_STOPE=1;

  SPMSC1_LVDSE=0;

  SPMSC1_LVDE=0;

  SPMSC2_PDC=1;

 

Is there something else that we overlooked?          

ラベル(1)
0 件の賞賛
返信
1 返信

612件の閲覧回数
bigmac
Specialist III

Hello, and welcome to the forum.

 

Have you allowed that the SOPT1 register is "write once"?  This means that all bits of the register, including the STOPE bit, must be simultaneously written, usually early in the initialisation process.  It is not possibly to set bits individually, and if this is what you are attempting, it may mean that the STOP instruction is never enabled, resulting in an illegal opcode reset when you attempt to enter stop mode.

 

Regards,

Mac

 

0 件の賞賛
返信