Secondary Fifo Memory Map - Galil Motion Control DMC-1600 Series User Manual

Table of Contents

Advertisement

Enabling and Reading IRQ's
In order to service interrupts from the IRQ line, the IRQ control register (Status Byte) must first be
enabled. This is done by setting bit 6 of the control register (N+4) equal to "1".
When interrupted, first the interrupt routine must verify that the interrupt originated from the
DMC-1600 controller. This is done by checking that the IRQ enable and IRQ status bits (bit 5 and
6 of N+4) are high. The Status Byte can then be read by reading the IRQ register at N+8. The
returned Status Byte indicates what event generated the interrupt (for more information on specific
interrupt events, see the EI and UI commands in the Command Reference or the previous section
"Controller Event Interrupts..." in this chapter).
Once the Status Byte has been read, the interrupt must be cleared by writing a "1" to bit-5 of N+4.
Note: to preserve values of other bits, the interrupt service routine should read N+4 and write this
value back to N+4 to clear the interrupt.
Resetting the PC-to-DMC FIFO - To reset the output FIFO, write data to address N+8 where bit
2 is high and all other bits are low.
Resetting the DMC-to-PC FIFO - To reset the input FIFO, write data to address N+8 where bit 1
is high and all other bits are low.
Resetting the Controller - Clearing the FIFO is useful for emergency resets or Abort. For
example, to reset the controller, clear the FIFO, then send the RS command. If the controller is not
responding, it may be necessary to provide a hardware reset to the controller. This can be
accomplished by writing data to address N+8 where bit 7 is high.
Reset Register at N+8
Status Bit
Purpose
7
WRITE
2
WRITE
1
WRITE

Secondary FIFO Memory Map

ADDR
00-01
02
03
04
05
06
07
08
09
10
11
12
13
14
15
DMC-1600
Logic State
1
1
1
TYPE
ITEM
UW
sample number
UB
general input block 0 (inputs 1-8)
UB
general input block 1 (inputs 9-16)
UB
general input block 2 (inputs 17-24)
UB
general input block 3 (inputs 25-32)
UB
general input block 4 (inputs 33-40)
UB
general input block 5 (inputs 41-48)
UB
general input block 6 (inputs 49-56)
UB
general input block 7 (inputs 57-64)
UB
general input block 8 (inputs 65-72)
UB
general input block 9 (inputs 73-80)
UB
general output block 0 (outputs 1-8)
UB
general output block 1 (outputs 9-16)
UB
general output block 2 (outputs 17-24)
UB
general output block 3 (outputs 25-32)
Meaning
Reset Controller
Reset PC_to_DMC FIFO
Reset DMC_to_PC FIFO
Chapter 4 - Software Tools and Communications • 59

Advertisement

Table of Contents
loading

Table of Contents