Manual ME-582x Series
Revision 0.9
4 Programming
page 26
Meilhaus Electronic
Picture 14: Counter in Single
4.1.3.1
Standard Operation Modes
The counters can be configured independently of one another by the func-
tion
meIOSingleConfig()
for the following 6 operation modes (a detailed
description of the modes can be found in the ME-iDS manual):
Mode 0: Change state at zero
Mode 1: Retriggerable „One Shot“
Mode 2: Asymmetric divider
Mode 3: Symmetric divider
Mode 4: Counter start by software trigger
Mode 5: Counter start by hardware trigger
Please read picture 9 on page 17 for the wiring of the opto-isolated coun-
ter signals.
4.1.3.2
Pulse Width Modulation
With the wiring shown in picture 10 on page 19 you can simplify program-
ming considerably using the functions
meUtilityPWMStart!Stop
for this op-
eration mode (see also ME-iDS manual and ME-iDS help file).
4.2
Interrupt Operation
ME-5820
ME-5821
✔
✔
With the ME-582x you can monitor the bit-pattern of the 16-bit-wide input
ports of subdevice 0 of the ME-5820 board (DI_A0..15) as well as subde-
vice 5 additionally of the ME-5821 board (DI_C0..15). Depending on the
application you can select one of the operating
modes “bit-pattern com-
p
are” and “bit-pattern change”. As soon as the first edge that meets the
trigger condition arrives, an interrupt is issued and passed directly to the
PC.
Programming the digital input/output is carried out in the operation mode
single. The subdevice must have the type ME_TYPE_DI. The interrupt
processing is controlled with the functions
meIOIrq
…