CY325 ETC, CY325 Datasheet - Page 26

no-image

CY325

Manufacturer Part Number
CY325
Description
Stepper System Controller
Manufacturer
ETC
Datasheet
Several commands allow you to specify which User Selectable Bits are used by the command.
The CY545 has at least six general purpose signals available, even if all hardware support
options are used. More bits are available when some hardware support, such as the Hewlett
Packard LED display, the CY233, or the parallel interface are not used. Each of these
commands includes a parameter which specifies which bit or combination of bits to use with the
command. The specific values are discussed with the relevant commands.
One command allows you to set or clear specified bits. It is:
When in the ASCII mode, this command also allows a special format, using a complement prefix
to mean the inverted value of the specified bit parameter. The prefix is the “/” character, and is
used as follows:
The same function may be performed by the bit parameter value. When a “/” character is
detected, it simply complements the fourth bit of the bit value parameter, so the same functions
as above can be specified by:
The “/” character is equivalent to performing an exclusive OR (XOR) of the bit number
parameter and the value 10H (16 decimal).
As seen from the above values, the bit argument is composed of an “opcode” part and an
“operand” part. The general coding of bit arguments is shown below:
© 2002 Cybernetic Micro Systems
B Bit
B 2<cr>
/B 2<cr>
B 02H<cr>
B 12H<cr>
The value of the Bit parameter will determine what action to take, as follows:
00H to 07H
08H to 0FH
10H to 17H
18H to 1FH
20H to 3FH
40H to 7FH
80H to
0C0H to
C
C
C
0BFH.
H
H
0FFH.
H
A
A
A
.
P
P
P
T
T
T
E
E
E
Set or clear specified bits
Set User Selectable Bit 2 high
Clear User Selectable Bit 2 low
Set Bit 2
Clear Bit 2
( ..0-7)
( .8-15)
(
(
(
(
(128-191).
(192-255).
R
R
R
16-23)..
24-31)..
32-63).
64-127).
6
6
6
Bit Function Commands
-
-
-
B
B
B
I
I
I
T
T
T
Set one of user bits 0 to 7
Set one of data bus bits 0 to 7
Clear one of user bits 0 to 7
Clear one of data bus bits 0 to 7
(Same as 00H to 1F)
Set user bits 0 to 5 at one time
AND user bits 0 to 5
OR user bits 0 to 5
F
User Bits
F
F
U
U
U
N
N
N
21
C
C
C
T
T
T
I
I
I
O
O
O
N
N
N
C
C
C
Chapter 6 - Bit Function Commands
O
O
O
M
M
M
M
M
M
www.ControlChips.com
A
A
A
N
N
N
D
D
D
S
S
S

Related parts for CY325