User`s manual

XP8300/XP8400/SE110060 s PLCBus
Registers and Addresses
There are eight registers corresponding to the modes determined by bus
lines A1X, A2X, and A3X. Writing or reading one of these registers takes
care of all the bus details. Functions are available in Dynamic C libraries
to read from or write to expansion bus devices.
To communicate with a device on the expansion bus, first select a register
associated with the device. Then read from or write to the register. The
register is selected by placing its address on the bus. Each device recog-
nizes its own address and latches itself internally. The registers are listed
in Table A-2.
A typical device has three internal latches corresponding to the three
address bytes. The first is latched when a matching BUSADR0 is de-
tected. The second is latched when the first is latched and a matching
BUSADR1 is detected. The third is latched if the first two are latched and
a matching BUSADR2 is detected. If 4-bit addressing is used, then there
are three 4-bit address nibbles, giving 12-bit addresses. In addition, a
special register address is reserved for address expansion. This address, if
used, would provide an additional four bits of addressing when using the
4-bit convention.
Table A-2. PLCBus Registers
Register
Address
A3 A2 A1 Meaning
BUSRD0 C0 0 0 0
Read data, one way
BUSRD1 C2 0 0 1
Read data, another
way
BUSRD2 C4 0 1 0 Spare, or read data
BUSRESET C6 0 1 1
Read this register to
reset the PLCBus
BUSADR0 C8 1 0 0
First address nibble
or byte
BUSADR1 CA 1 0 1
Second address
nibble or byte
BUSADR2 CC 1 1 0
Third address
nibble or byte
BUSWR CE 111Write data