6-14
EZ I/O
6000 Series user’s manual
Table 6-11
EZ I/O port addressing
Port
I/O address
A
Base address
B
Base a 1*
C
Base a 2
Control register
Base a 3
*Port B can only be configured as output on the 6050.
The output level is inverted from input. This is due to
the inverted-output, high-current driver used on the
6050. Consider these factors when using and
programming this port.
Programming EZ I/O
Program the EZ I/O chip as follows:
1. Configure the bit directions.
2. Write to port A, B, or C with the desired level, or read the bit
level from the desired port.
Configuring EZ I/O
Configure the EZ I/O chip as follows:
1. Write a “2” to the control register (base 3). This places
the I/O chip into the “direction” mode:
OUT 143H, 2
(control register)
2. Set the direction of each bit. A “0” bit to the corresponding
line indicates an output. A “1” bit indicates an input. Each bit
corresponds to the equivalent I/O line.
Table 6-12
EZ I/O port byte
EZ I/O port byte
EZ I/O port
bit 7
bit 6
bit 5
bit 4
bit 3
bit 2
bit 1
bit 0
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 2) will configure
port C I/O lines 0, 1, 5, 6, and 7 to be inputs and lines 2, 3, and 4 to be
outputs:
Summary of Contents for 6000 Series
Page 7: ...Notice to user PC 500 user s manual ...
Page 9: ...About this manual 6000 Series user s manual ...
Page 37: ...2 20 Quick start 6000 Series user s manual ...
Page 65: ...5 16 Serial ports 6000 Series user s manual ...
Page 87: ...6 22 EZ I O 6000 Series user s manual ...
Page 103: ...8 8 Analog I O 6000 Series user s manual ...
Page 119: ...14 2 PC 104 expansion 6000 Series user s manual ...
Page 133: ...16 4 Watchdog timer reset and remote reset 6000 Series user s manual ...
Page 139: ...17 6 Serial EEPROM 6000 Series user s manual ...
Page 157: ...21 2 Software utilities 6000 Series user s manual ...
Page 161: ...22 4 Troubleshooting 6000 Series user s manual ...
Page 177: ...A 16 6010 technical data 6000 Series user s manual ...
Page 215: ...D 16 6040 technical data 6000 Series user s manual ...
Page 229: ...F 2 Miscellaneous 6000 Series user s manual ...