Download Print this page

Siemens SAB 80515 Series User Manual page 45

8-bit single-chip microcontroller family

Advertisement

On-Chip Peripheral Components
7.1.4.2 Port Loading and Interfacing
The output buffers of ports 1 through 5 can drive TTL inputs directly. The maximum port load which
still guarantees correct logic output levels can belooked up in the DC characteristics in the Data
Sheet of the SAB 80(C)515. The corresponding parameters are
V
and
V
.
OL
OH
The same applies to port 0 output buffers. They do, however, require external pullups to drive
floating inputs, except when being used as the address/data bus.
When used as inputs it must be noted that the ports 1 through 5 are not floating but have internal
pullup transistors. The driving devices must be capable of sinking a sufficient current if a logic low
I
I
level shall be applied to the port pin (the parameters
and
in the DC characteristics specify
TL
IL
these currents). Port 0 as well as the input only ports 6 of the ACMOS versions have floating inputs
when used for digital input.
7.1.4.3 Read-Modify-Write Feature of Ports 0 through 5
Some port-reading instructions read the latch and others read the pin (see figure 7-1). The
instructions reading the latch rather than the pin read a value, possibly change it, and then rewrite
it to the latch. These are called "read-modify-write" instructions, which are listed in table 7-2. lf the
destination is a port or a port bit, these instructions read the latch rather than the pin. Note that all
other instructions which can be used to read a port, exclusively read the port pin. In any case,
reading from latch or pin, resp., is performed by reading the SFR P0 to P5; for example,
"MOV A, P3" reads the value from port 3 pins, while "ANL P4, #0AA H " reads from the latch,
*
modifies the value and writes it back to the latch.
Semiconductor Group
45

Advertisement

loading

This manual is also suitable for:

Sab 80c515Sab 80c535Sab 80535Sab 80515k