NOVA electronics Inc.
MCX514 -
88
-
88
-
■
nPIOm signal reading
The signal levels of nPIOm signals can be read out by RR4, RR5 registers anytime regardless of input/output.
X axis is from D7~D0 bits (XPIO7
~
XPIO0) of RR4 register, Y axis is from D15~D8 bits (YPIO7
~
YPIO0), Z axis is from D7
~
D0 bits (ZPIO7
~
ZPIO0) and U axis is from D15~D8 bits (UPIO7
~
UPIO0).
When the signal is Low level, 0 is displayed and when the signal is Hi level, 1 is displayed.
XPIO0
D7
D6
D5
D4
H
L
D15
D14
D13
D12
D11
D10
D9
D8
D3
D2
D1
D0
RR4
XPIO1
XPIO2
XPIO3
XPIO4
XPIO5
XPIO6
XPIO7
YPIO0
YPIO1
YPIO2
YPIO3
YPIO4
YPIO5
YPIO6
YPIO7
ZPIO0
D7
D6
D5
D4
H
L
D15
D14
D13
D12
D11
D10
D9
D8
D3
D2
D1
D0
RR5
ZPIO1
ZPIO2
ZPIO3
ZPIO4
ZPIO5
ZPIO6
ZPIO7
UPIO0
UPIO1
UPIO2
UPIO3
UPIO4
UPIO5
UPIO6
UPIO7
■
General purpose input
As the functions of an input signal, there are 3 kinds of input signals, general purpose input signal, synchronous input signal and
input signal for driving.
Set 2 bits corresponding to nPIOm signal that is used to 0, 0 and set by PIO signal setting 1 command (21h).
Used as general purpose input signal
The signal levels of nPIO7~0 signals are displayed in RR4, RR5 registers. X axis is from D7~D0 bits (XPIO7
~
XPIO0) of RR4
register, Y axis is from D15~D8 bits (YPIO7
~
YPIO0), Z axis is from D7
~
D0 bits (ZPIO7
~
ZPIO0) and U axis is from D15~D8
bits (UPIO7
~
UPIO0). When the signal is Low level, 0 is displayed and when the signal is Hi level, 1 is displayed.
Used as synchronous input signal
Input change of nPIOm signals can be used as the activation factor of a synchronous action.
For more details of the synchronous action, see chapter 2.6.
Used as input signal for driving by external signals
Relative position driving or continuous pulse driving can be activated by nPIOm signal and but a command.
Perform by using nPIO4, nPIO5 signals, and driving will be activated by the input state or input change of these signals.
For more details of driving by external signals, see chapter 2.12.1.
■
General purpose output
Set 2 bits corresponding to nPIOm signal that is used to 0, 1 and set by PIO signal setting 1 command (21h).
Writing into nPIOm signal is performed by writing into WR4, WR5 registers. X axis is to D7~D0 bits (XPIO7
~
XPIO0) of
WR4register, Y axis is to D15~D8 bits (YPIO7
~
YPIO0) of WR4register, Z axis is to D7
~
D0 bits (ZPIO7
~
ZPIO0) of
WR5register and U axis is to D15~D8 bits (UPIO7
~
UPIO0) WR5register. The values written in each bit are output to PIO7~0
signals in each axis. When 0 is written in the bit, it is Low level output and when 1 is written, it is Hi level output.
XPIO0
D7
D6
D5
D4
H
L
D15
D14
D13
D12
D11
D10
D9
D8
D3
D2
D1
D0
WR4
XPIO1
XPIO2
XPIO3
XPIO4
XPIO5
XPIO6
XPIO7
YPIO0
YPIO1
YPIO2
YPIO3
YPIO4
YPIO5
YPIO6
YPIO7
ZPIO0
D7
D6
D5
D4
H
L
D15
D14
D13
D12
D11
D10
D9
D8
D3
D2
D1
D0
WR5
ZPIO1
ZPIO2
ZPIO3
ZPIO4
ZPIO5
ZPIO6
ZPIO7
UPIO0
UPIO1
UPIO2
UPIO3
UPIO4
UPIO5
UPIO6
UPIO7
■
Drive status output
Drive status can be output to nPIOm signal.
Set 2 bits corresponding to nPIOm signal that is used to 1, 0 and set by PIO signal setting 1 command (21h).
Drive status such as driving, accelerating and decelerating is output from nPIOm signal.
For more details of the status output, see chapter 2.12.7.