Standard software
BYTE
b_HardwareOrSoftwareGateSelect
BYTE
b_InterruptHandling
Task:
Selects the operating mode of the third counter/watchdog. Enter its limit.
You have to decide:
if the counter must execute once or several times the counting operation.
-
if the counter/watchdog is used as a counter or a watchdog
-
if an interrupt must be generated when the counter/watchdog has run
-
down.
and if the external gate is used (if it is used as a counter).
-
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_WATCHDOG)
-3: Interrupt selection error (PA1500_ENABLE or PA1500_DISABLE)
-4: User interrupt routine is not installed
-5: Cycle parameter is wrong
(PA1500_CONTINUOUS or PA1500_SINGLE)
-6: Gate parameter is wrong
(PA1500_SOFTWARE_GATE or PA1500_HARDWARE_GATE)
74
- PA1500_HARDWARE_GATE: Input
16 is used for the gate.
- PA1500_SOFTWARE_GATE: Input
16 has no influence on the gate.
Interrupts can be generated, when the
counter or watchdog has run down.
With this parameter the user decides to
use interrupts 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