Intel IXP400 Frozen Dessert Maker User Manual


 
Intel
®
IXP400 Software
Access-Layer Components: Time Sync (IxTimeSyncAcc) API
Programmer’s Guide IXP400 Software Version 2.0 April 2005
Document Number: 252539, Revision: 007 291
2. Auxiliary Master Timestamp
3. Auxiliary Slave Timestamp
In order to avoid repeated invocation of the Interrupt Service Routing for the “target time reached”
condition, the client application callback routine will need to either disable the interrupt handling,
invoke the API to set the target time to a different value, or change the system timer value.
Figure 98 presents a scenario where the system time and target time are set, a “target time reached”
condition is met, and an interrupt is used to notify the client application. A polled-mode scenario
would operate similarly to what is described in “Polled Mode Operations” on page 291.
20.4.3 Polled Mode Operations
Target Time events and Auxiliary snapshots can also be serviced with polling by the client
application. Figure 99 shows a scenario where the client application uses polling to periodically
retrieve auxiliary snapshot data.
Figure 98. Interrupt Servicing of Target Time Reached Condition
IEEE 1588 Hardware Assist Block
B4394-01
Client Application IxTimeSyncAcc
ixTimeSyncAccSystemTimeSet (systemTime)
ixTimeSyncAccTickRateSet(tickRate)
ixTimeSyncAccTargetTimeSet(targetTime)
Set system time
Set frequency scaling factor
Set target time
Get target time
ixTimeSyncAccTargetTimeInterruptEnable(targetTimeCallback)
Enable Target Time Interrupt
(*IxTimeSyncAccTargetTimeCallback)(targetTime)
Register Callback
Invoke ISR
Invoke Callback
System Time >= Target Time
Interrupt Triggered