MPC5675K equivalent of "mftb" instruction

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

MPC5675K equivalent of "mftb" instruction

Jump to solution
2,034 Views
matthewclark
Contributor III

I'm trying to port some benchmark code from a 440 core processor to the MPC5675K.  On the 440, I can access the time base register with the "mftb" and "mftbu" inline assembly commands, but Code Warrior will cry on the 5675K:

 

Instruction "MFTB" can not be translated from Classic PPC to VLE PPC.

 

Can anyone point me the right direction?  I tried looking at the VLEPIM, but didn't see anything that looked helpful.

 

Thanks,

 

Matt

Labels (1)
0 Kudos
Reply
1 Solution
1,516 Views
davidtosenovjan
NXP TechSupport
NXP TechSupport

Use syntax

mfspr rD,268 (instead of tbl)

mfspr rD,269 (instead of tbu)

There are different SPR numbers for read and write:

For read - 268/269

For write - 284/285

View solution in original post

0 Kudos
Reply
1 Reply
1,517 Views
davidtosenovjan
NXP TechSupport
NXP TechSupport

Use syntax

mfspr rD,268 (instead of tbl)

mfspr rD,269 (instead of tbu)

There are different SPR numbers for read and write:

For read - 268/269

For write - 284/285

0 Kudos
Reply