![Agilent Technologies E1330B User'S Manual And Scpi Programming Manual Download Page 54](http://html.mh-extra.com/html/agilent-technologies/e1330b/e1330b_users-manual-and-scpi-programming-manual_2867439054.webp)
52 Understanding the Agilent E1330B Digital I/O Module
Chapter 4
operations. For a single port, the data lines number and bit numbers are:
In this manual the physical data lines are indicated as Dn-1. The n should be
replaced with the port number for the input operation. For example, bit 3 of
port 2 affects the state of data line D2-3.
Byte Output
The SCPI command syntax to send an 8-bit byte to a data port is:
[SOURce:]DIGital:DATA
n
[:BYTE][:VALue] [<
base
>]<
value
>
This command instructs the Digital I/O module to set the port n data lines to
<
value
>
using the output handshake. The optional parameter
<
base
>
defines
the numbering system to use to implement
<
value
>
on the data lines. There
are four values allowed for
<
base
>
:
The TTL levels set on the data lines depends upon the programmed port
polarity. In the default state (POSitive polarity) a TTL high level will be set
for any bit set to 1. For example, the following four BASIC program lines
all perform the same function and set the same data lines on port 3:
120
OUTPUT @Dio;"DIG:DATA3 170"
120
OUTPUT @Dio;"DIG:DATA3 #HAA"
120
OUTPUT @Dio;"DIG:DATA3 #Q252"
120
OUTPUT @Dio;"DIG:DATA3 #B10101010"
If port 3 is in the default POSitive polarity mode, the TTL levels set on the
data lines by any of the program lines above will be:
Port numbers range from 0 to 3 for single port operations. The section
“Multiple Port Operations” beginning on page 53 describes port numbering
and byte order for multiple port operations. For single port operations, the
most significant bit is bit 7. The table below shows the bit numbers and data
lines.
D
n
-7
D
n
-6
D
n
-5
D
n
-4
D
n
-3
D
n
-2
D
n
-1
D
n
-0
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
no parameter
decimal format
#H
hexadecimal format
#Q
octal format
#B
binary format
TTL level
High
Low
High
Low
High
Low
High
Low
Data line
D3-7
D3-6
D3-5
D3-4
D3-3
D3-2
D3-1
D3-0
D
n
-7
D
n
-6
D
n
-5
D
n
-4
D
n
-3
D
n
-2
D
n
-1
D
n
-0
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
MSB
LSB
Summary of Contents for E1330B
Page 2: ......
Page 10: ...8 Notes ...
Page 11: ...9 Notes ...
Page 12: ...10 Notes ...
Page 32: ...30 Configuring the Agilent E1330B Digital I O Chapter 2 Notes ...
Page 42: ...40 Using the Agilent E1330B Digital I O Module Chapter 3 Notes ...
Page 58: ...56 Understanding the Agilent E1330B Digital I O Module Chapter 4 Notes ...
Page 104: ...102 Agilent E1330B Digital I O Module Command Reference Chapter 5 Notes ...