|
IC-MN Datasheet, PDF (42/59 Pages) IC-Haus GmbH – 25-BIT NONIUS ENCODER WITH 3-CH. SAMPLING 13-BIT Sin/D INTERPOLATION | |||
|
◁ |
iC-MN 25-BIT NONIUS ENCODER
WITH 3-CH. SAMPLING 13-BIT Sin/D INTERPOLATION
COMMAND and STATUS REGISTERS
Rev D1, Page 42/59
Execution Of Internal Commands
The command register at address 0x77 can be ac-
cessed fully independent of the internal state of op-
eration. Depending on the data value written to this
register the execution of an implemented command is
triggered.
MN_CMD
Code
0x0
0x1
0x2
0x3
0x4
...0xF
Addr. 0x77; bit 2:0
W
Command
Description
SOFT_RES
Soft reset
(new startup using
internal conï¬g. data)
WRITE_CONF
Transfers internal conï¬g.
data to the EEPROM
SOFT_PRES
Calls preset routine
CRC_CHECK
CRC veriï¬cation of the
internal conï¬g. data
TOG_BISS
Temporal toggle of
interface protocol:
BiSS C â SSI
No function
Table 70: Implemented commands
The command SOFT_RES resets internal state ma-
chines, counters, and the status registers. The conï¬g-
uration RAM is not reset here. During the command
execution a write access to the conï¬guration RAM is
still possible, whereas the external EEPROM is not ac-
cessible.
If the device is in nonius mode (see page 30), the ï¬rst
conversion is used to determine the period and the re-
sult stored as an initial value for the period fraction of
the internal ï¬ash counter. If an external multiturn de-
vice is conï¬gured (MODE_MT = 00), its data is read
in and stored as the initial value for the multiturn data
fraction of the internal ï¬ash counter.
With WRITE_CONF the internal conï¬guration is stored
to the EEPROM. The CRC (CRC_E2P) is automat-
ically updated and written to address 0x4E or 0x4F.
For a description of the preset routine initiated by
SOFT_PRES see page 50.
CRC_CHECK starts a CRC veriï¬cation of the inter-
nal conï¬guration RAM. During the check the internal
data bus may not be accessed. Should the check not
conï¬rm the conï¬guration data as error free, status bit
EPR_ERR is set.
command can be used for SSI encoders to later enable
parameterization, for example.
Execution Of Protocol Commands
iC-MN supports selected BiSS C protocol commands:
CMD
10
11
Selected address
(IDS > 0x00)
Execute SOFT_PRES
Execute CRC_CHECK
Broadcast address
(IDS = 0x00)
-
-
Table 71: Implemented protocol commands
Automatic Reset Function
AUTORES can be used to set whether the command
SOFT_RES is automatically generated or not if the er-
ror AM_MIN occurs.
AUTORES
Code
00
01
10
11
Addr. 0x44; bit 1:0
Function
No automatic reset
SOFT_RES after error AM_MIN, timeout 8 ms
SOFT_RES after error AM_MIN, timeout 16 ms
SOFT_RES after error AM_MIN, timeout 32 ms
Table 72: Automatic reset function
For as long as the amplitude of the master track is too
low or the AM_MIN error is set, SOFT_RES is active.
When AM_MIN is no longer set, the timeout conï¬g-
ured using AUTORES expires. It is only after this that
SOFT_RES is reset and the device subsequently re-
turns to normal operation.
Should an AM_MIN error occur while a command or
the preset function is being carried out, SOFT_RES is
only implemented once the command has been termi-
nated.
The behavior of the I/O interface with an active
SOFT_RES depends on the protocol selected. For
BiSS C a zero is returned as a data value and the error
and warning bits are set; for SSI the last data value to
be output is repeated (the error bit is set if conï¬gured
via SSIE). In both cases the error state is indicated at
pin NERR by a low signal.
Command TOG_BISS only causes the communication
protocol to switch temporarily (BiSS â SSI, or SSI â
BiSS). RAM parameter NBISS is not altered here. The
|
▷ |