MPC5744P: TBL (Time Base Low) not accessible

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

MPC5744P: TBL (Time Base Low) not accessible

Jump to solution
1,782 Views
markpiffer
Contributor II

Is the TB core register implemented in this MCU at all? I keep getting an exception when trying to do a "mftbl r3" in inline assembly.

Also, trying to set the TBEN bit in HID0 didn't work either, the register bit remains unset when trying to write it to 1. The Lauterbach debugger doesn't even display the TBEN bit in HID0, so is it there at all?

 

regards,

Mark

Labels (1)
1 Solution
1,023 Views
PetrS
NXP TechSupport
NXP TechSupport

Hi,

MPC5744P does not have the Time base module implemented in the core.

BR, Petr

View solution in original post

6 Replies
1,023 Views
nxppower912935
Contributor IV

What is the best way to assess fine-resolution timing characteristics of code and peripheral actions then, on this core?

From what I read, this question is still pending to be answered...?!

Any suggestions?

KR

0 Kudos
1,024 Views
PetrS
NXP TechSupport
NXP TechSupport

Hi,

MPC5744P does not have the Time base module implemented in the core.

BR, Petr

1,023 Views
markpiffer
Contributor II

Hohum... I wonder what a standard like the PPC Architecture Books are for, then. There is no hint in any of the documents, on the contrary, the e200z4 core documents explizitly mention the Time Base and even the Alternate Time Base (ATB) registers.

What is the best way to assess fine-resolution timing characteristics of code and peripheral actions then, on this core?

1,023 Views
rweiss
Contributor V

You have to look at the core name more closely.

MPC5748G has the cores e200z210n3 and e200z4204n3, which don't have a timebase support.

In MPC56XX processors you'll find e200z4d (MPC5643L) or e200z448n3 (MPC5644A), which include timebase support.

1,023 Views
markpiffer
Contributor II

And the core names help what exactly? There is neither a document describing the core nor is there a mention of the missing TB in the AN4802 (Core differences). And leaving out such a basic register (contradicting every conceivable meaning of PowerPC *standard*) is IMHO a flawed (engineering) decision :smileyangry:

0 Kudos
1,023 Views
alexvinchev
Contributor V

Implementation of cores is dependent on feature set implemented for certain core revision. For example on MPC5748G I was looking for DEC/DECAR (spr22/spr54), as they are defined in e200z4RM, but amazingly, they are not present in z4 core implementation, built in MPC5748G. While comparing picture, shown on page 2876 of MPC5748GRM with page 8 of e200z4RM became obvious that DEC/DECAR are not implemented at all in my MCU... In other words, look thoroughly your documentation and compare pictures present there with the ones in e200z4RM. This will give you idea what is implemented and what is not... In my case absence is because supervisor feature set (if I remember well) is not implemented. On second look today, TBx is also absent in this core as well as PSU registers for example...

I don't have access to MPC5744PRM to check if this is your case as well...