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
解決済! 解決策の投稿を見る。
Hi,
You are writing to the wrong bit positions. Use following...
STMCR = 0x00005001;
Regards,
Petr
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
Hi,
You are writing to the wrong bit positions. Use following...
STMCR = 0x00005001;
Regards,
Petr
Hi Petr,
Thanks for pointing out the mistake! It now works :-)
Kind Regards,
Pavan