Pepper Computer Modular Computers RS232 User Manual

Page of 320
SMART I/O User’s Manual
©1996 PEP Modular Computers GmbH
October 01, 1996
Page 6 - 25
6
Chapter 6  Communications Modules
6.2.7.9 STAT2 Register
PE
parity error on last transmission (True/False)
TC
transmission complete (True/False)
ER1 current status of end-of-range switch 1
ER2 current status of end-of-range switch 2
MH comparison match (True/False)
6.2.7.10 Data Register
The data register, cleared after a power-on reset is a 24-bit register containing
the result of the last encoder reading. When using encoders with less than 24-
bit data, the result is always aligned from the lowest significant bit and the
used upper bits are always cleared.
Note
Interrupt pending flags (IP0 - IP4) are set by the interrupt source if the
corresponding line is not masked in the CTRL1 register. All flags are
cleared when the STAT1 register is read.
Note
The MH flag is set internally as soon as the encoder reaches the preset
register value with the flag being cleared immediately the status is read.
This feature is intended for use with the board in automatic mode to allow
slow polling of the status registers while ensuring that a match is not lost.
S T 2 - 7
S T 2 - 6
S T 2 - 5
S T 2 - 4
S T 2 - 3
S T 2 - 2
S T 2 - 1
unused
unused
unused
MH
ER2
ER1
TC