"mpc563.h" Module Code

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

"mpc563.h" Module Code

跳至解决方案
1,358 次查看
scottluplow
Contributor I


Other than the standard core manual(MPC563RM), is there a resource that explains how to use the structs (i.e. Module QSMCM) within 563.h?  The manual does not contain actual example code for using the structs (i.e. QSMCM.SPCR.R=0xa10a;  /*Master, TTL, 8bit, etc.)

 

I am new to lower level code like this and I am assuming there is possibly a supplemental guide for these structs.

 

Any help would be greatly appreciated.

 

Thank you,

 

Scott

标签 (1)
1 解答
1,202 次查看
TICS_Fiona
NXP Employee
NXP Employee

Hello Scott

The attached file <samp563.c > contains the sample code for how to use the structures defined in head file.

It is similar for QSMCM, the code should be like:

QSMCM_A.SPCR0.R = 0xa10a

The address for QSMCM_A is defined in <mpc563.h>. Its structure type is defined in m_qsmcm.h.

Fiona Kuang

Technical Information & Commercial Support

-----------------------------------------------------------------------------------------------------------------------

Note: If this post answers your question, please click the Correct Answer button. Thank you!

-----------------------------------------------------------------------------------------------------------------------

在原帖中查看解决方案

2 回复数
1,203 次查看
TICS_Fiona
NXP Employee
NXP Employee

Hello Scott

The attached file <samp563.c > contains the sample code for how to use the structures defined in head file.

It is similar for QSMCM, the code should be like:

QSMCM_A.SPCR0.R = 0xa10a

The address for QSMCM_A is defined in <mpc563.h>. Its structure type is defined in m_qsmcm.h.

Fiona Kuang

Technical Information & Commercial Support

-----------------------------------------------------------------------------------------------------------------------

Note: If this post answers your question, please click the Correct Answer button. Thank you!

-----------------------------------------------------------------------------------------------------------------------

1,202 次查看
scottluplow
Contributor I

Thank you for your help!  The sample code file really helped to clarify.

Scott

0 项奖励
回复