MC1151A PMD, MC1151A Datasheet - Page 42

no-image

MC1151A

Manufacturer Part Number
MC1151A
Description
(MC1x51A) Advanced Step Motor Control Chipset
Manufacturer
PMD
Datasheet
RST_INTRPT
Data/direction:
Encoding:
Axis acted on:
Available on:
Double buffered:
RST_INTRPT resets (clears) the interrupt condition bits for the axis that
caused a host interrupt by masking the interrupting axis status word
with the specified data word. In addition, the host interrupt signal
(HostIntrpt pin on I/O chip) is de-activated.The data word is encoded as
a field of bits, with each bit representing a possible interrupting
condition. For each status word event bit a 1 value in the specified word
will cause the status bit to remain unchanged, while a 0 will reset the
corresponding event. The bit encoding is as follows:
If this command is executed when no interrupt condition is
present, the command will have no effect.
GET_INTRPT_MASK
Data/direction:
Encoding:
Axis acted on:
Available on:
Double buffered:
GET_INTRPT_MASK returns the interrupt mask set by the
SET_INTRPT_MASK command. The returned value is a bit-encoded
mask, described in the SET_INTRPT_MASK command.
Status/Mode
CLR_STATUS
Data/direction:
Encoding:
Axis acted on:
Available on:
Double buffered:
CLR_STATUS resets (clears) all of the event bit conditions for the axis
(bits 0-7 of the status word). The host interrupt line is not affected by
this command. This command is useful for clearing all event bits during
initialization, or during on-line usage if the interrupt line and associated
Bit #
0
1
2
3
4
5
6
7
8-15
Event
Motion complete
position wrap-around
breakpoint reached
position capture received
motion error
positive limit switch
negative limit switch
command error
not used, may be set to 0 or 1
interrupting axis
current axis
current axis
Reset interrupting condition events
1/write
32 (hex)
all axes
no
Get host interrupt mask
1/read
56 (hex)
all axes
no
Clear all event bit conditions
none
33 (hex)
all axes
no
42
commands are not being used. For a detailed description of the status
word event bits, see the GET_STATUS command.
This command does not affect the status of the host interrupt line,
only the status event-bits themselves. To reset the host interrupt
line, a RST_INTRPT command must be sent.
RST_STATUS
Data/direction:
Encoding:
Axis acted on:
Available on:
Double buffered:
RST_STATUS resets (clears) the condition event bits for the current
axis, using a data word mask. The data word is encoded as a field of
bits, with each bit representing a possible condition event. For each
status word event bit a 1 value in the specified data word will cause the
status bit to remain unchanged, while a 0 will reset the corresponding
event. The bit encoding is as follows:
GET_STATUS
Data/direction:
Encoding:
Axis acted on:
Available on:
Double buffered:
GET_STATUS returns the status of the current axis.The bit encoding of
the returned word is as follows:
Bit #
0
1
2
3
4
5
6
7
8
9
Bit #
0
1
2
3
4
5
6
7
8-15
Event
motion complete (1 indicates complete)
position wrap-around (1 indicates wrap)
update breakpoint reached (1 indicates reached)
position capture received (1 indicates capture has
occurred)
motion error (1 indicates motion error)
positive limit switch (1 indicates limit switch trip)
negative limit switch (1 indicates limit switch trip)
command error (1 indicates command error)
motor on/off status (1 indicates on)
axis on/off status (1 indicates on)
Event
Motion complete
position wrap-around
breakpoint reached
position capture received
motion error
positive limit switch
negative limit switch
command error
not used, may be set to 0 or 1
Reset specific event bit conditions
1/write
34 (hex)
current axis
all axes
no
Get axis status word
1/read
31 (hex)
current axis
all axes
-

Related parts for MC1151A