Table of contents
PA 1500
9
FUNCTIONS OF THE BOARD ................................31
................................................................31
9.1
Block diagram
.......................................................32
9.2
General description
..................................................................33
9.3
Digital inputs
.......................................................33
9.3.1
Read the inputs 1 to 16
...................34
Example with the DEBUG program under DOS:
................................................................34
EXAMPLE in BASIC:
........................................................34
Example in ASSEMBLER
...............................................................34
Example in Pascal
........................................................34
9.3.2
Special input functions
...............................................................................34
Interrupt
...............................................................................35
Counter
................................................................................35
Jumper
......................................................................35
9.3.3
Digital outputs
........................................................36
Features of the outputs
........................................................36
Set the outputs 1 to 16
.................................................................37
Special functions
................................................................................37
Jumper
..........................................................................37
9.4
Interrupt
................................................................................38
Jumper
.................................................................38
9.5
Counter/timer
...............................................................................38
9.5.1
Counter
....................................................................................39
9.5.2
Timer
....................................................................................39
Gate
..................................................................................39
Trigger
................................................................................39
Jumper
....................................................................................39
Data
10
STANDARD SOFTWARE ........................................40
....................................................................40
10.1
Introduction
..................................................41
10.2
Software functions (API)
.......................................................................41
10.2.1 Base address
1)
i_PA1500_InitCompiler (..) ................................................. 41
2)
i_PA1500_SetBoardAddress (...)......................................... 42
3)
i_PA1500_CloseBoardHandle (..) ....................................... 43
...............................................................................44
10.2.2 Interrupt
1)
i_PA1500_SetBoardIntRoutineDos (..) ............................... 44
2)
i_PA1500_SetBoardIntRoutineVBDos (..).......................... 46
3)
i_PA1500_SetBoardIntRoutineWin16 (..) ........................... 48
4)
i_PA1500_SetBoardIntRoutineWin32 (..) ........................... 51
5)
i_PA1500_TestInterrupt (..) ................................................. 56
6)
i_PA1500_ResetBoardIntRoutine (..) .................................. 58
...................................................................58
10.2.3 Kernel functions
1)
i_PA1500_KRNL_Read16DigitalInput (...) ........................ 58
6