Re: Is there ram/register that will survive through reset R274

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

Re: Is there ram/register that will survive through reset R274

1,170件の閲覧回数
michael_chien1
Contributor II

I am using MPC5746C. Is there kind of register in MPC5746C? no function and data is able to store with resetting.

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

1,095件の閲覧回数
michael_chien1
Contributor II

update the status.

I found USPRG0 register. it look like I can use this register to store the data and not change after functionality reset.

But I can't find the definition in MPC5746C.h.

Would you advise how to access this register?

0 件の賞賛
返信

1,095件の閲覧回数
davidtosenovjan
NXP TechSupport
NXP TechSupport

Hi, The USPRG0 register is are provided for application and operating system use so yes, it can be used for this purpose.

Use the MC_ME module to enter the RESET mode (SW functional reset):

/* software reset */    
ME.MCTL.R = 0x00005AF0;
ME.MCTL.R = 0x0000A50F;

 

pastedImage_1.png

0 件の賞賛
返信