"mpc563.h" Module Code

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

"mpc563.h" Module Code

Jump to solution
1,327 Views
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

Labels (1)
1 Solution
1,171 Views
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!

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

View solution in original post

2 Replies
1,172 Views
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,171 Views
scottluplow
Contributor I

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

Scott

0 Kudos
Reply