
2192-09155-000-000
J230 PCPIC
Page 10
Therefore with LK7 and LK8 set, a valid board address is decoded
when lines A7 and A8 are high and all the rest are low.The diagram
shows a binary number of: 0110000000 this is not exactly convenient
to use so it is usually converted to hexadecimal, in this case 180h. To
do this each line is given weighting as follows:
A9
2
0
1
1
0
0
If we total the values for the high bits we can see where the 180H
comes from. For example if we wanted to address the board at 192H
this would become:
A9
2
0
1
1
0
0
- and we would set links LK1, LK4, LK7 and LK8. Since most boards
occupy more than one byte of address space, the lower address lines
do not have associated links. This should be taken into account
when choosing base addresses for the board.
The problem comes in finding what to set the links to. Many PCs are
not supplied with any information about what I/O devices are
already installed at particular addresses. There are several ways
round this. Firstly, try running the board at address 180H(see
Section 3 for installation information). This is often unused. If you
can't get any information from the PC manufacturer, run a program
like Quarterdeck's Manifest, which makes a reasonable attempt to
discover the addresses of common peripherals. Finally, see Section 3
for fault-finding information.
The Registers on the PCPIC
The following table shows the I/O registers on the PCPIC.
Pointer Value
13H
13H
12H
11H
10H
0DH
0CH
0BH
0AH
09
08
07
06
05
04
03
02
01
00
CLINT
RINT
BCONT
G2IN
G1IN
TRIGTB
G3OUT
IC24C
C7
C6
C5
IC23C
C4
C3
C2
IC22C
C1
C0
TB
W
R
W
R
R
W
W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
Clear interrupts
Read interrupt status
Board control register (IC9)
Group 2 inputs (IC3)
Group 1 inputs (IC2)
Triggers timebase gate
Group 3 outputs (IC13)
IC24 control register
IC24 counter 2 - PCPIC counter 7
IC24 counter 1 - PCPIC counter 6
IC24 counter 0 - PCPIC counter 5
IC23 control register
IC23 counter 2 - PCPIC counter 4
IC23 counter 1 - PCPIC counter 3
IC23 counter 0 - PCPIC counter 2
IC22 control register
IC22 counter 2 - PCPIC counter 1
IC22 counter 1 - PCPIC counter 0
IC22 counter 0 - timebase
Register Name
Read/Write
Comments
0
0
0
0
0
1
8
4
2
1
8
4
2
1
A8
A7
A6
A5
A4
A3
A2
A1
A0
1
0
0
1
0
1
8
4
2
1
8
4
2
1
A8
A7
A6
A5
A4
A3
A2
A1
A0