cancel
Showing results for 
Search instead for 
Did you mean: 

SPC5 Timebase Example?

VMiki.1
Associate II

Specifically for the SPC58 -- although it looks like the 56/57 share the same registers. I've reviewed the documentation for the time base registers (TBU/TBL) and have made an attempt to enable it. Leaving the timebase clock (SEL_TBCLK) at the processor clock the documentation indicates I should enable the timebase by writing 0x1 to HID0[TBEN].

I've applied the the required syncronization before and after the mtspr instruction (HID is SPR 1008). HID0[TBEN] continues to indicate it is not enabled and the TBL/TBU registers are inaccessible. I can toggle on the ICR bit (or many others in the HID0 register), but TBEN continues to elude me.

What basic requirement am I missing?

Thanks

This discussion has been locked for participation. If you have a question, please start a new topic in order to ask your question
3 REPLIES 3
Giuseppe DI-GIORE
ST Employee

Hello,

which device are you using ?

please could you specify the complete part number ?

Regards,

Giuseppe

VMiki.1
Associate II

Hello,

I'm using the SPC58EC-DISP discovery kit w/ the SPC58EC80E MCU.

Thanks

ZDimi.1
Associate

Hello,

I am facing similar problem here. Using: SPC58EC80C3

Seems like Timebase is or disabled or not implemented on this device.

How an user may identify which set of HW resources is implemented on particular SPC58?

(The method of trial and error - excluded)

Thank you in advance!