Texas Instruments Tiris 2000 Series User manual

CHAPTER 3
1
Possible Responses
Series 2000 Reader System
ASCII Protocol
Reference Guide
11-06-21-052 May 2000

2
May ’00 Preface
Edition One - May 2000
This is the first edition of this manual, it describes the ASCII software protocol that
can be used with the TIRIS Series 2000 Readers (RI-STU-MBxA, RI-STU-251B),
and the Series 2000 Control Module (RI-CTL-MBxA).
Texas Instruments (TI) reserves the right to make changes to its products or services
or to discontinue any product or service at any time without notice. TI provides cus-
tomer assistance in various technical areas, but does not have full access to data
concerning the use and applications of customer's products.
Therefore, TI assumes no liability and is not responsible for customer applications or
product or software design or performance relating to systems or applications incor-
porating TI products. In addition, TI assumes no liability and is not responsible for
infringement of patents and/or any other intellectual or industrial property rights of
third parties, which may result from assistance provided by TI.
TI products are not designed, intended, authorized or warranted to be suitable for life
support applications or any other life critical applications which could involve poten-
tial risk of death, personal injury or severe property or environmental damage.
The TIRIS logo and the words TIRIS and Tag-it are trademarks or registered trade-
marks of Texas Instruments Incorporated.
Copyright 2000 Texas Instruments Incorporated (TI)
This document may be downloaded onto a computer, stored and duplicated as nec-
essary to support the use of the related TI product(s). Any other type of duplication,
circulation or storage on data carriers in any manner not authorized by TI represents
a violation of the applicable copyright laws and shall be prosecuted.

PREFACE
3
Read This First
About This Guide This manual describes the ASCII protocol that can be used for communication be-
tween the TIRIS Series 2000 readers (RI-STU-MBxA, RI-STU-251B) and Series
2000 control module (RI-CTL-MBxA) with RFM (we will refer to this as the reader
from this point on) and a host system (we will refer to this as a PC from this point on).
It describes the commands that can be used, together with their effect, and provides
examples of each of these commands.
Conventions
If You Need Assistance
Application Centers are located in Europe, North and South America, the Far East
and Australia to provide direct engineering support. For more information, please
contact your nearest TIRIS Sales and Application Center. The contact addresses can
be found on our home page:
http://www.tiris.com
WARNING:
A WARNING IS USED WHERE CARE MUST BE TAKEN, OR ACERTAIN
PROCEDURE MUST BE FOLLOWED IN ORDER TO PREVENT INJURY
OR HARM TO YOUR HEALTH.
CAUTION:
This indicates information on conditions which must be
met, or a procedure which must be followed, which if not
heeded could cause permanent damage to the equipment
or software.
Note:
Indicates conditions which must be met, or procedures which must be
followed, to ensure proper functioning of the equipment or software.
Information:
Indicates information which makes usage of the equipment or soft-
ware easier

4
ASCII Protocol - Reference Guide May ’00
Document Overview Page
Chapter 1: Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
1.1 Product Description............................................................................ 6
1.2 Transponder Detection (RO, R/W or MPT)........................................ 6
1.3 Data Handling..................................................................................... 7
1.4 Handshake Mode............................................................................. 10
Chapter 2: Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
2.1 Introduction....................................................................................... 13
2.2 Reader Mode Commands ................................................................ 13
2.3 General Commands ......................................................................... 13
2.4 64-Bit Transponder - K0 Mode......................................................... 22
2.5 Multipage Transponder - K1 Mode................................................... 30
Chapter 3: Possible Responses . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44
3.1 Possible Reading Responses .......................................................... 45
3.2 Possible Programming Responses in MPT Mode (K1).................... 46
List of Tables Page
Table 1: General Commands....................................................................... 13
Table 2: Input Line Status ............................................................................ 16
Table 3: Input Line Status ............................................................................ 16
Table 4: Output Line Settings....................................................................... 17
Table 5: Port Specifier for H Command ....................................................... 19
Table 6: Logical Operation for H Command................................................. 19
Table 7: Port Value ...................................................................................... 19
Table 8: 64-bit Transponder Commands ..................................................... 22
Table 9: Multipage Transponder Commands............................................... 30
Table 10: Multiplexer I/O Lines 6 & 7 Configuration..................................... 34
Table 11: Multiplexer I/O Lines4 & 5 Configuration...................................... 34
Table 12: Multiplexer I/O Lines 6 & 7 Configuration..................................... 37
Table 13: Multiplexer I/O Lines4 & 5 Configuration...................................... 37

CHAPTER 1
5
Introduction
Chapter 1: Introduction
This chapter will introduce you to the ASCII protocol. It explains the environment in
which the protocol is used, system modes, functions, and how the different types of
transponder used by TIRIS systems are identified.
Topic Page
1.1 Product Description...................................................................................6
1.1.1 Microcomputer Reset.............................................................................6
1.1.2 Transmit Function ..................................................................................6
1.2 Transponder Detection (RO, R/W or MPT)...............................................6
1.3 Data Handling.............................................................................................7
1.3.1 Data Check ............................................................................................7
1.3.2 Data Buffer.............................................................................................7
1.3.3 Data Conversion ....................................................................................8
1.3.3.1 TIRIS Industrial Format................................................................8
1.3.3.2 TIRIS Animal Format....................................................................8
1.4 Handshake Mode......................................................................................10

6
ASCII Protocol - Reference Guide May ’00
1.1 Product Description
This is a simple protocol that you can use to send ASCII character commands to the
reader. It is possible to use a standard terminal emulator program to send ASCII
commands. The ASCII protocol can only be used with RS232 or RS422.
1.1.1 Microcomputer Reset
TIRIS readers and control modules are equipped with a reset circuit which resets
them after power-up and if a supply voltage break-down occurs. A built-in watch-dog
function secures re-initialization should a microcomputer malfunction happen. After
each initialization the ASCII character STX (STX = 2dec), together with carriage re-
turn and line feed are transmitted via the serial interface. Any characters which may
be transmitted before the STX character are random characters caused by power-on
of the interface circuit and are not relevant.
1.1.2 Transmit Function
The reader can operate in four different modes. In EXECUTE mode the reader trig-
gers a single command. In NORMAL, LINE and GATE modes (GATE mode is only
possible in K0) the read function is continuously triggered by the reader or control
unit. The time between two readout cycles depends on the data processing time and
the duty cycle pause. While the RF Module is in the transmitting phase, the red AC-
TIVE LED is activated.
1.2 Transponder Detection (RO, R/W or MPT)
The TIRIS readers and control modules are able to distinguish between three tran-
sponder types, they are:
Read Only = RO
Read/Write= R/W
Multipage = MPT
A character reflecting the transponder type is transmitted to the Computer (PC) with-
in the serial protocol. The characters are: R for Read Only, W for Read/Write, and M
for Multipage Transponders.
Examples:
Serial Protocol Comment
1R 0000 0000000120672337<CR><LF> RO detected in NORMAL mode (K1)
R 0000 0000000130655388<CR><LF> RO detected in NORMAL mode (K0)
LW 0000 0000000013444555<CR><LF> R/W detected in LINE mode (K0)
L1W 0000 0000000013264565<CR><LF> R/W detected in LINE mode (K1)
X1R 0000AFC234567ABC<CR><LF> RO detected in EXECUTE mode
(hexadecimal output format)
L10M 05 1234
1234123434567653<CR><LF> MPT detected in LINE mode
X10M 11 FFFFFFFFFFFFFFFF<CR><LF> MPT detected in EXECUTE mode
(hexadecimal output format)

7
May ’00 Chapter 1. Introduction
1.3 Data Handling
1.3.1 Data Check A data check is always performed on the data signal received from the transponder.
Three different reading status are possible when attempting to read a transponder:
- Identification correctly received
- Invalid Identification
- No Identification detected (no read)
After addressing MPTs, however, the TIRIS reader sends out different protocols as
described in sections 3.1 and 3.2.
In all cases the following is true:
If the identification number is correct, the green O.K. LED is activated.
If a transponder protocol could not be detected, or only a start byte could be de-
tected the green O.K. LED will not be activated.
In LINE or EXECUTE mode the ASCII character ' I ' will be sent to the PC if at
least the start byte of a transponder protocol could be detected.
Examples:
1.3.2 Data Buffer In NORMAL mode (see 2.4.8 and 2.5.3), a correctly received identification number
is transmitted via the serial interface only if it is different to the previously received
transponder identification. The comparison includes the transponder type (RO, R/W
or MPT), read page (if an MPT was read) and the identification number.
For this purpose the last transponder information received is stored in an identifica-
tion data buffer, located in the microcomputer RAM, and each correctly received in-
formation together with its transponder type (RO, R/W and MPT (if in Multipage
Transponder mode)) are compared to the content of this buffer. The buffer is cleared
by a microcomputer reset or by the PC command CLEAR (2.3.3).
Serial Protocol Comment
LW 0000 0000000023450607<CR><LF> TIRIS reader in LINE mode read correct
R/W ID
L10M 05 1234 1234123434567653<CR><LF> MPT detected in LINE mode
XR 0000 5674895692567054<CR><LF> TIRIS reader in EXECUTE read correct
RO ID
LI<CR><LF> Reader in LINE mode (invalid ID)
XI<CR><LF> Reader in EXECUTE mode (invalid ID)
L<CR><LF> Reader in LINE mode (no read)
X<CR><LF> Reader in EXECUTE mode (no read)
Note:
In a noisy environment, it could occur that the invalid ID character is
generated, even when there is no transponder within the reading
area.

8
ASCII Protocol - Reference Guide May ’00
1.3.3 Data Conversion
TIRIS Read Only transponders can be split into two groups with regard to their num-
bering system. These two groups are Animal Code numbers (according to ISO
11784/11785) described in section 1.3.3.2 and Industrial (non-Animal) numbers de-
scribed in section 1.3.3.1.
Read/Write and Multipage Transponders are not affected by the ISO 11784/11785
and are therefore only for use with the Industrial numbering.
1.3.3.1 TIRIS Industrial Format
In the default decimal output format, when the most significant bit of the RO Tran-
sponder ID is 0 or for a R/W or Multipage Transponder, the 12 most significant bits
of the 64-bit identification number are converted into a 4-digit decimal application
code (0000 to 4095). The least significant 52 bits of the identification number are con-
verted into a 16-digit decimal identification code (0000000000000000 to
4503599627370495).
Indicator for an Industrial string in K0 Line mode:
LR 0127 4503599627370495TIRIS decimal output format
|| |
| | |________ Identification Code
||
| |_________________ Application Code
|
|_____________________ Indicator for a Industrial coded RO Transponder
(MSB of the Transponder ID is 0)
For information about changing the output format to hexadecimal, see section 2.3.2
"FORMAT command".
1.3.3.2 TIRIS Animal Format
In decimal output format and when the most significant bit of a RO Transponder ID
is 1 (Animal coded Transponder ID), the 64 bits of the ID are split into five fields, de-
scribed by means of an ID example below. An 'A' is always sent within the response
string to indicate "Animal", instead of the 'R' to indicate a RO Transponder using the
Industrial numbering.
Example:

9
May ’00 Chapter 1. Introduction
These codes are transferred in ASCII format via the serial interface using the exam-
ple output format:
LA 00000 0 999 000000000232 Output format of an Animal coded Transponder
|||| |
| | | | |_______ Decimal National Identification Code
||||
| | | |_______________ Decimal ISO 3166 numeric-3 Country Code
|||
| | |__________________ Additional Data Flag
||
| |_______________________ Decimal representation of the reserved Bits
|
|___________________________ Indicator for an Animal coded RO Transpon-
der (MSB of the Transponder ID is 1)
For information about changing the output format to hexadecimal, see section 2.3.2
"FORMAT command".
Transponder number:
2048 0274603029037288
Dec
Or 8000F9C0000000E8
Hex
1000 0000 0000 0000 1111 1001 1100 0000 0000 0000 0000 0000 0000 0000 0000 1110 1000
8000F9C000 00000 E8
MSB LSB
1 00000000000000 0 111110011 00000000000000000000000000000011101000
1 Bit 14 Bits 1 Bit 10 Bits 38 Bits
MSB LSB
Animal
coded
Trp. Flag
Reserved Additional
Data Flag
ISO 3166 numeric-3
Country Code National Identification Code
111110011
Bin
00000000000000000000000000000011101000
Bin
OR OR
3E7
Hex
0000000E8
Hex
OR OR
999
Dec
232
Dec
The ID Split according to ISO 11784 is:

10
ASCII Protocol - Reference Guide May ’00
1.4 Handshake Mode
Data transmission from the TIRIS reader can be influenced by an external device
(computer or printer) using the Xon/Xoff handshake mode to prevent a communication
buffer overflow. Transmission of the ASCII character Xoff (Xoff = 19dec) to the Reader
interrupts the data flow, but carries on reading until the internal transmission buffer
is full at which time it disables the read function.
This option can be switched off during a configuration session.
Sending Xon (Xon = 17dec) to the TIRIS reader terminates the Xoff state and returns
the system to the function that it was in before Xoff was sent to it.

CHAPTER 2
11
Commands
Chapter 2: Commands
This chapter describes the commands that can be sent to the reader or control mod-
ule from the controlling computer and the modes that the reader or control module
can work in.
Topic Page
2.1 Introduction..............................................................................................13
2.2 Reader Mode Commands........................................................................13
2.2.1 64-bit Transponder Mode or K0 Mode .................................................13
2.2.2 Multipage Transponder Mode or K1 Mode...........................................13
2.3 General Commands.................................................................................13
2.3.1 Version Command ...............................................................................14
2.3.2 FORMAT Command ............................................................................14
2.3.3 CLEAR Command................................................................................15
2.3.4 READOUT BUFFER Command...........................................................15
2.3.5 I/O STATUS Command........................................................................15
2.3.6 SET OUTPUTS Command ..................................................................17
2.3.7 COMBINED Commands - SET OUTPUT & GET I/O Status................18
2.3.8 SET CHARGE PERIOD Command .....................................................21
2.4 64-Bit Transponder - K0 Mode................................................................22
2.4.1 EXECUTE Command...........................................................................22
2.4.2 GATE Mode .........................................................................................22
2.4.3 STORE Command ...............................................................................23
2.4.4 READ MEMORY Command ................................................................24
2.4.5 RAM FILL Command ...........................................................................24
2.4.6 NUMBER Command............................................................................25
2.4.7 LINE Function ......................................................................................25
2.4.8 NORMAL Mode/ESCAPE ....................................................................26
2.4.9 PROGRAM Command.........................................................................26
2.4.10ANTENNA Commands.........................................................................28
2.4.10.1 ANTENNA 1 Mode.....................................................................28
2.4.10.2 ANTENNA 2 Mode.....................................................................28
2.4.10.3 TOGGLE Mode ..........................................................................29

12
ASCII Protocol - Reference Guide May ’00
Topic Page
2.5 Multipage Transponder - K1 Mode.........................................................30
2.5.1 EXECUTE Command...........................................................................31
2.5.1.1 Execute Command.....................................................................31
2.5.1.2 Execute Command with TX/RX Multiplexer Support..................32
2.5.2 LINE Function ......................................................................................35
2.5.2.1 Line Function..............................................................................35
2.5.2.2 Line Function with TX/RX Multiplexer Support...........................36
2.5.3 NORMAL Mode....................................................................................38
2.5.4 PROGRAM Command.........................................................................39
2.5.5 LOCK PAGE Command.......................................................................40
2.5.6 ANTENNA Commands.........................................................................41
2.5.6.1 ANTENNA 1 Mode.....................................................................41
2.5.6.2 ANTENNA 2 Mode.....................................................................42
2.5.6.3 TOGGLE Mode ..........................................................................42

13
May ’00 Chapter 2. Commands
2.1 Introduction
If a PC is connected to the interface, the transmitted application and identification
codes can be stored, converted to other formats, displayed on the PC monitor or
transferred to other equipment. In addition the PC can control the operation of the
TIRIS reader by sending special command characters to it. All the commands that
can be sent from the PC to the TIRIS reader are described in the following sections.
The TIRIS reader accepts both upper and lower case command characters. In order
to provide a uniform style, all examples we have given use upper-case command
character.
2.2 Reader Mode Commands
All TIRIS transponder types fall into one of two groups of transponders: Multipage
Transponders (MPTs) and 64-bit transponders (ROs and R/Ws). Since both of these
transponder groups need different protocols, the TIRIS reader must be able to oper-
ate in two different modes.
2.2.1 64-bit Transponder Mode or K0 Mode
The commands (and responses) that can be used with 64-bit transponders in the K0
mode are described in section 2.4.
2.2.2 Multipage Transponder Mode or K1 Mode
The commands (and their responses) that can be used with multipage transponders
in the K1 mode are described in section 2.5.
2.3 General Commands
The commands that can be used in both modes (K0 and K1) are described in this
section (2.3.1 to 2.3.8) these commands are listed in Table 1.
Note:
The GATE mode for multipage transponders is not supported in K1
mode.
Table 1: General Commands
Character Command Section
B READOUT BUFFER Command 2.3.4
C CLEAR Command 2.3.3
F FORMAT Command 2.3.2
HCOMBINED Command
SET OUTPUTS/GET I/O STATUS 2.3.7
J I/O Status Command 2.3.5
V VERSION Command 2.3.1
Y SET OUTPUTS Command 2.3.6
Z SET CHARGE PERIOD 2.3.8

14
ASCII Protocol - Reference Guide May ’00
2.3.1 Version Command
The ASCII character Vinduces the TIRIS reader to transmit the version number of
the software followed by carriage return and line feed.
Example:
PC --> Reader:
V
Reader --> PC:
S2500 - REV 1.1x<CR><LF>
2.3.2 FORMAT Command
Sending the ASCII character Fto the TIRIS reader causes a change of the output
format of page and identification number from decimal to hexadecimal format.
The character F, carriage return and line feed will be transmitted by the TIRIS read-
er when the command is accepted. Each identification following this command is
done in hexadecimal format until the ESCAPE command is received.
It is now possible to set the hexadecimal format as the default format, using the TIRIS
Reader Manager.
The FORMAT command can be used in the same way for both TIRIS reader modes
(K0 and K1).
Example: Comment
PC --> Reader:
FInitiates Format - command
Reader --> PC:
F<CR><LF> All further identifications are transmitted in
hexadecimal format
Reader --> PC:
X1R FFFFFFFFFFFFFFFF<CR><LF>K1 mode
XR FFFFFFFFFFFFFFFF<CR><LF>K0 mode
L10M 05 ABCFED672889AD38<CR><LF>K1 mode
R 0123456789ABCDEF<CR><LF>K0 mode
Note:
Only the responses from the TIRIS reader to the PC are influenced by
the FORMAT command. The command format from the PC to the
TIRIS reader must always be in hexadecimal format.

15
May ’00 Chapter 2. Commands
2.3.3 CLEAR Command
Regardless of the current transponder mode, the ASCII character Cerases the iden-
tification buffer used in NORMAL mode and sets the ID counter used in GATE mode
to zero. When this task has been performed, the TIRIS reader sends back the ASCII
character C, carriage return and line feed.
The CLEAR command can be used in the same way for both TIRIS reader modes.
Example: Comment
PC --> Reader:
CInitiates Clear - command
Reader --> PC:
C<CR><LF>
2.3.4 READOUT BUFFER Command
The ASCII character Bcauses the TIRIS reader to transmit the ASCII character B
and the content of the buffer (used in NORMAL mode, see section 1.3.2) followed by
carriage return and line feed to the PC. If the buffer is empty, the TIRIS reader
sends back the ASCII character B, carriage return and line feed.
Example: (ID is buffered) Comment
PC --> Reader:
BInitiates Readout Buffer - command
Reader --> PC:
B10M 01 0000 0000000000000001<CR><LF>
Example: (no ID is buffered)
PC --> Reader:
B
Reader --> PC:
B<CR><LF>
2.3.5 I/O STATUS Command
The ASCII character Jcauses the TIRIS reader to transmit the current status of the
four lower I/O and the four higher I/O lines. The result of this function depends on the
configuration of the I/O port lines. During the manufacturing process, the TIRIS read-
er is configured so that I/O lines 0 to 3 are set to input while I/O lines 4 to 7 are set
to output. This configuration can be changed using the TIRIS Reader Manager, the
new setting is then used as default.
When the TIRIS reader receives the command character Jit echoes it back to the
PC together with two ASCII characters which represent the status of the input and
output lines (hexadecimally coded) followed by carriage return and line feed.
The first character after the Jrepresents the status of the I/O lines 0 to 3. Table 2
shows the relationship between the character and the status of the lines.

16
ASCII Protocol - Reference Guide May ’00
1 = Logical high, 0= Logical low
The second character after J represents the status of the I/O lines 4 to 7. Table 3
shows the relationship between the character and the status of the lines:
Table 2: Input Line Status
Returned
Character Status of
I/O 3 Status of
I/O 2 Status of
I/O 1 Status of
I/O 0
00000
10001
20010
30011
40100
50101
60110
70111
81000
91001
A1010
B1011
C1100
D1101
E1110
F1111
Table 3: Input Line Status
Returned
Character Status of
I/O 3 Status of
I/O 2 Status of
I/O 1 Status of
I/O 0
00000
10001
20010
30011
40100
50101
60111
70111
81000
91010
A1010
B1011
C1100
D1101
E1110
F1111

17
May ’00 Chapter 2. Commands
Example: Comment
PC --> Reader:
JCommand character
Reader --> PC:
J2A<CR><LF> Input lines: I/O 0 = 0
I/O 1 = 1
I/O 2 = 0
I/O 3 = 0
Output lines: I/O 4 = 0
I/O 5 = 1
I/O 6 = 0
I/O 7 = 1
2.3.6 SET OUTPUTS Command
The ASCII character Yfollowed by an ASCII character in the range 0to Fcauses the
TIRIS reader to switch four output lines. The way that this works depends on the con-
figuration of the I/O port lines. During the manufacturing process, the TIRIS reader is
configured so that I/O lines 0 to 3 are set to input while I/O lines 4 to 7 are set to out-
put and all the output lines are set to 1. This default configuration can be changed to
a customer specific configuration.
In order for this command to function correctly, a configuration that sets one of the I/
O groups to output is required. This command reads the configuration information
and sets the output level (0 or 1) of the I/Os which are configured to outputs.
If both groups of I/O lines are configured to output, only I/O lines 4 to 7 are set by the
SET OUTPUTS command. When both groups of I/O lines are configured to outputs
you need to use the COMBINED command (described in section 2.3.7).
If both groups of I/O lines are configured to input, the command will not have any ef-
fect.
The relationship between the number (0 to F) and the setting of the output lines is
given in table 3.
Table 4: Output Line Settings
ASCII
Character Status of
I/O 7 Status of
I/O 6 Status of
I/O 5 Status of
I/O 4
00000
10001
20010
30011
40100
50101
60110
70111

18
ASCII Protocol - Reference Guide May ’00
1 = Logical high, 0= Logical low
Once the TIRIS reader has received the command character Yit echoes it to the PC
in order to indicate that the TIRIS reader is ready to receive a parameter (range: 0 to
F) specifying the logic output level. Once the command has been executed the TIRIS
reader sends carriage return and line feed back to the PC.
Example: Comment
PC --> Reader:
YCommand character
Reader --> PC:
Y
PC --> Reader:
1Output lines: I/O 4 = 1
I/O 5 = 0
I/O 6 = 0
I/O 7 = 0
Reader --> PC:
<CR><LF>
2.3.7 COMBINED Commands - SET OUTPUT & GET I/O Status
This command combines and extends the I/O STATUS command (2.3.5) and SET
OUTPUTS command (2.3.6). Once the TIRIS reader has received the command
character Hit echoes it to the PC in order to indicate that the TIRIS reader is ready
to receive further parameters specifying the operation to the I/O ports.
81000
91001
A1010
B1011
C1100
D1101
E1110
F1111
Note:
In order to prevent the TIRIS reader from damage please take care
not to exceed the Electrical Characteristics, given in the relevant man-
ual.
Table 4: Output Line Settings
ASCII
Character Status of
I/O 7 Status of
I/O 6 Status of
I/O 5 Status of
I/O 4

19
May ’00 Chapter 2. Commands
The following parameter (ASCII character) can either be:
Ito specify get the status of input ports, followed by:
port specifier in the range of 0...4 (Table 4 lists the ports specified)
or
Oto specify that outputs are to be set, followed by
port specifier in the range of 0...3 (Table 4 lists the ports specified)
logical operation in the range of 0...4 (Table 5 describes the logical operations)
port value two ASCII characters (Table 6 shows the port values)
If neither I or Ofollows the H command, or if the port specifier and the values for the
logical operation are out of their range, carriage return and line feed are returned,
and no action is performed. Table 5 shows the assignment for the ports.
Table 6 shows the possible logical operations to write to an output. The port value is
either written directly to the output or the port status is read and a logical operation
is performed with the port value, the result of this operation is written back to the port.
Table 7 shows the value or status of the specified port.
Table 5: Port Specifier for H Command
Port Specifier
(ASCII Character) Description
0 Open Collector Outputs
1 I/O Port 0...7
2 I/O Port 0...3
3 I/O Port 4...7
4IN0/1
Table 6: Logical Operation for H Command
Logical Operation
(ASCII Character) Description
0 Port value is written directly to the output
1 Read status ANDed with port value
2 Read status ORed with port value
3 Read status XORed with port value
4Read status is inverted (the port value is in
this case meaningless)
Table 7: Port Value
Status or Port Value Description
00 to 03 Open Collector Outputs
00 to FF I/O Port 0 to 7
00 to 0F I/O Port 0 to 3
00 to 0F Port 4 to 7
00 to 03 (only status) IN 0/1

20
ASCII Protocol - Reference Guide May ’00
Example 1 Comment
PC --> Reader:
H
Reader --> PC:
H
PC --> Reader:
I2 Get Input status of port lines 0...3
Reader --> PC:
03<CR><LF> Return Port status 0...3; in this example
I/O lines 0&1 of the I/O port 0...3 are set to 1
I/O lines 2&3 of the I/O port 0...3 are set to 0
Example 2 Comment
PC --> Reader:
HAssuming, Open Collector outputs were
previously set to OC0=0 and OC1=1
Reader --> PC:
H
PC --> Reader:
O0400 Invert current output settings of the Open Col-
lector outputs. They are now set to OC0=1
and OC1=0
Reader --> PC:
<CR><LF>
Example 3 Comment
PC --> Reader:
HAssuming, I/O port lines 0...7 are configured
to Output and previously set to 'A5'
Reader --> PC:
H
PC --> Reader:
O133F Set outputs 0...7
Logical operation: XOR
Prior output status: A5
Port value: 3F
I/O 7 I/O 0 status
1 0 1 0 0 1 0 1
XOR 0 0 1 1 1 1 1 1 port value
1 0 0 1 1 0 1 0 new output status
Other manuals for Tiris 2000 Series
1
Table of contents
Other Texas Instruments Card Reader manuals