User`s manual

XP8000 Series (PLCBus
TM
)
Z-World 530-757-3737 12
Typical Operations
In the examples given below, the shorthand notation
BUS
xxx
value
stands for this assembly code
ld a,
value
out0 (BUS
xxx
),a
Perform board check
BUSADR0 0010
BUSADR1 000z
BUSADR2 yx10 ;select mode
BUSRD0 value ;1010 if board exists
Turn analog section on or off
BUSADR0 0010
BUSADR1 000z
BUSADR2 yx10 ;select mode
BUSWR 011
a
;
a
is 1 for on, 0 for off
Select a channel
BUSADR0 0010
BUSADR1 000z
BUSADR2 yx10 ;select mode
BUSWR 1
xxx
;
xxx
is channel (0–7)
Drive a channel
Select the channel, then...
BUSADR0 0010
BUSADR1 000z
BUSADR2 yx00 ;data mode
Repeat
BUSWR 000
d
;
d
is data
BUSWR 001
d
;bit 1 is clock
BUSWR 000
d
;not change clock same time as data
for each of 16 bits
Read or write the EEPROM
BUSADR0 0010
BUSADR1 000z
BUSADR2 yx01 ;EE mode
BUSWR 0000 ;Init EE clock and data bits
Make transaction with EE. Serial reads and writes
BUSWR 0000 ;Re-init the EEPROM
Current Consumption
The DAC8 board draws approximately 30 mA at 24VDC.
The AD5320s are single-channel 12-bit DACs. They consume
very little power: 140 µA at 5V and can power down to 200 nA
(at 5V). The contribution of the DAC channels to current con-
sumption is negligible.
The effect of power-down mode is also negligible.
DAC8 Specifications
Board Size 2.835 × 3.525 × ~0.75
Operating Temp 40°C to +70°C
Humidity 95% r. h., non-condensing
Power
24VDC, 30 mA
Provides Eight (or four) 12-bit DAC channels, output
rated –
10V to +10V.
Each AD5320 has a linearity of ±16 LSB and a gain stability of
approximately 5 ppm per °C.
The RS232 Board
Z-World’s RS232 (XP8700) expansion boards provide a simple
way to add an RS232 channel to your control system. Each
board has a single Signetics SCC2691 UART. Up to 4 RS232
boards can be addressed on a single PLCBus.
P1
J1
Latch
D2
P2
H1
U5
PAL
PAL
U6
U4
SCC2691 UART
U1
232 Driver
3.686
MHz
U2
RN1
D1
R2R1
C1 C3 C4 C2
H2
RS232
Jack
To operate the RS232 board’s UART, you read and write to two
registers on the RS232 board: the control register (CTRL) and
data register (DATA). In addition, the RS232 board can raise a
processor interrupt INT1.
The SCC2691 UART
The SCC2691 is a full-duplex asynchronous receiver/transmit-
ter. It supports 18 baud rates from 50 to 38,400 baud. Data may
be framed with from 5 to 8 data bits, four parity modes, and 1,
1.5, or 2 stop bits. The UART provides error detection (framing
errors, parity errors, and overrun errors), break detection and
generation, and echo. There are two diagnostic modes. The
chip also has a multifunction 16-bit counter/timer.
Bus Buffer
D0
D7
8
Communication
Transmit Holding
Register
Receiver Holding
Registers (3)
MR1 & MR2
CR
SR
TxD
RxD
Operation Control
Address Decode
Interrupt Control
IMR
ISR
I/O Pins
Change of State
Detector
Function Select Logic
MP
MPI
Timing
Baud Rate Generator
Clock Selectors
CSR
ACR
CTUR
Counter/Timer
CTLR
X1/CLK
X2
A0–A2
READ
3
RESET
WRITE
ENABLE
Read/Write Control
INTR
The chip will generate interrupts under seven maskable condi-
tions. It has a low-power mode and a “wake-up” mode. Re-
ceiver data are buffered (4-byte FIFO).
Control of the UART is accomplished by reading or writing its
internal registers. You may set up a counter or timer, initiate
RS232 communication, or control interrupts. Options include
setting baud rates, parity and other modes.