TB on MPC5500

View: New views
2 Messages — Rating Filter:   Alert me  

TB on MPC5500

by StevenASchroeder :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

To properly read TBL and TPU to form a 64-bit result, is there a magic
sequence to catch TBL rolling over between the maser's?  Or is it done
the old-fashioned way?

 



[Non-text portions of this message have been removed]


RE: TB on MPC5500

by Randall Young :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

> To properly read TBL and TPU to form a 64-bit result, is there a magic
> sequence to catch TBL rolling over between the maser's?  Or is it done
> the old-fashioned way?


Possibly this is the "old-fashioned way", but it's the best I know :

    mftbu   r5          # load upper word of time base
    mftb    r4          # load lower word of time base
    mftbu   r3          # re-read upper word
    cmpw    r3,r5       # check that upper word didnt change
    beq     got_time    # If not, branch
    mftb    r4          # It changed, have to get new LSW to match
got_time:               # (result in r3:r4)



[None] made the following annotations
---------------------------------------------------------------------
CONFIDENTIALITY. This electronic mail and any files transmitted with it may contain information proprietary to NavCom Technology, Inc., or one of its affiliates, and are intended solely for the use of the individual or entity to whom they are addressed, shall be maintained in confidence and not disclosed to third parties without the written consent of the sender. If you are not the intended recipient or the person responsible for delivering the electronic mail to the intended recipient, be advised that you have received this electronic mail in error and that any use, dissemination, forwarding, printing, or copying of this electronic mail is strictly prohibited. If you have received this electronic mail in error, please immediately notify the sender by return mail.
---------------------------------------------------------------------