DA70131-1/3E
I-21
4-5-4. "Input Change Interrupt Flag" area
If a port has been specified in the area for setting Input Change Interrupts, when its port status changes, the center
device will issue an interrupt to a CPU and change the bit to "1."
The interrupt allows the CPU to determine the device number and port number (or status) which changed by
reading this area.
Ex.: To monitor port 2 on device number 0
To read the status of device number 0 you must access address 0E0h.
4 bits correspond to each local device. The lower 4 bits are the Input Change Interrupt Setting area of
the local device with the lowest address number.
The lowest bit among these 4 corresponds to port 0, the next bit corresponds to port 1. The next bits of
it correspond Port 2 and Port 3 respectively.
To check other local devices, specify the address by using the following rule (discard any remainder).
Address = 0E0h + (device number / 2)
The procedure is the same for an 8-bit CPU, except that data will be handled in units of 8 bits.
To clear flags
In order to return a bit to 0 that was changed to a 1 when a change occurred I the input, write a 1 to this bit.
The simplest way to clear a flag is to write the same data back to the same "input change interrupt flag" area
that it was read from.
(For examples of how to use these flags, see point (2) in the "Check and Clear Errors of any existing input-change
interrupts" in "Software examples" in Chapter IV.
4-5-5. "Port data" area
This area is used primarily to set the data for output ports on I/O devices (G9002A), and to check the data from the
input ports.
When the local device is a data device (G9x03, G9004A), this area is used to read status information and set data
for the general-purpose port (if any needs to be set).
To access this area, see the device number and port number described in the address map.
To learn which status register corresponds to which port when the local device is a data device (G9x03 or G9004A),
see the User's manual for each data device (G9x03, G9004A).
(For examples of use, see point (2) in the "Communication with port data" section of "Software Examples" in
Chapter IV.)
Содержание Motionnet G9001A
Страница 1: ...DA70131 1 3E G9001A G9002A User s Manual Center device I O device Remote I O Remote Motion...
Страница 7: ...DA70131 1 3E I 1 I Center device G9001A User s Manual...
Страница 8: ...DA70131 1 3E I 2...
Страница 50: ...DA70131 1 3E I 44...
Страница 51: ...DA70131 1 3E II 1 II I O device G9002A User s Manual...
Страница 52: ...DA70131 1 3E II 2...
Страница 66: ...DA70131 1 3E II 16...
Страница 67: ...DA70131 1 3E III 1 III Connection Examples and Recommended Environments G9000 Series...
Страница 68: ...DA70131 1 3E III 2...
Страница 87: ...DA70131 1 3E IV 1 IV Software Examples flow chart G9001A...
Страница 88: ...DA70131 1 3E IV 2...