11-5
PC-510 user’s manual
EZ I/O
Programming the EZ I/O
Follow these steps to program the EZ I/O chip:
1. Configure the EZ I/O port bit directions, either as inputs or outputs.
2. Write to port A, B, or C with the desired level or read the bit level from
the desired port.
Configuring the EZ I/O
Follow these steps to configure the EZ I/O chip
1. Write a "3" to the control register (base a 3). This places the I/O
chip in “direction” mode:
(default base address = 330h)
OUT 333h, 2 (control register, direction mode)
2. Set the direction of each bit. A "0" written to the corresponding line
indicates an input and a "1" bit indicates an output. Each bit corre-
sponds to the equivalent I/O line.
Table 11-6
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 re 3). This places the I/O
chip back into “operation” mode:
OUT 333h, 3
(control register)
Summary of Contents for PC-510
Page 7: ...Notice to user PC 510 user s manual ...
Page 17: ...xii Contents PC 510 user s manual ...
Page 23: ...About this manual PC 510 user s manual ...
Page 25: ...Overview of Section 1 PC 510 user s manual ...
Page 35: ...2 2 Quick start PC 510 user s manual Figure 2 1 PC 510 component diagram ...
Page 45: ...2 12 Quick start PC 510 user s manual ...
Page 55: ...3 10 SETUP programs PC 510 user s manual ...
Page 59: ...4 4 Save and run programs PC 510 user s manual ...
Page 61: ...Overview of Section 2 PC 510 user s manual ...
Page 73: ...5 12 Serial ports PC 510 user s manual ...
Page 77: ...6 4 LPT1 parallel port PC 510 user s manual ...
Page 83: ...7 6 Console devices PC 510 user s manual ...
Page 119: ...13 8 CRTs and flat panels PC 510 user s manual ...
Page 123: ...14 4 GPS interface PC 510 user s manual ...
Page 125: ...15 2 PC 104 expansion PC 510 user s manual ...
Page 127: ...Overview of Section 3 PC 510 user s manual ...
Page 131: ...16 4 Watchdog timer and hardware reset PC 510 user s manual ...
Page 147: ...18 8 Transferring files remote disks PC 510 user s manual ...
Page 177: ...21 22 CPU power management PC 510 user s manual ...
Page 181: ...22 4 Troubleshooting PC 510 user s manual ...
Page 183: ...Overview of Section 4 PC 510 user s manual ...
Page 203: ...A 20 Technical data PC 510 user s manual ...
Page 231: ...B 28 Software utilities PC 510 user s manual ...