English
Language : 

IC-MHM Datasheet, PDF (26/63 Pages) IC-Haus GmbH – 14-BIT ABSOLUTE ANGLE HALL ENCODER
iC-MHM
14-BIT ABSOLUTE ANGLE HALL ENCODER
DIGITAL I/O PORT
Rev D1, Page 26/63
The iC-MHM provides a multi-function 4-bit digital I/O
port that can be configured as general-purpose dis-
crete I/O, dedicated discrete I/O, incremental quadra-
ture (ABZ) outputs, or special calibration outputs. Pa-
rameter CFG_IOP determines the function of the digital
I/O port.
F_IO1
Value
0
1
Address 0x75; bit 1
Function
P1 Drives Weak Low (Force)
P1 Drives Strong High (Force)
Table 29: Discrete Output Instruction Register Bit
F_IO1
CFG_IOP
Value
0
1
2
3
Address 0x03; bits 1:0
Digital I/O Port Function
Discrete I/O (General-Purpose or Dedicated)
Reserved (Do not use)
Incremental Quadrature (ABZ) Outputs
Calibration Signal Outputs
Table 27: I/O Port Function
Because P1 only drives a weak low when F_IO1 = 0,
a buffer on P1 is recommended to provide a robust
output.
To use P1 as a general-purpose discrete input, set
CFG_IOP = 0, PRES_IO1 = 0, and F_IO1 = 0. The
state of P1 is then available as bit S_IO1 in the discrete
input status register.
Refer to Incremental Quadrature (ABZ) Outputs on
page 29 for information on using the digital I/O port
as incremental encoder (ABZ) outputs (CFG_IOP = 2).
S_IO1
Value
0
1
Address 0x71; bit 1
Condition
P1 Low (Sense)
P1 High (Sense)
Refer to CALIBRATION PROCEDURE on page 54 for
information on using the digital I/O port for device cali-
bration (CFG_IOP = 3).
Digital I/O 1 (P1)
P1 can be used as a general purpose discrete input or
output, a dedicated position preset input, incremental
encoder output A, or calibration signal output CS1.
Table 30: Discrete Input Status Register Bit S_IO1
The weak low driven by P1 when F_IO = 0 is overcome
by the input signal when P1 is used as a discrete input.
To use P1 as a dedicated position preset input, set
CFG_IOP = 0 and PRES_IO1 = 1. A position preset
sequence is then initiated when P1 is high.
P1
CFG_IOP
0x03(1:0)
0
0
0
1
2
3
Pin 5
PRES_IO1
0x0B(2)
0
0
1
X
X
X
F_IO1
0x75(1)
0
1
X
X
X
X
Function
Output Low/Input
Output High
Preset Input
Reserved
Inc. Output A
Cal. Signal CS1
Table 28: Digital I/O 1
PRES_IO1
Value
0
1
Addr. 0x0B; bit 2
Function
P1 is General-Purpose Discrete I/O
P1 is Position Preset Input
Table 31: Enable Preset Input P1
When P1 is low, the iC-MHM operates normally. When
P2 is high, a position preset sequence is initiated. Refer
to POSITION OFFSET and PRESET (Zero Position) on
page 55 for more information.
To use P1 as a general-purpose discrete output, set
CFG_IOP = 0 and PRES_IO1 = 0. The state of P1
is then controlled by bit F_IO1 in the discrete output
instruction register.
Digital I/O 2 (P2)
P2 can be used as a general purpose discrete input or
output, a dedicated code direction input, incremental
encoder output B, or calibration signal output CS2.