
PA 1500
Standard software
Task:
Selects the operating mode of the first counter/timer. The user enters its start
value.
You have to decide:
-
if the counter/timer must execute once or several times the counting
operation.
-
if the counter/timer is used as a counter or a timer
-
and if an interrupt must be generated when the counter/timer has run
down.
Return value:
0: No error
-1: The handle-parameter of the board is wrong
-2: The parameter for selecting the counter or the timer is wrong
(PA1500_COUNTER or PA1500_TIMER)
-3: Error with the interrupt selection
(PA1500_ENABLE or PA1500_DISABLE)
-4: The user interrupt routine is not installed
-5: Cycle parameter is wrong
(PA1500_CONTINUOUS or PA1500_SINGLE)
2)
i_PA1500_InitTimerCounter2 (...)
Syntax:
<Return value> = i_PA1500_InitTimerCounter2
(BYTE b_BoardHandle,
BYTE b_CounterOrTimerSelect,
LONG_ l_ReloadValue,
BYTE
b_ContinuousOrSingleCycleSelect,
BYTE b_HardwareOrSoftwareTriggerSelect,
BYTE b_HardwareOrSoftwareGateSelect,
BYTE b_InterruptHandling)
Parameters:
BYTE
b_BoardHandle
Handle of the
PA 1500
BYTE b_CounterOrTimerSelect
Selects the mode of the 2
nd
counter/timer
- PA1500_TIMER: The 2nd
counter/timer is used as a timer
- PA1500_COUNTER: The 2
nd
counter/timer is used as a counter
LONG
l_ReloadValue
This parameter has 2 meanings.
If the counter/timer is used as a counter,
it loads the start value of the counter.
If the counter/timer is used as a timer, it
loads the divider factor for the output
71
Содержание ADDINUM PA 1500
Страница 4: ......
Страница 12: ...Handling of the board PA 1500 3 HANDLING OF THE BOARD Fig 3 1 Wrong handling Fig 3 2 Correct handling 12 ...
Страница 16: ...Technical data PA 1500 4 4 Component scheme Fig 4 1 Component scheme 16 ...
Страница 29: ...PA 1500 Connecting the peripheral 8 2 Connection examples Fig 8 3 Connection example 29 ...
Страница 30: ...Connecting the peripheral PA 1500 Fig 8 4 Connection to screw terminal and relay output boards 30 ...