![Nova Electronics MCX514 User Manual Download Page 214](http://html1.mh-extra.com/html/nova-electronics/mcx514/mcx514_user-manual_1710400214.webp)
NOVA electronics Inc. MCX514 -
201
-
201
-
7.3.2
PIO Signal Setting 1
Code
Command
Symbol
Data Length (byte)
21
h
PIO signal setting 1
P1M
2
“P1M” is the parameter setting the function of nPIO7~0 signals. nPIO7~0 signals can be used for the general purpose input /
output signals, synchronous input signals, synchronous pulse output signals, drive status output signals, MR
m
comparison output
signals and driving by external signals.
WR6
D7
D6
D5
D4
H
L
D15
D14
D13
D12
D11
D10
D9
D8
D3
D2
D1
D0
P1M0 P0M1
P2M0
P3M0
P0M0
P1M1
P2M1
P3M1
nPIO0
signal
nPIO1
signal
nPIO2
signal
nPIO3
signal
P4M0
P5M0
P6M0
P7M0
P4M1
P5M1
P6M1
P7M1
nPIO4
signal
nPIO5
signal
nPIO6
signal
nPIO7
signal
D1,0 P0M1,0
Setting the nPIO0 signal function.
D3,2 P1M1,0
Setting the nPIO1 signal function.
D5,4 P2M1,0
Setting the nPIO2 signal function.
D7,6 P3M1,0
Setting the nPIO3 signal function.
D9,8 P4M1,0
Setting the nPIO4 signal function.
D11,10 P5M1,0
Setting the nPIO5 signal function.
D13,12 P6M1,0
Setting the nPIO6 signal function.
D15,14 P7M1,0
Setting the nPIO7 signal function.
Each function is shown as follows.
(
k:0
~
7
)
PkM1 bit
PkM0 bit
Function
0
0
General purpose input
nPIO7~0 signals become an input state. The signal level of each axis can be read by the
following register: X axis from D7~0 of RR4, Y axis from D15~8 of RR4, Z axis from
D7~0 of RR5 and U axis from D15~8 of RR5 register.
In synch
ronous action, it can be activated by the signals ↑ or ↓.
In driving by external signals, relative position driving or continuous pulse driving can be
activated by nPIO4, 5 signals.
0
1
General purpose output
nPIO7~0 signals become an output state. The values of WR4, 5 registers are output to
the following bit of each axis respectively: D7~0 of WR4 are output to PIO7~0 of X axis,
D15~8 of WR4 to PIO7~0 of Y axis, D7~0 of WR5 to PIO 7~0 of Z axis and D15~8 of
WR5 to PIO7~0 of U axis.
When the value is 0, it is Low level output and when is 1, it is Hi level output.
1
0
Drive status output
nPIO7~0 signals become an output state and each signal outputs the drive status as
shown in the following table.
1
1
Synchronous pulse
・
MRm comparison output
nPIO7~0 signals become an output state. nPIO3~0 output synchronous pulses and
nPIO7~4 output MRm comparison value. The comparative object and comparison
condition can be set by multi-purpose register mode setting command (20h).
The function of each nPIOm signal is shown as follows.