Standard software
Return value:
0: No error
-1: The handle parameter of the board is wrong
-2: The digital output memory is OFF. Please first use the function
"i_PA1500_SetDigitalOutputMemoryOn"
10.2.7 Timer/counter and watchdog
1)
i_PA1500_InitTimerCounter1 (...)
Syntax:
<Return value> = i_PA1500_InitTimerCounter1
Parameters:
BYTE
b_BoardHandle
BYTE
b_CounterOrTimerSelect
LONG
l_ReloadValue
BYTE b_ContinuousOrSingleCycleSelect
BYTE
b_InterruptHandling
70
(BYTE b_BoardHandle,
BYTE b_CounterOrTimerSelect,
LONG l_ReloadValue,
BYTE b_ContinuousOrSingleCycleSelect,
BYTE
b_InterruptHandling)
Handle of the PA 1500
Select the mode of the first counter/timer
- PA1500_TIMER: The first
counter/timer is used as a timer
- PA1500_COUNTER: The first
counter/timer is used as a counter
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.
- PA1500_CONTINUOUS: Each time
the counting value or timer value is set
to "0", l_ReloadValue is loaded.
- PA1500_SINGLE: If the counter or
timer value is set to "0", the counter or
timer is stopped.
Interrupts can be generated, when the
counter has run down, or when the timer
output is on high. With this parameter
the user decides if interrupts are used or
not.
- PA1500_ENABLE: Interrupts are
enabled
- PA1500_DISABLE: Interrupts are
disabled
PA 1500
Need help?
Do you have a question about the ADDINUM PA 1500 and is the answer not in the manual?
Questions and answers