11-5
PC-500 user’s manual
EZ I/O
Table 11-5
EZ I/O port byte
bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0
EZ I/O port
I/O line
x
7
x
6
x
5
x
4
x
3
x
2
x
1
x
0
For example, writing 00011100 to port C (base a 2) will config-
ure port C I/O lines 0, 1, 5, 6, and 7 to be inputs and lines 2, 3, and 4 to
be outputs:
OUT 332h, 1Ch (00011100 binary = 1C hexadecimal)
3. Write a "3" to the control register (base r3). This places the I/O
chip back into “operation” mode:
OUT 333h, 3
(control register)
Writing and reading from EZ I/O
Writing to or reading from the desired EZ I/O port is accomplished with
single program statements:
1. To write a bit pattern to the desired EZ I/O port:
OUT 332h, FFh
All bits of port C go high; all input bits are unaffected.
2. To read a bit pattern from the desired EZ I/O port:
PORTC = INP(332h)
The byte read from port C is assigned to variable port C.
EZ I/O output program examples
To configure ports A, B, and C as all outputs, issue the commands:
OUT 333h, 2
‘Direction’ Mode
OUT 330h, FFh
‘PortA’
OUT 331h, FFh
‘PortB’
OUT 332h, FFh
‘PortC’
OUT 333h, 3
‘Operation’ Mode
Summary of Contents for PC-500
Page 7: ...Notice to user PC 500 user s manual ...
Page 17: ...xii Contents PC 500 user s manual ...
Page 23: ...About this manual PC 500 user s manual ...
Page 25: ...Overview of Section 1 PC 500 user s manual ...
Page 35: ...2 2 Quick start PC 500 user s manual Figure 2 1 PC 500componentdiagram ...
Page 36: ...2 3 PC 500 user s manual Quick start Figure 2 2 PC 500center to centerholedimensions ...
Page 53: ...3 10 SETUP programs PC 500 user s manual ...
Page 57: ...4 4 Save and run programs PC 500 user s manual ...
Page 59: ...Overview of Section 2 PC 500 user s manual ...
Page 71: ...5 12 Serial ports PC 500 user s manual ...
Page 75: ...6 4 LPT1 parallel port PC 500 user s manual ...
Page 81: ...7 6 Console devices PC 500 user s manual ...
Page 89: ...10 2 IRQ routing and opto IRQs PC 500 user s manual Figure 10 1 Interruptroutingmatrix ...
Page 103: ...11 12 EZ I O PC 500 user s manual ...
Page 117: ...14 2 PC 104 expansion PC 500 user s manual ...
Page 119: ...15 2 SCSI PC 500 user s manual ...
Page 121: ...16 2 Ethernet PC 500 user s manual ...
Page 123: ...Overview of Section 3 PC 500 user s manual ...
Page 127: ...17 4 Watchdog timer and hardware reset PC 500 user s manual ...
Page 143: ...19 8 Transferring files remote disks PC 500 user s manual ...
Page 173: ...22 22 CPU power management PC 500 user s manual ...
Page 177: ...23 4 Troubleshooting PC 500 user s manual ...
Page 179: ...Overview of Section 4 PC 500 user s manual ...
Page 225: ...B 28 Software utilities PC 500 user s manual ...