AnsweredAssumed Answered

p1020 time base atomicity

Question asked by bataliero on Jul 12, 2017
Latest reply on Jul 17, 2017 by alexander.yakovlev

Hi,

I have just started working with P1020 PowerPC IC and have my first problem. I was looking into P1020 reference manual and e500 ppc documentation and cannot find answer for my question. 

 

How can I read 64bit value - created as two 32bit lower TBL and 32bit upper TBU registers of Time Base module - and prevent race condition? Is it guaranteed that the value will be correct (registers are latched?). Is there any assembler instruction that can read both registers in atomic way?  Where I can find this kind of info in the doc?

Regards

Outcomes