DIY Southern Cross II Hardware Handleiding - Pagina 5
Blader online of download pdf Hardware Handleiding voor {categorie_naam} DIY Southern Cross II. DIY Southern Cross II 13 pagina's.
A number of parallel I/O ports are provided. Some are "static" in operation, meaning that any data written to
the port is latched. The other ports are "dynamic" in nature. These ports do not latch data written to them.
Output data is only valid while the port is being addressed. These ports are referred to as "bit ports".
The 8051 family of microcontrollers have four inbuilt 8-bit parallel ports, labelled P0-3. Two of these ports,
P0 and P2, are used as address/data busses when external program and data memory access is required. This
is the mode in which the Southern Cross II operates. Port bits P3.6 and P3.7 are used as /RD and /WR signals
and therefore are not available for use as I/O lines. This leaves 13 I/O lines available for use, all of port 1 and
bits 0-5 of port 3. Note that port bits P3.0 - P3.5 all have secondary functions eg. P3.0 and P3.1 are the Rx
and Tx lines for the 8031 serial port.
These 13 I/O lines are brought out to a 16-pin header labelled J1.
J1 pin
1
3
5
7
9
11
13
15
Port bits P1.3, P1.4 ans P1.5 also have a secondary function. They are connected via switch SW2 to the
memory decoder GAL, IC9, and used by the 8052-BASIC chips as EPROM programming control pins. These
pins are only needed by BASIC-52 when programs are to be saved into EPROM. Refer to the section on
"BASIC-52 Programming" for further details.
Three 8-bit parallel ports are implemented using the 8255 Programmable Peripheral Interface (PPI) chip
(IC6). This chip is mapped in external data memory at address F400h. These 24 I/O lines are brought out to a
26-pin header labelled J2.
J2 pin
1
3
5
7
9
11
13
15
17
19
21
23
25
Parallel I/O Ports
8031 I/O ports - J1
Signal
J1 pin
P1.0
2
P1.2
4
P1.4
6
P1.6
8
P3.0 / RxD
10
P3.2 / INT0
12
P3.4 / T0
14
GND
16
8255 I/O Ports - J2
Signal
J2 pin
PA0
2
PA2
4
PA4
6
PA6
8
PB0
10
PB2
12
PB4
14
PB6
16
PC0
18
PC2
20
PC4
22
PC6
24
GND
26
Signal
P1.1
P1.3
P1.5
P1.7
P3.1 / TxD
P3.3 / INT1
P3.5 / T1
GND
Signal
PA1
PA3
PA5
PA7
PB1
PB3
PB5
PB7
PC1
PC3
PC5
PC7
GND