ST10F269-T3
12 - PARALLEL PORTS
12.1 - Introduction
The ST10F269-T3 MCU provides up to 111 I/O
lines with programmable features. These
capabilities bring very flexible adaptation of this
MCU to wide range of applications.
ST10F269-T3 has 9 groups of I/O lines gathered
as following:
鈥?Port 0 is a 2 time 8-bit port named P0L (Low as
less significant Byte) and P0H (high as most sig-
nificant Byte)
鈥?Port 1 is a 2 time 8-bit port named P1L and P1H
鈥?Port 2 is a 16-bit port
鈥?Port 3 is a 15-bit port (P3.14 line is not imple-
mented)
鈥?Port 4 is a 8-bit port
鈥?Port 5 is a 16-bit port input only
鈥?Port 6, Port 7 and Port 8 are 8-bit port
These ports may be used as general purpose
bidirectional input or output, software controlled
with dedicated registers.
For example the output drivers of six of the ports
(2, 3, 4, 6, 7, 8) can be configured (bit-wise) for
push-pull or open drain operation using ODPx
registers.
In addition, the sink and the source capability and
the rise / fall time of the transition of the signal of
some of the push-pull buffers can be programmed
to fit the driving requirements of the application
and to minimize EMI. This feature is implemented
on Port 0, 1, 2, 3, 4, 6, 7 and 8 with the control
registers POCONx. The output drivers capabilities
of ALE, RD, WR control lines are programmable
with the dedicated bits of POCON20 control
register.
The input threshold levels are programmable
(TTL/CMOS) for 5 ports (2, 3, 4, 7, 8). The logic
level of a pin is clocked into the input latch once
per state time, regardless whether the port is
configured for input or output. The threshold is
selected with the PICON register control bits.
A write operation to a port pin configured as an
input causes the value to be written into the port
output latch, while a read operation returns the
latched state of the pin itself. A read-modify-write
operation reads the value of the pin, modifies it,
and writes it back to the output latch.
Writing to a pin configured as an output
(DPx.y=鈥?鈥? causes the output latch and the pin to
have the written value, since the output buffer is
enabled. Reading this pin returns the value of the
output latch. A read-modify-write operation reads
the value of the output latch, modifies it, and
writes it back to the output latch, thus also
modifying the level at the pin.
I/O lines support an alternate function which is
detailed in the following description of each port.
55/160