PK2100 Series
Z-World 530-757-3737
8
Interrupt Vectors
Most of the interrupt vectors can be altered under program con-
trol. These are the suggested and default vectors:
Addr
Name
Description
0x00
INT1_VEC
Expansion bus attention
INT1
vector.
0x02
INT2_VEC
INT2
vector, can be jumpered to output of
the real-time clock for periodic interrupt.
0x04
PRT0_VEC
PRT
timer channel
0
0x06
PRT1_VEC
PRT
timer channel
1
0x08
DMA0_VEC
DMA
channel
0
0x0A
DMA1_VEC
DMA
channel
1
0x0C
CSIO_VEC
Clocked serial
I/O
0x0E
SER0_VEC
Asynchronous Serial Channel
0
0x10
SER1_VEC
Asynchronous Serial Channel
1
Jump Vectors
Instead of loading the address of the interrupt routine from the
interrupt vector, the following interrupts cause a jump directly
to the address of the vector, which will contain a jump instruc-
tion to the interrupt routine. For example,
0x66
non-maskable power-failure interrupt
0x08
INT
0
, mode 0
0x38
INT
0
, mode 1
Interrupt Priorities from Highest to Lowest
Internal Trap (Illegal Instruction)
External
NMI
(non maskable interrupt, power failure)
External
INT0
(non-maskable, level
0
)
External
INT1
(non-maskable, level
1
, expansion bus at-
tention line)
External
INT2
(non-maskable, level
2
)
Internal
PRT
timer channel
0
Internal
PRT
timer channel
1
Internal
DMA
channel
0
Internal
DMA
channel
1
Internal
Clocked serial
I/O
Internal
Serial Port
0
Internal
Serial Port
1
EEPROM
The parameters given here apply to the standard
24
-volt
PK2100
. See The
12
-
V
olt
PK2100
(page
9
) for changes relating
to the
12
-volt version.
Addr.
Definition
0
x
000
Startup Mode. If
1
, enter programming mode. If
8
, execute
loaded program at startup.
0
x
001
Baud rate in units of
1200
baud.
0
x
100
Unit “serial number.”
BCD
time/date with the following for-
mat: second, minutes, hours, day, month, year.
0
x
106
Required power voltage. This value is
24
for standard
PK2100
s and
12
for the
12
-volt version.
0
x
107
Software test version (times
10
). For version
1
.
2
, this is
12
.
0
x
108
Microprocessor clock speed in units of
1200 H
z (
16
-bits).
For
6
.
144 MH
z clock speed, this value is
5120
.
0
x
10C
Bus address for networking. 16 bits.
0
x
10E
Analog voltage reference units of
1
millivolt.
16
bits.
10300
for
10
.
300
volts.
0
x
110
Excitation resistor values for universal inputs
1
–
6
. These are
the pull-up resistors to the +
10V
reference. Six integers in
units of
0
.
5
ohm.
6600
for
3
.
3K
resistors.
0
x
11C
Pull-down resistor values for universal inputs
1
–
6
. Six inte-
gers in units of
0
.
5
ohm.
9400
(
4
.
7K
ohms).
0
x
128
4
–
20
m
A
load resistor. Resistance in units of
1/2
ohm. The
nominal value is
780
(
2
counts/ohm x
390
ohms). This rep-
resents the combined resistance of the load resistor and the
pull-down resistor in parallel.
0
x
12A
Reserved
0
x
130
11
values relating to internal
DAC
. First value is output volt-
age when nominal output is zero. Additional values are out-
put voltage increment (above offset) when input value is
1
,
2
,
4
...
256
,
512
. Stored as integers expressed in
0
.
5
millivolt
units.
0
x
146
11
values relating to external
DAC
. First value is output volt-
age when nominal output is zero. Additional values are out-
put voltage increment (above offset) when input value is
1
,
2
,
4
...
256
,
512
. Stored as integers expressed in
1/2
millivolt
units.
0
x
15C
For the standard
PK2100
, this is current in units of
0
.
001
m
A
corresponding to voltage output of
2
.
000V
when is set for 0-
20
m
A
output into nominal
392
ohm load resistor. Typically,
near
4000
. For the
12
-volt
PK2100
, the output range is
0
-
15
m
A
.
0
x
15E
For the standard
PK2100
, this is current in units of
0
.
001
m
A
corresponding to voltage output of
10
.
000
volts when is set
for
0
-
20
m
A
output into nominal 392 ohm load resistor. For
the
12
-volt
PK2100
, the output range is
0
-
15
m
A
.
0
x
160
With shorting jumper
H7
connected, these are
16
-bit num-
bers a0 and a1 high-gain plus-side inputs in the gain for-
mula
y = a1 x (x1 + a0)
with the minus side grounded. If the minus side is not
grounded, the formula is
y = a1 x ( x1 + a0 ) – b1 x x2.
where b1 is the minus-side gain and can be computed from
the calibration constants stored at location
0
x
164
. The value
y is the output of the high-gain amplifier read with universal
input channel
7
. The value x1 is the plus-side input read
with universal input channel
8
and x2 is the minus-side in-
put.
The coefficient a0 is signed and is in units of
0
.
01
m
V
. The
coefficient a1 is the unsigned dimensionless gain expressed
in units such that a gain of
10
is equal to
2000
.
0
x
164
With shorting jumper
H7
removed, these are
16
-bit numbers
a0 and a1 high gain plus-side input in the gain formula
y = a1 x (x1 + a0)
with the minus side grounded. If the minus side is not
grounded, the formula is
y = a1 x ( x1 + a0 ) – b1 x x2.
where b1 is the minus-side gain and can be computed as
a1–1.
0
x
168
Reserved
0
x
16A
Resistance of excitation resistor for high-gain plus input in
ohms. Nominal value
10K
. An unsigned integer.
0
x
16C
Long coefficient relating speed of microprocessor clock
relative to speed of real-time clock. Nominal value is
107
,
374
,
182
which is
1/4
0 of a second microprocessor clock
time on the scale where
2
32
is
1
second. This requires
4
bytes of
EEPROM
, stored least byte first.