AnsweredAssumed Answered

Accessing timer registers in P4080DS

Question asked by Rahul Garg on Mar 11, 2016
Latest reply on Mar 11, 2016 by Rahul Garg

Hi there,

I am trying to use a timer for profiling my bare-metal code on P4080DS but I couldn't find much info on it.

The e500mc Core reference manual says that there are timers like TB which can be configured and used. However, it does not have much info on using them. There is a small code snippet but it is in assembly language:

 

12825319_1300544763295660_617552403_n.jpg

 

 

It will be helpful if I can get either of the two:

 

1) A code snippet (in C) which shows how to configure and read/write the timer registers.

2) A code snippet on how to embed the above assembly code in my C code.

 

TIA,

- Rahul

Outcomes