PA 1500
Return value:
0: No error
-1: The handle-parameter of the board is wrong
-2: Wrong selection for counter/timer
(PA1500_COUNTER or PA1500_TIMER)
-3: Error with the interrupt selection
(PA1500_ENABLE or PA1500_DISABLE)
-4: User interrupt routine is not installed
-5: Cycle parameter is wrong
(PA1500_CONTINUOUS or PA1500_SINGLE)
-6: Wrong gate parameter
(PA1500_SOFTWARE_GATE or PA1500_HARDWARE_GATE)
-7: Wrong trigger parameter
(PA1500_SOFTWARE_TRIGGER or
PA1500_HARDWARE_TRIGGER)
3)
i_PA1500_InitWatchdogCounter3 (...)
Syntax:
<Return value> = i_PA1500_InitWatchdogCounter3
Parameters:
BYTE
b_BoardHandle
BYTE
b_WatchdogOrCounterSelect
LONG
l_ReloadValue
BYTE
b_ContinuousOrSingleCycleSelect
(BYTE b_BoardHandle,
BYTE b_WatchdogOrCounterSelect,
LONG l_ReloadValue,
BYTE b_ContinuousOrSingleCycleSelect,
BYTE b_HardwareOrSoftwareGateSelect,
BYTE b_InterruptHandling)
Handle of the PA 1500
Selects the mode of the third
counter/watchdog
- PA1500_WATCHDOG: The third
counter/watchdog is used as a watchdog.
- PA1500_COUNTER: The third
counter/watchdog is used as a counter.
This parameter has 2 meanings.
If the counter/watchdog is used as a
counter, it loads the limit value of the
counter.
If the counter/watchdog is used as a
watchdog, it loads the watchdog time.
PA1500_CONTINUOUS: Each time the
counting or timer value is set to "0",
l_ReloadValue is loaded.
- PA1500_SINGLE: If the counting or
timer value is set to "0", the counter or
timer is stopped.
Standard software
73
Need help?
Do you have a question about the ADDINUM PA 1500 and is the answer not in the manual?
Questions and answers