MIL-STD-1553 Reference Manual
Chapter 3 – System Functions
3.1.11 ApiCmdPSCTimerCon
Prototype:
AiInt16 ApiCmdPSCTimerCon( AiUInt32 ul_ModuleHandle, AiUInt8 tmr,
AiUInt8 mode, AiUInt8 con, AiUInt32 tval );
Driver Command:
API_TIMER_CON (0x35)
Purpose:
This function is used to control up to 4 Software PCI and System Controller (PSC)
Timers. The Software Timers are derived from a timer located on the PSC Controller.
This timer is programmable in 1µs steps (tval for mode = 1). Each Software Timer can
be programmed individually with a pre-divider value (tval for mode = 0). This pre-
divider value must be a multiple of the PSC Timer resolution. A Software Timer
interrupt counter for the corresponding Software Timer will be incremented depending
on the pre-divider value. The Software Timer must already be initialized before starting
the PSC Timer. To read the Software Timer interrupt counter refer to the function
ApiCmdTimerIntrCheck.
Example: Timer0 pre-divider : 100
PSC Timer Resolution: 10µs
-> every 1000µs the Timer0 interrupt counter will be incremented.
Note: this function is not supported for all boards. Please see Table B-III – Function
Support By Boards With ASP for details
Input
Timer number (only used in mode 0)
Timer function type
Initialize Software Timer
Timer control (only used in mode 0)