background image

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.

Summary of Contents for PK2100 Series

Page 1: ...ominal PK2130 No enclosure LCD or keypad Operates at 12V nominal The following PK2100 Series options are available 9 216 MHz clock upgrade 6 144 MHz standard 128K flash 32K EPROM standard 128K or 512K...

Page 2: ...versal Inputs A D A D High Gain Input O1 O2 O3 O4 O5 O6 O7 K O8 O9 O10 24V UEXP DAC DAC Output D1 D2 D3 D4 D5 D6 D7 LCD C2B C2B C1 C1 C2 NC1 com1 NO1 Relay1 NC2 com2 NO2 Relay2 Digital Input Counter I...

Page 3: ...tput A second analog volt age output UEXP normally used by software to drive the universal inputs is available when the universal inputs have a fixed hardware threshold The DACs have 10 bit resolution...

Page 4: ...oved then the gain of the plus input becomes higher 11 The calibration gain and offsets are stored in the EEPROM The gain when H7 is connected is y a1 x1 a0 b1 x2 1 where a1 is the positive side scale...

Page 5: ...e DMA channels of the Z180 The maximum counting speed is approximately 600 kHz The DMA channel can be programmed to store a byte from an I O port to memory for each count if desired This byte can be t...

Page 6: ...ail The Serial Ports The Z180 has two independent full duplex asynchronous serial channels with a separate baud rate generator for each channel The baud rate can be divided down from the microprocesso...

Page 7: ...EEPROM clock 0x85 0 KEYR3 Keypad drive row 3 Open collector 1 drives low 0x86 0 KEYR1 Keypad drive row 1 Open collector 1 drives low 0x87 0 KEYR4 Keypad drive row 4 Open collector 1 drives low Also te...

Page 8: ...hms 0x128 4 20 mA 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...

Page 9: ...ted DC input voltage falls below approxi mately 15 6 volts subject to the voltage divider R9 R33 7 8V on 12V systems 2 A system reset is triggered when the regulated 5V supply falls below 4 5 volts Th...

Page 10: ...ut void up_daccal int value void up_dacout int rawval void up_expout int rawval void up_dac420 int current Analog Input void up_adcal int channel void up_in420 void up_adrd int channel void up_adtest...

Page 11: ...d to ground 3 4 Connect these positions to enable the termination 5 6 and bias resistors for RS485 communications H9 When installed this connects the on board battery to relay 1 N O contact Use H9 whe...

Page 12: ...connected to the comparators used for the universal inputs J11 1 2 Connect to enable CTS on the RS232 port 0 2 3 Connect to use the CTS line as a board reset line CTS high will reset the PK2100 board...

Page 13: ...VCC 5V attention AT 24V strobe STBX GND A3X GND A2X GND A1X RDX 5V VCC D0X WRX D4X D2X D6X 1 2 3 4 5 6 7 8 9 10 KV0 KV1 KV2 KV3 KV4 KV5 KH3 KH1 KH2 KH0 Keypad columns Keypad rows 2 4 1 3 6 5 8 7 10 9...

Reviews: