EasyManua.ls Logo

Aim MIL-STD-1553 - Apicmdpsctimercon

Aim MIL-STD-1553
502 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
MIL-STD-1553 Reference Manual
87
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
A
A
i
i
U
U
I
I
n
n
t
t
8
8
t
t
m
m
r
r
Timer number (only used in mode 0)
Value
Constant
Description
0
API_TIMER_1
Timer/Counter 0
1
API_TIMER_2
Timer/Counter 1
2
API_TIMER_3
Timer/Counter 2
3
API_TIMER_4
Timer/Counter 3
A
A
i
i
U
U
I
I
n
n
t
t
8
8
m
m
o
o
d
d
e
e
Timer function type
Value
Constant
Description
0
API_INIT_TIMER
Initialize Software Timer
1
API_START_TIMER
Start PSC Timer
2
API_STOP_TIMER
Stop PSC Timer
A
A
i
i
U
U
I
I
n
n
t
t
8
8
c
c
o
o
n
n
Timer control (only used in mode 0)
Value
Constant
Description
0
API_DIS
Disable
1
API_ENA
Enable

Table of Contents

Other manuals for Aim MIL-STD-1553