English
Language : 

VRS51X550 Datasheet, PDF (9/40 Pages) List of Unclassifed Manufacturers – Versa 8051 MCUs with 8/16KB Flash
VRS51x550/560
Input/Output Ports
The VRS51x550 and VRS51x560 each have a total of
32 bi-directional I/O lines grouped into four 8-bit I/O
ports. These I/Os can be individually configured as
inputs or outputs.
With the exception of the P0 I/Os, which are of the
open drain type, each I/O consists of a transistor
connected to ground and a weak pull-up resistor.
Writing a 0 in a given I/O port bit register will activate
the transistor connected to Vss. This will bring the I/O
to a LOW level.
Writing a 1 into a given I/O port bit register deactivates
the transistor between the pin and ground. In this case,
the pull-up resistor will bring the corresponding pin to a
HIGH level.
To use a given I/O as an input, a 1 must be written into
its associated port register bit. By default, upon reset
all the I/Os are configured as inputs.
General Structure of an I/O Port
The following elements establish the link between the
core unit and the pins of the microcontroller:
• Special Function Register (same name as port)
• Output Stage Amplifier (the structure of this
element varies with its auxiliary function)
From the next figure, one can see that the D flip-flop
stores the value received from the internal bus after
receiving a write signal from the core. Also, note that
the Q output of the flip-flop can be linked to the internal
bus by executing a read instruction.
This is how one would read the content of the register.
It is also possible to link the value of the pin to the
internal bus. This is done by the “read pin” instruction.
In short, the user may read the value of the register or
the pin.
FIGURE 6: INTERNAL STRUCTURE OF ONE OF THE EIGHT I/O PORT LINES
Read Register
Internal Bus
Write to
Register
Q
D Flip-Flop
Q
Output
Stage
IC Pin
Read Pin
Structure of the P1, P2, P3
The following figure describes the general structure of
the P1, P2 and P3 ports. Note that the figure below
does not show the intermediary logic that connects the
register output with the output stage because this logic
varies with the auxiliary function of each port.
FIGURE 7: GENERAL STRUCTURE OF THE OUTPUT STAGE OF P1, P2 AND P3
Read Register
Internal Bus
Write to
Register
Q
D Flip-Flop
Q
Vcc
Pull-up
Network
X1
IC Pin
Read Pin
Each line may be used independently as a logical
input or output. When used as an input, the
corresponding port register bit must be high.
______________________________________________________________________________________________
www.ramtron.com
page 9 of 40