PSD813F2-A-70J STMicroelectronics, PSD813F2-A-70J Datasheet - Page 72

no-image

PSD813F2-A-70J

Manufacturer Part Number
PSD813F2-A-70J
Description
Manufacturer
STMicroelectronics
Datasheet

Specifications of PSD813F2-A-70J

Operating Temperature (max)
70C
Operating Temperature (min)
0C
Operating Temperature Classification
Commercial
Package Type
PLCC
Mounting
Surface Mount
Pin Count
52
Lead Free Status / RoHS Status
Compliant
I/O ports
16.10
16.11
16.12
16.13
72/128
Port configuration registers (PCR)
Each port has a set of port configuration registers (PCR) used for configuration. The
contents of the registers can be accessed by the MCU through normal READ/WRITE bus
cycles at the addresses given in
hexadecimal from the base of the CSIOP register.
The pins of a port are individually configurable and each bit in the register controls its
respective pin. For example, Bit 0 in a register refers to Bit 0 of its port. The three port
configuration registers (PCR), shown in
configurations. The default Power-up state for each register in
Control register
Any bit reset to '0' in the Control register sets the corresponding port pin to MCU I/O mode,
and a '1' sets it to Address Out mode. The default mode is MCU I/O. Only ports A and B
have an associated Control register.
Direction register
The Direction register, in conjunction with the output enable (except for port D), controls the
direction of data flow in the I/O ports. Any bit set to '1' in the Direction register causes the
corresponding pin to be an output, and any bit set to '0' causes it to be an input. The default
mode for all port pins is input.
Figure 27
respectively. The direction of data flow for ports A, B, and C are controlled not only by the
direction register, but also by the output enable product term from the PLD AND Array. If the
output enable product term is not active, the Direction register has sole control of a given
pin’s direction.
An example of a configuration for a port with the three least significant bits set to output and
the remainder set to input is shown in
(shown in
active.
Drive Select register
The Drive Select register configures the pin driver as Open Drain or CMOS for some port
pins, and controls the slew rate for the other port pins. An external pull-up resistor should be
used for pins configured as Open Drain.
A pin can be configured as Open Drain if its corresponding bit in the Drive Select register is
set to a ’1.’ The default pin drive is CMOS.
Note that the slew rate is a measurement of the rise and fall times of an output. A higher
slew rate means a faster output response and may create more electrical noise. A pin
operates in a high slew rate when the corresponding bit in the Drive register is set to ’1.’ The
default rate is slow slew.
Table 27
configured as Open Drain outputs and which pins the slew rate can be set for.
shows the Drive register for ports A, B, C, and D. It summarizes which pins can be
and
Figure
Figure 28
30), the Direction register for port D has only the three least significant bits
show the port architecture diagrams for ports A/B and C,
Doc ID 7833 Rev 7
Table
Table
8. The addresses in
Table
26. Since port D only contains three pins
23, are used for setting the port
Table 8
Table 23
are the offsets in
is 00h.
PSD8XXFX

Related parts for PSD813F2-A-70J