System Timer Module activation on MPC564xB board

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

System Timer Module activation on MPC564xB board

ソリューションへジャンプ
1,675件の閲覧回数
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

ラベル(1)
タグ(2)
0 件の賞賛
返信
1 解決策
1,164件の閲覧回数
PetrS
NXP TechSupport
NXP TechSupport

Hi,

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

STMCR = 0x00005001;

Regards,

Petr

元の投稿で解決策を見る

0 件の賞賛
返信
3 返答(返信)
1,164件の閲覧回数
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 件の賞賛
返信
1,165件の閲覧回数
PetrS
NXP TechSupport
NXP TechSupport

Hi,

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

STMCR = 0x00005001;

Regards,

Petr

0 件の賞賛
返信
1,164件の閲覧回数
skpavankumar
Contributor I

Hi Petr,

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

Kind Regards,

Pavan

0 件の賞賛
返信