Examples and register assignments
4.3 Registers
SIMATIC PCIe DIO4
Compact Operating Instructions, 11/2011, A5E03493449-01
25
Output register
OUTP: Output register (BASE + 0x0400)
Bit
Access Name
Default Description
31..0
RW
OUTx
-
Each bit reflects the corresponding output value in
default mode (OUTPxC.SSEL = 0).
OUTPIF: Output interrupt flag register (BASE + 0x0410)
Bit
Access Name
Default Description
31..0
RWC
IFx
0
Each bit reflects the interrupt state of the corresponding
output. If a bit is set, STATUS.OIF is set. If the bit is
written with "1", the bit is reset as well as the
corresponding IFRE/IFFE bits.
OUTPIFR: Output interrupt flag register, rising edge (BASE + 0x0420)
Bit
Access Name
Default Description
31..0
RWC
IFREx
0
Each bit reflects the interrupt state "Rising edge" of the
corresponding output. If a bit is set, STATUS.IIF is set. If
the bit is set, the corresponding OUTPIF.IF is set. If the
bit is written with "1", the bit is reset.
OUTPIFF: Output interrupt flag register, falling edge (BASE + 0x0430)
Bit
Access Name
Default Description
31..0
RWC
IFFEx
0
Each bit reflects the interrupt state "Falling edge" of the
corresponding output. If the bit is set, the corresponding
OUTPIF.IF is set. If the bit is written with "1", the bit is
reset.
OUTP0C: Output x configuration register (BASE + (x*8))
Bit
Access Name
Default Description
63..46 RO
0
Reserved
45..40 RW
SSEL
0
Selection of output source, see "Output sources"
39..38 RO
0
Reserved
37..36 RW
OMODE
0
Selection of output mode: 00: Normal, 01 = Changing
(1→0, 0→1)
35..33 RW
DMODE
0
Selection of output detect mode:
000: High level
001: Low level
100: Rising edge only
101: Falling edge only
110: Rising and falling edge
32
RO
OS
0
Status of the output selection. If "1", the output is
enabled.
31..4
RO
0
Reserved