MPC5744P: TBL (Time Base Low) not accessible

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

MPC5744P: TBL (Time Base Low) not accessible

跳至解决方案
1,797 次查看
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

标签 (1)
1 解答
1,038 次查看
PetrS
NXP TechSupport
NXP TechSupport

Hi,

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

BR, Petr

在原帖中查看解决方案

6 回复数
1,038 次查看
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 项奖励
1,039 次查看
PetrS
NXP TechSupport
NXP TechSupport

Hi,

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

BR, Petr

1,038 次查看
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,038 次查看
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,038 次查看
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 项奖励
1,038 次查看
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...