R3765/67G Series Network Analyzer Operation Manual
7.16 Communication with Peripheral Devices
7-167
Usage example of input/output ports C and D
< Example to change routine whether bit-0 of I/O port C is 0 or 1 >
•
Circuit example
•
Program example (Check the port C by pressing “Trigger SW” in example
.)
10
OUTPUT 36 ; 19
Defines ports A and B as output port.
20
OUTPUT 35 ; 80
Defines ports C and D as input port.
30
OUTPUT 35 ; 112
Network analyzer initial setup
100
*TRIG
110
ENTER 34 ; A
120
IF A < > 1 THEN GOTO *TRIG
130
ENTER 35 ; B
Obtains value of port C.
140
IF B = 1 THEN GOTO *ROUT_B
150
*ROUT_A
Process A
490
GOTO *TRIG
500
*ROUT_B
Process B
900
GOTO *TRIG
910
STOP
3
I/O port
Input /output
+5V
Process A
C0
C1
C2
C3
GND
+5V
GND
+5V
21
22
23
1
35
24
Process B
+5V
port
1
...
..
.
..
.