MPC5748G Watchdog

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

MPC5748G Watchdog

2,379 次查看
tony_huang
Contributor III

Hi, I am using MPC5748G watchdog module.And how to config system clock:   MC_ME.GS.B.S_SIRCON=1?

Here is my code,and the project  can not work OK.

void  SWT_enable(void)

{

      SWT_0.SR.R=0xc520;

      SWT_0.SR.R=0xd928;

      SWT_0.TO.R=2560000;   //10s

      SWT_0.CR.R=0x8000010B;

}

void  SWT_service(void)

{

      SWT_0.SR.B.WSC=0xA602;

      SWT_0.SR.B.WSC=0xB480;

}

QQ图片20170514150723.jpg

QQ图片20170514150731.jpg

2 回复数

1,586 次查看
Ada_Lovelace
Contributor IV

Hello, has your clock been configured successfully? Can you guide me?

0 项奖励
回复

1,912 次查看
petervlna
NXP TechSupport
NXP TechSupport

Hello,

Please see reference examples for clock configuration we have posted on community:

Example MPC5748G PinToggleStationery GHS614 

https://community.nxp.com/docs/DOC-104751 

Follow the clock configuration in those examples and I am sure you won't have any issues.

SWT init and SWT service looks good.

Peter

PS: don't forget that our examples use 40MHz XTAL.