System Timer Module activation on MPC564xB board

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

System Timer Module activation on MPC564xB board

Jump to solution
1,920 Views
skpavankumar
Contributor I

Hi Everybody,

 

I'm trying to activate the system timer module (STM) on a MPC564xB board and try to read it's value.

Does any one of you already have a working code, so that I can re-use the same?

 

Thanks!

Pavan

Labels (1)
Tags (2)
0 Kudos
Reply
1 Solution
1,409 Views
PetrS
NXP TechSupport
NXP TechSupport

Hi,

You are writing to the wrong bit positions. Use following...

STMCR = 0x00005001;

Regards,

Petr

View solution in original post

0 Kudos
Reply
3 Replies
1,409 Views
skpavankumar
Contributor I

Hi Everybody,

I tried to enable the STM module, with a prescalar "0x50" using the below code, but the register value doesn't seem to change.

#define STMCR ( *(volatile unsigned long  *)  0xFFF3C000  );

STMCR = 0x80500000;

Can some one please help me out on this aspect?

Am I missing out on something here?

Is there a protection mechanism which is preventing me to write into this register?

Thanks.

Cheers,

Pavan

0 Kudos
Reply
1,410 Views
PetrS
NXP TechSupport
NXP TechSupport

Hi,

You are writing to the wrong bit positions. Use following...

STMCR = 0x00005001;

Regards,

Petr

0 Kudos
Reply
1,409 Views
skpavankumar
Contributor I

Hi Petr,

Thanks for pointing out the mistake! It now works :-)

Kind Regards,

Pavan

0 Kudos
Reply